verb
attack(mob/M as mob in oview(1))
if (M.HP <= 0)
usr << "[M]dead" else
usr << "You attack [M]!"
oview() << "[usr] atta [M]!"
var/damage = rand(1,10)
world << "[damage] damage!"
M.HP -= damage
M.DeathCheck()
How do i make a delay for attack
ID:160592
Aug 17 2008, 6:30 am
|
|
In response to DemonSpree
|
|
1. It's impossible to have nothing but mobs surrounding you, because you are always adjacent to a turf & an area.
2. If you have multiple mobs around you, there will be an input box asking which mob you want to attack. |
verb The other two people who posted here were very wrong. I didn't fix any exsisting code, I just added what you wanted. |
Basically, the way to do it. Nothing fancy.