Enemy transforms more than once and keeping health the same...

Hello again. I was wondering how I could make an enemy keep the total HP it has when it transforms into a new enemy, along with how I could make it transform again after that.

V6oNcl8.png


Example: This is the enemy. It has 100 health. When it gets hurt at all, even just 1 HP, it becomes the next one:

e7HQloG.png


This one. It should still have the hurt from getting hit once. After it gets below 50% health, it transforms again:

LOjBGMl.png


Becoming this. It should still have the below 50% health from before. After this stage it dies.

How do I manage this?
Load the current enemy HP into a variable before the transform, and set the HP to that value after using the transform command.


It's all event commands in the troop event that is conditioned to the enemy HP.
Oh, thank you. That works.

Uhm, I am also wondering how I can make a new skill overwrite an old skill.

Like, BASH, becomes MEGA BASH after a certain level, becoming a new skill entirely...

Uh, should I make another thread?...
yes, you should make another topic if this one is solved.


And you can't change skills, you pretend to the player that two different skills are the same by removing the first when adding the second.


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/enemy-transforms-more-than-once-and-keeping-health-the-same.43176/