Need help with boss's eventing and attack pattern.

I am having problem with the boss's pattern, I wanted him to idle for one turn when his HP is 50% (Like no attacking or doing anything) and then cast an ultimate skill on next turn (That will give a chance for players to guard first), how do I do that?
Explaining in pictures are really helpful!
Sorry I can't do pictures (my laptop hates them) but I'll try to explain in a picturesque manner (it's totally a thing). Enter the database and go to the troops page. I'm assuming you already have the boss setup in both the enemies and troops pages. You want to go down and change the condition that says 'don't run' to 'enemy hp, the boss, <= 50%'. Second, add a variable called 'the bosses name 50% special' or something like that, and set up a conditional branch where the variable must equal 0. Next, inside the conditional, add an event command. On the third page of event commands click 'force action'. You want to select 'the boss' under enemy, and skill 0007 'wait'. The target shouldn't matter. Lastly, change the span from 'battle' to 'turn'. Oh and because the engine is a little limited, you will want to make a switch for this and turn it on. And after that increase your variable by one.

The second step is creating a new event page. The condition will be if the switch you just made is on. You will do force action again and select the special skill on random target. Next turn off the the switch you made. And that should work, let me know if there are any issues. I didn't actually test it and just went on what I know about the engine so there probably are a few kinks to work out.

This works even if the boss can heal. Because of the conditional with the variable and the switch it will only run once. Of course, if you wan the boss to be able to heal and do its special attack again you can just take out the conditional and the variable. Hope this helped.

Edit: Just thought of this. You could create your own skill that does nothing, but when cast says 'blank is charging up', and replace 'wait' with that. You could also have the skill add a state for one turn called 'storing power' or something to show that the boss is indeed readying for a special attack. It's just a small feature that I figured you might consider, since it would allow the player to prepare the turn before.
The one problem with the above method is that (I think) the boss will sometimes not skip a turn - it will just use an action and then "wait" in the same turn, and the next turn it will use its attack (out of turn).

I would recommend a similar but not identical solution:
  1. Create a Troop page with Condition "Boss X's HP is under 50%" and set the Span to "Battle" (assuming you only want the boss to use this "Charge" once - if you want the boss to use it often, we'll need some slightly more complex eventing). Set a Switch (e.g. Switch #17) to ON.
  2. Create a skill for the Boss called "Charge Up" or whatever you want. Have the skill do nothing except run a Common Event that plays animations/messages/whatever to let you know that the boss is charging up their super attack, and also have it set Switch #17 OFF and set another switch (e.g. Switch #18) ON.
  3. Create the Boss' ultimate skill. Have it do whatever.
  4. Add both skills to the Boss Enemy's movelist in your database. Give both a much higher Rating/Weight (four or more higher) than any other skill. For the Charge Up skill, give it the Condition "Switch 17 is ON"; for the Ultimate Skill, give it the Condition ("Switch 18 is ON").

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-bosss-eventing-and-attack-pattern.78497/