mob/var
health = 10
strength = 10
mob
Stat()
statpanel("Stats")
stat("Health: [health]")
stat("Strength: [strength]")
statpanel("Communication")
mob/verb
Attack(mob/M in oview(1))
set category = "Combat"b
var/dmg = rand(1,usr.strength)
usr << "[usr] attacks [M]"
M.health -= dmg
M.DeathCheck()
mob/proc
DeathCheck()
if(usr.health <= 0)
usr << "You die"
usr.health = 10
usr.loc = locate(1,1,1)
mob/var
attacking = 0
Problem description:
well the problem is that you don't die until you walk. you can still do everything like attack and all that but your just fine until you walk. and if you can add in defence and speed that would help to thanks ;)