Default experience calculation in RPGM VXA...

Indah_F

Impossible...!
Member
Joined
Jul 2, 2020
Messages
1
Reaction score
0
First Language
English
Primarily Uses
RMVXA
Hi, I can't find the formula of the default exp curve...

Can anyone explain to me what is the relation of these data below:
Base Value - 30
Extra Value - 20
Acceleration A - 30
Acceleration B - 30

That made up a chart of:
Lv1: 0, Lv2: 50, Lv3: 162, Lv4: 366, Lv5: 695, Lv6: 1180, etc...

I can't find any correct formula for this data nor the sequence but from Lv1 to Lv2, which is simple calculation of Base Value + Extra Value (probably, multiplied by level), but from Lv2 to Lv3 and beyond are just lost to me...

Thanks in advance... :)
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,649
Reaction score
13,263
First Language
English
Primarily Uses
RMMV
MV uses this formula:

Code:
Game_Actor.prototype.expForLevel = function(level) {
    var c = this.currentClass();
    var basis = c.expParams[0];
    var extra = c.expParams[1];
    var acc_a = c.expParams[2];
    var acc_b = c.expParams[3];
    return Math.round(basis*(Math.pow(level-1, 0.9+acc_a/250))*level*
            (level+1)/(6+Math.pow(level,2)/50/acc_b)+(level-1)*extra);
};
Ace appears to just use a table with values for each level - I suspect that means the values are calculated in the editor in Ace and saved as an array, but in the core scripts in MV (and probably the editor as well, for the purpose of displaying it).

I am working on the assumption that the two do the same calculation, as the majority of MV functions are just javascript ports of the Ace logic.


Edit: Nope, I was wrong. Ace also has it in the scripts, but in the RPG::Class module rather than the Game_Actor class like MV has:

Code:
  def exp_for_level(level)
    lv = level.to_f
    basis = @exp_params[0].to_f
    extra = @exp_params[1].to_f
    acc_a = @exp_params[2].to_f
    acc_b = @exp_params[3].to_f
    return (basis*((lv-1)**(0.9+acc_a/250))*lv*(lv+1)/
      (6+lv**2/50/acc_b)+(lv-1)*extra).round.to_i
  end
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Enjoying my weekend at home to stay Covid free. How is everyone else doing?
If you enjoy speed mapping for RPG Maker MV check out my YouTube Channel. My latest video includes custom made tiles which makes a simple map look dynamic!

Check out my short game Hikari's World! : Chapter I, on itch.io/games.
An actual dwarf with an actual axe is not so fascinating as the fantasy counterpart...
I'm so back and forth on pre-ording MZ. I can totally wait for a better deal down the road (since I don't need the extras and waiting to see how YEP plugins turn out) but there's something about the fun in playing with "a new toy".
:rheh:

Forum statistics

Threads
100,603
Messages
977,703
Members
132,210
Latest member
Rkyfat
Top