characters dying on Class Change (Yanfly's Scripts)

another problem with Yanfly's scripts, when I have a character class change, they die, and I have no idea how I would fix it, so if anyone else has encountered this problem and found a fix, it would be much appreciated.
what do you mean by "die"? usually class changing has nothing to do with actor life...

It might be that you've set up some classes with errors, so that changing the class removes some data from the actor - please post screenshots of an example with the actor screen, the screen of the original class and the screen of the class he changes to when he dies.

Also please state what other scripts you have in your game, if the problem is not part of the class definitions then most probably it'll be an incompatibility between the class script and another script in your game.

Original thread: https://forums.rpgmakerweb.com/threads/characters-dying-on-class-change-yanflys-scripts.15094/