|
Mizui Newbie
Joined: 05 May 2010 Posts: 6
|
Posted: Sun May 23, 2010 9:57 pm
Question: Does #waitfor support expression matching? |
As title.
If #waitfor does not support expressoin matching
Is there an alternative way to waitfor multiple expression to be true before firing the rest of the script?
The expressions might return in random sequence ... so I need something similar to expression match trigger in a script.
I think using a seperate trigger will work spendidly ... but I want to keep it within a script for easy to modify and expand purpose.
Thanks in advance for the help. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Mon May 24, 2010 5:22 am |
Have you tried using multiple trigger states?
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Mon May 24, 2010 8:12 pm |
#waitfor does support standard trigger patterns. However, if the expressions come in a random order, that probably won't solve your problem. One solution I can think of for this situation is a set of triggers for each expression, which sets some variable. Then, make another trigger of type Expression, which tests whether each of the variables is set. When all the variables have the right value, the trigger fires, doing whatever you needed (and presumably resetting the variables to 0).
|
|
|
|
|
|