|
solem Beginner
Joined: 16 Mar 2004 Posts: 20
|
Posted: 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. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Mar 20, 2004 8:15 pm |
Use %pathreverse.
rpath = %pathreverse( %walk( 0)) |
|
|
|
solem Beginner
Joined: 16 Mar 2004 Posts: 20
|
Posted: Sat Mar 20, 2004 8:39 pm |
Thank you... Works like a charm.
|
|
|
|
|
|