Hi
I would like to upgrade the View Equipment system to get the character's points
such as HP, SP, STR, magic attack, magic defense,..etc.
Details in this window
https://gyazo.com/f50139c8f46c95bc9fc3d849a4d316b7
I tried to use as ex :
I would like to upgrade the View Equipment system to get the character's points
such as HP, SP, STR, magic attack, magic defense,..etc.
Details in this window
https://gyazo.com/f50139c8f46c95bc9fc3d849a4d316b7
I tried to use as ex :
[CODE lang="python" title="code"]
self.GetChild("MATT_Value").SetText(self.__GetTotalMagAtkText())
def __GetTotalMagAtkText(self):
minMagAtk=player.GetStatus(player.MAG_ATT)+player.GetStatus(player.MIN_MAGIC_WEP)
maxMagAtk=player.GetStatus(player.MAG_ATT)+player.GetStatus(player.MAX_MAGIC_WEP)
if minMagAtk==maxMagAtk:
return "%d" % (minMagAtk)
else:
return "%d-%d" % (minMagAtk, maxMagAtk)
[/CODE]
But it showed the details of my character, not the target
https://gyazo.com/67d12896d695ea20f4c541182b2812dc
Does anyone know a way to do this?
thnx all