bug help
The bug i have is, only 1 team gets teleported to the arena when the 5 minutes is up. team 2 just doesnt get teleported to the arena.
With all the hero picked triggers i have.
And my hero duel trigger is this.
The duel points have been set.
The bug i have is, only 1 team gets teleported to the arena when the 5 minutes is up. team 2 just doesnt get teleported to the arena.
With all the hero picked triggers i have.
Code:
Events
Unit - A unit enters BladeMaster <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Fallen Hero
Actions
Unit - Remove Rogue 0083 <gen> from the game
Special Effect - Create a special effect at (Position of Rogue 0083 <gen>) using Abilities\Spells\Other\Awaken\Awaken.mdl
Unit - Kill (Triggering unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) is in West_Players) Equal to True
Then - Actions
Unit - Create 1 Rogue for (Owner of (Triggering unit)) at (Center of West Base <gen>) facing 0.00 degrees
Set Hero[(Player number of (Owner of (Triggering unit)))] = (Last created unit)
Camera - Pan camera for (Owner of (Triggering unit)) to (Center of West Base <gen>) over 0.00 seconds
Else - Actions
Unit - Create 1 Rogue for (Owner of (Triggering unit)) at (Center of East Base <gen>) facing 0.00 degrees
Set Hero[(Player number of (Owner of (Triggering unit)))] = (Last created unit)
Camera - Pan camera for (Owner of (Triggering unit)) to (Center of East Base <gen>) over 0.00 seconds
Special Effect - Create a special effect at (Position of (Last created unit)) using Abilities\Spells\Other\Awaken\Awaken.mdl
Trigger - Turn off (This trigger)
And my hero duel trigger is this.
Code:
Events
Time - Every 300.00 seconds of game time
Conditions
Actions
Set Duel = True
Cinematic - Disable user control for (All players)
Unit - Move Sir Trevor 0114 <gen> instantly to Trevor_Duel_Point, facing 270.00 degrees
Player Group - Pick every player in West_Players and do (Actions)
Loop - Actions
Set Picked_Hero = Hero[(Player number of (Picked player))]
Unit - Order Picked_Hero to Stop
Unit - Pause Picked_Hero
Unit - Move Picked_Hero instantly to West_Duel_Point[(Player number of (Picked player))], facing 0.00 degrees
Unit - Set life of Picked_Hero to 100.00%
Unit - Set mana of Picked_Hero to 100.00%
Unit - Reset ability cooldowns for Picked_Hero
Unit Group - Add Picked_Hero to West_Dueling_Heroes
Selection - Select Picked_Hero for (Picked player)
Camera - Apply Duel Camera <gen> for (Picked player) over 0.00 seconds
Player Group - Pick every player in East_Players and do (Actions)
Loop - Actions
Set Picked_Hero = Hero[(Player number of (Picked player))]
Unit - Order Picked_Hero to Stop
Unit - Pause Picked_Hero
Unit - Move Picked_Hero instantly to East_Duel_Point[(Player number of (Picked player))], facing 180.00 degrees
Unit - Set life of Picked_Hero to 100.00%
Unit - Set mana of Picked_Hero to 100.00%
Unit - Reset ability cooldowns for Picked_Hero
Unit Group - Add Picked_Hero to East_Dueling_Heroes
Selection - Select Picked_Hero for (Picked player)
Camera - Apply Duel Camera <gen> for (Picked player) over 0.00 seconds
Unit Group - Order West_Creeps to Stop
Unit Group - Order East_Creeps to Stop
Unit Group - Order West_Demon_Creeps to Stop
Unit Group - Order East_Demon_Creeps to Stop
Unit Group - Order West_Center_Creeps to Stop
Unit Group - Order East_Center_Creeps to Stop
Floating Text - Create floating text that reads Ready above Sir_Trevor with Z offset 0.00, using font size 20.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 1.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
Wait 2.00 seconds
For each (Integer A) from 1 to 3, do (Actions)
Loop - Actions
Floating Text - Create floating text that reads (String((4 - (Integer A)))) above Sir_Trevor with Z offset 0.00, using font size 20.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 0.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
Wait 1.00 seconds
Sound - Play O05Cenarius03 <gen>
Floating Text - Create floating text that reads GO! above Sir_Trevor with Z offset 0.00, using font size 20.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 1.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
Wait 2.00 seconds
Player Group - Pick every player in Active_Players and do (Actions)
Loop - Actions
Camera - Reset camera for (Picked player) to standard game-view over 0.00 seconds
Camera - Pan camera for Player 1 (Red) to (Position of Hero[(Player number of (Picked player))]) over 0.00 seconds
Unit - Unpause all units
Cinematic - Enable user control for (All players)
Unit - Order Sir_Trevor to Night Elf Warden - Blink Trevor_Stand_Point
Wait 1.00 seconds
Unit - Make Sir_Trevor face (Center of Trevor Duel <gen>) over 0.00 seconds
The duel points have been set.