|
zmapper21 Newbie
Joined: 28 Sep 2007 Posts: 2
|
Posted: 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 |
|
|
|
Seb Wizard
Joined: 14 Aug 2004 Posts: 1269
|
Posted: 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). |
|
|
|
Seb Wizard
Joined: 14 Aug 2004 Posts: 1269
|
Posted: 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...
|
|
|
|
zmapper21 Newbie
Joined: 28 Sep 2007 Posts: 2
|
Posted: 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 |
|
|
|
Seb Wizard
Joined: 14 Aug 2004 Posts: 1269
|
Posted: 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:
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.) |
|
|
|
|
|
|
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
|
|