(RMXP)EXP PROBLEM
Posts
Pages:
1
Ok, here is the problem: I go into the script (mind you, when it comes to scripting I am a pure amateur) and tried to create my own EXP curve, but when I reach the designated level I want to be the maximum it continues to go pass that level. I tested this with both lvl 20 and lvl 99 as max and when it continues to do this and I get errors. Oh, I tried google, but it didn't help me find my solution this time.
The only part of the script I change is this:
All I do is set the @exp_list with the levels (1,2,3, etc), and change the for i in 2..100 into for i in 101..102. So, what did I do wrong?
The only part of the script I change is this:
#--------------------------------------------------------------------------
# * Calculate EXP
#--------------------------------------------------------------------------
def make_exp_list
actor = $data_actors[@actor_id]
@exp_list[1] = 0 <---------------------------------------------------This fella here.
pow_i = 2.4 + actor.exp_inflation / 100.0
for i in 2..100 <---------------------------------------------------And here.
if i > actor.final_level
@exp_list[i] = 0
else
n = actor.exp_basis * ((i + 3) ** pow_i) / (5 ** pow_i)
@exp_list[i] = @exp_list[i-1] + Integer(n)
end
end
end
All I do is set the @exp_list with the levels (1,2,3, etc), and change the for i in 2..100 into for i in 101..102. So, what did I do wrong?
Pages:
1














