I don't get how turn numbers work.

I'm trying to make a friendly enemy that follows this specific and exact attack pattern.


On turn 1, I want it to just wait. (As in do nothing, it uses skill 7)


On turn 2, I want it to use a skill called Heal which heals the whole party's HP.


On turn 3, I want it to use a skill called Prayer which heals the whole party's MP.


On turn 4, I want it to use a skill I have yet to name that heals the whole party's TP.


Finally on turn 5, it escapes.


However, I want it to escape instantly (rendering all of the above void) if any damage is dealt to it. 


I tried doing this with both the enemy action patterns and the troop battle events but both of them won't work, and even then I don't get how to make it escape instantly if any damage is delt to it. Does anyone know how I would go about with this?. 
Selecting which skills to use is done in the attack pattern of the enemy, selecting a reaction to something else is done in the troop events.


You need to set the five different skills in the attack pattern, each one with the condition turn number, followed by the correct turn number plus 0*X (zero by X means the skill won't repeat on different turns)


Your troop event needs to be set to enemy HP is 99% or below and span moment


It won't be able to react to a damage that is lower than 1% of its maximum HP.
It could have been with MV, but I think there was something wrong with the turn numbers in enemy patterns, like you needed to set them to a turn 1 higher than you'd think or something. 
For the escaping if damage has been dealt set the Event Condition to check the Enemy's HP after the first turn (so make sure the box "When the end of turn" is checked). I had an event like this and set it to 99% or lower (tho depending on the HP of the monster, sometimes this won't be flagged if there wasn't enough damage done). After the first turn if players did damage, the enemy made a comment and then ran away. I basically just had it change to a blank enemy and then used the command "abort" battle since I don't think I could get the running away skill to work (I tried--he just made one of my party members leave the battle lol).


9f193eb483.png



That is how my condition was set up to make the ghost run if I was confusing at all. It's also set to span the Turn which means it will run once per turn if the conditions are met. My friendly monster battle doesn't have a break to allow you to hit the monster after the friendly events start so I'm unsure if this will work if your players attack the monster between it healing your party up.
Okay, I tried it that way and it worked. Thanks everyone!


Also @Liak, it's a VX Ace bug as far as I know. I don't know if they fixed it in MV or not because I don't have MV (yet.)

Original thread: https://forums.rpgmakerweb.com/threads/i-dont-get-how-turn-numbers-work.59325/