Boss gimmicks I need help with

So I'm making a strong bonus boss. And I'm trying to work out a few gimmicks. I know one of these will be hard enough...but both of them at once will make it a tough fight! Mostly it relates to the boss's minions.

GIMMICK #1: Whenever you destroy a minion, the boss learns a new skill. This boss specializes in recovery, so you're dealing with six different minions at once. But with each minion that gets destroyed, the boss gains a skill that she can use in battle.

GIMMICK #2: If you manage to kill the boss before defeating the minions, one of the minions will sacrifice himself and revive the boss to 50% HP. Preferably I'd like one of the weaker ones to fall on their sword first.

I feel like I'm getting close o finiding some way, but I always end up off he mark in execution. (Like only one skill will be learned, or a minion will sacrifice himself to revive another minion).

Help me out here!
Every turn, run a check to see which minions are still alive. Then for each one that died, flip a unique Switch (give the boss skills that require those Switches to be flipped).

Give the boss an immortal State. Every turn, check if their HP is at 0. If so, check to see if there are any minions alive, and if so, heal the boss by 50% of its HP and inflict Death on the minion(s). If no minions are alive, remove the immortal State.
Took your first suggestion. And that was the closest I got. The problem I ran into was that the message(s) would keep playing every turn. Preferably I'd like it to only play once (Attack animation on boss followed by "Boss absorbed minion's powers!") otherwise it gets redundant.

Though I could just eliminate the message entirely...that would be one way of solving the problem

Also, why make the boss immortal? Part of the gimmick is in the revival.

Just thought of something...What's the condition that determines of an enemy is alive? Is it just "If XXX has appeared?" Just checking to make sure.
Trying to get something to do X only once while it's present inside of functional loop(at least when you use the troop event and use turn conditions) is always hard. All I can suggest is try some control switch logic for the messages.

As for your question about the boss, it's because "reviving" sprites that have died requires a script call to bring them back.

Edit: Well you could probably use the Enemy Appear event command to bring the boss back and you would also have to readjust its HP to be at 50%.
Seems that removing the message about my boss gaining new powers was the simplest way to go. I can always add in a switch later if I need the message to appear only one time. But it's tedious at this point.

As for the revival aspect. I'm gonna test that out right now.

EDIT:
Revival's failing so far. One of my minions is able to revive the boss despite being dead. So I'm guessing there needs to be a condition that the minion must be alive.

EDIT2:
Success! That was it.

If: Boss is dead
If: Minion 1 is dead
If: Minion 2 is dead
If: Minion 3 has appeared
Blah blah blah
:End
:End
:End
:End

And that's how it's done.

Original thread: https://forums.rpgmakerweb.com/threads/boss-gimmicks-i-need-help-with.151387/