verb
attack(mob/M as mob in oview(1)) //attack a mob within 1 tile of you
usr << "You attack [M]!"
oview() << "[usr] attacks [M]!"
var/damage = rand(1,10) //random number from 1 to 10
world << "[damage] damage!" //displays the amount of damage to the world
M.HP -= damage //removes the amount hit for hp from M
DeathCheck()
if (HP <= 0)
world << "[src] dies!"
del(src) //delete whatever just died
say(msg as text) //what the usr says is passed into "msg" as text
world << "[usr]: [msg]" //the world sees chatroom-like output
Problem description:
testworld.dm:32:error: proc definition not allowed inside another proc
Is my error.
I don't see it.