Setting a custom level formula

I have thought of going full Disgaea with some of my games' scaling, which includes entertaining the idea of increasing the level cap beyond 99. However, I am not really willing to write thousands of individual notetags just so that it works correctly, so I would love of a way to provide the engine with custom formulas for EXP gain and stat growth that it will be able to scale beyond the default limit of 99.

I have VisuStella Core Engine, and its way is exactly the one where I write 9 notetags per level (1 for EXP required + 8 for base stats), which I'm too lazy and feels very mistake-prone, especially when deciding to change the formula later for balance reasons; and also just using the <JS Parameter> notetags, but these don't have a variation that can allow for JS base parameters, which means that I would have to wing it by setting the base parameter to a static value across the board and then code it as a Rate, which, while being what I need for one project I have in mind (to imitate how VS Enemy Levels work so that the same character has the same stats on either side of the field), is not really ideal for what I want to do.
Don't they already have their own formula for scaling beyond level 99? At least you get values above it. Though the exact formula might not be visible. But you can go to the plugin settings: Parameter settings and modify the JS formula to modify the base value depending on your class and level if you want.

And I think they just use the expForLevel beyond 99 based on your database settings. If you want something else, I'd guess you can just replace the method with your own calculations.

EDIT: If you want to change the param method, they have a Game_Actor.prototype.paramBaseAboveLevel99 method
Huh, I checked it in a small test project and it really does extend the EXP required and parameters beyond level 99 according to how I set it up in the database. Unless RPGMMZ/VSCore does some stupid things and changes the formula above level 99, but I heavily doubt it.

(On second thought I should've come up with the idea to test this behaviour before making this thread...)

It would be nice to be able to see the stats above 99 without having to open the game at each level and checking the menu, but that would be pretty ridiculously hard to do (if even possible) and it is honestly basically nitpicking.

Thank you for helping me realise it!
It would be nice to be able to see the stats above 99 without having to open the game at each level and checking the menu
if it helps, it should be the case that both the exp requirements and the parameter gains past lv99 are those going from lv 98->99 by default
Hmmm, below is the VS method for the param base above 99 from console.
Like in base codes it's: this.currentClass().params[paramId][this._level]
Seems it's using levels 63 and 62 in the formula. No idea why.

Game_Actor[_0x32e60b(0x303)][_0x32e60b(0x1fa)] = function(_0x470d78) {
const _0x7f8fee = _0x32e60b
, _0x4a572d = this[_0x7f8fee(0x5b2)]()['params'][_0x470d78][0x63]
, _0x5c6826 = this[_0x7f8fee(0x5b2)]()[_0x7f8fee(0x528)][_0x470d78][0x62];
return _0x4a572d + (_0x4a572d - _0x5c6826) * (this['level'] - 0x63);
Seems it's using levels 63 and 62 in the formula. No idea why.
its not 62 and 63. its 0x62 and 0x63. theyre the hexadecimal representations for 98 and 99
So it's basically becoming linear scaling at that point, no matter what I do. Interesting, but I can see why it was done this way (there is no information anywhere that RPGMMZ saves what stat growth curvature did you use, even its own UI is affected with the requirement of moving that slider every single time).

At least now I know that, if I don't want a stat to grow beyond the level 99, I can just modify the base stats manually to make the stat the exact same on levels 98 and 99.
(there is no information anywhere that RPGMMZ saves what stat growth curvature did you use
It isnt saved. What the editor does is that it takes the growth, starting, and ending values, applies a formula, and creates a list of values for each stat at each level for each class within the JSON file.

I know someone's worked out what the formula was in the past and that it's floating around on the forum somewhere. so it should be possible for a plugin to make it so that the engine just runs the formula (or some other completely related formula for that matter) instead of looking up the params within the JSON file.

that being said, the default formulas were made with a 1-99 level range in mind. if you used them, you'd likely need to adjust them a little anyways to that the curves behave properly and you dont get something like fast curves reducing stats past some level or slow stats growing exponentially because they were meant to stop growing at 99
its not 62 and 63. its 0x62 and 0x63. theyre the hexadecimal representations for 98 and 99

Ah ok cool I didn't know that, I thought they added the 0x to annoy people.

So it's basically becoming linear scaling at that point, no matter what I do. Interesting, but I can see why it was done this way (there is no information anywhere that RPGMMZ saves what stat growth curvature did you use, even its own UI is affected with the requirement of moving that slider every single time).

At least now I know that, if I don't want a stat to grow beyond the level 99, I can just modify the base stats manually to make the stat the exact same on levels 98 and 99.

But you can also just make that VS Game_Actor.prototype.paramBaseAboveLevel99 method to return whatever you want.
Like if you want all params to stop growing just add the method as plugin where you delete the lines and return:
return this.currentClass().params[paramId][99]
Change paramId to the scrambled value they use as argument. Like for me it's that _0x470d78, but check what's it for you in console.
EDIT: Though if you deleted all the lines in this case, you can just add the argument as paramId too

Original thread: https://forums.rpgmakerweb.com/threads/setting-a-custom-level-formula.182640/