- Joined
- Jul 29, 2008
- Messages
- 9,838
So I've been working on stuff for many years, and my triggers have been messy. And a while back I read somewhere that it can be more efficient to put all the triggers with the same Event into one big trigger & separate all the actions with a bunch of If/Then/Elses; that way, the game only has to "do" one thing, rather than "doing" 20+. Basically all the classic ones; "Unit is Attacked", "Unit Starts the Effect of an Ability", "Unit Starts Channeling an Ability", etc etc.
So instead of a bunch of separate triggers that all use the same "Unit Starts the Effect of an Ability" Event, ala:
you have one big trigger, ala:
===
This seemed like a good idea at the time, but over time I have grown increasingly frustrated with it, primarily organizationally. Not being able to use many of the Trigger Editor's built-in functionalities (folders, comments, etc) to organize my spells & work on them/fix them/tinker with them/move them around has become a real hassle.
So how big a deal is this, truly? I've Searched the Hive & poked around on a few tutorials (The Importance of Efficiency in Coding , Things You Should Know When Using Triggers / GUI), but haven't found anything definitive. Can someone save me from this insanity, or do I need to continue down this dark path I've forged?
Honorary @Pyrogasm mention, since I never end up posting when he pings me.
So instead of a bunch of separate triggers that all use the same "Unit Starts the Effect of an Ability" Event, ala:
you have one big trigger, ala:
===
This seemed like a good idea at the time, but over time I have grown increasingly frustrated with it, primarily organizationally. Not being able to use many of the Trigger Editor's built-in functionalities (folders, comments, etc) to organize my spells & work on them/fix them/tinker with them/move them around has become a real hassle.
So how big a deal is this, truly? I've Searched the Hive & poked around on a few tutorials (The Importance of Efficiency in Coding , Things You Should Know When Using Triggers / GUI), but haven't found anything definitive. Can someone save me from this insanity, or do I need to continue down this dark path I've forged?
Honorary @Pyrogasm mention, since I never end up posting when he pings me.
