Dunno if this should be in code problems... well it was but somebody deleted it for no apparent reason.
obj
sword
density = 1
New(Loc)
for(var/mob/M in Loc)
if(M.mobtype=="Enemy")
M.HP-=1 M.DeathCheck()
else
Bump(mob/O)
step_away(O,src,1)
that step away line is the error.
error I get is proc not allowed within another proc. please help.
--Ray
Copyright © 2025 BYOND Software.
All rights reserved.
Also wrong is assuming that the argument to Bump() must be a mob; it can be any atom you bump into, so you need to use ismob(O) to double check.
Lummox JR