• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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