Say I had a attack verb like this:
verb
Attack(mob/M in oview(1))
var/damage = rand(1,strength)
usr << "You attack [M]!"
usr << "[damage] damage!"
M << "[usr] attacks you!"
M << "[damage] damage!"
M.HP -= damage
M.DeathCheck()
But I dont want this verb to attack NPCs or players just the monsters. What should I do?
ID:179354
Jan 17 2002, 3:02 am
|
|
Jan 17 2002, 8:45 am
|
|
Something along the lines of this:
|
you may also want to do a 'M.DeathCheck()' before hand as well, for I have run into some of those anoying things before....
|