Change Class while retaining stats

Hey everyone,

In my game I'm looking at implementing a class progression system, where at certain levels players can choose a new class to prestige into. However, how can I make it so that they retain the same stats when moving into a new class? So for their first prestige, it's pretty simple for me to do, since I can just set their new class to start at the level 10 stats their old class had. However, from there it branches off and the formulas become different depending on what tree they followed.

So for example: Fighter @ level 10 -> Martial Expert or Arcane Warrior. This is fine because I can have these classes start at the fighter level 10 stats.

However, then you get multiple choices: Martial Expert or Arcane Warrior @ level 30 -> Warlord, Juggernaut, or Gish. Since the Martial Expert and Arcane Warrior have different stat curves, I can't have a common starting point for Warlord/Juggernaut/Gish as I did the first time around with Fighter's pretige.

I assume this will have something to do with setting Variables, but I'm not 100% sure.

Hopefully I explained everything well enough. Thanks for any help on this!
You would need a variable for each stat of each actor as more than one actor may hit this transition after a single fight. To set the variable to the actor's stat you need to go into control variables->game data->actor->stat, just remember to use max hp/mp. You will also need to get the variables set before the transition and set the stats after the transition.
Thanks for the reply! That's kind of what I figured, I guess I was hoping for an easier way.

So that means I'll have to have a lot variables, since my game has about 12 party members. So including Max HP/MP, that means 96 variables I'll be tracking. Is there ever a point where too many variables will slow the game down or anything like that I should be aware of?
Sorry for the late reply, considering that the max variables you can have is 9999, 96 shouldn't do anything. It would be more how you write the events and any plugins you have that would slow the game down for this part.
Thanks! I think that's all I needed to know then!

Original thread: https://forums.rpgmakerweb.com/threads/change-class-while-retaining-stats.85205/