• 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] How i can make This Trigger!...

Status
Not open for further replies.
Level 2
Joined
Oct 9, 2007
Messages
15
How i can make This Trigger!

when game starts players are 5v1 and when those all 5 players are in game or just 2 it should automatically make create to that player that kind of unit but if there aint are 5 players or just 2 then i shouldn't create those 3 players any units got it?:zip:
 
Level 5
Joined
Aug 16, 2007
Messages
149
like this:
  • Make Units
    • Events
      • Map initialization
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 1 (Red) slot status) Equal to Is playing
        • Then - Actions
          • Unit - Create 1 [Your Unit] for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 2 (Blue) slot status) Equal to Is playing
        • Then - Actions
          • Unit - Create 1 [Your Unit] for Player 2 (Blue) at (Center of (Playable map area)) facing Default building facing degrees
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 3 (Teal) slot status) Equal to Is playing
        • Then - Actions
          • Unit - Create 1 [Your Unit] for Player 3 (Teal) at (Center of (Playable map area)) facing Default building facing degrees
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 4 (Purple) slot status) Equal to Is playing
        • Then - Actions
          • Unit - Create 1 [Your Unit] for Player 4 (Purple) at (Center of (Playable map area)) facing Default building facing degrees
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 5 (Yellow) slot status) Equal to Is playing
        • Then - Actions
          • Unit - Create 1 [Your Unit] for Player 5 (Yellow) at (Center of (Playable map area)) facing Default building facing degrees
        • Else - Actions
so basically, if player slot status = is playing then create unit for player. This can be made shorter using loops but, as you don't seem very experienced with triggering, I won't confuse you with it.
 
Status
Not open for further replies.
Top