Multiple phase boss fight

I'm hoping to have a boss fight where there are four pieces to hit, but not all pieces are target-able right away. How do I limit the player's target selection?
If you are unsure of what effect I am trying to create, try to think like the
Spoiler: spoiler
Exor Fight in Super Mario RPG
. You can't hit certain targets while others are up.
Right-click the enemies, select "Appear Halfway". You can then use Battle Commands (page 3) to cause "Enemy Appear" as you need to.
Looking at the video, I think your best bet is to use Neon Black's Non-Targetable state script.
Put the notetag onto the state (with a feature) and remove the state when one enemy is disabled and add the state when the enemy is restored.
I also think you will have to use a remove death state on the fallen enemy when the protection has been restored. Not sure if that will work though as I never tried reviving enemies.

Original thread: https://forums.rpgmakerweb.com/threads/multiple-phase-boss-fight.122884/