|
njmassey Newbie
Joined: 08 Feb 2004 Posts: 6
|
Posted: 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.
|
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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}} |
|
|
|
njmassey Newbie
Joined: 08 Feb 2004 Posts: 6
|
Posted: 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? |
|
|
|
njmassey Newbie
Joined: 08 Feb 2004 Posts: 6
|
Posted: Wed Feb 25, 2004 5:32 am |
Also, Thanks for the help, forgot to add that to my other message. :)
|
|
|
|
|
|