|
xekon Apprentice
Joined: 11 Oct 2007 Posts: 154
|
Posted: 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? |
|
|
|
chris-74269 Magician
Joined: 23 Nov 2004 Posts: 364
|
Posted: Mon Jun 08, 2009 5:21 am |
roomstohighlight=%mapquery(BLAH BLAH)
#FORA @roomstohighlight {#pathhigh %i} |
|
|
|
xekon Apprentice
Joined: 11 Oct 2007 Posts: 154
|
Posted: 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.
|
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: 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.
|
|
|
|
xekon Apprentice
Joined: 11 Oct 2007 Posts: 154
|
Posted: 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.
|
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: 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.
|
|
|
|
xekon Apprentice
Joined: 11 Oct 2007 Posts: 154
|
Posted: Tue Jun 09, 2009 12:54 pm |
I should have them, I am running 3.08 beta, I just have never used them
|
|
|
|
|
|