Hello, first of all, I'm sorry if a thread like this already exist and I'm unaware of it...
I'm trying to make a skill that acts like a counterattack, but it happens after the user got hit by an enemy attack. To simplify, the fight will go:
-) User uses a skill that allows them to counterattack
-) Enemy attacks User
-) User receives damage from enemy attack
-) User will immediately counterattack the enemy that attacks them
To this, I have made the following:
-) Created a 'Shield' skill to give the user a 'Shielded' state.
-) Created a battle event with the conditional branch "If user state = 'Shielded', then it'll force action user to use 'Counter' at the enemy that attacks him the most recent.
-) Set the battle event's span to 'moment' so the 'Counter' skill will be used each time an enemy attacks the user.
-) I've made a second battle event that forces the user to use the 'Shield' spell at the beginning of the battle, at turn 0
But, things really don't go well. Instead of getting what I want, these happened instead. With the 'Don't Run' condition in the first battle event, it never worked. I tried to set the condition 'If user have less then 99% HP', but what I got is the user using the 'Counter' skill ENDLESSLY on the enemy at the first index, even though I choose 'last target' at the force action (The enemy at the second index is the first one that damages the user)
I guess my first question is, what is the optimal trigger I should put in the first battle event? Second, how do you make the user only use the skill only once? And third, how do you make sure that the 'Counter' skill get used on the enemy that attacks the user most recently?
I'm hoping I can do it without having to resort to scripts or plugins, since I have ZERO experience with it and have no idea how to use them.
Thank you for reading my wall of text, I hope someone can help me~