mob/gaara
verb
SandC()
set name = "Sand Coffin"
set category = "Jutsu"
if(usr.canmove==1&&usr.using==0&&usr.chakra >= 100)
for(var/mob/M in view())
if(get_dir(usr,M)==dir)
usr.chakra -= 100
view() << "Sand Coffin....."
usr.canmove = 0
M.coffin = 1
M.coffinorigin = usr
M.canmove = 0
flick('sandcoffin.dmi',M)
M.overlays += 'icons/kyuu.dmi'
else
if(usr.chakra < 100)
usr << "You don't have enough Chakra to use this jutsu!"
In this code it tragets any mob infront of you, thats the problem, how would i make it target only one mob
Instead of
do
If you want to pick a mob, do something simple as: