• 🏆 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!

[Trigger] Help patching leaks please

Status
Not open for further replies.
Level 5
Joined
Apr 26, 2009
Messages
92
Okay so i've heard about these leaks and how i should get rid of them so ive looked thru many tutorials and still don't get how/when to patch leaks so if you can help me with these few triggers :

First a trigger that I patched the point (I think i did it right) do i need to patch "tempunit" to?
  • Freezing
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Owner of (Attacked unit)) Equal to Player 11 (Dark Green)) or ((Owner of (Attacked unit)) Equal to Player 12 (Brown))
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Attacking unit)) Equal to Sleet Tower
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Random integer number between 1 and 100) Equal to 10
            • Then - Actions
              • Set tempunit = (Attacked unit)
              • Set freezepoint = (Position of tempunit)
              • Game - Display to (All players) the text: ((Name of (Owner of tempunit)) + ( has been frozen by + (Name of (Owner of (Attacking unit)))))
              • Unit - Move Raider 0044 <gen> instantly to freezepoint
              • Unit - Order Raider 0044 <gen> to Orc Raider - Ensnare tempunit
              • Unit - Reset ability cooldowns for Raider 0044 <gen>
              • Unit - Set mana of Raider 0044 <gen> to 100.00%
              • Trigger - Turn off (This trigger)
              • Wait 5.00 seconds
              • Unit - Remove Negative buffs from tempunit
              • Custom script: call RemoveLocation (udg_freezepoint)
              • Trigger - Turn on (This trigger)
            • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Attacking unit)) Equal to Frost Tower
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Random integer number between 1 and 20) Equal to 10
            • Then - Actions
              • Set tempunit = (Attacked unit)
              • Set freezepoint = (Position of tempunit)
              • Game - Display to (All players) the text: ((Name of (Owner of tempunit)) + ( has been frozen by + (Name of (Owner of (Attacking unit)))))
              • Unit - Move Raider 0044 <gen> instantly to freezepoint
              • Unit - Order Raider 0044 <gen> to Orc Raider - Ensnare tempunit
              • Unit - Reset ability cooldowns for Raider 0044 <gen>
              • Unit - Set mana of Raider 0044 <gen> to 100.00%
              • Trigger - Turn off (This trigger)
              • Wait 5.00 seconds
              • Unit - Remove Negative buffs from tempunit
              • Custom script: call RemoveLocation (udg_freezepoint)
              • Trigger - Turn on (This trigger)
            • Else - Actions
        • Else - Actions
