Hey all,
I made team duels and ending triggers isnt working can someone help?
(Timer Starts in Starting trigger)
I made team duels and ending triggers isnt working can someone help?
-
Duel End Forest Arena
-

Events
-


Unit - A unit Dies
-
-

Conditions
-


(Forest arena <gen> contains (Dying unit)) Equal to True
-
-

Actions
-


Set DuelGroup[1] = (Units in Forest arena <gen> matching (((Matching unit) belongs to an ally of Player 1 (Red)) Equal to True))
-


Set DuelGroup[2] = (Units in Forest arena <gen> matching (((Matching unit) belongs to an ally of Player 6 (Orange)) Equal to True))
-


Wait 0.50 seconds
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Number of units in DuelGroup[1]) Equal to 0
-
-



Then - Actions
-




Trigger - Turn off Duel End Forest Arena2 <gen>
-




Game - Display to (All players) the text: Team 2 wins.
-




Player Group - Pick every player in PlayerT2 and do (Actions)
-





Loop - Actions
-






Player - Add 500 to (Picked player) Current gold
-
-
-




Game - Display to (All players) the text: They gets |cffffcc0...
-




Wait 5.00 seconds
-




Countdown Timer - Start DuelTimer as a One-shot timer that will expire in 300.00 seconds
-




Unit Group - Pick every unit in DuelGroup[1] and do (Actions)
-





Loop - Actions
-






Unit - Move (Picked unit) instantly to (Center of Team 1 Spawn <gen>)
-






Selection - Select (Picked unit) for (Owner of (Picked unit))
-






Camera - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 0.00 seconds
-
-
-




Unit Group - Pick every unit in DuelGroup[2] and do (Actions)
-





Loop - Actions
-






Unit - Move (Picked unit) instantly to (Center of Team 2 Spawn <gen>)
-






Selection - Select (Picked unit) for (Owner of (Picked unit))
-






Camera - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 0.00 seconds
-
-
-




Unit - Unpause all units
-




Destructible - Close Iron Gate (Vertical) 0378 <gen>
-




Destructible - Close Iron Gate (Vertical) 0375 <gen>
-




Destructible - Close Iron Gate (Horizontal) 0016 <gen>
-




Destructible - Close Iron Gate (Horizontal) 0074 <gen>
-




Trigger - Turn on Creeps Spawn <gen>
-




Trigger - Turn on Revive <gen>
-




Trigger - Turn off Duel Revive <gen>
-




Countdown Timer - Destroy DuelEndTimerWindow
-




Countdown Timer - Pause DuelEndTimer
-
-



Else - Actions
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Number of units in DuelGroup[2]) Equal to 0
-
-



Then - Actions
-




Trigger - Turn off Duel End Forest Arena2 <gen>
-




Game - Display to (All players) the text: Team 1 wins.
-




Player Group - Pick every player in PlayerT1 and do (Actions)
-





Loop - Actions
-






Player - Add 500 to (Picked player) Current gold
-
-
-




Game - Display to (All players) the text: They gets |cffffcc0...
-




Wait 5.00 seconds
-




Countdown Timer - Start DuelTimer as a One-shot timer that will expire in 300.00 seconds
-




Unit Group - Pick every unit in DuelGroup[1] and do (Actions)
-





Loop - Actions
-






Unit - Move (Picked unit) instantly to (Center of Team 1 Spawn <gen>)
-






Selection - Select (Picked unit) for (Owner of (Picked unit))
-






Camera - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 0.00 seconds
-
-
-




Unit Group - Pick every unit in DuelGroup[2] and do (Actions)
-





Loop - Actions
-






Unit - Move (Picked unit) instantly to (Center of Team 2 Spawn <gen>)
-






Selection - Select (Picked unit) for (Owner of (Picked unit))
-






Camera - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 0.00 seconds
-
-
-




Unit - Unpause all units
-




Destructible - Close Iron Gate (Vertical) 0378 <gen>
-




Destructible - Close Iron Gate (Vertical) 0375 <gen>
-




Destructible - Close Iron Gate (Horizontal) 0016 <gen>
-




Destructible - Close Iron Gate (Horizontal) 0074 <gen>
-




Trigger - Turn on Creeps Spawn <gen>
-




Trigger - Turn on Revive <gen>
-




Trigger - Turn off Duel Revive <gen>
-




Countdown Timer - Destroy DuelEndTimerWindow
-




Countdown Timer - Pause DuelEndTimer
-
-



