How to change Actor Class while keeping Lv ?

Hey,

I am trying to change my Actor's class and yes I am able to change the Actor's class but his level goes back to 1. How do change the Actor's class while keeping the levels he gained ?

Thanks!
Store the character's EXP to variable. Then after you change their class, award that amount of EXP from that variable.
Thanks for the advice
It also comes handy minus the class changing part when a new party member appears, that way you can make sure that it's on a good level compared to rest of the party (if you have a character that is mandatory in a party.) Of course downside would be that if for some strange reason the "main party member" is not collecting EXP that much, the joiners would be under leveled too.
I am making a character that changes his form and class in battle then using Yanfly's battle aftermath to revert my main character back o his original form and class.I noticed you get a crazy cumulative xp gain from each battle until I subtracted the variable prior to class change.

Control Variables: [0001] =[bob]'s EXP

Change EXP: [bob], - Variable [0001]

 

Change Actor Class: [spirit]

Change Actor Graphic[bob], 'Flame',5, 'Main',0

 

Change EXP: bob,+Variable[0001]

 
Use a script call to change class:

Code:
$game_actors[2].change_class(3, true)
Will change actor 2 to class 3 while keeping EXP.
That saves so much time and energy.

Thank you!!!
jomama12341, please do not post your own, unrelated questions in someone else's (old) thread. Please start your own instead. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-change-actor-class-while-keeping-lv.42881/