|
Tievel Newbie
Joined: 16 Oct 2005 Posts: 7
|
Posted: Mon Aug 06, 2007 5:06 pm
Making #FIND more accurate |
On my mud there are quite a few rooms that share the same name and room description, making FIND quite often useless. I can often use mapquery to sort through the options and pinpoint where I am, but I was wondering if there wasn't a more sophisticated way of doing this with the #FIND command and matching exits in addition to the room name/description. Even just a general idea pointing me in the right direction would be help enough.
Thank you in advance. |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Tue Aug 07, 2007 3:29 pm |
I don't believe there is. According to the documentation
Quote: |
In the second command format (without parameters), it finds the current location on the map. Issues the MUD Look command and compares the current MUD room description with the map database and sets the map location to the matching room.
#FIND
Same as using the Find command in the mapper menu. |
It would be nice feature request if exits were compared as well, perhaps we'll get this when the mapper is rewritten.
The alternative is to use the %mapquery function to factor in the exits and then set the current room yourself using the #TELEPORT command. |
|
_________________ Asati di tempari! |
|
|
|
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
Posted: Wed Aug 08, 2007 5:17 pm |
I do the following in this circumstance:
1) If the room has a unique room name #teleport to that room
2) If it is not unique save a list of the matches and compare each of the exits. Discard any that don't match.
3) Of those left is there only one left, if so #teleport to that room.
4) If multiple are left then look at the room names of the adjoining rooms and compare those names. Disregard from the list those that don't match.
5) Of those left is there only one left, if so #teleport to that room.
6) If all of the above have failed, #teleport to the first in the list of possible rooms left and at this point I can just move manually from there and try again in a different room. |
|
|
|
|
|