• 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.

Check how many players are playing?

Status
Not open for further replies.
  • Trigger
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • Set Count = 0
    • For each (Integer A) from 1 to 12, do (Actions)
      • Loop - Actions
        • If (All conditions are true) then do (Actions) else do (Actions)
          • If - Conditions
            • (Player(IntegerA) slot status) Equal to Is playing
            • (Player(IntegerA) controller) Equal to User
          • Then - Actions
            • Set Count = (Count + 1) // Count is an "Integer" variable
          • Else - Actions
    • If (All conditions are true) then do (Actions) else do (Actions)
      • If - Conditions
        • Count Equal to 2
      • Then - Actions
        • Trigger - Turn off Team of 2 <gen>
      • Else - Actions
    • If (All conditions are true) then do (Actions) else do (Actions)
      • If - Conditions
        • Count Equal to 3
      • Then - Actions
        • Trigger - Turn off Team of 3 <gen>
      • Else - Actions
 
Status
Not open for further replies.
Top