Next. This trigger is repeated for 7 other players. It just changes the varible #s.

  • Base 1
    • Events
      • Player - Player 1 (Red) types a chat message containing -claim as An exact match
      • Player - Player 2 (Blue) types a chat message containing -claim as An exact match
      • Player - Player 3 (Teal) types a chat message containing -claim as An exact match
      • Player - Player 4 (Purple) types a chat message containing -claim as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -claim as An exact match
      • Player - Player 6 (Orange) types a chat message containing -claim as An exact match
      • Player - Player 7 (Green) types a chat message containing -claim as An exact match
      • Player - Player 8 (Pink) types a chat message containing -claim as An exact match
    • Conditions
      • Base1bool Equal to False
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering player) Equal to Player 1 (Red)
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (base11 <gen> contains pesred) Equal to True
                  • (base12 <gen> contains pesred) Equal to True
                  • (base13 <gen> contains pesred) Equal to True
            • Then - Actions
              • Set claimbase_1 = Player 1 (Red)
              • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base11 <gen>) for 2.00 seconds, using a Flashy ping of color (100.00%, 0.00%, 0.00%)
              • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base11 <gen>) for 2.00 seconds, using a Flashy ping of color (100.00%, 0.00%, 0.00%)
              • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base11 <gen>) for 2.00 seconds, using a Flashy ping of color (100.00%, 0.00%, 0.00%)
              • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base12 <gen>) for 2.00 seconds, using a Flashy ping of color (100.00%, 0.00%, 0.00%)
              • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base12 <gen>) for 2.00 seconds, using a Flashy ping of color (100.00%, 0.00%, 0.00%)
              • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base13 <gen>) for 2.00 seconds, using a Flashy ping of color (100.00%, 0.00%, 0.00%)
              • Set Base1bool = True
              • Game - Display to (All allies of Player 1 (Red)) the text: ((Name of (Triggering player)) + has claimed base one.)
              • Trigger - Turn off (This trigger)
            • Else - Actions
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Triggering player) Equal to Player 2 (Blue)
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Or - Any (Conditions) are true
                    • Conditions
                      • (base11 <gen> contains pes2) Equal to True
                      • (base12 <gen> contains pes2) Equal to True
                      • (base13 <gen> contains pes2) Equal to True
                • Then - Actions
                  • Set claimbase_1 = Player 2 (Blue)
                  • Set Base1bool = True
                  • Game - Display to (All allies of Player 1 (Red)) the text: ((Name of (Triggering player)) + has claimed base one.)
                  • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base11 <gen>) for 2.00 seconds, using a Flashy ping of color (0.00%, 0.00%, 100.00%)
                  • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base11 <gen>) for 2.00 seconds, using a Flashy ping of color (0.00%, 0.00%, 100.00%)
                  • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base11 <gen>) for 2.00 seconds, using a Flashy ping of color (0.00%, 0.00%, 100.00%)
                  • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base12 <gen>) for 2.00 seconds, using a Flashy ping of color (0.00%, 0.00%, 100.00%)
                  • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base12 <gen>) for 2.00 seconds, using a Flashy ping of color (0.00%, 0.00%, 100.00%)
                  • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base13 <gen>) for 2.00 seconds, using a Flashy ping of color (0.00%, 0.00%, 100.00%)
                  • Trigger - Turn off (This trigger)
                • Else - Actions
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Triggering player) Equal to Player 3 (Teal)
                • Then - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • Or - Any (Conditions) are true
                        • Conditions
                          • (base11 <gen> contains pes3) Equal to True
                          • (base12 <gen> contains pes3) Equal to True
                          • (base13 <gen> contains pes3) Equal to True
                    • Then - Actions
                      • Set claimbase_1 = Player 3 (Teal)
                      • Set Base1bool = True
                      • Game - Display to (All allies of Player 1 (Red)) the text: ((Name of (Triggering player)) + has claimed base one.)
                      • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base11 <gen>) for 2.00 seconds, using a Flashy ping of color (0.00%, 100.00%, 100.00%)
                      • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base11 <gen>) for 2.00 seconds, using a Flashy ping of color (0.00%, 100.00%, 100.00%)
                      • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base11 <gen>) for 2.00 seconds, using a Flashy ping of color (0.00%, 100.00%, 100.00%)
                      • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base12 <gen>) for 2.00 seconds, using a Flashy ping of color (0.00%, 100.00%, 100.00%)
                      • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base12 <gen>) for 2.00 seconds, using a Flashy ping of color (0.00%, 100.00%, 100.00%)
                      • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base13 <gen>) for 2.00 seconds, using a Flashy ping of color (0.00%, 100.00%, 100.00%)
                      • Trigger - Turn off (This trigger)
                    • Else - Actions
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Triggering player) Equal to Player 4 (Purple)
                    • Then - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • Or - Any (Conditions) are true
                            • Conditions
                              • (base11 <gen> contains pes4) Equal to True
                              • (base12 <gen> contains pes4) Equal to True
                              • (base13 <gen> contains pes4) Equal to True
                        • Then - Actions
                          • Set claimbase_1 = Player 4 (Purple)
                          • Set Base1bool = True
                          • Game - Display to (All allies of Player 1 (Red)) the text: ((Name of (Triggering player)) + has claimed base one.)
                          • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base11 <gen>) for 2.00 seconds, using a Flashy ping of color (50.00%, 0.00%, 50.00%)
                          • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base11 <gen>) for 2.00 seconds, using a Flashy ping of color (50.00%, 0.00%, 50.00%)
                          • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base11 <gen>) for 2.00 seconds, using a Flashy ping of color (50.00%, 0.00%, 50.00%)
                          • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base12 <gen>) for 2.00 seconds, using a Flashy ping of color (50.00%, 0.00%, 50.00%)
                          • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base12 <gen>) for 2.00 seconds, using a Flashy ping of color (50.00%, 0.00%, 50.00%)
                          • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base13 <gen>) for 2.00 seconds, using a Flashy ping of color (50.00%, 0.00%, 50.00%)
                          • Trigger - Turn off (This trigger)
                        • Else - Actions
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Triggering player) Equal to Player 5 (Yellow)
                        • Then - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • Or - Any (Conditions) are true
                                • Conditions
                                  • (base11 <gen> contains pes5) Equal to True
                                  • (base12 <gen> contains pes5) Equal to True
                                  • (base13 <gen> contains pes5) Equal to True
                            • Then - Actions
                              • Set claimbase_1 = Player 5 (Yellow)
                              • Set Base1bool = True
                              • Game - Display to (All allies of Player 1 (Red)) the text: ((Name of (Triggering player)) + has claimed base one.)
                              • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base11 <gen>) for 2.00 seconds, using a Flashy ping of color (100.00%, 100.00%, 0.00%)
                              • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base11 <gen>) for 2.00 seconds, using a Flashy ping of color (100.00%, 100.00%, 0.00%)
                              • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base11 <gen>) for 2.00 seconds, using a Flashy ping of color (100.00%, 100.00%, 0.00%)
                              • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base12 <gen>) for 2.00 seconds, using a Flashy ping of color (100.00%, 100.00%, 0.00%)
                              • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base12 <gen>) for 2.00 seconds, using a Flashy ping of color (100.00%, 100.00%, 0.00%)
                              • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base13 <gen>) for 2.00 seconds, using a Flashy ping of color (100.00%, 100.00%, 0.00%)
                              • Trigger - Turn off (This trigger)
                            • Else - Actions
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • (Triggering player) Equal to Player 6 (Orange)
                            • Then - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • Or - Any (Conditions) are true
                                    • Conditions
                                      • (base11 <gen> contains pes6) Equal to True
                                      • (base12 <gen> contains pes6) Equal to True
                                      • (base13 <gen> contains pes6) Equal to True
                                • Then - Actions
                                  • Set claimbase_1 = Player 6 (Orange)
                                  • Set Base1bool = True
                                  • Game - Display to (All allies of Player 1 (Red)) the text: ((Name of (Triggering player)) + has claimed base one.)
                                  • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base11 <gen>) for 2.00 seconds, using a Flashy ping of color (100.00%, 50.00%, 0.00%)
                                  • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base11 <gen>) for 2.00 seconds, using a Flashy ping of color (100.00%, 50.00%, 0.00%)
                                  • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base11 <gen>) for 2.00 seconds, using a Flashy ping of color (100.00%, 50.00%, 0.00%)
                                  • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base12 <gen>) for 2.00 seconds, using a Flashy ping of color (100.00%, 50.00%, 0.00%)
                                  • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base12 <gen>) for 2.00 seconds, using a Flashy ping of color (100.00%, 50.00%, 0.00%)
                                  • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base13 <gen>) for 2.00 seconds, using a Flashy ping of color (100.00%, 50.00%, 0.00%)
                                  • Trigger - Turn off (This trigger)
                                • Else - Actions
                            • Else - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • (Triggering player) Equal to Player 7 (Green)
                                • Then - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • Or - Any (Conditions) are true
                                        • Conditions
                                          • (base11 <gen> contains pes7) Equal to True
                                          • (base12 <gen> contains pes7) Equal to True
                                          • (base13 <gen> contains pes7) Equal to True
                                    • Then - Actions
                                      • Set claimbase_1 = Player 7 (Green)
                                      • Set Base1bool = True
                                      • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base11 <gen>) for 2.00 seconds, using a Flashy ping of color (0.00%, 100.00%, 0.00%)
                                      • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base11 <gen>) for 2.00 seconds, using a Flashy ping of color (0.00%, 100.00%, 0.00%)
                                      • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base11 <gen>) for 2.00 seconds, using a Flashy ping of color (0.00%, 100.00%, 0.00%)
                                      • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base12 <gen>) for 2.00 seconds, using a Flashy ping of color (0.00%, 100.00%, 0.00%)
                                      • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base12 <gen>) for 2.00 seconds, using a Flashy ping of color (0.00%, 100.00%, 0.00%)
                                      • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base13 <gen>) for 2.00 seconds, using a Flashy ping of color (0.00%, 100.00%, 0.00%)
                                      • Game - Display to (All allies of Player 1 (Red)) the text: ((Name of (Triggering player)) + has claimed base one.)
                                      • Trigger - Turn off (This trigger)
                                    • Else - Actions
                                • Else - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • (Triggering player) Equal to Player 8 (Pink)
                                    • Then - Actions
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • If - Conditions
                                          • Or - Any (Conditions) are true
                                            • Conditions
                                              • (base11 <gen> contains pes8) Equal to True
                                              • (base12 <gen> contains pes8) Equal to True
                                              • (base13 <gen> contains pes8) Equal to True
                                        • Then - Actions
                                          • Set claimbase_1 = Player 8 (Pink)
                                          • Set Base1bool = True
                                          • Game - Display to (All allies of Player 1 (Red)) the text: ((Name of (Triggering player)) + has claimed base one.)
                                          • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base11 <gen>) for 2.00 seconds, using a Flashy ping of color (100.00%, 0.00%, 75.00%)
                                          • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base11 <gen>) for 2.00 seconds, using a Flashy ping of color (100.00%, 0.00%, 75.00%)
                                          • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base11 <gen>) for 2.00 seconds, using a Flashy ping of color (100.00%, 0.00%, 75.00%)
                                          • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base12 <gen>) for 2.00 seconds, using a Flashy ping of color (100.00%, 0.00%, 75.00%)
                                          • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base12 <gen>) for 2.00 seconds, using a Flashy ping of color (100.00%, 0.00%, 75.00%)
                                          • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at (Random point in base13 <gen>) for 2.00 seconds, using a Flashy ping of color (100.00%, 0.00%, 75.00%)
                                          • Trigger - Turn off (This trigger)
                                        • Else - Actions
                                    • Else - Actions
