Staredit Network > Forums > SC2 Assistance > Topic: how would i make a trigger that kills all
how would i make a trigger that kills all
Jul 27 2011, 6:30 pm
By: naipoo  

Jul 27 2011, 6:30 pm naipoo Post #1



how would i make a trigger that kills all the players that arent there
cuz i kinda deleted the map initialization trigger :blush:



None.

Jul 27 2011, 11:13 pm Roy Post #2

An artist's depiction of an Extended Unit Death

You can recreate the map initialization triggers by making a new map and copying over the trigger to your map, or you can recreate it yourself:
Melee Initialization
    Events
        Game - Map initialization
    Local Variables
    Conditions
    Actions
        Melee - Set melee starting resources for all players
        Melee - Create melee starting units for all players
        Melee - Start the melee AI for all computer players
        Melee - Set default melee options for all players


For manually killing all units from an inactive player, you can iterate over all players, and if that player is inactive, kill all units owned by that player. The action would look something like this for 8 players:
        General - Pick each integer from 1 to 8, and do (Actions)
            Actions
                General - If (Conditions) then do (Actions) else do (Actions)
                    If
                        ((Picked integer) is in (Active Players)) == false
                    Then
                        Unit Group - Pick each unit in (Any units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
                            Actions
                                Unit - Kill (Picked unit)
                    Else


Hope this helps!




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:28 am]
Ultraviolet -- sounds like Bound & Defend
[07:43 pm]
Symmetry -- If you take the reins you damn well be ready to ride
[2026-5-23. : 2:46 pm]
NudeRaider -- you wish
[2026-5-23. : 12:43 am]
IskatuMesk -- Ah, so Reindeer Breeding 3: BDSM edition.
[2026-5-22. : 12:45 am]
Moose -- tbh
[2026-5-20. : 8:27 pm]
Symmetry -- It's a bound map where you cross obstacles to earn units to defend your base
[2026-5-20. : 8:16 pm]
Symmetry -- No, the world isn't ready for that
[2026-5-20. : 5:11 pm]
Zoan -- Reindeer Breeding 3?
[2026-5-19. : 7:20 pm]
Symmetry -- I've started *another* map too. Feeling nostalgic.
[2026-5-19. : 7:17 pm]
Symmetry -- But people need constant access to my creations!
Please log in to shout.


Members Online: Dem0n, O)FaRTy1billion[MM], Sie_Sayoka