I have quite a few triggers that all use "Unit Dies" as an event, and I know that's horribly inefficient. Is there a way to filter the event by unit type/variable/etc without using the if/then actions? I'm trying to reduce the number of threads generated.
Note: I know I can just compress all my "Unit Dies" triggers into a combined trigger. I'm looking for an alternative.
I have quite a few triggers that all use "Unit Dies" as an event, and I know that's horribly inefficient. Is there a way to filter the event by unit type/variable/etc without using the if/then actions? I'm trying to reduce the number of threads generated.
Note: I know I can just compress all my "Unit Dies" triggers into a combined trigger. I'm looking for an alternative.
Using switch is how I would do it, you can either use a type of unit (as seen here) or a specific unit. Just set up your variables accordingly.
@AnOddRadish: Go
Switch definitely clears it up quite a bit. I was using If/Then/Else cascades.