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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
xekon
Apprentice


Joined: 11 Oct 2007
Posts: 154

PostPosted: Sun Jun 07, 2009 10:15 pm   

How to make the mapper open up to and highlight a room using a roomvnum ?
 
How to make the mapper open up to and highlight a room using a roomvnum ?

In the mapper if I search for a room using Edit>Find room feature a spreadsheet will open when I can then click on the rooms shown and it will open the map to that room and highlight the room in red. I would like to know how to do this using just code, so that the spreadsheet view is completely bypassed

like %selectroom(17623) or %openroom(17623) is there a way or similar function for this?
Reply with quote
chris-74269
Magician


Joined: 23 Nov 2004
Posts: 364

PostPosted: Mon Jun 08, 2009 5:21 am   
 
roomstohighlight=%mapquery(BLAH BLAH)
#FORA @roomstohighlight {#pathhigh %i}
Reply with quote
xekon
Apprentice


Joined: 11 Oct 2007
Posts: 154

PostPosted: Tue Jun 09, 2009 3:09 am   
 
mmm if there is no path IE there is a maze between point a and b then no path highlight, also if I am in zone A and the room im wanting to look at is in zone B, the mapper does not open to zone B... but chances are the feature I am wanting to use simply does not exist.... would make a killer feature though.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Tue Jun 09, 2009 12:35 pm   
 
You could make a new (maybe temporary) location object, set it's location to the room of interest, and temporarily track that location object. You can even specify a color for the object.
Reply with quote
xekon
Apprentice


Joined: 11 Oct 2007
Posts: 154

PostPosted: Tue Jun 09, 2009 12:36 pm   
 
hmmm very interesting... I've never used the location object... I will have to read up on that in the documentation.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Tue Jun 09, 2009 12:53 pm   
 
Oops, sorry. I forgot this was in the General Discussion. Location objects are specific to version 3.xx, so if you are using 2.37, you won't have location objects.
Reply with quote
xekon
Apprentice


Joined: 11 Oct 2007
Posts: 154

PostPosted: Tue Jun 09, 2009 12:54 pm   
 
I should have them, I am running 3.08 beta, I just have never used them
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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