HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Will this leak?

06-24-2008, 05:28 PM#1
ronaldedkin
My map is currently in its beginning stages and I just made the trigger I will be using for its wave/spawns. (Its going to be somewhat like an AoS)

I'm not at my computer atm and can't access my WE so I'll put it in when I get home. From the top of my head it goes something like this.

Trigger:
Events
Time - Every 25.00 seconds of game time
Conditions
Actions
Unit - Create 2 Bandit for Player 11 (Dark Green) at (Center of Path 1a <gen>) facing 270.00 degrees
Unit Group - Add all units of (Last created unit group) to PathGroup1a
Unit - Create 2 Brigand for Player 11 (Dark Green) at (Center of Path 1a <gen>) facing 270.00 degrees
Unit Group - Add all units of (Last created unit group) to PathGroup1a
Unit Group - Pick every unit in PathGroup1a and do (Unit - Order (Picked unit) to Attack-Move To (Center of Path 1b <gen>))

Trigger:
Events
Unit - A unit enters Path 1b <gen>
Conditions
((Triggering unit) is in PathGroup1a) Equal to True
Actions
Unit Group - Remove (Triggering unit) from PathGroup1a
Unit Group - Add (Triggering unit) to PathGroup1b
Unit - Order (Triggering unit) to Attack-Move To (Center of Path 1c <gen>)

Trigger:
Events
Unit - A unit enters Path 1c <gen>
Conditions
((Triggering unit) is in PathGroup1b) Equal to True
Actions
Unit Group - Remove (Triggering unit) from PathGroup1b
Unit Group - Add (Triggering unit) to PathGroup1c
Unit - Order (Triggering unit) to Attack-Move To (Center of Path 1d <gen>)

If this will cause leaks, how can I fix it? And I will replace the above with the propper trigger when I get home.
06-24-2008, 05:32 PM#2
Anitarf
Quote:
Originally Posted by ronaldedkin
If this will cause leaks, how can I fix it?
Re-read the tutorial.
06-24-2008, 08:04 PM#3
Themerion
There are at least 2 tutorials at the tutorials section on how to clean up leaks with triggers/GUI. Start by reading them.

If you still have a problem after that, do like this:
  • In the Event - Condition - Action section, right click on your trigger .
  • Chose copy as text from the drop down menu.
  • At wc3campaigns (here), paste the text between [trigger] and [/trigger]-tags

Et volià....

trigger-tag:
Actions
Unit - Kill Unit (Last Created Unit)