mob
proc
regeneration()
set background = 1
spawn(20)
if(usr.Chakra<=usr.Mchakra)
usr.Chakra+=rand(usr.Str/2)
usr.exp+=10
if(usr.exp>=usr.mexp)
usr.exp=0
usr.Level+=1
usr.mexp*=2
usr.Str+=15
usr.Chakra+=60
usr.Def+=15
usr.expupp()
if(usr.Chakra>=usr.Mchakra)
usr.Chakra=usr.Mchakra
else if(usr.Hp<=usr.Mhp) //or else heal.
usr.Hp+=rand(usr.Str/2)
usr.exp+=10
if(usr.exp>=usr.mexp)
usr.exp=0
usr.Level+=1
usr.mexp*=2
usr.Str+=15
usr.Chakra+=60
usr.Def+=15
usr.expupp()
if(usr.Hp>=usr.Mhp)
usr.Hp=usr.Mhp
Problem description:
hey guys, my problem is that i want it so that once u have full hp and chakra , the persons exp stops raising. because as of now even if the person isnt regenerating and has full hp and chakra the exp still goes up, help is appreciated