Lastly this is a section of a trigger. It is repeated for the 7 other played and then the whole thing is repeated 5 more times for "bases"

  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • Base1bool Equal to True
    • Then - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • claimbase_1 Equal to Player 1 (Red)
        • Then - Actions
          • Unit Group - Add all units of (Units in base11 <gen> owned by Player 2 (Blue)) to oust1
          • Unit Group - Add all units of (Units in base11 <gen> owned by Player 3 (Teal)) to oust1
          • Unit Group - Add all units of (Units in base11 <gen> owned by Player 4 (Purple)) to oust1
          • Unit Group - Add all units of (Units in base11 <gen> owned by Player 5 (Yellow)) to oust1
          • Unit Group - Add all units of (Units in base11 <gen> owned by Player 6 (Orange)) to oust1
          • Unit Group - Add all units of (Units in base11 <gen> owned by Player 7 (Green)) to oust1
          • Unit Group - Add all units of (Units in base11 <gen> owned by Player 8 (Pink)) to oust1
          • Unit Group - Add all units of (Units in base12 <gen> owned by Player 2 (Blue)) to oust1
          • Unit Group - Add all units of (Units in base12 <gen> owned by Player 3 (Teal)) to oust1
          • Unit Group - Add all units of (Units in base12 <gen> owned by Player 4 (Purple)) to oust1
          • Unit Group - Add all units of (Units in base12 <gen> owned by Player 5 (Yellow)) to oust1
          • Unit Group - Add all units of (Units in base12 <gen> owned by Player 6 (Orange)) to oust1
          • Unit Group - Add all units of (Units in base12 <gen> owned by Player 7 (Green)) to oust1
          • Unit Group - Add all units of (Units in base12 <gen> owned by Player 8 (Pink)) to oust1
          • Unit Group - Add all units of (Units in base13 <gen> owned by Player 2 (Blue)) to oust1
          • Unit Group - Add all units of (Units in base13 <gen> owned by Player 3 (Teal)) to oust1
          • Unit Group - Add all units of (Units in base13 <gen> owned by Player 4 (Purple)) to oust1
          • Unit Group - Add all units of (Units in base13 <gen> owned by Player 5 (Yellow)) to oust1
          • Unit Group - Add all units of (Units in base13 <gen> owned by Player 6 (Orange)) to oust1
          • Unit Group - Add all units of (Units in base13 <gen> owned by Player 7 (Green)) to oust1
          • Unit Group - Add all units of (Units in base13 <gen> owned by Player 8 (Pink)) to oust1
          • Unit Group - Remove all units of (Units of type Peasant) from oust1
          • Unit Group - Pick every unit in oust1 and do (Unit - Kill (Picked unit))
          • Unit Group - Add all units of (Units in base11 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Matching unit) Not equal to pesred))) to pesoust1
          • Unit Group - Add all units of (Units in base12 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Matching unit) Not equal to pesred))) to pesoust1
          • Unit Group - Add all units of (Units in base13 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Matching unit) Not equal to pesred))) to pesoust1
          • Unit Group - Pick every unit in pesoust1 and do (Unit - Move (Picked unit) instantly to (Center of (Playable map area)))
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • claimbase_1 Equal to Player 2 (Blue)
            • Then - Actions
              • Unit Group - Add all units of (Units in base11 <gen> owned by Player 1 (Red)) to oust1
              • Unit Group - Add all units of (Units in base11 <gen> owned by Player 3 (Teal)) to oust1
              • Unit Group - Add all units of (Units in base11 <gen> owned by Player 4 (Purple)) to oust1
              • Unit Group - Add all units of (Units in base11 <gen> owned by Player 5 (Yellow)) to oust1
              • Unit Group - Add all units of (Units in base11 <gen> owned by Player 6 (Orange)) to oust1
              • Unit Group - Add all units of (Units in base11 <gen> owned by Player 7 (Green)) to oust1
              • Unit Group - Add all units of (Units in base11 <gen> owned by Player 8 (Pink)) to oust1
              • Unit Group - Add all units of (Units in base12 <gen> owned by Player 1 (Red)) to oust1
              • Unit Group - Add all units of (Units in base12 <gen> owned by Player 3 (Teal)) to oust1
              • Unit Group - Add all units of (Units in base12 <gen> owned by Player 4 (Purple)) to oust1
              • Unit Group - Add all units of (Units in base12 <gen> owned by Player 5 (Yellow)) to oust1
              • Unit Group - Add all units of (Units in base12 <gen> owned by Player 6 (Orange)) to oust1
              • Unit Group - Add all units of (Units in base12 <gen> owned by Player 7 (Green)) to oust1
              • Unit Group - Add all units of (Units in base12 <gen> owned by Player 8 (Pink)) to oust1
              • Unit Group - Add all units of (Units in base13 <gen> owned by Player 1 (Red)) to oust1
              • Unit Group - Add all units of (Units in base13 <gen> owned by Player 3 (Teal)) to oust1
              • Unit Group - Add all units of (Units in base13 <gen> owned by Player 4 (Purple)) to oust1
              • Unit Group - Add all units of (Units in base13 <gen> owned by Player 5 (Yellow)) to oust1
              • Unit Group - Add all units of (Units in base13 <gen> owned by Player 6 (Orange)) to oust1
              • Unit Group - Add all units of (Units in base13 <gen> owned by Player 7 (Green)) to oust1
              • Unit Group - Add all units of (Units in base13 <gen> owned by Player 8 (Pink)) to oust1
              • Unit Group - Remove all units of (Units of type Peasant) from oust1
              • Unit Group - Pick every unit in oust1 and do (Unit - Kill (Picked unit))
              • Unit Group - Add all units of (Units in base11 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Matching unit) Not equal to pes2))) to pesoust1
              • Unit Group - Add all units of (Units in base12 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Matching unit) Not equal to pes2))) to pesoust1
              • Unit Group - Add all units of (Units in base13 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Matching unit) Not equal to pes2))) to pesoust1
              • Unit Group - Pick every unit in pesoust1 and do (Unit - Move (Picked unit) instantly to (Center of (Playable map area)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • claimbase_1 Equal to Player 3 (Teal)
                • Then - Actions
                  • Unit Group - Add all units of (Units in base11 <gen> owned by Player 2 (Blue)) to oust1
                  • Unit Group - Add all units of (Units in base11 <gen> owned by Player 1 (Red)) to oust1
                  • Unit Group - Add all units of (Units in base11 <gen> owned by Player 4 (Purple)) to oust1
                  • Unit Group - Add all units of (Units in base11 <gen> owned by Player 5 (Yellow)) to oust1
                  • Unit Group - Add all units of (Units in base11 <gen> owned by Player 6 (Orange)) to oust1
                  • Unit Group - Add all units of (Units in base11 <gen> owned by Player 7 (Green)) to oust1
                  • Unit Group - Add all units of (Units in base11 <gen> owned by Player 8 (Pink)) to oust1
                  • Unit Group - Add all units of (Units in base12 <gen> owned by Player 2 (Blue)) to oust1
                  • Unit Group - Add all units of (Units in base12 <gen> owned by Player 1 (Red)) to oust1
                  • Unit Group - Add all units of (Units in base12 <gen> owned by Player 4 (Purple)) to oust1
                  • Unit Group - Add all units of (Units in base12 <gen> owned by Player 5 (Yellow)) to oust1
                  • Unit Group - Add all units of (Units in base12 <gen> owned by Player 6 (Orange)) to oust1
                  • Unit Group - Add all units of (Units in base12 <gen> owned by Player 7 (Green)) to oust1
                  • Unit Group - Add all units of (Units in base12 <gen> owned by Player 8 (Pink)) to oust1
                  • Unit Group - Add all units of (Units in base13 <gen> owned by Player 2 (Blue)) to oust1
                  • Unit Group - Add all units of (Units in base13 <gen> owned by Player 1 (Red)) to oust1
                  • Unit Group - Add all units of (Units in base13 <gen> owned by Player 4 (Purple)) to oust1
                  • Unit Group - Add all units of (Units in base13 <gen> owned by Player 5 (Yellow)) to oust1
                  • Unit Group - Add all units of (Units in base13 <gen> owned by Player 6 (Orange)) to oust1
                  • Unit Group - Add all units of (Units in base13 <gen> owned by Player 7 (Green)) to oust1
                  • Unit Group - Add all units of (Units in base13 <gen> owned by Player 8 (Pink)) to oust1
                  • Unit Group - Remove all units of (Units of type Peasant) from oust1
                  • Unit Group - Pick every unit in oust1 and do (Unit - Kill (Picked unit))
                  • Unit Group - Add all units of (Units in base11 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Matching unit) Not equal to pes3))) to pesoust1
                  • Unit Group - Add all units of (Units in base12 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Matching unit) Not equal to pes3))) to pesoust1
                  • Unit Group - Add all units of (Units in base13 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Matching unit) Not equal to pes3))) to pesoust1
                  • Unit Group - Pick every unit in pesoust1 and do (Unit - Move (Picked unit) instantly to (Center of (Playable map area)))
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • claimbase_1 Equal to Player 4 (Purple)
                    • Then - Actions
                      • Unit Group - Add all units of (Units in base11 <gen> owned by Player 1 (Red)) to oust1
                      • Unit Group - Add all units of (Units in base11 <gen> owned by Player 3 (Teal)) to oust1
                      • Unit Group - Add all units of (Units in base11 <gen> owned by Player 2 (Blue)) to oust1
                      • Unit Group - Add all units of (Units in base11 <gen> owned by Player 5 (Yellow)) to oust1
                      • Unit Group - Add all units of (Units in base11 <gen> owned by Player 6 (Orange)) to oust1
                      • Unit Group - Add all units of (Units in base11 <gen> owned by Player 7 (Green)) to oust1
                      • Unit Group - Add all units of (Units in base11 <gen> owned by Player 8 (Pink)) to oust1
                      • Unit Group - Add all units of (Units in base12 <gen> owned by Player 1 (Red)) to oust1
                      • Unit Group - Add all units of (Units in base12 <gen> owned by Player 3 (Teal)) to oust1
                      • Unit Group - Add all units of (Units in base12 <gen> owned by Player 2 (Blue)) to oust1
                      • Unit Group - Add all units of (Units in base12 <gen> owned by Player 5 (Yellow)) to oust1
                      • Unit Group - Add all units of (Units in base12 <gen> owned by Player 6 (Orange)) to oust1
                      • Unit Group - Add all units of (Units in base12 <gen> owned by Player 7 (Green)) to oust1
                      • Unit Group - Add all units of (Units in base12 <gen> owned by Player 8 (Pink)) to oust1
                      • Unit Group - Add all units of (Units in base13 <gen> owned by Player 1 (Red)) to oust1
                      • Unit Group - Add all units of (Units in base13 <gen> owned by Player 3 (Teal)) to oust1
                      • Unit Group - Add all units of (Units in base13 <gen> owned by Player 2 (Blue)) to oust1
                      • Unit Group - Add all units of (Units in base13 <gen> owned by Player 5 (Yellow)) to oust1
                      • Unit Group - Add all units of (Units in base13 <gen> owned by Player 6 (Orange)) to oust1
                      • Unit Group - Add all units of (Units in base13 <gen> owned by Player 7 (Green)) to oust1
                      • Unit Group - Add all units of (Units in base13 <gen> owned by Player 8 (Pink)) to oust1
                      • Unit Group - Remove all units of (Units of type Peasant) from oust1
                      • Unit Group - Pick every unit in oust1 and do (Unit - Kill (Picked unit))
                      • Unit Group - Add all units of (Units in base11 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Matching unit) Not equal to pes4))) to pesoust1
                      • Unit Group - Add all units of (Units in base12 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Matching unit) Not equal to pes4))) to pesoust1
                      • Unit Group - Add all units of (Units in base13 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Matching unit) Not equal to pes4))) to pesoust1
                      • Unit Group - Pick every unit in pesoust1 and do (Unit - Move (Picked unit) instantly to (Center of (Playable map area)))
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • claimbase_1 Equal to Player 5 (Yellow)
                        • Then - Actions
                          • Unit Group - Add all units of (Units in base11 <gen> owned by Player 1 (Red)) to oust1
                          • Unit Group - Add all units of (Units in base11 <gen> owned by Player 3 (Teal)) to oust1
                          • Unit Group - Add all units of (Units in base11 <gen> owned by Player 2 (Blue)) to oust1
                          • Unit Group - Add all units of (Units in base11 <gen> owned by Player 4 (Purple)) to oust1
                          • Unit Group - Add all units of (Units in base11 <gen> owned by Player 6 (Orange)) to oust1
                          • Unit Group - Add all units of (Units in base11 <gen> owned by Player 7 (Green)) to oust1
                          • Unit Group - Add all units of (Units in base11 <gen> owned by Player 8 (Pink)) to oust1
                          • Unit Group - Add all units of (Units in base12 <gen> owned by Player 1 (Red)) to oust1
                          • Unit Group - Add all units of (Units in base12 <gen> owned by Player 3 (Teal)) to oust1
                          • Unit Group - Add all units of (Units in base12 <gen> owned by Player 2 (Blue)) to oust1
                          • Unit Group - Add all units of (Units in base12 <gen> owned by Player 4 (Purple)) to oust1
                          • Unit Group - Add all units of (Units in base12 <gen> owned by Player 6 (Orange)) to oust1
                          • Unit Group - Add all units of (Units in base12 <gen> owned by Player 7 (Green)) to oust1
                          • Unit Group - Add all units of (Units in base12 <gen> owned by Player 8 (Pink)) to oust1
                          • Unit Group - Add all units of (Units in base13 <gen> owned by Player 1 (Red)) to oust1
                          • Unit Group - Add all units of (Units in base13 <gen> owned by Player 3 (Teal)) to oust1
                          • Unit Group - Add all units of (Units in base13 <gen> owned by Player 2 (Blue)) to oust1
                          • Unit Group - Add all units of (Units in base13 <gen> owned by Player 4 (Purple)) to oust1
                          • Unit Group - Add all units of (Units in base13 <gen> owned by Player 6 (Orange)) to oust1
                          • Unit Group - Add all units of (Units in base13 <gen> owned by Player 7 (Green)) to oust1
                          • Unit Group - Add all units of (Units in base13 <gen> owned by Player 8 (Pink)) to oust1
                          • Unit Group - Remove all units of (Units of type Peasant) from oust1
                          • Unit Group - Pick every unit in oust1 and do (Unit - Kill (Picked unit))
                          • Unit Group - Add all units of (Units in base11 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Matching unit) Not equal to pes5))) to pesoust1
                          • Unit Group - Add all units of (Units in base12 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Matching unit) Not equal to pes5))) to pesoust1
                          • Unit Group - Add all units of (Units in base13 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Matching unit) Not equal to pes5))) to pesoust1
                          • Unit Group - Pick every unit in pesoust1 and do (Unit - Move (Picked unit) instantly to (Center of (Playable map area)))
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • claimbase_1 Equal to Player 6 (Orange)
                            • Then - Actions
                              • Unit Group - Add all units of (Units in base11 <gen> owned by Player 1 (Red)) to oust1
                              • Unit Group - Add all units of (Units in base11 <gen> owned by Player 3 (Teal)) to oust1
                              • Unit Group - Add all units of (Units in base11 <gen> owned by Player 2 (Blue)) to oust1
                              • Unit Group - Add all units of (Units in base11 <gen> owned by Player 5 (Yellow)) to oust1
                              • Unit Group - Add all units of (Units in base11 <gen> owned by Player 4 (Purple)) to oust1
                              • Unit Group - Add all units of (Units in base11 <gen> owned by Player 7 (Green)) to oust1
                              • Unit Group - Add all units of (Units in base11 <gen> owned by Player 8 (Pink)) to oust1
                              • Unit Group - Add all units of (Units in base12 <gen> owned by Player 1 (Red)) to oust1
                              • Unit Group - Add all units of (Units in base12 <gen> owned by Player 3 (Teal)) to oust1
                              • Unit Group - Add all units of (Units in base12 <gen> owned by Player 2 (Blue)) to oust1
                              • Unit Group - Add all units of (Units in base12 <gen> owned by Player 5 (Yellow)) to oust1
                              • Unit Group - Add all units of (Units in base12 <gen> owned by Player 4 (Purple)) to oust1
                              • Unit Group - Add all units of (Units in base12 <gen> owned by Player 7 (Green)) to oust1
                              • Unit Group - Add all units of (Units in base12 <gen> owned by Player 8 (Pink)) to oust1
                              • Unit Group - Add all units of (Units in base13 <gen> owned by Player 1 (Red)) to oust1
                              • Unit Group - Add all units of (Units in base13 <gen> owned by Player 3 (Teal)) to oust1
                              • Unit Group - Add all units of (Units in base13 <gen> owned by Player 2 (Blue)) to oust1
                              • Unit Group - Add all units of (Units in base13 <gen> owned by Player 5 (Yellow)) to oust1
                              • Unit Group - Add all units of (Units in base13 <gen> owned by Player 4 (Purple)) to oust1
                              • Unit Group - Add all units of (Units in base13 <gen> owned by Player 7 (Green)) to oust1
                              • Unit Group - Add all units of (Units in base13 <gen> owned by Player 8 (Pink)) to oust1
                              • Unit Group - Remove all units of (Units of type Peasant) from oust1
                              • Unit Group - Pick every unit in oust1 and do (Unit - Kill (Picked unit))
                              • Unit Group - Add all units of (Units in base11 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Matching unit) Not equal to pes6))) to pesoust1
                              • Unit Group - Add all units of (Units in base12 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Matching unit) Not equal to pes6))) to pesoust1
                              • Unit Group - Add all units of (Units in base13 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Matching unit) Not equal to pes6))) to pesoust1
                              • Unit Group - Pick every unit in pesoust1 and do (Unit - Move (Picked unit) instantly to (Center of (Playable map area)))
                            • Else - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • claimbase_1 Equal to Player 7 (Green)
                                • Then - Actions
                                  • Unit Group - Add all units of (Units in base11 <gen> owned by Player 1 (Red)) to oust1
                                  • Unit Group - Add all units of (Units in base11 <gen> owned by Player 3 (Teal)) to oust1
                                  • Unit Group - Add all units of (Units in base11 <gen> owned by Player 2 (Blue)) to oust1
                                  • Unit Group - Add all units of (Units in base11 <gen> owned by Player 5 (Yellow)) to oust1
                                  • Unit Group - Add all units of (Units in base11 <gen> owned by Player 6 (Orange)) to oust1
                                  • Unit Group - Add all units of (Units in base11 <gen> owned by Player 4 (Purple)) to oust1
                                  • Unit Group - Add all units of (Units in base11 <gen> owned by Player 8 (Pink)) to oust1
                                  • Unit Group - Add all units of (Units in base12 <gen> owned by Player 1 (Red)) to oust1
                                  • Unit Group - Add all units of (Units in base12 <gen> owned by Player 3 (Teal)) to oust1
                                  • Unit Group - Add all units of (Units in base12 <gen> owned by Player 2 (Blue)) to oust1
                                  • Unit Group - Add all units of (Units in base12 <gen> owned by Player 5 (Yellow)) to oust1
                                  • Unit Group - Add all units of (Units in base12 <gen> owned by Player 6 (Orange)) to oust1
                                  • Unit Group - Add all units of (Units in base12 <gen> owned by Player 4 (Purple)) to oust1
                                  • Unit Group - Add all units of (Units in base12 <gen> owned by Player 8 (Pink)) to oust1
                                  • Unit Group - Add all units of (Units in base13 <gen> owned by Player 1 (Red)) to oust1
                                  • Unit Group - Add all units of (Units in base13 <gen> owned by Player 3 (Teal)) to oust1
                                  • Unit Group - Add all units of (Units in base13 <gen> owned by Player 2 (Blue)) to oust1
                                  • Unit Group - Add all units of (Units in base13 <gen> owned by Player 5 (Yellow)) to oust1
                                  • Unit Group - Add all units of (Units in base13 <gen> owned by Player 6 (Orange)) to oust1
                                  • Unit Group - Add all units of (Units in base13 <gen> owned by Player 4 (Purple)) to oust1
                                  • Unit Group - Add all units of (Units in base13 <gen> owned by Player 8 (Pink)) to oust1
                                  • Unit Group - Remove all units of (Units of type Peasant) from oust1
                                  • Unit Group - Pick every unit in oust1 and do (Unit - Kill (Picked unit))
                                  • Unit Group - Add all units of (Units in base11 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Matching unit) Not equal to pes7))) to pesoust1
                                  • Unit Group - Add all units of (Units in base12 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Matching unit) Not equal to pes7))) to pesoust1
                                  • Unit Group - Add all units of (Units in base13 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Matching unit) Not equal to pes7))) to pesoust1
                                  • Unit Group - Pick every unit in pesoust1 and do (Unit - Move (Picked unit) instantly to (Center of (Playable map area)))
                                • Else - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • claimbase_1 Equal to Player 8 (Pink)
                                    • Then - Actions
                                      • Unit Group - Add all units of (Units in base11 <gen> owned by Player 1 (Red)) to oust1
                                      • Unit Group - Add all units of (Units in base11 <gen> owned by Player 3 (Teal)) to oust1
                                      • Unit Group - Add all units of (Units in base11 <gen> owned by Player 2 (Blue)) to oust1
                                      • Unit Group - Add all units of (Units in base11 <gen> owned by Player 5 (Yellow)) to oust1
                                      • Unit Group - Add all units of (Units in base11 <gen> owned by Player 6 (Orange)) to oust1
                                      • Unit Group - Add all units of (Units in base11 <gen> owned by Player 7 (Green)) to oust1
                                      • Unit Group - Add all units of (Units in base11 <gen> owned by Player 4 (Purple)) to oust1
                                      • Unit Group - Add all units of (Units in base12 <gen> owned by Player 1 (Red)) to oust1
                                      • Unit Group - Add all units of (Units in base12 <gen> owned by Player 3 (Teal)) to oust1
                                      • Unit Group - Add all units of (Units in base12 <gen> owned by Player 2 (Blue)) to oust1
                                      • Unit Group - Add all units of (Units in base12 <gen> owned by Player 5 (Yellow)) to oust1
                                      • Unit Group - Add all units of (Units in base12 <gen> owned by Player 6 (Orange)) to oust1
                                      • Unit Group - Add all units of (Units in base12 <gen> owned by Player 7 (Green)) to oust1
                                      • Unit Group - Add all units of (Units in base12 <gen> owned by Player 4 (Purple)) to oust1
                                      • Unit Group - Add all units of (Units in base13 <gen> owned by Player 1 (Red)) to oust1
                                      • Unit Group - Add all units of (Units in base13 <gen> owned by Player 3 (Teal)) to oust1
                                      • Unit Group - Add all units of (Units in base13 <gen> owned by Player 2 (Blue)) to oust1
                                      • Unit Group - Add all units of (Units in base13 <gen> owned by Player 5 (Yellow)) to oust1
                                      • Unit Group - Add all units of (Units in base13 <gen> owned by Player 6 (Orange)) to oust1
                                      • Unit Group - Add all units of (Units in base13 <gen> owned by Player 7 (Green)) to oust1
                                      • Unit Group - Add all units of (Units in base13 <gen> owned by Player 4 (Purple)) to oust1
                                      • Unit Group - Remove all units of (Units of type Peasant) from oust1
                                      • Unit Group - Pick every unit in oust1 and do (Unit - Kill (Picked unit))
                                      • Unit Group - Add all units of (Units in base11 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Matching unit) Not equal to pes8))) to pesoust1
                                      • Unit Group - Add all units of (Units in base12 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Matching unit) Not equal to pes8))) to pesoust1
                                      • Unit Group - Add all units of (Units in base13 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Matching unit) Not equal to pes8))) to pesoust1
                                      • Unit Group - Pick every unit in pesoust1 and do (Unit - Move (Picked unit) instantly to (Center of (Playable map area)))
                                    • Else - Actions
    • Else - Actions
 
