|
siegeon Newbie
Joined: 04 Oct 2007 Posts: 5
|
Posted: Thu Oct 04, 2007 10:11 pm
mapper question |
My mud made some changes in the exit line, and now my mapper hates me.
Turn in the trail
To the south a hut can be seen on the edge of a clearing. To the west
the well worn path continues. Dead leaves are piled up on the trail, almost
blocking it from sight. The sounds of something sobbing can be heard from
the south.
[forest(very bright): south west]
A zombie warrior lumbers through the jungle.
kill zombie warrior lumbers
<9864/9855:HP 6519/6519:Sm 5178/7034:Mv 0:Qt 60599:Tnl 892:G 12883:S>
this is the output when i enter a room. The //forest(very bright) can be anything like city,town,jungle,ect. the very bright can be anything from dark to very bright, or notthere at all.
Any suggestions on setting up the mapper to get the exits again? |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Thu Oct 04, 2007 10:30 pm |
Code: |
#regex {^\[\w+(?:\([a-z ]+\))?: [a-z ]+\]$} {#tag exits} |
Or something similar. You might also find it helps to tag your prompt and the room name.
EDIT: Perhaps
Code: |
#regex {^\[\w+(?:\([a-z ]+\))?: ([a-z ]+)\]$} {#tag exits {%1}} |
? |
|
|
|
siegeon Newbie
Joined: 04 Oct 2007 Posts: 5
|
Posted: Thu Oct 04, 2007 10:46 pm |
Forgive me im a little new, I dont understand your responce
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Thu Oct 04, 2007 10:58 pm |
The #regex command creates a trigger with a regular expression for the pattern. The regex there matches the text you've given (it matches a square bracket, followed by a word, \w+, followed by optional brackets containing any number of lower case letters and spaces, followed by a colon, a space, another string of lower-case letters and spaces, and the closing square bracket). When the trigger matches, it uses the #tag command to tell the mapper what text is exits. Follow the link for more info on that command.
EDIT: Just noticed that the forums are eating some of my regex above, I've put it in code tags to preserve it. |
|
|
|
siegeon Newbie
Joined: 04 Oct 2007 Posts: 5
|
Posted: Thu Oct 04, 2007 11:36 pm |
Strange put the code in the prompt when I try to go a direction the mapper does nothing. As if im not moving.
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Thu Oct 04, 2007 11:44 pm |
Check that the trigger's been created properly, then reconfigure the mapper. The mapper configuration should hopefully colour the exit line properly.
|
|
|
|
siegeon Newbie
Joined: 04 Oct 2007 Posts: 5
|
Posted: Thu Oct 04, 2007 11:52 pm |
Hmmm when I configue it i move south
Path of the Cursed
The path here appears to be slightly more worn than further east. A
disheartening wailing can be heard to the west and south. The trees are
packed close to the trail preventing anything from straying off the path.
Everything in the area is enclosed by the close proximity of the foliage.
[forest(very bright): east west]
(Invis) (Translucent) A specter of the forest fades in and out of reality.
then the lil configue thing pops up and the the WHOLE exit line is in red
IE
[forest(very bright): east west] //is red
the room shows up with no exits |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Fri Oct 05, 2007 12:05 am |
I'm pretty sure the map config always displays the whole line a certain colour, but try using the second command I gave you - that just tags the actual exits and not the whole line.
|
|
|
|
siegeon Newbie
Joined: 04 Oct 2007 Posts: 5
|
Posted: Fri Oct 05, 2007 12:09 am |
Thank you that one did the trick
|
|
|
|
|
|