Ok, so there's this passive skill that randomly makes one of the party members receive an attack instead of the leader. I'm doing this by using 2 states: one for the party leader (I need this to make the skill work only when the player has learned that passive skill), and another for all the enemies in the battle (I need this to check whether they'll be targeting the party leader and redirect it to someone else).
So, the leader state is used to apply the other state on all enemies as soon as the battle starts. But I'm having trouble to make the enemy state work, since I can grab their actions during <Custom Action Start Effect> (with user.currentAction()) but not their target, and during <Custom Initiate Effect> I can grab their target but not their action and therefore I can't change their target.
Can someone help me with this please? 🙁
So, the leader state is used to apply the other state on all enemies as soon as the battle starts. But I'm having trouble to make the enemy state work, since I can grab their actions during <Custom Action Start Effect> (with user.currentAction()) but not their target, and during <Custom Initiate Effect> I can grab their target but not their action and therefore I can't change their target.
Can someone help me with this please? 🙁