ID:151135
 
ok heres my code :

var/list/fighterLevels = list(100, 2000, 4000, 8000, 16000)

mob
var/list/expLevelList
var/exp
var/level
var/savefile="player.sav"

New()
..()
src.expLevelList = fighterLevels
usr << "You gained [++exp]!"

proc/AddExperience(myAmount)
exp += myAmount
if(expLevelList.len >= level+1)
if(exp >= expLevelList[level+1])
src << "You are now level [++level]!"
max_life += 1

every hit a player gets exp...after his exp is 100 he should get +1 to his max_life...instead nothing happens...you exp can reach 20000 and you still won't have gained a level...please help