cho em hỏi muốn làm cái trigger duel thì sao sau 4p' thì chuyển hero team 1,hero team 2 có số kill cao nhất vào đấu trường thì sao? phần thường là 10000gold cho ai win mấy cái khác khỏi nói mấy anh nào cao tay về trigger chỉ em nha thanks :wink:
Hình như là thế này Event là every 240s. Pause all unit,còn trigger có turnoff ko thì tùy các map. set hero team 1= 1. set hero team 2= 7. -for each integer from 2 to 6 if kill[integer A] > kill integer[hero team 1] then set heroteam1= integer A(pick thằng có số kill cao nhất<1 thông số trên leader board>) -for each integer from 8 to 12 if kill[integer A] > kill integer[hero team 2] then set heroteam2= integer A(pick thằng có số kill cao nhất<1 thông số trên leader board>) Move hero của player [hero team 1] và hero của player[hero team 2] vào đấu trường,unpause unit,cho trigger arena chạy đó... Í tưởng là vậy....
Mã: Start Duel Events Time - Duel expires Conditions Team1Dying Equal to False Team2Dying Equal to False Actions Unit - Pause all units Game - Display to (All players) the text: choi no' di ma`y 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 12, do (Set HeroSavePoints[(Integer A)] = (Position of Heroes[(Integer A)])) For each (Integer A) from 1 to 12, do (Set HeroSaveDirection[(Integer A)] = (Facing of Heroes[(Integer A)])) For each (Integer A) from 1 to 12, do (Unit - Move Heroes[(Integer A)] instantly to (Center of HeroDuelSpots[(Integer A)])) For each (Integer A) from 1 to 12, do (Unit - Make Heroes[(Integer A)] face (Center of Duel Arena <gen>) over 0.00 seconds) For each (Integer A) from 1 to 12, do (Unit - Make Heroes[(Integer A)] Invulnerable) Set TempMaxKill = 0 For 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)) For 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 Dueler <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 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)) For 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 Dueler <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 PH1 <gen> Game - Display to (All players) the text: 3! Wait 1.00 seconds Game - Display to (All players) the text: 2! Wait 1.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... Unit - Unpause Team1LeaderHero Unit - Unpause AlwyS-LosT`S Almighty Eye 0235 <gen> Unit - Unpause Team2LeaderHero Unit - Unpause AlwyS-LosT`S Almighty Eye 0236 <gen> 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)) Mã: End Duel Events Conditions Actions Unit - Pause all units For each (Integer A) from 1 to 12, do (Unit - Move Heroes[(Integer A)] instantly to HeroSavePoints[(Integer A)], facing HeroSaveDirection[(Integer A)] degrees) For each (Integer A) from 1 to 12, do (Unit - Make Heroes[(Integer A)] Vulnerable) For 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 MuradinTaunt1 <gen> Wait 5.00 seconds Set bDuel = False Set bPasued = False Unit - Unpause all units Wait 1.00 seconds Sound - Play NightElf1 <gen> Countdown Timer - Start Duel as a One-shot timer that will expire in 240seconds Trigger - Turn on Send Them In <gen> Trigger - Run Unit movement Refresh <gen> (ignoring conditions) Wait 1.00 seconds Unit Group - Pick every unit in (Units in Duel Arena <gen>) and do (Unit - Kill (Picked unit))