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
ToyMage
Apprentice


Joined: 01 Sep 2005
Posts: 120

PostPosted: 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
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Thu Mar 02, 2006 8:03 pm   
 
It must be about somewhere as you can highlight the path with:
#PATHHIGH path [roomid]

Maybe someone knows how to tap into the PATHHIGH list of room vnums.

All I`m seeing remotely useful is
http://forums.zuggsoft.com/phpbb/viewtopic.php?t=17614&highlight=pathhigh
And closest room checking.. just add grab the room vnum to the ideas.
http://forums.zuggsoft.com/phpbb/viewtopic.php?t=12919&highlight=path+vnum
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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
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