Hello
Im wondering how would you make it so that when you talk to an NPC he will walk_towards a location in the map, i dont want him to speed there i want him to walk 1 tile at a time also i want the players that were in his view to begin with to follow him, i dont want any other players he encounters to follow.
thanks
ID:272086
Mar 25 2008, 7:35 am
|
|
Mar 25 2008, 7:51 am
|
|
I would make it easily.
|
In response to Kaiochao
|
|
Kaiochao wrote:
I would make it easily. Ok, He's asking for HOW WOULD YOU not CAN/COULD YOU. |
In response to Kaiochao
|
|
Kaiochao wrote:
I would make it easily. I didnt ask you for that im asking for help on how to make it >_> if you dont have something constructive to post dont post at all please.. |
Look up walk_towards in DM help and notice the lag argument.
Give the player mob a follow(target) verb. In it, store target in a following var then spawn a while(following) that walk_towards the target mob if get_dist(loc,following.loc) > 1. Give the player mob a stop_following() verb that clears the following var. Then you can make the NPC talk verb for-loop thru the player mobs in view and call their follow verbs before activating the walk_towards. Then you have options. One is to spawn a while(loc!=destination) sleep to wait until it gets there, then for-loop to trigger stop_following on the players. Two is to put an enter proc on thge destination turf that does this instead. |
In response to Traztx
|
|
i see thank you..
|
In response to CK Productions
|
|
"Easily" is how "I would make it."
|