How to increase hero's MaxLv from, say, 45 to 46?

I'm not interested in going beyond 99, but I'd like to manually increase the Max Level of characters. I'll be making a Party EXP bar and whenever it's full, I want the Max Level of everyone to go up one. 🙂
Well, we have a little problem about that. The MaxLevel value of an actor that is set through database has not a specific variable in the Game_Actor class. What I mean is that the systems gets the max level value from the Actor JSON. The other values like the params has their variables in the actor class, meaning that if they will be changed their value will be saved ad returned after the game is loaded, too.
About the MaxLevel, we have a method that shows it that is the $gameActors.actor(id).maxLevel().
This command shows the Max Level from the JSON and if you try to edit it directly in the data array with something like $dataActors[1].maxLevel += 1, you will gain the effect you prompted, but after the loading you will lose it.
The only way, I think is to store this value in a class variable.

I made a very very small code for you (Around 15 lines) that allow the system to store the maxLevel in an actor variable and change its value.
I'm NOT sure if this will works, I don't tested it before I write it from the cellphone.
For changing the value of the Max Level you should use this script call:

Code:
$gameActors.actor(id).changeMaxLevel(value)

The max value for that actor will be increased for the value you input.
Here you are:
GTP_MaxLevel.rar
Had to do a little adjusting, now it works great! Thank you SOOOO much!!!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-increase-heros-maxlv-from-say-45-to-46.82362/