/mob/verb
Attack(mob/M as mob|mob in oview(1))
set category = "Actions"
set popup_menu = 0
usr.exp += damage
view(2) << "<font color=white>[usr] attacks [M]"
damage= usr.str + 10 -M.def
M.hp-=damage
M.deathcheck()
usr.levelup()
mob
proc
levelup()
if(usr.exp>=usr.next)
usr << "<font color=green>Level up!"
usr.level+=1
usr.str+=3
usr.def+=2
usr.exp=0
usr.next*=1.2
else
//world << "Doesn't Level" // Debug Message
return
Problem description:
Ok so I have the proc for levelup() and I try to play and when it reaches 300 exp or max hp it dosent level and it just continues to add to the exp.
shouldn't that not work at all. where have you defined damage.