Yanfly Engine - 3-in-1 boss?

Hi,

I have an idea for a a boss that consists of multiple enemies in one sprite (sort of like the final boss of Final Fantasy VI, except it's not part of the background). Is there any way to achieve that in vanilla MV or using Yanfly stuff?

-KTHDev
We probably need some more details on how you're envisioning this. Do the separate parts of the boss enemy all have the same amount of importance, or is there one main part and two smaller "arms", or some other setup entirely? Does it matter which order they are defeated in? Will it be silly if you defeat the main body and the arms remain? Etc.

Right now, with the current amount of information, all I can really say is... Just arrange your sprites effectively? Use the in-battle event system?

I don't know, what are you looking for?
yes, but the way depends on what should happen when each part is destroyed
We probably need some more details on how you're envisioning this. Do the separate parts of the boss enemy all have the same amount of importance, or is there one main part and two smaller "arms", or some other setup entirely? Does it matter which order they are defeated in? Will it be silly if you defeat the main body and the arms remain? Etc.

Right now, with the current amount of information, all I can really say is... Just arrange your sprites effectively? Use the in-battle event system?

I don't know, what are you looking for?
Okay, so what I'm thinking is a boss with three parts:
1. A head and upper body,
2. The torso,
and 3. Lower body/legs

I'm envisioning it having all three parts portrayed by a single sprite. When they die, they'd stay on screen, but just not do anything anymore. Only when all three parts are defeated does the whole sprite disappear. And no, it doesn't matter what order you defeat them in.

Does that help?
You could probably accomplish this by setting the sprite you want to use to the main body and put it on the battle screen, then arrange the remaining two parts to line up with the places you want them (use placeholder graphics so you can grab and move them around).

Give the main body immunity to knockout so the sprite doesn't vanish if you kill that one first. You should have an in-battle event that triggers when the main body drops to 0 HP and applies a state to the main body that restricts its movement (so it can't attack anymore), and use... I think Yanfly's target core that allows you to make enemies untargetable. This should simulate it being dead with the sprite still remaining on-screen.

Finally, you need a way to check if the main body is at 0 HP and the other two enemies are defeated. Once this condition is true, you kill the main body via command, and the battle should end normally.

Those are my off-the-cuff thoughts on how to make something like this.

EDIT:
You can check whether the main body is the only thing left alive through a conditional branch running this script:
Code:
$gameTroop.aliveMembers().length == 1
I'll keep that in mind. Thanks
You can also do it with regular conditionals in troop events. The script call above is a bit more efficient, but not necessary for you to know to implement this fight.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-engine-3-in-1-boss.160204/