• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Optimizing triggers and removing leaks.

Status
Not open for further replies.
Level 4
Joined
Sep 12, 2006
Messages
31
Someone could help me optimizing triggers in my map and cleaning leaks.
My trigers for waves of enemy are like this:
Wave1
  • Time - Elapsed game time is 65.00 seconds
  • Unit - Create 28 Ghoul for Neutral Hostile at (Center of Evil Gate Area <gen>) facing Default building facing degrees
  • Unit - Create 1 Libertadores for Neutral Hostile at (Center of Evil Gate Area <gen>) facing Default building facing degrees
  • Unit - Create 12 Nelfamide for Neutral Hostile at (Random point in videno <gen>) facing Default building facing degrees
  • Game - Display to (All players) the text: First Wave: Ghoul G...
  • Wait 45.00 seconds
  • Unit - Create 26 Ghoul for Neutral Hostile at (Center of Evil Gate Area <gen>) facing Default building facing degrees
  • Unit - Create 15 Nelfamide for Neutral Hostile at (Random point in videno <gen>) facing Default building facing degrees
  • Unit - Create 2 Libertadores for Neutral Hostile at (Center of Evil Gate Area <gen>) facing Default building facing degrees
  • Wait 41.00 seconds
  • Unit - Create 28 Ghoul for Neutral Hostile at (Center of Evil Gate Area <gen>) facing Default building facing degrees
  • Unit - Create 1 Death Knight for Neutral Hostile at (Center of Evil Gate Area <gen>) facing Default building facing degree
  • Trigger - Turn off (This trigger)
wave2
  • Unit - A unit owned by Neutral Hostile Dies
  • (Unit-type of (Triggering unit)) Equal to Death Knight
  • Player Group - Pick every player in (All players controlled by a User player) and do (Player - Add ((9000 / Kills[(Player number of (Picked player))]) + 100) to (Picked player) Current gold)
  • Game - Display to (All players) the text: 2nd Wave Approachin...
  • Wait 22.00 seconds
  • Unit - Create 34 Serpentino for Neutral Hostile at (Center of Evil Gate Area <gen>) facing Default building facing degrees
  • Unit - Create 2 Mountain Giant for Neutral Hostile at (Center of Evil Gate Area <gen>) facing Default building facing degrees
  • Unit - Create 12 Nelfamide for Neutral Hostile at (Random point in videno <gen>) facing Default building facing degrees
  • Unit - Create 6 Libertadores for Neutral Hostile at (Center of Evil Gate Area <gen>) facing Default building facing degrees
  • Wait 41.00 seconds
  • Unit - Create 33 Serpentino for Neutral Hostile at (Center of Evil Gate Area <gen>) facing Default building facing degrees
  • Unit - Create 4 Samaritan for Neutral Hostile at (Center of Evil Gate Area <gen>) facing Default building facing degrees
  • Unit - Create 1 Lich for Neutral Hostile at (Center of Evil Gate Area <gen>) facing Default building facing degrees
  • Trigger - Turn off (This trigger)
I know this is bad way to do waves,thats why i ask for help, cause i dont know how to optimize waves and clean leaks.

Thanks to ones who reply and help.
 
Status
Not open for further replies.
Top