CuteCumber
Member
- Reaction score
- 4
My game has a total of 4 team: Night Elf, Undead, Orc, Human. When the team's main building is destroyed, they will be defeated(Game - Defeat player).
But when remaining players have left 2, either one must be defeated or victory, my problem is about the victory. These are the triggers:
But when remaining players have left 2, either one must be defeated or victory, my problem is about the victory. These are the triggers:
Code:
Defeat
Events
Unit - A unit Dies
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to Tree of Life (WOR) 0079 <gen>
Then - Actions
Player Group - Pick every player in NightElf and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: You have been defea...
Trigger - Turn on Defeat 2 <gen>
Trigger - Turn off NE Spawn Btm <gen>
Trigger - Turn off NE Spawn Mid <gen>
Trigger - Turn off NE Spawn Top <gen>
Trigger - Turn off HU Spawn Btm <gen>
Trigger - Turn off OR Spawn Btm <gen>
Trigger - Turn off UN Spawn Mid <gen>
Trigger - Turn off (This trigger)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to Necropolis (WOR) 0081 <gen>
Then - Actions
Player Group - Pick every player in Undead and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: You have been defea...
Trigger - Turn on Defeat 2 <gen>
Trigger - Turn off UN Spawn Btm <gen>
Trigger - Turn off UN Spawn Mid <gen>
Trigger - Turn off UN Spawn Top <gen>
Trigger - Turn off HU Spawn Top <gen>
Trigger - Turn off OR Spawn Top <gen>
Trigger - Turn off NE Spawn Mid <gen>
Trigger - Turn off (This trigger)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to Great Hall (WOR) 0080 <gen>
Then - Actions
Player Group - Pick every player in Orc and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: You have been defea...
Trigger - Turn on Defeat 2 <gen>
Trigger - Turn off OR Spawn Btm <gen>
Trigger - Turn off OR Spawn Mid <gen>
Trigger - Turn off OR Spawn Top <gen>
Trigger - Turn off NE Spawn Btm <gen>
Trigger - Turn off UN Spawn Btm <gen>
Trigger - Turn off HU Spawn Mid <gen>
Trigger - Turn off (This trigger)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to Castle (WOR) 0082 <gen>
Then - Actions
Player Group - Pick every player in Human and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: You have been defea...
Trigger - Turn on Defeat 2 <gen>
Trigger - Turn off HU Spawn Btm <gen>
Trigger - Turn off HU Spawn Mid <gen>
Trigger - Turn off HU Spawn Top <gen>
Trigger - Turn off NE Spawn Top <gen>
Trigger - Turn off UN Spawn Top <gen>
Trigger - Turn off OR Spawn Mid <gen>
Trigger - Turn off (This trigger)
Else - Actions
Code:
Defeat 2
Events
Unit - A unit Dies
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to Tree of Life (WOR) 0079 <gen>
Then - Actions
Player Group - Pick every player in NightElf and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: You have been defea...
Trigger - Turn on Defeat Last <gen>
Trigger - Turn off NE Spawn Btm <gen>
Trigger - Turn off NE Spawn Mid <gen>
Trigger - Turn off NE Spawn Top <gen>
Trigger - Turn off HU Spawn Btm <gen>
Trigger - Turn off OR Spawn Btm <gen>
Trigger - Turn off UN Spawn Mid <gen>
Trigger - Turn off (This trigger)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to Necropolis (WOR) 0081 <gen>
Then - Actions
Player Group - Pick every player in Undead and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: You have been defea...
Trigger - Turn on Defeat Last <gen>
Trigger - Turn off UN Spawn Btm <gen>
Trigger - Turn off UN Spawn Mid <gen>
Trigger - Turn off UN Spawn Top <gen>
Trigger - Turn off HU Spawn Top <gen>
Trigger - Turn off OR Spawn Top <gen>
Trigger - Turn off NE Spawn Mid <gen>
Trigger - Turn off (This trigger)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to Great Hall (WOR) 0080 <gen>
Then - Actions
Player Group - Pick every player in Orc and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: You have been defea...
Trigger - Turn on Defeat Last <gen>
Trigger - Turn off OR Spawn Btm <gen>
Trigger - Turn off OR Spawn Mid <gen>
Trigger - Turn off OR Spawn Top <gen>
Trigger - Turn off NE Spawn Btm <gen>
Trigger - Turn off UN Spawn Btm <gen>
Trigger - Turn off HU Spawn Mid <gen>
Trigger - Turn off (This trigger)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to Castle (WOR) 0082 <gen>
Then - Actions
Player Group - Pick every player in Human and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: You have been defea...
Trigger - Turn on Defeat Last <gen>
Trigger - Turn off HU Spawn Btm <gen>
Trigger - Turn off HU Spawn Mid <gen>
Trigger - Turn off HU Spawn Top <gen>
Trigger - Turn off NE Spawn Top <gen>
Trigger - Turn off UN Spawn Top <gen>
Trigger - Turn off OR Spawn Mid <gen>
Trigger - Turn off (This trigger)
Else - Actions
Code:
Defeat Last
Events
Unit - A unit Dies
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to Tree of Life (WOR) 0079 <gen>
Then - Actions
Player Group - Pick every player in NightElf and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: You have been defea...
Player Group - Pick every player in Undead and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
Player Group - Pick every player in Orc and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
Player Group - Pick every player in Human and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to Necropolis (WOR) 0081 <gen>
Then - Actions
Player Group - Pick every player in Undead and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: You have been defea...
Player Group - Pick every player in NightElf and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
Player Group - Pick every player in Orc and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
Player Group - Pick every player in Human and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to Great Hall (WOR) 0080 <gen>
Then - Actions
Player Group - Pick every player in Orc and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: You have been defea...
Player Group - Pick every player in Undead and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
Player Group - Pick every player in NightElf and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
Player Group - Pick every player in Human and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to Castle (WOR) 0082 <gen>
Then - Actions
Player Group - Pick every player in Human and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: You have been defea...
Player Group - Pick every player in Undead and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
Player Group - Pick every player in Orc and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
Player Group - Pick every player in NightElf and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
Else - Actions