Boss turning into other past bosses

Hello,

I have been wanting to have a boss that can turn into other bosses.

a good example of a boss like this is King Olly from Paper Mario: The Origami King.
Olly has the ability to turn into one of the Vellumentals.

this is just an example.

i thought it would be a cool concept for a boss in a game.

though every time i try to do it on my own, when i defeat one of the bosses it turns into,
it just kills it.
i was wanting something like when you defeat the transformed enemy, it turns back into the normal enemy.

if anybody can figure this out, it would be most appreciated.
Get Hime End Phase Triggers plugin, then make a troop event (EDIT: moment) that has conditions enemy HP 0% and switch X (20 in example) is ON. Put trait 'collapse effect: none' for all enemies except the last one you battle. In that troop event (NOTE: in this example it's just scrolling though different enemies, if you want it to change back to the original at times, you need to modify it):

◆If:Countdown = 2
◆Enemy Recover All:#1 Bat
◆Enemy Transform:#1 Bat, Minotaur
◆Control Variables:#0020 Countdown += 1
◆Control Switches:#0020 = OFF
◆
:End
◆If:Countdown = 1
◆Enemy Recover All:#1 Bat
◆Enemy Transform:#1 Bat, Orc
◆Control Variables:#0020 Countdown += 1
◆
:End
◆If:Countdown = 0
◆Enemy Recover All:#1 Bat
◆Enemy Transform:#1 Bat, Slime
◆Control Variables:#0020 Countdown += 1
◆
:End

EDIT: Turn that switch on at the beginning of battle.

Original thread: https://forums.rpgmakerweb.com/threads/boss-turning-into-other-past-bosses.177078/