mob
proc
levelup()
if(src.exp >= src.max_exp)
src.exp = 0
usr.max_str +=50
usr.max_exp +=1000
usr.max_energy +=10
usr.max_hp +=100
usr.max_def +=50
usr.hp_regen +=150
usr.hp=usr.max_hp
usr.energy=user.max_energy
usr.level += 1
usr.cp += 2
usr.sp += 1
usr.age += 1
usr.gold+=usr.level*500
usr.BasicSkillGain()
usr.Save()
Problem description:
The code shown above is the leveling proc for a new project(Been working on it for awhile, but haven't announced it... so, yes... new) and while it does not show any errors while being compiled... the actual procedure does not take place in game. I have tested the game on two different computers, and it still will not allow any players to level up.
I have no idea where the problem lies, or if I just did something incorrectly... so, suggestions and/or advice would be greatly appreciated! Onegai!(Please.w.)
Thanks for reading, and I hope someone will be able to guide me through this frustrating issue.
-Zan3
You'll also want to loop that since there is an instance where a player can level up more than once.