Last edited:
Level 13
Joined
Jun 22, 2004
Messages
783
For your first question of code.
Make sure you remove your freezepoint after you have used it, don't wait 5 seconds, simple caused by the fact that if that trigger runs within 5 seconds again, not be able to remove your old saved point, so after
Unit - Move Raider 0044 <gen> instantly to freezepoint
remove the point with the call action.

For your second chunk of code, you need to save your random point in base11 <gen>, and remove it after the last pint of that if/then/else code.

for your last chunk of code, you are leaking a whole lot of things, both groups and points, your need to save those points in the regions you add units in, example units in base12/13 etc, and when you pick every unit in a group, you need to make a tempgroup for oust one, example tempgroup = oust1 and remove it after you made the pick action.
 
Level 5
Joined
Apr 26, 2009
Messages
92
As i said before i dont really get leaks, could you show me how to do the things mentioned above (second two i got the first)?
 
Last edited:
Level 13
Joined
Mar 4, 2009
Messages
1,156
learn more about triggering...read some tutorials

you didn't even learn how to use

pick ever player and do actions

for each integer from 1 to 10 do actions ....

BTW,second and third trigger can be 10 times shorter -.-

and learn ho to clear leaks

learn to clear position,player group and unit group leaks
 
Level 5
Joined
Apr 26, 2009
Messages
92
Your soooo helpful...+rep all the way -.-

