Hi everyone! I am looking for a way to store the enemy's index that has been targeted in a variable.
I found this:
But it doesn't let me know the ID before the "perform action" (I'm using Yanfly's Action Sequence 1, 2 and 3 plugins).
Looking and searching I also found this:
But I don't know how to use it, can you tell me how do I store the enemy's Index in a variable BEFORE "perform action"?
I found this:
JavaScript:
$gameVariables.setValue(1, b.index())
But it doesn't let me know the ID before the "perform action" (I'm using Yanfly's Action Sequence 1, 2 and 3 plugins).
Looking and searching I also found this:
JavaScript:
$gameActors.actor(actorId)._actions[actionIndex]._targetIndex
But I don't know how to use it, can you tell me how do I store the enemy's Index in a variable BEFORE "perform action"?