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
masterkrueger
Wanderer


Joined: 24 Jan 2010
Posts: 65
Location: Hamburg

PostPosted: Mon Jun 14, 2010 6:27 pm   

Check trigger of specific class?
 
Hi Guys,

is it possible to check if a trigger in a class has fired?
I want to set a multistate-trigger back to 0 if one of my #NODIR triggers (all in the class NODIR)
has fired?
Reply with quote
Erasmus
Wanderer


Joined: 04 Aug 2004
Posts: 82
Location: Philadelphia

PostPosted: Mon Jun 14, 2010 6:43 pm   
 
Couple of things you could do depending on the timing. If you want to reset the multistate trigger as soon as the #NODIR trigger fires then I would just add

Code:
#STATE multistatetriggerID 0


to your #NODIR trigger's script.

If you have a reason for needing to do a test in the mulistate trigger before resetting it then the only thing that comes to mind is to add a variable to the #NODIR trigger.

Code:
#VAR NoDirFiredTest 1


In the multistate trigger script you would add:

Code:
#IF (@NoDirFiredTest = 1) {#STATE multistatetriggerID 0;#VAR NoDirFiredTest 0}
_________________
Erasmus
Reply with quote
masterkrueger
Wanderer


Joined: 24 Jan 2010
Posts: 65
Location: Hamburg

PostPosted: Mon Jun 14, 2010 6:50 pm   
 
Ok, in either way i'll have to set it in the NODIR-Triggers. I ask because i have a lot of them and wanted to save work :)
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