ID:266588
 
verb
attack(mob/M as mob in oview(1))
view() << "[usr] attacks [M]!"
usr.dir = get_dir(usr,M)
var/damage = rand(round(str/2),str)
view() << "[damage] damage!"
M.hp -= damage
M.DeathCheck()


sez that usr.dir = get_dir(usr,M)
is an invalid expression....
Hmmm.Try this:
verb
attack(mob/M as mob in oview(1))
view() << "[usr] attacks [M]!"
usr.dir = get_dir(usr,M)
var/damage = rand(round(str/2),str)
view() << "[damage] damage!"
M.hp -= damage
M.DeathCheck()


-Kappa the Imp


In response to Kappa the Imp
ITs Not working because its not a mob verb so there is no usr



mob/verb/attack(mob/M as mob in oview(1))
view() << "[usr] attacks [M] for [damage] damage"
usr.dir = get_dir(usr,M)
var/damage = rand(round(str/2),str)
M.hp -= damage
DeathCheck(M)