|
dimitris Newbie
Joined: 22 Nov 2004 Posts: 3
|
Posted: Mon Nov 22, 2004 7:31 pm
Trigger question |
I want to trigger when i recieve test or test. from the mud without creating 2 different triggers one for each case, tried test{.|%s} but it does not work.
Thanks for any help. |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Tue Nov 23, 2004 12:12 am |
#TR {test} {#echo do stuff here of course}
|
|
|
|
dimitris Newbie
Joined: 22 Nov 2004 Posts: 3
|
Posted: Tue Nov 23, 2004 12:01 pm |
That will trigger when i recieve test from mud not when i recieve test. i want to trigger in both cases.
|
|
|
|
mortie Wanderer
Joined: 26 Sep 2002 Posts: 73 Location: United Kingdom
|
Posted: Tue Nov 23, 2004 12:27 pm |
You can't use wildcards in the above pattern {val1|val2|valN}
Is that the only word in the line or is there more text after it?
It depends on what you want to do with what you trigger on.
You could do
#TR ({@is_this_test})$ {#echo some stuff here}
@is_this_test is a stringlist with the words {test|test.} |
|
|
|
dimitris Newbie
Joined: 22 Nov 2004 Posts: 3
|
Posted: Tue Nov 23, 2004 12:52 pm |
Thanks will try that
|
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Tue Nov 23, 2004 12:58 pm |
#TR {test} {#echo do stuff here of course}
Will work on
a TEST
TEST
TEST.
a long TEST
a longer TEST.
aTEST
TESTb
someTESTing |
|
|
|
|
|