Hey folks,
I need to set a variable to the hit rate for the attacking character (could be by actor ID, this actor, "subject" when attacking, etc.) as well as an enemy when it attacks (subject, ideally, as enemy ID will always be different depending on who is attacking).
I've tried setting variable to:
BattleManager._subject.xparam(0)
and
BattleManager._target.xparam(0)
But, both just return "1" for some reason. My understanding is that the xparam ID for hit rate is 0, so if I have a hit rate of 95%, shouldn't this be setting the variable to "95"?
Maybe I have the ID wrong?
Any help is much appreciated! I am basically trying to make a common event only run based on comparing a random "1-100" variable against the hit rate of the current attacking character/enemy.
Thanks!
I need to set a variable to the hit rate for the attacking character (could be by actor ID, this actor, "subject" when attacking, etc.) as well as an enemy when it attacks (subject, ideally, as enemy ID will always be different depending on who is attacking).
I've tried setting variable to:
BattleManager._subject.xparam(0)
and
BattleManager._target.xparam(0)
But, both just return "1" for some reason. My understanding is that the xparam ID for hit rate is 0, so if I have a hit rate of 95%, shouldn't this be setting the variable to "95"?
Maybe I have the ID wrong?
Any help is much appreciated! I am basically trying to make a common event only run based on comparing a random "1-100" variable against the hit rate of the current attacking character/enemy.
Thanks!