Slash()
if(src.Attacking == 0)
var/obj/K = new/obj/Sword
src.Attacking = 1
K.dir = src.dir
K.loc = src.loc
step(K, dir)
var/turf/X = K.loc
spawn(6)
del(K)
for(var/mob/M as mob in X)
if(M == src)
continue
var/damage = rand(1,5)
if(prob(70))
src<<"You attack [M] for [damage] damage!"
M<<"[src] attacks you for [damage] damage!"
M.Health -= damage
if(M.Health <= 0)
Death(M)
else
src<<"You attempt to attack [M] but miss!"
M<<"[src] attempts to attack you but misses!"
sleep(7)
src.Attacking =0</b>
Problem description:
How can I make so that every time the character uses the Slash verb another icon state of the icon appears, I know it gets to do with Flick, but I do not know where exactly to put it, Thanks!