Better View: https://gyazo.com/897994f36e20a941b1aea197b608cc51
Code:
mob
proc
attack()
var x = 0 , y = 0
if(dir & NORTH) y+= 32
if(dir & SOUTH) y-= 32
if(dir & EAST) x+= 32
if(dir & WEST) x-= 32
for(var/mob/M in obounds(32))
var/damage = usr.Str - M.Def
flick("punch",src)
M.Health-= damage
view()<< "[usr] attacks [M] by <font color = red>[damage]</font color = red> damage!"
M:deathcheck()
Problem description:
Proc.dm:33:error: M.Health: undefined var
Proc.dm:34:error: M: undefined var
Proc.dm:35:error: M/:/deathcheck: undefined var
Proc.dm:31:error: M.Def: undefined var
Proc.dm:34:error: damage: compile failed (possible infinite cross-reference loop)
Downfall.dmb - 5 errors, 0 warnings (10/2/15 8:41 am)
All need an extra indent.