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!
Would it work if I make a global trigger then add the events. When I'm done w it destroy the trigger then when I need it for the new events create the trigger again and add the new events or will this cause a leak ?
Would it work if I make a global trigger then add the events. When I'm done w it destroy the trigger then when I need it for the new events create the trigger again and add the new events or will this cause a leak ?
In short, this will not leak if you use JASS and proper methods.
Trigger actions will leak, conditions will not.
If you are using GUI, then it's not a good idea to make dynamic triggers.
For JASS you'd need to combine multiple approaches to avoid leaks.
1. Actions inside conditions - this means that conditions are used as actions. They do something and then return false.
2. Destroying and creating triggers, because events are impossible to remove or leak if trigger isn't destroyed.
GUI-Friendly Damage Detection by Weep uses dynamic triggers.
He has a trigger array and every unit in the map is linked to a trigger.
I should be able to make something and I could just do trigger remove actions then destroy the trigger then create new one. And I use jass/vjass. I can't stand using GUI anymore lol.
I should be able to make something and I could just do trigger remove actions then destroy the trigger then create new one. And I use jass/vjass. I can't stand using GUI anymore lol.
its odd tht blizzard didnt make this easier to reset events lol. thx for all ur help. ill just create the units the first time the minigame is made then i can just hide and unhide them when needed.
edit:: couldnt give u rep sry will give to u when i can
Yep, there is no script that can remove an event. >.>
The only things related that are possible are removing a condition, an action or destroying the trigger itself. You can even set an event as a variable (at-least in Newgen as far as I know).
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.