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
solem
Beginner


Joined: 16 Mar 2004
Posts: 20

PostPosted: Sat Mar 20, 2004 8:01 pm   

Reversing a path.
 

I am trying to record the path from recall (vnum 0) to the room I’m currently in.
So I do the following.
path = %WALK(0)
Which gives me the path I want reversed, so now I need to find a way to reverse that path. I’ve been playing with #retrace but cannot get it to record to a variable.
I need something like.
Rpath = #retrace @path

Thank you in advance.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Mar 20, 2004 8:15 pm   
 
Use %pathreverse.
rpath = %pathreverse( %walk( 0))
Reply with quote
solem
Beginner


Joined: 16 Mar 2004
Posts: 20

PostPosted: Sat Mar 20, 2004 8:39 pm   
 
Thank you... Works like a charm.
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