This is what I have so far
Attack(var/mob/M as mob in oview(1))
var/able = 1
if(!M.invincible)
if(able)
src.hp -= usr.dmg
usr << "<font color = green>You attack [M] for [usr.dmg] damage!</font>"
// want to set able to null
sleep 3
usr << "[M] prepares to attack"
sleep 5
usr.hp -= src.dmg
usr << "<font color = red>[M] attacks you for [M.dmg] damage!</font>"
// want to set able back to true"
else
usr << "You swung too fast and missed!"
else
usr << "<font color = yellow>You cannot attack [M]</font>"
return
ex: