Okay, I've gotten a decent chunk of the way through the game. But I have a special boss I want to put into it.
His basic gimmick is this. He is flanked by his minions and is cloaked in an unbreakable barrier until you kill off his minions. Once you do, his barrier will go down and he will become vulnerable. You have three turns to deal damage to him. Then he will summon his minions again and his barrier will be restored.
How do I go about implementing this?
You could accomplish this fairly handily using VisuStella's Anti-damage Barriers plugin. I would give the boss a passive state that checks whether any minions are alive, and if so reapplies the barrier state (which just aborbs all damage).
I'd be careful with balancing this, though. Depending on how tough the minions/boss are, how many party members you have, and how long a minion takes to kill, 3 turns to deal damage may not be enough, and you'll frustrate players if they end up in a situation where they need to spend those turns healing from the boss attacks or preparing to the next minion wave rather than dealing damage to the boss.
Just give the boss an immune state. Have a battle event check each turn whether his minions are alive, and if neither are alive, remove his immune state and start a variable counter adding +1 each turn while his minions are gone. When the counter hits 3, bring back the minions, reset the variable to 0, and apply the immune state to the boss.
Took me awhile to get this one figured out. Especially since I was able to get the minions revived easily.
I decided to make it less frustrating by making the revivals based off the boss's HP rather than the number of turns. (70%, 40%, 10%).
The immortality bit was getting to me. Then I realized you have to put in an Else branch for EACH enemy downed. Not just the enemies as a whole.