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


Joined: 08 Feb 2004
Posts: 6

PostPosted: Tue Feb 24, 2004 8:12 am   

Two questions
 
Is there anyway to make it so a trigger doesn't exicute on an echo? and how can I either do a trigger like blah blah (anything but hah) blah blah? or have a trigger that matches a line, then matches the second line, being nothing as in no text.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Tue Feb 24, 2004 3:20 pm   
 
1) If what you mean is that your triggers are showing some text each time they fire, then you most likely have the Show Triggers option enabled in the Script Parser part of the Preferences.

2) Use the {^text} syntax to match anything but text:
blah blah {^blah blah} blah blah

3) To match a blank line after the pattern, capture it in the pattern and then compare it to an empty string:
#TRIGGER {first line$(*)} {#IF ("%1" = "") {there is a blank line after the pattern}}
Reply with quote
njmassey
Newbie


Joined: 08 Feb 2004
Posts: 6

PostPosted: Wed Feb 25, 2004 5:32 am   
 
For the first question I mean, like I have a trigger that matches {Everthing Is Good} (which is not always the start of a line), but when I type the command "emote Everything Is Good" is executes the trigger and I don't want it to.

For the Second question, can I make it {You see Jim here${^He kills you OR He hits you}} the "OR" meaning either the first part or the second part?
Reply with quote
njmassey
Newbie


Joined: 08 Feb 2004
Posts: 6

PostPosted: Wed Feb 25, 2004 5:32 am   
 
Also, Thanks for the help, forgot to add that to my other message. :)
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