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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
nilats
Beginner


Joined: 21 Sep 2009
Posts: 13

PostPosted: Sat Aug 03, 2013 10:25 am   

want trigger to fire only once and then disable
 
so i have a class setup ( wall bump)

within the class I setup the trigger {a (*) bumps into} {order minion k %1}




however i'm concerned more than one potential variable could "bump into"

causing me to fire off multiple orders which have lag built into them which would then cause me to die.

is that just the inherent nature of the variable or can i have it fire once and immediately ignore all other input and disable itself?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Aug 03, 2013 7:05 pm   
 
You have options. First one is to just #T- the trigger and then have another trigger or alias or whatever #T+ it back on. Second one is to wrap your original code in an #IF command that checks the value of some governing variable so that if multiple fires happen anything but the first just do nothing.

In CMud, we have the option to turn off matching on this line by subsequent triggers but I don't remember if ZMud had something similar.
_________________
EDIT: I didn't like my old signature
Reply with quote
nilats
Beginner


Joined: 21 Sep 2009
Posts: 13

PostPosted: Mon Aug 05, 2013 11:41 am   
 
thanks. It took me a while but i remebered how i did it. I had to set an alias for #t- within the class to make it fire and set an alias that i punchin to reinitiate it.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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