Okay, I've been fighting with this for almost a day now, I can't seem to get it to work. My knowledge of functions aren't good enough, and when I try and implement it, I either get a syntax error (meaning I'm not doing something correctly) or the EXP curve doesn't change (verified by going into Status to see the NEXT value change).
In this case, can someone write the code, or modify Atoa's code, and then tell me what's happening? I'd like to understand what I'm doing wrong. Here is what I changed Atoa's code to:
def make_exp_list
actor = $data_actors[@actor_id]
@exp_list[1] = 0
pow_i = 2.4 + (actor.exp_inflation + exp_growth2) / 100.0
for i in 2..100
if i > actor.final_level
@exp_list[i] = 0
else
n = (actor.exp_basis + exp_growth1) * ((i + 3) ** pow_i) / (5 ** pow_i)
@exp_list[i] = @exp_list[i-1] + Integer(n)
end
end
end
Both exp_growth1 and 2 are declared at the start of the module. I don't want things to modify the basis and inflation values, I want to replace them. So if a character has Basis 25/Inflation 35 in the database, I want to change it, via script call, to Basis 10/Inflation 50. For example.
Thanks in advance!