Enemy Transform

I want to know how to get a enemy or boss to transform at 0% HP. The only thing I can do is get the enemy to transform when a certain amount of turns have passed.  ;_;


Is it possible to have the enemy or boss transform to a stronger form when their HP has reached 0%? Here's a picture of what I used (Bottom right). 


Capture2.PNG
I don't know where do you put this state but to easily make an enemy transform at 0% life you should give him a state with


Resis death trait


<Custom Respond Effect>


if (target.hp <= 0) {


transform blah blah id here


target.gainHp(target.mhp)


target.removeState(id of first state)


}


</Custom Respond Effect>
I make the former enemy -State Resist = Death-


Then in the troops selection where the transforming enemy was, I commite the command that when the enemy reaches 1% they transform into a new enemy.


The new enemy for me pertains the same health as the first, so make sure to heal him in the same command and that the transformed enemy does not have immunity to death like the first.

Original thread: https://forums.rpgmakerweb.com/threads/enemy-transform.67152/