- Joined
- Oct 24, 2012
- Messages
- 77
SOLVED by UndeadImmortal
Please help me to solved this trigger:
help me to working Duel End Trigger
Please help me to solved this trigger:
-
DuelSystem
-
Events
- Time - Duel expires
- Conditions
-
Actions
- Trigger - Turn off Computer Move <gen>
- Countdown Timer - Pause Duel
- Countdown Timer - Destroy Duel_Window
- Unit - Pause all units
- Game - Display to (All players) the text: Tenkaichi Budokai
- Set DryingHeroes = True
- Set DuelBoolean = True
- For each (Integer A) from 1 to 6, do (Set HeroesSavePoint[(Integer A)] = (Position of Heroes[(Integer A)]))
- For each (Integer A) from 1 to 6, do (Set HDDire[(Integer A)] = (Facing of Heroes[(Integer A)]))
- Sound - Play NewTournament <gen>
- Wait 6.00 seconds
- Unit - Move Heroes[(Player number of (Random player from Team1))] instantly to (Center of Player 1 <gen>), facing Default building facing degrees
- Unit - Move Heroes[(Player number of (Random player from Team2))] instantly to (Center of Player2 <gen>), facing Default building facing degrees
- Set DuelHeroVar[1] = (Random unit from (Units in Player 1 <gen>))
- Set DuelHeroVar[2] = (Random unit from (Units in Player2 <gen>))
- Unit Group - Add DuelHeroVar[1] to HeroesGroup
- Unit Group - Add DuelHeroVar[2] to HeroesGroup
-
Unit Group - Pick every unit in HeroesGroup and do (Actions)
-
Loop - Actions
- Unit - Set life of (Picked unit) to 100.00%
- Unit - Set mana of (Picked unit) to 100.00%
-
Loop - Actions
- Camera - Apply Team 1 <gen> for Player 1 (Red) over 0.00 seconds
- Wait 2.00 seconds
- Camera - Apply Position2 <gen> for Player 1 (Red) over 0.00 seconds
- Wait 2.00 seconds
- Player Group - Pick every player in (All players) and do (Camera - Pan camera for (Picked player) to (Center of Duel Arena <gen>) over 0.00 seconds)
- Game - Display to (All players) the text: Three
- Wait 1.00 seconds
- Game - Display to (All players) the text: Two
- Wait 1.00 seconds
- Game - Display to (All players) the text: One
- Wait 1.00 seconds
- Game - Display to (All players) the text: Let's Rock
-
Unit Group - Pick every unit in HeroesGroup and do (Actions)
-
Loop - Actions
- Unit - Unpause (Picked unit)
- Unit - Make (Picked unit) Vulnerable
-
Loop - Actions
- Trigger - Run DuelGo <gen> (checking conditions)
-
Events
-
Duel End
-
Events
- Unit - A unit enters Duel Arena <gen>
-
Conditions
- (Number of units in HeroesGroup) Less than 2
-
Actions
- Unit - Pause all units
- Set DuelBoolean = False
- Set DryingHeroes = False
- Player Group - Pick every player in (All players) and do (Camera - Reset camera for Player 1 (Red) to standard game-view over 0.00 seconds)
-
For each (Integer A) from 1 to 6, do (Actions)
-
Loop - Actions
- Unit - Move Heroes[(Integer A)] instantly to HeroesSavePoint[(Integer A)], facing HDDire[(Integer A)] degrees
- Camera - Pan camera for (Player((Integer A))) to HeroesSavePoint[(Integer A)] over 1.00 seconds
- Unit - Make Heroes[(Integer A)] Vulnerable
-
Loop - Actions
- Wait 1.00 seconds
- Unit Group - Remove (Random unit from (Units in Duel Arena <gen>)) from HeroesGroup
- Unit Group - Pick every unit in (Units in Duel Arena <gen>) and do (Unit - Kill (Picked unit))
- Countdown Timer - Start Duel as a One-shot timer that will expire in 300.00 seconds
- Trigger - Turn on Computer Move <gen>
-
Events
-
DuelGo
- Events
- Conditions
-
Actions
- If (((Owner of (Random unit from (Units in Player 1 <gen>))) controller) Equal to Computer) then do (Unit - Order (Random unit from (Units in Player 1 <gen>)) to Attack DuelHeroVar[2]) else do (Do nothing)
- If (((Owner of (Random unit from (Units in Player2 <gen>))) controller) Equal to Computer) then do (Unit - Order (Random unit from (Units in Player2 <gen>)) to Attack DuelHeroVar[1]) else do (Do nothing)
Last edited: