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.
[03:57 am]
NudeRaider -- https://staredit.net/381600/ You have 5 minutes, then you can only edit your posts.
[04:05 pm]
NudeRaider -- DarkenedFantasies
DarkenedFantasies shouted: you eat lots of beans
:lol:
[11:30 am]
NudeRaider -- I would like 3000 minerals, please
[2026-4-16. : 7:32 pm]
Zoan -- I got $2000 bonus. I would like 2000 minerals, please
[2026-4-16. : 4:15 am]
DarkenedFantasies -- you eat lots of beans
[2026-4-16. : 3:46 am]
IskatuMesk -- how do i get gas
[2026-4-15. : 11:43 pm]
Moose -- you don't
[2026-4-15. : 10:06 pm]
Zoan -- how do i get minerals
[2026-4-14. : 11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
Please log in to shout.


Members Online: anoeth47