• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

[Trigger] Count all structures controlled by unit trigger not working

Status
Not open for further replies.
Level 5
Joined
Aug 18, 2013
Messages
85
  • Losing GAME
    • Events
      • Unit - A unit Dies
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • ((Dying unit) is A structure) Equal to True
          • (Count structures controlled by (Owner of (Dying unit)) (Exclude incomplete structures)) Equal to 10
          • ((Owner of (Dying unit)) slot status) Equal to Is playing
    • Actions
      • Set Player = (Owner of (Triggering unit))
      • Custom script: if GetLocalPlayer() == udg_Player then
      • Sound - Play WE_LOST_CAPITAL_OR_DYING__4_u <gen>
      • Custom script: endif
      • Trigger - Turn off (This trigger)

  • Ally is LOSING 1
    • Events
      • Unit - A unit owned by Player 2 (Blue) Dies
      • Unit - A unit owned by Player 3 (Teal) Dies
      • Unit - A unit owned by Player 4 (Purple) Dies
      • Unit - A unit owned by Player 6 (Orange) Dies
      • Unit - A unit owned by Player 7 (Green) Dies
      • Unit - A unit owned by Player 8 (Pink) Dies
      • Unit - A unit owned by Player 9 (Gray) Dies
      • Unit - A unit owned by Player 10 (Light Blue) Dies
      • Unit - A unit owned by Player 11 (Dark Green) Dies
      • Unit - A unit owned by Player 12 (Brown) Dies
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • ((Dying unit) is A structure) Equal to True
          • (Count structures controlled by (Owner of (Dying unit)) (Exclude incomplete structures)) Equal to 4
          • ((Owner of (Triggering unit)) is an ally of Player 1 (Red)) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Triggering unit)) Equal to Player 2 (Blue)
        • Then - Actions
          • Set Player = Player 1 (Red)
          • Custom script: if GetLocalPlayer() == udg_Player then
          • Sound - Play WeAreTakingHeavyCasualitiesENGLISHBRIT <gen>
          • Custom script: endif
          • Trigger - Turn off (This trigger)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Owner of (Triggering unit)) Equal to Player 3 (Teal)
            • Then - Actions
              • Set Player = Player 1 (Red)
              • Custom script: if GetLocalPlayer() == udg_Player then
              • Sound - Play WeAreTakingHeavyCasualitiesAMERICAN <gen>
              • Custom script: endif
              • Trigger - Turn off (This trigger)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Owner of (Triggering unit)) Equal to Player 4 (Purple)
                • Then - Actions
                  • Set Player = Player 1 (Red)
                  • Custom script: if GetLocalPlayer() == udg_Player then
                  • Sound - Play WeAreTakingHeavyCasualitiesFRENCH <gen>
                  • Custom script: endif
                  • Trigger - Turn off (This trigger)
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Owner of (Triggering unit)) Equal to Player 6 (Orange)
                    • Then - Actions
                      • Set Player = Player 1 (Red)
                      • Custom script: if GetLocalPlayer() == udg_Player then
                      • Sound - Play WeAreTakingHeavyCasualitiesITALIAN <gen>
                      • Custom script: endif
                      • Trigger - Turn off (This trigger)
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Owner of (Triggering unit)) Equal to Player 7 (Green)
                        • Then - Actions
                          • Set Player = Player 1 (Red)
                          • Custom script: if GetLocalPlayer() == udg_Player then
                          • Sound - Play Turkishjusyformoney <gen>
                          • Custom script: endif
                          • Trigger - Turn off (This trigger)
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • Or - Any (Conditions) are true
                                • Conditions
                                  • (Owner of (Triggering unit)) Equal to Player 8 (Pink)
                                  • (Owner of (Triggering unit)) Equal to Player 9 (Gray)
                                  • (Owner of (Triggering unit)) Equal to Player 12 (Brown)
                            • Then - Actions
                              • Set Player = Player 1 (Red)
                              • Custom script: if GetLocalPlayer() == udg_Player then
                              • Sound - Play WeAreTakingHeavyCasualitiesGERMAN <gen>
                              • Custom script: endif
                              • Trigger - Turn off (This trigger)
                            • Else - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • (Owner of (Triggering unit)) Equal to Player 10 (Light Blue)
                                • Then - Actions
                                  • Set Player = Player 1 (Red)
                                  • Custom script: if GetLocalPlayer() == udg_Player then
                                  • Sound - Play Finnishdeathbeforedishonor <gen>
                                  • Custom script: endif
                                  • Trigger - Turn off (This trigger)
                                • Else - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • (Owner of (Triggering unit)) Equal to Player 11 (Dark Green)
                                    • Then - Actions
                                      • Set Player = Player 1 (Red)
                                      • Custom script: if GetLocalPlayer() == udg_Player then
                                      • Sound - Play ROMANIAN2Alltheseyears <gen>
                                      • Custom script: endif
                                      • Trigger - Turn off (This trigger)
                                    • Else - Actions
The sounds don't play. What am I doing wrong?
 
Status
Not open for further replies.
Top