ID:164075
 
I need a lvling up system which will make so there is a certian amount of EXP till next lvl...and when you lvl up you get a random add to your HP,MP and STR here is my Code for the stat panal:
mob/Stat()//builtin proc
statpanel("Stats")
stat("Health : [HP]")
stat("Mana : [MP]")
stat("Strength : [STR]")
stat("EXP : [EXP]")


var
HP = 500
MP = rand(1,10)
STR = rand(1,10)
EXP = 0
You need to have an experience and an experience to level variable. Every time you add experience, you check if their experience is over their experience to level. If so, they level up.