ID:735337
 
Keywords: attack, help
(See the best response by A.T.H.K.)
ok so im trying to change this from homing to like a launching attack where it flys out
verb
force(mob/M as mob in oview(100)) //with in 100 tile of you
set category = "combat"
usr << "You attack with the force [M]!" //send this message to the usr
oview() << "[usr] attacks [M]!" //send this message to everybody else
var/damage = rand(5,200) //assign a random # to a new variable
world << "[damage] damage!" //tell the damage to the world
M.HP -= damage //take away the damage from M
M.DeathCheck() //check for death with a proc

can some one help
o and how would i put an icon on it
Best response
Have a look at some of these libraries they will be able to help you for sure.

http://www.byond.com/developer/?text=effect&sort=pop

[EDIT] Mainly the top two and by help I mean study them
k thanks