mob
TEST
zombie
name = "Zombie"
icon = 'mobs.dmi'
icon_state = "Zombie"
hp = 10
proc
Grab()
usr in oview(1)
sleep(20)
usr.hp -= 10
if(usr.defitem) // I'm checking here to see if they have a defense item equipped
src.hp -= usr.defitemd //The D at the end of this defitem is for "Damage Dealt"
usr << "The Zombie lunges for you! Lightning quick, you bury your [usr.defitem] into it's skull!"
usr.defitem = null
DeathTest()
else
usr << "The Zombie lunges for you! Grabbing hold, it sinks it's teeth into your arm!"
usr.hp -= 30
Problem description: The problem with this is, that it just doesn't execute. I get into the square next to it and I don't get any messages, or take any damage. Can someone tell me why this doesn't work?