About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 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
Kronas
Wanderer


Joined: 28 Dec 2003
Posts: 62
Location: Australia

PostPosted: 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?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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.
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