• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Trigger Help

Status
Not open for further replies.
Level 2
Joined
Jul 18, 2008
Messages
4
I need help making a trigger:
When the game starts, I want to remove all nonplaying units. Meaning: If a color slot is not taken, I would like to remove all pre-placed units and buildings that are under the control of the player.
 
It's deadly easy ...
  • Events
    • Map initialization
  • Conditions
  • Actions
    • For each (Integer A) from 1 to 12, do (Actions)
      • Loop - Actions
        • If ((((Player((Integer A))) slot status) Equal to Has left the game) or (((Player((Integer A))) slot status) Equal to Is unused)) then do (Unit Group - Pick every unit in (Units in (Playable map area) owned by (Player((Integer A)))) and do (Unit - Remove (Picked unit) from the game)) else do (Do nothing)
 
Status
Not open for further replies.
Top