Hi i copyed this trigger and modified it for my map...
Well this is the start
It doesnt move the Hero to the regions or pan the camera! :/
Pls help me
And also Kills, i use 10 different integers for each player one named killsred,killsblue,killspurple etc... and they change on the leaderboard, but i dont have set a Kill array for them!
Kill is integer array.
Well this is the start
Trigger:
- Start Duel
- Events
- Time - Duel expires
- Conditions
- Team1Dying Equal to False
- Team2Dying Equal to False
- Actions
- Sound - Play ArrangedTeamInvitation <gen>
- 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 3.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)
- For each (Integer A) from 1 to 10, do (Set HeroSavePoints[(Integer A)] = (Position of Heroes[(Integer A)]))
- For each (Integer A) from 1 to 10, do (Set HeroSaveDirection[(Integer A)] = (Facing of Heroes[(Integer A)]))
- For each (Integer A) from 1 to 10, do (Unit - Move Heroes[(Integer A)] instantly to (Center of HeroDuelSpots[(Integer A)]))
- For each (Integer A) from 1 to 10, do (Unit - Make Heroes[(Integer A)] face (Center of Duel Arena <gen>) over 0.00 seconds)
- For each (Integer A) from 1 to 10, do (Unit - Make Heroes[(Integer A)] Invulnerable)
- Set TempMaxKill = 0
- For each (Integer A) from 1 to 5, 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))
- For each (Integer A) from 1 to 5, 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 F5 <gen>)
- Unit - Set life of Team1LeaderHero to 100.00%
- Unit - Set mana of Team1LeaderHero to 100.00%
- Unit - Make Team1LeaderHero Vulnerable
- Set TempMaxKill = 0
- For each (Integer A) from 6 to 10, 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))
- For each (Integer A) from 6 to 10, 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 I5 <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 BattleNetTick <gen>
- Game - Display to (All players) the text: |cffffcc003|r . . .
- Wait 1.00 seconds
- Sound - Play BattleNetTick <gen>
- Game - Display to (All players) the text: |cffffcc002|r . . .
- Wait 1.00 seconds
- Sound - Play BattleNetTick <gen>
- Game - Display to (All players) the text: |cffffcc001|r . . .
- Wait 1.00 seconds
- Game - Display to (All players) the text: Go !
- Unit - Unpause Team1LeaderHero
- Unit - Unpause Team2LeaderHero
- Unit Group - Pick every unit in (Units in (Playable map area)) and do (If (((Owner of (Picked unit)) controller) Equal to Computer) then do (Unit - Order (Picked unit) to Patrol To (Center of Duel Arena <gen>)) else do (Do nothing))
- Events
It doesnt move the Hero to the regions or pan the camera! :/
Pls help me
And also Kills, i use 10 different integers for each player one named killsred,killsblue,killspurple etc... and they change on the leaderboard, but i dont have set a Kill array for them!
Kill is integer array.