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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Valkenar
Beginner


Joined: 12 Aug 2009
Posts: 15

PostPosted: Thu May 13, 2010 4:11 pm   

Changing state for disabled triggers
 
It seems like it's not possible to change the state of a trigger while it is disabled. Is this intentional? It seems like you would want to set the state of a multistate trigger before enabling it so you don't get weird results if you receive lines in the time between.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Thu May 13, 2010 4:41 pm   
 
CMUD will not process triggers in the middle of a script unless the script is running in a background thread. So just enabling the trigger and then setting the state will work fine.

When a trigger (or any other setting) is disabled, it is removed from CMUD's search tree so that there is no way to access it. So there is no way to change the state because as far as CMUD can tell, the disabled trigger doesn't exist.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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