| 07-03-2008, 08:41 AM | #1 |
Hi guys. I am a real fan of dynamic triggers, but lots of people say they are evil and I don't know why. I've been searching among 70 posts in this section and I only found three reasons: - Reset Trigger does not work - trigger conditions are faster - removing a trigger action always leaks (not sure) Is there any other reasons ? |
| 07-03-2008, 08:48 AM | #2 |
Do you need any other reasons? Those all sound pretty good to me. |
| 07-03-2008, 09:11 AM | #3 |
It fucks up the internal handle counter. |
| 07-03-2008, 10:14 AM | #4 | |
Quote:
Reasons: - Reset Trigger does not work: unable to remove the event - trigger conditions are faster - removing a trigger action always leaks: they are not destroyed - Messes up the handle counter Ok guys, anything else ? So using dynamic triggers == script leaking in every word right ? |
| 07-03-2008, 11:01 AM | #5 |
http://www.wc3campaigns.net/showthread.php?t=85984 Read. We've told you time and time again where the info is. Read this before replying. The whole thread. That'll tell you why. |
| 07-03-2008, 11:39 AM | #6 |
If that's the case, what is the alternative to dynamic triggers? Does ResetTrigger completely wipe everything associated with a trigger (if not, is there anything that does?) and would that apply to struct members which are triggers and/or global triggers/trigger arrays |
| 07-03-2008, 12:55 PM | #7 | ||
Quote:
On the other hand, i did search, and tried to learn following your advice - search on this section Quote:
Global triggers are static triggers. They are created only one time and used on game. Therefore they won't ever leak. After reading the post I added another reason: Reasons: - Reset Trigger does not work: unable to remove the event - trigger conditions are faster - removing a trigger action always leaks: they are not destroyed - Messes up the handle counter - They blow up if they are destroyed before the thread is over (this is what I understood, correct me if I am wrong) Now I think I should make a tutorial about this =) |
| 07-03-2008, 01:08 PM | #8 | |
Quote:
Well, I meant more in the sense of having a global trigger array, CreateTrigger (), and assigning them to something whenever they are required, then destroy them later when they are no longer needed, but would that still f*** with the handle counter or cause issues if you destroyed before the thread ends (hoping that the total-f***-up-ness doesn't apply to triggers which are struct members) |
| 07-03-2008, 01:36 PM | #9 |
embedding systems inside a spell's scope is evil. Dynamic triggers on the other hand are useless, force you to have more complicated attaching, and most likely will screw your map over unless you do whatever unknown combination is required to make them not do it. They are more than evil. |
| 07-03-2008, 01:49 PM | #10 | |
Quote:
That's why I created a new thread to start the spell form zero, like you guys would do it without all this evilness. However no1 seems to be interested =( I dunno what else to do ='( |
| 07-03-2008, 01:55 PM | #11 |
what's your apocallypse anyway, post it, if I can't make a much simpler one without dynamic triggers, I'll give you +10 rep (admin blue square magic rep!) |
| 07-03-2008, 03:09 PM | #12 |
Vex, he posted it in his other thread named "Opinion about code" and it can be made without dynamic triggers, we've already explained that to him. |
| 07-03-2008, 03:13 PM | #13 |
the thread that griffen gave was very informative, I think by now he'll understand what we meant by "don't use dynamic triggers, it's bad." |
| 07-03-2008, 07:56 PM | #14 |
Actually this thread is a set of all posts I read from this section. I hope it helps future people understand this evilness. Anyway, The post I am talking about is NOT "opinion about code" . The post is called "apocalypse total remake". Here is link: http://www.wc3campaigns.net/showthread.php?t=101254 It only has 1 post (mine) because I make no idea how I would even plan the spell =S Thx by your offer Vexorian ! However please credit me its original creator and developer, I had all the job down the way here, I want to do it, I just need to know how ! =S |
| 01-13-2009, 11:30 PM | #15 | |
Quote:
|
