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
ditchhook
Beginner


Joined: 05 Apr 2008
Posts: 12

PostPosted: 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?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
JQuilici
Adept


Joined: 21 Sep 2005
Posts: 250
Location: Austin, TX

PostPosted: 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!
Reply with quote
ditchhook
Beginner


Joined: 05 Apr 2008
Posts: 12

PostPosted: 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/
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sun Apr 06, 2008 3:29 pm   
 
Configuration Settings on the Config menu.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
ditchhook
Beginner


Joined: 05 Apr 2008
Posts: 12

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


Joined: 23 Dec 2000
Posts: 4834
Location: USA

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


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
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