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....
ID:266588
Apr 14 2002, 10:49 am
|
|
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) |
-Kappa the Imp