Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
What do I need to do to be able to create triggers on the fly, and destroy them later, or even simply recreate them to clear out the events? What variables do I need to store?
You'll need trigger variable(s). If you can avoid it, don't use trigger actions. iirc trigger actions aren't easily cleaned up without extra storage (and even then, I don't remember if they get cleaned up properly). Or at the very least, destroying with conditions is much more seamless.
You don't have to pay attention to all the lists and stuff. That extra stuff is there because of the way the DDS works and how it handles its trigger conditions/boolexprs. The main thing to notice is that the method is just a matter of destroying the trigger, recreating it, and readding the conditions/events.
Oh cool. So I can store the condition as a filter/booleanexpr and only have to destroy the trigger and re-add the condition? That's far easier than I remember lol.
Doesn't DestroyTrigger cause handle id corruption, or was that fixed.
Anyway I would just use TriggerClearConditions if the trigger doesn't need dynamic events.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.