ID:156157
 
i had a look at some demos but i can't fined the kinda of thing i need it never seems to work the way i think it should so say got

mob
NPC
Verb
follow(mob/M)
walk_to(src,M,get_dist(src,M),1)

i got this from the guild the follow verb now but i can't get it 2 work for the NPC it just seems to do nothing???
You would need some kind of event-handling system to handle the npc follow with the following library: http://www.byond.com/developer/Kuraudo/Signals

And a method to handle this, aswell.
What Wolf apparently fails to see, is that you are utilizing the walk_to()'s minimum distance argument wrong. You're using it in the opposite of its intended purpose. What that argument does, is it is the distance at which the src (in this case) will STOP stepping towards M. You have this argument set to the distance between src and M, which will cause src to NEVER walk_to() anything... always.
In response to Spunky_Girl
i changed the value it just seems to do nothing
walk_towards(src,M)
In response to Jamesy577
walk_to(src,m,1,1)
In response to Spunky_Girl
well i don't understand how this works at all so i have trying to go on what you say, are u useing it in the sense of a player click follow then following them.i tryed what thouge u meant but it did nothing is this meant to make them follow you when you start because thats what i am going for and i don't know why it wont work there's no errors it just does nothing
In response to Jamesy577
nvm mined i rilzied i did a really supited thin i put the verb in inside another one so the follow verb my made charater do it mot my NPC
well i have changed it to better version but still nothing

mob
Clone
New(mob/M)// well i know the mob's not right because it is giveing th clone a chose i tryed putting usr there the usr that summon it it should follow i thouge it made sense it didn't work so suck
flick('Clone.dmi',usr)
walk_to(src,M,1,1)
verb
Clone()
if(Chakra >= 10)
var/mob/Clone/m=new/mob/Clone
m.overlays+=usr.overlays
m.underlays+=usr.underlays
m.Move(get_step(usr,usr.dir))
usr.DamageChakra(10)
proc// don't understand how to get this to work so far does nothing ????
Delete()
for(var/mob/Clone/mob in world)
if(mob==usr)
del src
In response to Jamesy577
jw the bit of coding you showed me was that fr the NPC to follow me then stop when it has reached me because i want he to follow me all the time