Where is the base parameter growth formula calculated in the game code? I want to use the exact same formula as in the editor for my enemies, how would I achieve this?
Base Parameter growth formula?
RPG Maker MV Supportwhat exactly do you mean? the game just pulls the parameter values from the classes .json file for the corresponding level. it doesnt make any active calculation in retrieving it. the file has the parameters for all levels mapped out inside of it as dictated by the parameter curves you have in the editor for that class.
It isn't calculated at all.
even the editor has simply one value per parameter per level, and if you want you can enter each value manually and independent from each formula.
The editor just provides half a dozen methods to automatically fill those numbers based on different linear and non-linear functions. But those functions never made it into the game engine itself.
Hey,
As mentioned above, the default parameter curves are generated by the editor itself, freely modifiable on a level-to-level basis, and not calculated in game.
However, if you want to replicate these curves, then the formula should look like this (derived from testing, so there is a chance the formula is still a bit off):
where
min : Level 1 parameter value
max : Level 99 parameter value
rate : Growth Type (-1 = Fast; 0 = Average; +1 = Slow)
As mentioned above, the default parameter curves are generated by the editor itself, freely modifiable on a level-to-level basis, and not calculated in game.
However, if you want to replicate these curves, then the formula should look like this (derived from testing, so there is a chance the formula is still a bit off):
value = min + Math.ceil((1 - rate) * (max-min) * (level-1)/98 + rate * (max-min) * Math.pow((level-1)/98, 2));where
min : Level 1 parameter value
max : Level 99 parameter value
rate : Growth Type (-1 = Fast; 0 = Average; +1 = Slow)
Original thread: https://forums.rpgmakerweb.com/threads/base-parameter-growth-formula.177742/