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
enema
Beginner


Joined: 06 Aug 2009
Posts: 11

PostPosted: Wed Sep 09, 2009 12:45 pm   

Really really simple pattern matching question.
 
the zMUD help files are awful.


I would like a trigger to match any line that says:

The small frog looks at Brian.
The small frog looks at God.
etc.

but just ignore any line that ends in "You":

The small frog looks at You.


P.S. what's the command to "deactivate all triggers"? I found it in the help file a few days ago and I can't get back to it.
Thanks in advance

EDIT:
All I really want to know is the syntax for "match all except <string>", all the help file seems to say is {^string} and I don't know exactly what I'm supposed to do with that. #TRIGGER {^The small frog looks at* {^You}} is what it seems to be suggesting but it doesn't make any sense.
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Wed Sep 09, 2009 2:27 pm   
 
A quick read of the section on Pattern Matching should show what you want.

This trigger pattern should do the trick.

Code:
The small frog looks at {^You}
_________________
Asati di tempari!
Reply with quote
enema
Beginner


Joined: 06 Aug 2009
Posts: 11

PostPosted: Thu Sep 10, 2009 1:13 pm   
 
that works, thanks.

I did read the help section on pattern matching but it never used {^String} in an example that I could find.

Thank you again
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