• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Help with trigger.

Status
Not open for further replies.

Baneful

B

Baneful

the trigger i have is (Event When player owned unit is attacked/ condition: Attacking unit is equal to Units of type/ Action: set base damage of attacked unit to attacked unit +2) and i have one for each tower type so its creating MASSIVE lag. How can i keep the triggers but have a less laggy event?
 
"Units of type..." is a group search so doing that over the whole map for multiple triggers every time something is attacked is resource intensive. You are also probably leaking groups and points.

Post your full trigger here with the Trigger tags (quote my post to see how) so we can better suggest what you should do. I think you need to do this instead:

  • Conditions
    • (Unit-type of (Attacking Unit)) equal to YOUR_TOWER
 
Status
Not open for further replies.
Back
Top