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,660
Reaction score
13,269
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 Profile Posts

So I just spent the weekend...playing my own game. The one I released last year. Yep you heard that right.
Goal for MZ? None... I'm still curious how to finish my VXA project and how it looks like when it actually finished. Which will take at least another two years. Coming late again to the party.
Finding it amusing that people are posting support questions in new threads for an engine that isn't even released yet. Touch and Archeia are the only ones authorised to say anything, and there's only one active thread where they'll be answering questions.
I think my goal for MZ ... is to actually release a game and not have twenty technical demos and debugging projects. Let's see if I can manage that. ;o
I am starting to enjoy writing. I never thought I would enjoy it since my dyslexia was holding me back so much.
Thanks to the community here :)
For those interested chapter 2 and 3 are available to read here:

Forum statistics

Threads
100,652
Messages
978,094
Members
132,260
Latest member
enciasduras
Top