mob/Spell
verb
Accio(obj/O in world)
set category = "Spells"
var/cancast = Casting(usr)
if(cancast)
walk_to(O,usr,1,5)
gff
sleep(10)
for(var/obj/A in range(1,usr))
if(A==O)
walk(O,0)
return
goto gff
Problem description: I'm basically trying to making it so that I can summon objects and then they'll walk to me. I can achieve this with a goto (as seen above), but I know that's just asking for trouble. Could someone please help me figure this out?