ID:163966
 
Right, I thought i'd post this here due to its more of a How-To then a code problem.. Ish, And I prefer this section anyway, So, Heres the code I have all annotated

turf/Click()
for(var/mob/npcs/Pet/B in world)//Check pet in world,
if(B.Owner == "[usr]") //Only for those Of pets belong to ''usr''
if(B.Frozen) // Check if they are frozen or not so they will not move
return
if(B.Targeter == "[usr]") //This is to check for targets,
walk_towards(B,src) //Walk towards the clicked turf
world << "Target pet r wlkin"
return //Want it to end process here when it checks if its been Targeted or not. And not carry on
else
if(B.Owner == "[usr]") //Not really needed,But put there anyway (Probebly the problem knowing me)
walk_towards(B,src) //All other Non targeted Pets walk (Not that I want them to if One is targeted, Want the rest to stay put
else
return