Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Mizui
Newbie


Joined: 05 May 2010
Posts: 6

PostPosted: 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.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Mon May 24, 2010 5:22 am   
 
Have you tried using multiple trigger states?
_________________
Discord: Shalimarwildcat
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: 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).
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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