boss revive mechanic

I need help with my final boss revive mechanic, let's say like this :
Boss A
Minion 1
Minion 2

The boss has the "minion shield" buff, so the boss is completely invulnerable when the minions are still alive.

So, here's my plan :
I would like the boss revives all minions after 3-5 turns after all minions are defeated.
I mean ALL minions,
because if he only resurrects one minion, the player might not have enough time frame to damage the boss.

I'm using Yanfly Passive States, buff states core
Maybe I could use Yanfly AI Core too?

Any help will be appreciated,

cheers
My guess is...
Every turn: If troop count is one (or if every minion is dead), Variable increases by 1; else (if even one minion is still alive), variable is 0 and switch is off.
Also, if Variable is equal or more than 3, turn Switch on.

Switch is the condition for a Revive All skill.
The best plugin to use for this would probably be Hime's Custom Page Conditions. Use multiple conditions in a Troop Page Event to check whether ALL minions are KO'ed. The exact way you'll want to add and remove the Invulnerability state and respawn the minions is up to you, but it's definitely do-able with this approach.
You shouldn't really need a plugin for this. Like @Harosata said, check if all minions are dead and increase a variable, after that either activate a skill that revives all the minions or just do it with event commands once the variable reaches a certain number - your choice.

Spoiler
upload_2019-2-21_19-5-27.png
Here's how to do it with no plugin and no code just eventing.
I got it. Zarsla's event works properly. thanks everyone.

Original thread: https://forums.rpgmakerweb.com/threads/boss-revive-mechanic.105911/