Okay, so currently I'm stuck trying to make an event do something based on the current percentage of exp the player has based on their current level.
The problem I'm having is I just cannot find that data anywhere to write the script.
$gameActors._data[X]._exp shows the current exp gained.... But I am unable to find the required exp to level.
$dataClasses[X] has EXP params, which the engine uses to set the curve. But without knowing the math used to determine that curve, these numbers are useless.
Currently I'm under the impression I'm left with 2 options.
1. Write out the required exp (all 99 levels) into an array (though I 'really' don't want to @.@😉.
2. Grab a plugin to use a custom exp formula (Not against this, but I'm unsure of how it'd effect balancing).
So could someone please enlighten me. Whether I have to go with options 1 or 2, or if they just happen to know the default exp formula that I can then write out for my use. (Google has failed me).
Help is much appreciated.
Edit: Never Mind, I found it. There was a prototype function that calculates it all for me. Which let me know where to look to find the math formula in rmmz_objects.js.
I keep forgetting about prototypes in JS. Shows how new I am. Thank you for your time everyone.
The problem I'm having is I just cannot find that data anywhere to write the script.
$gameActors._data[X]._exp shows the current exp gained.... But I am unable to find the required exp to level.
$dataClasses[X] has EXP params, which the engine uses to set the curve. But without knowing the math used to determine that curve, these numbers are useless.
Currently I'm under the impression I'm left with 2 options.
1. Write out the required exp (all 99 levels) into an array (though I 'really' don't want to @.@😉.
2. Grab a plugin to use a custom exp formula (Not against this, but I'm unsure of how it'd effect balancing).
So could someone please enlighten me. Whether I have to go with options 1 or 2, or if they just happen to know the default exp formula that I can then write out for my use. (Google has failed me).
Help is much appreciated.
Edit: Never Mind, I found it. There was a prototype function that calculates it all for me. Which let me know where to look to find the math formula in rmmz_objects.js.
I keep forgetting about prototypes in JS. Shows how new I am. Thank you for your time everyone.