|
ToyMage Apprentice
Joined: 01 Sep 2005 Posts: 120
|
Posted: Thu Mar 02, 2006 11:08 am
List of Roomnum of Speedwlk |
I'm wondering if we can list the Roomnum we walk through in %PATHFROM?
%PATHFROM(1,249)
I mean the list of Roomnum of the rooms we walk through to get to 249?
Confused |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Thu Mar 02, 2006 10:37 pm |
This can be done with a conjunction of #PATHHIGH and zMapper. After the #PATHHIGH you can use zMapper's plugin functionality and return a selection list into zMud with
Code: |
#VARIABLE PathSelected {%map.GetSelection} |
As this returns a different type of list than the lists used by zMud you will have to do the conversion. The only other method is to step through the rooms withing your script and build a list of room numbers, that code looks something like this
Code: |
#VARIABLE CurrentRoom {%roomnum}
#VARIABLE PathRooms {}
#FORALL %pathexpand(%walk(destination)) {
CurrentRoom=%roomlink(@CurrentRoom,"%i")
#ADDITEM PathRooms {@CurrentRoom}
} |
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
|
|