Else - Actions
-
-


Custom script: call DestroyGroup (udg_DuelGroup[1])
-


Custom script: call DestroyGroup (udg_DuelGroup[2])
-
-
-
Duel End Forest Arena2
-

Events
-


Time - Every 1.00 seconds of game time
-
-

Conditions
-

Actions
-


Set DuelGroup[1] = (Units in Forest arena <gen> matching (((Matching unit) belongs to an ally of Player 1 (Red)) Equal to True))
-


Set DuelGroup[2] = (Units in Forest arena <gen> matching (((Matching unit) belongs to an ally of Player 6 (Orange)) Equal to True))
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Number of units in DuelGroup[1]) Equal to 0
-
-



Then - Actions
-




Game - Display to (All players) the text: Team 2 wins.
-




Player Group - Pick every player in PlayerT2 and do (Actions)
-





Loop - Actions
-






Player - Add 500 to (Picked player) Current gold
-
-
-




Game - Display to (All players) the text: They gets |cffffcc0...
-




Trigger - Turn off (This trigger)
-




Wait 5.00 seconds
-




Countdown Timer - Start DuelTimer as a One-shot timer that will expire in 300.00 seconds
-




Unit Group - Pick every unit in DuelGroup[1] and do (Actions)
-





Loop - Actions
-






Unit - Move (Picked unit) instantly to (Center of Team 1 Spawn <gen>)
-






Selection - Select (Picked unit) for (Owner of (Picked unit))
-






Camera - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 0.00 seconds
-
-
-




Unit Group - Pick every unit in DuelGroup[2] and do (Actions)
-





Loop - Actions
-






Unit - Move (Picked unit) instantly to (Center of Team 2 Spawn <gen>)
-






Selection - Select (Picked unit) for (Owner of (Picked unit))
-






Camera - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 0.00 seconds
-
-
-




Unit - Unpause all units
-




Destructible - Close Iron Gate (Vertical) 0378 <gen>
-




Destructible - Close Iron Gate (Vertical) 0375 <gen>
-




Destructible - Close Iron Gate (Horizontal) 0016 <gen>
-




Destructible - Close Iron Gate (Horizontal) 0074 <gen>
-




Trigger - Turn on Creeps Spawn <gen>
-




Trigger - Turn on Revive <gen>
-




Trigger - Turn off Duel Revive <gen>
-




Countdown Timer - Destroy DuelEndTimerWindow
-




Countdown Timer - Pause DuelEndTimer
-
-



Else - Actions
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Number of units in DuelGroup[2]) Equal to 0
-
-



Then - Actions
-




Game - Display to (All players) the text: Team 1 wins.
-




Player Group - Pick every player in PlayerT1 and do (Actions)
-





Loop - Actions
-






Player - Add 500 to (Picked player) Current gold
-
-
-




Game - Display to (All players) the text: They gets |cffffcc0...
-




Wait 5.00 seconds
-




Trigger - Turn off (This trigger)
-




Countdown Timer - Start DuelTimer as a One-shot timer that will expire in 300.00 seconds
-




Unit Group - Pick every unit in DuelGroup[1] and do (Actions)
-





Loop - Actions
-






Unit - Move (Picked unit) instantly to (Center of Team 1 Spawn <gen>)
-






Selection - Select (Picked unit) for (Owner of (Picked unit))
-






Camera - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 0.00 seconds
-
-
-




Unit Group - Pick every unit in DuelGroup[2] and do (Actions)
-





Loop - Actions
-






Unit - Move (Picked unit) instantly to (Center of Team 2 Spawn <gen>)
-






Selection - Select (Picked unit) for (Owner of (Picked unit))
-






Camera - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 0.00 seconds
-
-
-




Unit - Unpause all units
-




Destructible - Close Iron Gate (Vertical) 0378 <gen>
-




Destructible - Close Iron Gate (Vertical) 0375 <gen>
-




Destructible - Close Iron Gate (Horizontal) 0016 <gen>
-




Destructible - Close Iron Gate (Horizontal) 0074 <gen>
-




Trigger - Turn on Creeps Spawn <gen>
-




Trigger - Turn on Revive <gen>
-




Trigger - Turn off Duel Revive <gen>
-




Countdown Timer - Destroy DuelEndTimerWindow
-




Countdown Timer - Pause DuelEndTimer
-
-



Else - Actions
-
-


Custom script: call DestroyGroup (udg_DuelGroup[1])
-


Custom script: call DestroyGroup (udg_DuelGroup[2])
-
-
-
Duel Ends Forest Arena
-

Events
-


Time - DuelEndTimer expires
-
-

Conditions
-

Actions
-


Set DuelGroup[1] = (Units in Forest arena <gen> matching (((Matching unit) belongs to an ally of Player 1 (Red)) Equal to True))
-


Set DuelGroup[2] = (Units in Forest arena <gen> matching (((Matching unit) belongs to an ally of Player 6 (Orange)) Equal to True))
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Number of units in DuelGroup[2]) Greater than (Number of units in DuelGroup[1])
-
-



Then - Actions
-




Trigger - Turn off Duel End Forest Arena2 <gen>
-




Game - Display to (All players) the text: Team 2 wins.
-




Player Group - Pick every player in PlayerT2 and do (Actions)
-





Loop - Actions
-






Player - Add 500 to (Picked player) Current gold
-
-
-




Game - Display to (All players) the text: They gets |cffffcc0...
-




Wait 5.00 seconds
-




Countdown Timer - Start DuelTimer as a One-shot timer that will expire in 300.00 seconds
-




Unit Group - Pick every unit in DuelGroup[1] and do (Actions)
-





Loop - Actions
-






Unit - Move (Picked unit) instantly to (Center of Team 1 Spawn <gen>)
-






Selection - Select (Picked unit) for (Owner of (Picked unit))
-






Camera - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 0.00 seconds
-
-
-




Unit Group - Pick every unit in DuelGroup[2] and do (Actions)
-





Loop - Actions
-






Unit - Move (Picked unit) instantly to (Center of Team 2 Spawn <gen>)
-






Selection - Select (Picked unit) for (Owner of (Picked unit))
-






Camera - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 0.00 seconds
-
-
-




Unit - Unpause all units
-




Destructible - Close Iron Gate (Vertical) 0378 <gen>
-




Destructible - Close Iron Gate (Vertical) 0375 <gen>
-




Destructible - Close Iron Gate (Horizontal) 0016 <gen>
-




Destructible - Close Iron Gate (Horizontal) 0074 <gen>
-




Trigger - Turn on Creeps Spawn <gen>
-




Trigger - Turn on Revive <gen>
-




Trigger - Turn off Duel Revive <gen>
-




Countdown Timer - Destroy DuelEndTimerWindow
-
-



Else - Actions
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Number of units in DuelGroup[2]) Less than (Number of units in DuelGroup[1])
-
-



Then - Actions
-




Trigger - Turn off Duel End Forest Arena2 <gen>
-




Game - Display to (All players) the text: Team 1 wins.
-




Player Group - Pick every player in PlayerT1 and do (Actions)
-





Loop - Actions
-






Player - Add 500 to (Picked player) Current gold
-
-
-




Game - Display to (All players) the text: They gets |cffffcc0...
-




Wait 5.00 seconds
-




Countdown Timer - Start DuelTimer as a One-shot timer that will expire in 300.00 seconds
-




Unit Group - Pick every unit in DuelGroup[1] and do (Actions)
-





Loop - Actions
-






Unit - Move (Picked unit) instantly to (Center of Team 1 Spawn <gen>)
-






Selection - Select (Picked unit) for (Owner of (Picked unit))
-






Camera - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 0.00 seconds
-
-
-




Unit Group - Pick every unit in DuelGroup[2] and do (Actions)
-





Loop - Actions
-






Unit - Move (Picked unit) instantly to (Center of Team 2 Spawn <gen>)
-






Selection - Select (Picked unit) for (Owner of (Picked unit))
-






Camera - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 0.00 seconds
-
-
-




Unit - Unpause all units
-




Destructible - Close Iron Gate (Vertical) 0378 <gen>
-




Destructible - Close Iron Gate (Vertical) 0375 <gen>
-




Destructible - Close Iron Gate (Horizontal) 0016 <gen>
-




Destructible - Close Iron Gate (Horizontal) 0074 <gen>
-




Trigger - Turn on Creeps Spawn <gen>
-




Trigger - Turn on Revive <gen>
-




Trigger - Turn off Duel Revive <gen>
-




Countdown Timer - Destroy DuelEndTimerWindow
-
-



Else - Actions
-
-


Custom script: call DestroyGroup (udg_DuelGroup[1])
-


Custom script: call DestroyGroup (udg_DuelGroup[2])
-
-
Last edited:

