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
zmapper21
Newbie


Joined: 28 Sep 2007
Posts: 2

PostPosted: Fri Sep 28, 2007 10:19 pm   

mapper and #nomap question
 
Hey,
I've been using zMUD for a while now, but I've decided to take on mapping recently...now Configuring and all has worked, but there is one problem in my MUD:

it can have to types of exits:
Either "A large room(nw, e and se)"

or "A room at an ocean (n, w and s) [se, e, sw, s and ne]"

Now in the second part, what is inside the brackets indicate the 'water exits', exits that i can access by using the 'swim' command....I do not want these mapped...I tried solving this problem by doing this #NOMAP trigger:
~[(%*)~]$

but it didnt work...it somehow understood this for all the exits, and it didnt work
I would like any suggestions and help for this, and thanks alot in advance
Thanks again

~Z
Reply with quote
Seb
Wizard


Joined: 14 Aug 2004
Posts: 1269

PostPosted: Fri Sep 28, 2007 11:06 pm   
 
#NOMAP causes the whole line to be ignored for mapping purposes.

You probably need to use #TAG to tag the exits (and room name while you're at it).
Reply with quote
Seb
Wizard


Joined: 14 Aug 2004
Posts: 1269

PostPosted: Fri Sep 28, 2007 11:10 pm   
 
Of course, you'll may want to tag the exits in all rooms, not just rooms with water...
Reply with quote
zmapper21
Newbie


Joined: 28 Sep 2007
Posts: 2

PostPosted: Sat Sep 29, 2007 9:03 am   
 
I tried to use #TRIG {~((%*)~)} {#TAG exit %1} but it didn't work...when i tried re-configuring, the whole line was understood as a 'room description'
If there is any other way, I'd really like to know it...thanks alot in advance again
Reply with quote
Seb
Wizard


Joined: 14 Aug 2004
Posts: 1269

PostPosted: Sat Sep 29, 2007 1:26 pm   
 
Firstly, your trigger will match anything in parentheses! That's not good! You will get lots of false matches.
This is a bit better:
Code:
%w ~((%t*)~)

But it could still be improved, probably only via using a perl regular expression.
Anyway, to tag both room name and exit:
Code:
(%w *)~((%t*)~)
#TAG name,exit {%1} {%2}
#ECHO name,exit {%1} {%2}

So try using this trigger and then reconfiguring the mapper...
(#ECHO is for debug - take that out before reconfiguring the mapper, once you've walked through a few rooms to check it is matching correctly.)
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