|
Kronas Wanderer
Joined: 28 Dec 2003 Posts: 62 Location: Australia
|
Posted: Tue Jan 27, 2004 3:57 pm
Pattern problem |
Hi, I have this pattern variable problem
using this formula &friend* creates the variable and captures the character as the value.
mud: (CITY): Joe says, "hello city * blah blah"
pattern: (CITY): &friend* says, "hello city * blah blah"
Nothing, no response, yet it worked off line.
what is wrong? |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue Jan 27, 2004 5:13 pm |
It's simple. The pattern doesn't match the MUD output.
Pattern: The red portions are not interpreted literally
(CITY): &friend* says, "hello city * blah blah"
The MUD output starts with (CITY):
The Pattern also starts with (CITY):, but ( and ) have special meaning in trigger patterns, so the actual pattern zMUD is trying to match is just CITY:. Similarly, & has a special meaning so that zMUD doesn't require the MUD output to actually contain any of the characters in &friend*.
Put ~ before special characters when you want to use them as literal characters. |
|
|
|
|
|
|
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
|
|