ID:267094
 
I used the library level-up system but I tested it and it has a bug that maybe you could help me with.

I gained my level to level 2, but then I kept going and I didn't level up any more...even after I passed my Max_Exp level! Do I have to add to my code that the level-up system should keep working time after time?

Thanks!
~Mike
Which library did you use (give a link)?
i like big butts and i can not lie your stupid, go eat some pie and then be cool to ya brothas and eat your fly


www.jimmyplatinum.com
In response to Garthor
well, I kindof changed the library a little bit to make it better for me, so let me just give you my code:
(I also added the Levelup() thingy to the beginnign which was required)


mob
proc
Levelup()
if(src.exp>=src.Max_Exp) //If your exp var equals, or passes your maxexp var
src.level++ //Add to your level
src.Max_Exp*=1.47 //makes your maxexp double
src<<"You gained a level!"
src.Statup()
else
..() //defaults if the if() doesn't return it's arguments
mob
proc
Statup()
src.HP += 5 //adds to your health
src.HP = src.Max_HP
src<<"Your stats increase!" //Outputs a message telling you that you gained stats