For the second trigger will that patch the point leaks?

  • Then - Actions
    • Set claimbase_1 = Player 1 (Red)
    • Set randompoint = (Random point in base11 <gen>)
    • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at randompoint for 2.00 seconds, using a Flashy ping of color (100.00%, 0.00%, 0.00%)
    • Custom script: call RemoveLocation (udg_randompoint)
    • Set randompoint = (Random point in base11 <gen>)
    • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at randompoint for 2.00 seconds, using a Flashy ping of color (100.00%, 0.00%, 0.00%)
    • Custom script: call RemoveLocation (udg_randompoint)
    • Set randompoint = (Random point in base11 <gen>)
    • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at randompoint for 2.00 seconds, using a Flashy ping of color (100.00%, 0.00%, 0.00%)
    • Custom script: call RemoveLocation (udg_randompoint)
    • Set randompoint = (Random point in base12 <gen>)
    • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at randompoint for 2.00 seconds, using a Flashy ping of color (100.00%, 0.00%, 0.00%)
    • Custom script: call RemoveLocation (udg_randompoint)
    • Set randompoint = (Random point in base12 <gen>)
    • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at randompoint for 2.00 seconds, using a Flashy ping of color (100.00%, 0.00%, 0.00%)
    • Custom script: call RemoveLocation (udg_randompoint)
    • Set randompoint = (Random point in base13 <gen>)
    • Cinematic - Ping minimap for (All allies of Player 1 (Red)) at randompoint for 2.00 seconds, using a Flashy ping of color (100.00%, 0.00%, 0.00%)
    • Custom script: call RemoveLocation (udg_randompoint)
    • Set Base1bool = True
    • Game - Display to (All allies of Player 1 (Red)) the text: ((Name of (Triggering player)) + has claimed base one.)
    • Trigger - Turn off (This trigger)
 
