- Joined
- Jun 11, 2009
- Messages
- 151
Well I'm having troblem with my duel trigger it works except it doesn't move heroes to the spots and un-pause the duelers.
-
Setup Duel Timer
-

Events
-


Time - DuelSetup expires
-
-

Conditions
-

Actions
-


Set HeroDuelSpots[1] = Red Seat <gen>
-


Set HeroDuelSpots[2] = Blue Seat <gen>
-


Set HeroDuelSpots[3] = Teal Seat <gen>
-


Set HeroDuelSpots[4] = Purple Seat <gen>
-


Set HeroDuelSpots[5] = Yellow Seat <gen>
-


Set HeroDuelSpots[6] = Orange Seat <gen>
-


Set HeroDuelSpots[7] = Green Seat <gen>
-


Set HeroDuelSpots[8] = Pink Seat <gen>
-


Set HeroDuelSpots[9] = Gray Seat <gen>
-


Set HeroDuelSpots[10] = Lightblue Seat <gen>
-


Set HeroDuelSpots[11] = Darkgreen Seat <gen>
-


Set HeroDuelSpots[12] = Brown Seat <gen>
-


Countdown Timer - Start Duel as a One-shot timer that will expire in 360.00 seconds
-


Countdown Timer - Create a timer window for Duel with title Next Duel
-


Set Duel = (Last started timer)
-


Countdown Timer - Show DuelTimerWindow
-
-
-
Start Duel
-

Events
-


Time - Duel expires
-
-

Conditions
-

Actions
-


Unit - Pause all units
-


Game - Display to (All players) the text: Two have been chose...
-


Set bPasued = True
-


Set bDuel = True
-


Countdown Timer - Start DuelTime as a One-shot timer that will expire in 120.00 seconds
-


Sound - Stop music After fading
-


Wait 1.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 1.00 seconds)
-



Do ActionFor each (Integer A) from 1 to 12, do (Set HeroSavePoints[(Integer A)] = (Position of Heroes[(Integer A)]))
-



Do ActionFor each (Integer A) from 1 to 12, do (Set HeroSaveDirection[(Integer A)] = (Facing of Heroes[(Integer A)]))
-



Do ActionFor each (Integer A) from 1 to 12, do (Unit - Move Heroes[(Integer A)] instantly to (Center of HeroDuelSpots[(Integer A)]))
-



Do ActionFor each (Integer A) from 1 to 12, do (Unit - Make Heroes[(Integer A)] face (Center of Duel Arena <gen>) over 0.00 seconds)
-



Do ActionFor each (Integer A) from 1 to 12, do (Unit - Make Heroes[(Integer A)] Invulnerable)
-
-


Set TempMaxKill = 0
-



Do ActionFor each (Integer A) from 1 to 6, do (If ((Kills[(Integer A)] Greater than (>) TempMaxKill) and (((Player((Integer A))) slot status) Equal to (==) Is playing)) then do (Set TempMaxKill = Kills[(Integer A)]) else do (Do nothing))
-



Do ActionFor each (Integer A) from 1 to 6, do (If ((Kills[(Integer A)] Equal to (==) TempMaxKill) and (((Player((Integer A))) slot status) Equal to (==) Is playing)) then do (Set Team1Leader = (Integer A)) else do (Do nothing))
-
-


Set Team1LeaderHero = Heroes[Team1Leader]
-


Unit - Move Team1LeaderHero instantly to (Center of Team One Duel Spot <gen>)
-


Unit - Set life of Team1LeaderHero to 100.00%
-


Unit - Set mana of Team1LeaderHero to 100.00%
-


Unit - Make Team1LeaderHero Vulnerable
-


Set TempMaxKill = 0
-



Do ActionFor each (Integer A) from 7 to 12, do (If ((Kills[(Integer A)] Greater than (>) TempMaxKill) and (((Player((Integer A))) slot status) Equal to (==) Is playing)) then do (Set TempMaxKill = Kills[(Integer A)]) else do (Do nothing))
-



Do ActionFor each (Integer A) from 7 to 12, do (If ((Kills[(Integer A)] Equal to (==) TempMaxKill) and (((Player((Integer A))) slot status) Equal to (==) Is playing)) then do (Set Team2Leader = (Integer A)) else do (Do nothing))
-
-


Set Team2LeaderHero = Heroes[Team2Leader]
-


Unit - Move Team2LeaderHero instantly to (Center of Team Two Duel Spot <gen>)
-


Unit - Set life of Team2LeaderHero to 100.00%
-


Unit - Set mana of Team2LeaderHero to 100.00%
-


Unit - Make Team2LeaderHero Vulnerable
-


Game - Display to (All players) the text: ((Name of (Player(Team1Leader))) + ( Vs + (Name of (Player(Team2Leader)))))
-


Wait 5.00 seconds
-


Sound - Play BeforeDuel <gen>
-


Game - Display to (All players) the text: 3!
-


Wait 3.00 seconds
-


Game - Display to (All players) the text: 2!
-


Wait 2.00 seconds
-


Game - Display to (All players) the text: 1!
-


Wait 1.00 seconds
-


Game - Display to (All players) the text: Let battle be joine...
-


Sound - Play LucfierStartsDuel <gen>
-


Unit - Unpause Team1LeaderHero
-


Unit - Unpause Team2LeaderHero
-
-
-
End Duel
-

Events
-

Conditions
-

Actions
-


Unit - Pause all units
-



Do ActionFor each (Integer A) from 1 to 12, do (Unit - Move Heroes[(Integer A)] instantly to HeroSavePoints[(Integer A)], facing HeroSaveDirection[(Integer A)] degrees)
-



Do ActionFor each (Integer A) from 1 to 12, do (Unit - Make Heroes[(Integer A)] Vulnerable)
-



Do ActionFor each (Integer A) from 1 to 12, do (Camera - Pan camera for (Player((Integer A))) to HeroSavePoints[(Integer A)] over 1.00 seconds)
-
-


Set Team1Leader = 14
-


Set Team2Leader = 14
-


Set Team1LeaderHero = No unit
-


Set Team2LeaderHero = No unit
-


Sound - Stop music After fading
-


Wait 1.00 seconds
-


Sound - Play DuelOver <gen>
-


Wait 1.00 seconds
-


Set bDuel = False
-


Set bPasued = False
-


Unit - Unpause all units
-


Wait 1.00 seconds
-


Countdown Timer - Start Duel as a One-shot timer that will expire in 360.00 seconds
-
-



