• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Dynamic Triggers

Status
Not open for further replies.
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.

Conditions, on the other hand, don't really need much handling. You can just add them, and destroy the trigger. See this:
http://www.hiveworkshop.com/forums/...ems-using-single-unit-events-like-dds-231167/

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.
 
Level 22
Joined
Sep 24, 2005
Messages
4,821
You need to destroy the triggers for that, there are no natives to clear events, as far as I remember.
 
Status
Not open for further replies.
Top