mob/var
Level= 1
Exp= 0
Nexp= 100
HP= 1000
MaxHP= 1000
Str= 100
Def= 50
Energy= 500
mob
Stat()
statpanel("[src]'s Stats")
stat("Level:","[src.Level]")
stat("EXP:","[src.Exp]/[src.Nexp]")
stat("Health:","[src.HP]/[src.MaxHP]")
stat("Strength:","[src.Str]")
stat("Defense:","[src.Def]")
stat("Chakra:","[src.Energy]")
mob/proc/GainEXP(n)
src.Exp+= n
if(src.Exp>= src.Nexp)
src.Level_Up()
mob/proc/Level_Up()
src.Level++
src << "You're now Level [src.Level]!"
src.MaxHP*= 2.78
src.HP= src.MaxHP
src.Nexp= src.Nexp*2.75
Problem description:
when I compile, I have no errors, but when I test the game, I set up a Train verb to automatically gain exp+ per click on the verb... but for some reason... when the exp reaches Nexp, it won't level up automatically like it should... can anyone explain?