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???
ID:156157
![]() Dec 16 2010, 12:11 pm
|
|
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.
|
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
|
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 |
And a method to handle this, aswell.