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.
[2026-6-04. : 3:42 am]
RIVE -- Hellooooo, Nurse
[2026-6-03. : 4:19 pm]
NudeRaider -- Hello World!
[2026-6-01. : 4:03 pm]
IskatuMesk -- no Hello World? No Hello . jpeg? Not even ddosing some government website? smh my head
[2026-5-31. : 10:02 pm]
Symmetry -- I was really just figuring out how to compile
[2026-5-31. : 10:02 pm]
Symmetry -- I didn't make it do anything
[2026-5-31. : 9:17 pm]
Ultraviolet -- hell yeah. did you have trouble making the button functional, or just haven't gotten there yet?
[2026-5-31. : 8:29 pm]
Symmetry -- I made the marine shoot lasers and gave the medic a nonfunctional button
[2026-5-31. : 8:07 pm]
Ultraviolet -- Symmetry
Symmetry shouted: I did my first EUD thing today. Feels like me finding arsenal at age 8 again
haha for sure. in some ways it's even more exciting because you can play EUD maps on regular battle.net, don't need to convince someone to download your mod to play with you. what did you do?
[2026-5-31. : 6:47 pm]
Symmetry -- I did my first EUD thing today. Feels like me finding arsenal at age 8 again
[2026-5-31. : 3:20 pm]
l)ark_ssj9kevin -- le reddit
Please log in to shout.


Members Online: JamaL, IskatuMesk