[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