Ayyıldız2 | 2008 TR Yapısı • 1-99 Orta Emek Destan • Oto Avsız • 10 Temmuz 21:00 HEMEN TIKLA!
Teşekkürler, affectshower için örnek kullanımı nasıl olacak pythonda gösterebilir misiniz? @Reached
Python:
#Ara
try:
print "Add affect %s" % affect
# Üstüne
if affect == player.AFFECT_TIMED_QUEST:
bonuses = player.GetAffectAppliesByType(affect)
if bonuses and self.itemToolTip:
extra_lines = []
for (applyOn, val) in bonuses:
try:
applyIdx = item.GetPointApply(applyOn)
s = self.itemToolTip.GetAffectString(applyIdx, val)
if s:
extra_lines.append(s)
except:
pass
if extra_lines:
description = "Timed Quests" + "\n" + "\n".join(extra_lines)
1223 01:33:32536 :: Traceback (most recent call last):Python:#Ara try: print "Add affect %s" % affect # Üstüne if affect == player.AFFECT_TIMED_QUEST: bonuses = player.GetAffectAppliesByType(affect) if bonuses and self.itemToolTip: extra_lines = [] for (applyOn, val) in bonuses: try: applyIdx = item.GetPointApply(applyOn) s = self.itemToolTip.GetAffectString(applyIdx, val) if s: extra_lines.append(s) except: pass if extra_lines: description = "Timed Quests" + "\n" + "\n".join(extra_lines)
1223 01:33:32536 :: File "game.py", line 773, in BINARY_NEW_AddAffect
1223 01:33:32536 :: File "uiAffectShower.py", line 630, in BINARY_NEW_AddAffect
1223 01:33:32536 :: AttributeError
1223 01:33:32536 :: :
1223 01:33:32536 :: 'module' object has no attribute 'AFFECT_TIMED_QUEST'
1223 01:33:32536 ::
pythonplayer ya da pythonplayermodule.cpp'ye AFFECT_TIMED_QUEST bu isimde bişey eklemedik ki hocam nasıl olacak
Örnek istediniz, örnek attım kendi sistemim üzerinden. Kullanacağınız sisteme göre düzenleyebilirsiniz.1223 01:33:32536 :: Traceback (most recent call last):
1223 01:33:32536 :: File "game.py", line 773, in BINARY_NEW_AddAffect
1223 01:33:32536 :: File "uiAffectShower.py", line 630, in BINARY_NEW_AddAffect
1223 01:33:32536 :: AttributeError
1223 01:33:32536 :: :
1223 01:33:32536 :: 'module' object has no attribute 'AFFECT_TIMED_QUEST'
1223 01:33:32536 ::
pythonplayer ya da pythonplayermodule.cpp'ye AFFECT_TIMED_QUEST bu isimde bişey eklemedik ki hocam nasıl olacak
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 2
- Görüntüleme
- 514
- Cevaplar
- 3
- Görüntüleme
- 76
- Cevaplar
- 34
- Görüntüleme
- 2K
- Cevaplar
- 6
- Görüntüleme
- 899