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


Joined: 15 Jan 2003
Posts: 4

PostPosted: Sun Jun 13, 2004 12:56 pm   

I need help for String match
 
In the help file, I found the information like
"{^string} do not match the specified string".
I think that means when i want a trigger to match a word without some words(such as ABC), i can use the expression like :
#tr {^{ABC} ...} {some actions}
to match the clause i want.But it seems not work.
Can somebody give me a right example?
Reply with quote
Danlo
Magician


Joined: 28 Nov 2003
Posts: 313
Location: Australia

PostPosted: Sun Jun 13, 2004 1:45 pm   
 
#trigger {This is a {^123}pattern} {CMDS}

If the mud receives text: This is a 123pattern, the trigger won't fire, because it has "123" in the specified position.
If the mud receives the text: This is a testpattern, the trigger will fire, because it doesn't contain "123" in the specified position.

Note: There MUST be something in the position indicated by {^123}, other than 123, for the trigger to fire.
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