Code :
mob/player/
Click(mob/M)
var/damage = usr.health - rand(0,5)
if(damage <= 1)
usr<<"You attack [M] but misses!"
M<<"[usr] attacks you but misses!"
return
usr<<"You attack [M] for [damage]!"
M<<"[usr] attacks you for [damage]!"
M.health -= damage
M.Death()
mob/proc/Death()
view()<<"[usr] has been killed by [src]!"
usr.loc=locate(18,11,1)
usr.health = maxhealth
Yet it attacks the turf not the mob!
ID:267262
![]() Jan 30 2003, 3:45 pm
|
|