Level 5
Joined
Apr 26, 2009
Messages
92
May I ask you why you want to ping 3 random locations in that region?

I just want to be like "this area is thiers" and i feel that one small ping is too little.

And how about this patch, will this help?

  • Then - Actions
    • Unit Group - Add all units of (Units in base11 <gen>) to oust1
    • Unit Group - Add all units of (Units in base12 <gen>) to oust1
    • Unit Group - Add all units of (Units in base13 <gen>) to oust1
    • Unit Group - Remove all units of (Units owned by Player 1 (Red)) from oust1
    • Unit Group - Remove all units of (Units owned by Player 11 (Dark Green)) from oust1
    • Unit Group - Remove all units of (Units owned by Player 12 (Brown)) from oust1
    • Unit Group - Remove all units of (Units of type Peasant) from oust1
    • Unit Group - Pick every unit in oust1 and do (Unit - Kill (Picked unit))
    • Custom script: call DestroyGroup (udg_oust1)
    • Unit Group - Add all units of (Units in base11 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Matching unit) Not equal to pesred))) to pesoust1
    • Unit Group - Add all units of (Units in base12 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Matching unit) Not equal to pesred))) to pesoust1
    • Unit Group - Add all units of (Units in base13 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Matching unit) Not equal to pesred))) to pesoust1
    • Unit Group - Pick every unit in pesoust1 and do (Unit - Move (Picked unit) instantly to (Center of (Playable map area)))
    • Custom script: call DestroyGroup (udg_pesoust1)
 
