I was wondering what formula is used for calculating XP for a level. I want to use the same formula for the various skills i'm putting in my game.
XP Formula?
● ARCHIVED · READ-ONLY
-
-
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
This is listed in the help file (F1 in the editor) under RGSS Reference Manual > Game Library > RPGVXAce Data Structures > RPG::BaseItem > RPG::Class.
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