exp curve and leveling up

gensaturn

noob
Member
Joined
Aug 11, 2019
Messages
4
Reaction score
1
First Language
Russian
Primarily Uses
RMVXA
hello! i have two questions.

1) i wanna make it so that each level up requires 100 EXP every time and not 50, 100 ...etc. Is it possible? i don't really get how that EXP curve works...

2) it's not necessary but would be nice anyway :D
I wonder if it's possible to make the same exp thing as in many Shining Force games? When brand new enemies give a lot of exp at first but after a few level ups they start to give less and less so you can't grind forever.


edit: thank you!!
 
Last edited:

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
2,254
Reaction score
1,254
First Language
Spanish
Primarily Uses
RMVXA
Code:
class RPG::Class < RPG::BaseItem
  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
end
it might just be a matter of changing that whole chunk to simply return 100
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,599
Reaction score
6,552
First Language
Indonesian
Primarily Uses
RMVXA
it might just be a matter of changing that whole chunk to simply return 100
To make this easier here is the altered code
Code:
class RPG::Class < RPG::BaseItem
  def exp_for_level(level)
   return 100 * level
  end
end
 

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

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,038
Messages
1,018,466
Members
137,821
Latest member
Capterson
Top