|
nilats Beginner
Joined: 21 Sep 2009 Posts: 17
|
Posted: 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? |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
nilats Beginner
Joined: 21 Sep 2009 Posts: 17
|
Posted: 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.
|
|
|
|
|
|