Level 5
Joined
Apr 26, 2009
Messages
92
(Units in base11 <gen>) is a group that leaks (it need to be stored and removed).

(Units owned by Player 1 (Red)) leaks as well.

like this :bored: ?

  • Then - Actions
    • Set tempgroup = (Units in base11 <gen> matching (((Unit-type of (Matching unit)) Not equal to Peasant) and (((Owner of (Matching unit)) Not equal to Player 11 (Dark Green)) or ((Owner of (Matching unit)) Not equal to Player 12 (Brown)))))
    • Unit Group - Add all units of tempgroup to oust1
    • Custom script: call DestroyGroup (udg_tempgroup)
    • Set tempgroup = (Units in base12 <gen> matching (((Unit-type of (Matching unit)) Not equal to Peasant) and (((Owner of (Matching unit)) Not equal to Player 11 (Dark Green)) or ((Owner of (Matching unit)) Not equal to Player 12 (Brown)))))
    • Unit Group - Add all units of tempgroup to oust1
    • Custom script: call DestroyGroup (udg_tempgroup)
    • Set tempgroup = (Units in base13 <gen> matching (((Unit-type of (Matching unit)) Not equal to Peasant) and (((Owner of (Matching unit)) Not equal to Player 11 (Dark Green)) or ((Owner of (Matching unit)) Not equal to Player 12 (Brown)))))
    • Unit Group - Add all units of tempgroup to oust1
    • Custom script: call DestroyGroup (udg_tempgroup)
    • Set tempgroup = (Units owned by Player 1 (Red))
    • Unit Group - Remove all units of tempgroup from oust1
    • Custom script: call DestroyGroup (udg_tempgroup)
    • Unit Group - Pick every unit in oust1 and do (Unit - Kill (Picked unit))
    • Custom script: call DestroyGroup (udg_oust1)
    • Set tempgroup = (Units in base11 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Owner of (Matching unit)) Not equal to (Triggering player))))
    • Unit Group - Add all units of tempgroup to pesoust1
    • Custom script: call DestroyGroup (udg_tempgroup)
    • Set tempgroup = (Units in base12 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Owner of (Matching unit)) Not equal to (Triggering player))))
    • Unit Group - Add all units of tempgroup to pesoust1
    • Custom script: call DestroyGroup (udg_tempgroup)
    • Set tempgroup = (Units in base13 <gen> matching (((Unit-type of (Matching unit)) Equal to Peasant) and ((Owner of (Matching unit)) Not equal to (Triggering player))))
    • Unit Group - Add all units of tempgroup to pesoust1
    • Custom script: call DestroyGroup (udg_tempgroup)
    • Set randompoint = (Center of (Playable map area))
    • Unit Group - Pick every unit in pesoust1 and do (Unit - Move (Picked unit) instantly to (Center of (Playable map area)))
    • Custom script: call RemoveLocation (udg_randompoint)
    • Custom script: call DestroyGroup (udg_pesoust1)
I was reading old posts and is it better to use GroupClear() then DestoryGroup()?
 
Status
Not open for further replies.
Top