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.
[08:43 am]
TheHappy115 -- Yea, thats the issue. Thanks. It would also explain why my deleted map couldn't get updated. Updated version reduced collision on units (only thing added) since was dodging game (players collide with each other)
[05:26 am]
Ultraviolet -- If so, I'd just focus on getting them on scmscx.com and then you can link to that in the showcase thread for your maps
[05:25 am]
Ultraviolet -- I can't upload my EUD maps, I think the DLDB has some issue with handling them. Are you trying to upload EUD maps?
[02:06 am]
TheHappy115 -- Its been awhile but ever since I requested one of the Maps I posted to be deleted since I couldn't delete it myself (or update it), I haven't been able to upload any more maps. Any reason for that?
[2024-5-26. : 7:14 pm]
Kyradax -- Hi
[2024-5-26. : 5:05 pm]
O)FaRTy1billion[MM] -- :wob:
[2024-5-25. : 9:22 am]
Zycorax -- :wob:
[2024-5-23. : 3:50 pm]
Ultraviolet -- :wob:
[2024-5-23. : 6:26 am]
UndeadStar -- :wob:
[2024-5-22. : 6:10 am]
Riney -- Somethings never change.
Please log in to shout.


Members Online: l)ark_ssj9kevin