|
ditchhook Beginner
Joined: 05 Apr 2008 Posts: 12
|
Posted: Sat Apr 05, 2008 10:29 pm
Getting zMUD auto-mapper to recognize [NESW] expressed exits in room title |
I've just joined a new MUD. I want to use zMUD's automapper, but I don't know how to get the mapper to recognize
the exits. They are appended to the room titles like so:
A Dank Dormitory [NESU]
Where NESU would mean exits are North, East, South, and Up, for example.
I also have the option of asking for 'exits' which gives me a message like:
Visible exits:
North - The Newtown Tavern
East - A Small Closet
etc.
How would I set up the zMUD mapper to adapt to this new mud I joined? |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sat Apr 05, 2008 11:36 pm |
Try this:
#regex {(.+?) \[(N?E?S?W?U?D?)\]$} {#tag name %1;#tag exit %2}
Once you've done that, you'll need to reconfigure the mapper (make sure you uncheck the description box) and it'll hopefully start working. |
|
|
|
JQuilici Adept
Joined: 21 Sep 2005 Posts: 250 Location: Austin, TX
|
Posted: Sat Apr 05, 2008 11:38 pm |
You can also try the built-ins. In the mapper preferences dialog, on the 'Room Exits' page, there are checkboxes for 'Exits in Room Name' and 'Single-character Exits'. Give 'em a whirl and see how you do.
|
|
_________________ Come visit Mozart Mud...and tell an imm that Aerith sent you! |
|
|
|
ditchhook Beginner
Joined: 05 Apr 2008 Posts: 12
|
Posted: Sun Apr 06, 2008 3:13 pm |
JQuilici wrote: |
You can also try the built-ins. In the mapper preferences dialog, on the 'Room Exits' page, there are checkboxes for 'Exits in Room Name' and 'Single-character Exits'. Give 'em a whirl and see how you do. |
How do I get to the mapper preferences dialog/ |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sun Apr 06, 2008 3:29 pm |
Configuration Settings on the Config menu.
|
|
|
|
ditchhook Beginner
Joined: 05 Apr 2008 Posts: 12
|
Posted: Sun Apr 06, 2008 3:57 pm |
Fang Xianfu wrote: |
Try this:
#regex {(.+?) \[(N?E?S?W?U?D?)\]$} {#tag name %1;#tag exit %2}
Once you've done that, you'll need to reconfigure the mapper (make sure you uncheck the description box) and it'll hopefully start working. |
It seems to be working properly now. Thanks!
Found one minor problem. Occasionally rooms are marked [NESW Quit] for example, where 'Quit' means it is a safe place to quit the game. Other locations are marked 'Save' for a similarly transparent reason. When my avatar enters such rooms, the mapper doesn't record the room or the move into it. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Apr 06, 2008 5:29 pm |
dunno what the ? really means, but it looks like a stringlist separator. If that's the case, try adding ?Quit to the end of the list.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sun Apr 06, 2008 5:54 pm |
(.+?) \[(N?E?S?W?U?D?)(?: Quit| Save)?\]$
should do the job.
Matt: the ? makes whatever's before it optional. So it's an optional n, optional e, optional s etc etc. Then it's also optionally " Quit" or " Save". It's a bit like using [neswud]+ except it won't match nnnn or something. |
|
|
|
|
|