• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Multiple triggers better that runs alot better than one trigger that runs alot?

Status
Not open for further replies.
Level 3
Joined
Apr 28, 2010
Messages
48
For example, my map has 5 players. And, I have a trigger of, any unit is damaged, with condition of unit type = heroic.

The trigger runs ALOT, because there are mobs all over the map.

Now, would it be better to have multiple triggers with a specific event, of Player 1(hero choice) unit takes damage.

Have this trigger for each player. Would it be more efficient?
 
Level 5
Joined
Jul 10, 2010
Messages
124
yes if you only need to keep track of a player's hero taking damage, or if your map has a lot of units where taking damage doesn't matter to any triggers.

but the generic "unit is damaged" is much easier to work with when you edit the map later

i am not sure if the efficiency gain is significant on any system that is powerful enough to run SC2 though
 
Level 5
Joined
Jul 10, 2010
Messages
124
yes if you only need to keep track of a player's hero taking damage, or if your map has a lot of units where taking damage doesn't matter to any triggers.

but the generic "unit is damaged" is much easier to work with when you edit the map later

i am not sure if the efficiency gain is significant on any system that is powerful enough to run SC2 though
 
Status
Not open for further replies.
Top