[Trigger] i need some triggers

Status
Not open for further replies.
Level 5
Joined
Jan 21, 2008
Messages
162
hey I need a trigger that will let a group win as apposed to just one player.
wait if the players are allied will it declare victory for all of them?
 
This is just a generic win trigger. :)
  • Win
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Dying unit) Equal to Castle[1]
        • Then - Actions
          • Player Group - Pick every player in (All players) and do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Picked player) is an ally of Player 1 (Red)) Equal to True
                • Then - Actions
                  • Game - Defeat (Picked player) with the message: Defeat!
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Picked player) is an ally of Player 7 (Green)) Equal to True
                • Then - Actions
                  • Game - Victory (Picked player) (Show dialogs, Show scores)
                • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Dying unit) Equal to Castle[2]
        • Then - Actions
          • Player Group - Pick every player in (All players) and do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Picked player) is an ally of Player 7 (Green)) Equal to True
                • Then - Actions
                  • Game - Defeat (Picked player) with the message: Defeat!
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Picked player) is an ally of Player 1 (Red)) Equal to True
                • Then - Actions
                  • Game - Victory (Picked player) (Show dialogs, Show scores)
                • Else - Actions
        • Else - Actions
 
Status
Not open for further replies.
Back
Top