Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Jah
Wanderer


Joined: 11 Oct 2000
Posts: 52
Location: Sweden

PostPosted: Mon Jun 23, 2003 2:48 pm   

Track follow
 
Hmm im trying to figure out how to make a little script that tracks the path the group leader takes me into a variable that could be reverse-speedwalked.

output : Nils leaves east.

I got whole group in @group and leader in @groupleader
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Jun 23, 2003 10:57 pm   
 
quote:
Originally posted by Jah

Hmm im trying to figure out how to make a little script that tracks the path the group leader takes me into a variable that could be reverse-speedwalked.

output : Nils leaves east.

I got whole group in @group and leader in @groupleader



Hmm, are you 100% sure that every path in one direction (ie, going to somewhere from here) is reversible (coming here from somewhere)? If so, just record/modify the directions as they come and use...was it %pathreverse()? Regardless, there's a function or command in 6.62 that returns the reverse path for you but I'm not sure when it was added.
Reply with quote
Jah
Wanderer


Joined: 11 Oct 2000
Posts: 52
Location: Sweden

PostPosted: Tue Jun 24, 2003 1:58 am   
 
hum. whats the command to start recording a path?
And yes.. most paths is reversible..
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Tue Jun 24, 2003 10:52 am   
 
Use #MARK to start recording a path.
Use #MOVE to record movements into the path.
Use #RETRACE to walk it backwards.
Reply with quote
Jah
Wanderer


Joined: 11 Oct 2000
Posts: 52
Location: Sweden

PostPosted: Tue Jun 24, 2003 1:38 pm   
 
So #trigger {%1 trots %2.} {#if %ismember( %1, @group) {#move %2} {#noop}} shold work..
But even #move north doesnt append north to the path :/
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Tue Jun 24, 2003 4:52 pm   
 
Try using #MAP instead.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net