- Joined
- May 29, 2016
- Messages
- 211
- Reaction score
- 486
- Primarily Uses
Hi all
I am trying to determine if there's a way to obtain the enemy target index of a skill before the skill is executed. After I select my skills for all actors and determine the targets, the data must be stored somewhere I'm assuming. I just can't figure out where.
Some searching has led me to BattleManager._action._targetIndex, but as I understand the index is returned after performing the skill in this case. Using the damage formula is no good either as it needs to run before the target index us returned.
Could it be somewhere in the $gameActors.actor()._actions[] array? I know the selected skill ids are stored there, so maybe the target indexes as well?
Any help or hints are appreciated!
I am trying to determine if there's a way to obtain the enemy target index of a skill before the skill is executed. After I select my skills for all actors and determine the targets, the data must be stored somewhere I'm assuming. I just can't figure out where.
Some searching has led me to BattleManager._action._targetIndex, but as I understand the index is returned after performing the skill in this case. Using the damage formula is no good either as it needs to run before the target index us returned.
Could it be somewhere in the $gameActors.actor()._actions[] array? I know the selected skill ids are stored there, so maybe the target indexes as well?
Any help or hints are appreciated!
