- Joined
- Oct 17, 2012
- Messages
- 849
Please explain why does the trigger below crashes. If you need to see the map, say.
-
Start Duel
-
Events
- Time - Duel expires
- Conditions
-
Actions
- Unit - Pause all units
- Game - Display to (All players) the text: Two have been chose...
- Set bDuel = True
- Countdown Timer - Hide Duel_Win
- Sound - Stop music After fading
- Wait 3.00 seconds
- Set Hero_DL = (Center of Duel <gen>)
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
- Camera - Pan camera for (Picked player) to Hero_DL over 1.00 seconds
-
Loop - Actions
-
For each (Integer HDI2) from 1 to 12, do (Actions)
-
Loop - Actions
- Set Hero_SaveL[HDI2] = (Position of bankHero[HDI2])
- Set Hero_SaveD[HDI2] = (Facing of bankHero[HDI2])
-
Loop - Actions
-
For each (Integer HDI2) from 1 to 12, do (Actions)
-
Loop - Actions
- Unit - Move bankHero[HDI2] instantly to (Center of Hero_DS[HDI2])
- Unit - Make bankHero[HDI2] face Hero_DL over 0.00 seconds
- Unit - Make bankHero[HDI2] Invulnerable
-
Loop - Actions
- Custom script: call RemoveLocation(udg_Hero_DL)
- Set Team1LeaderHero = bankHero[(Player number of (Random player from Host_HG))]
- Set HD_Loc = (Center of DuelStart1 <gen>)
- Unit - Move Team1LeaderHero instantly to HD_Loc
- Unit - Set life of Team1LeaderHero to 100.00%
- Unit - Set mana of Team1LeaderHero to 100.00%
- Unit - Make Team1LeaderHero Vulnerable
- Custom script: call RemoveLocation(udg_HD_Loc)
- Set Team2LeaderHero = bankHero[(Player number of (Random player from Host_PG))]
- Set HD_Loc = (Center of DuelStart2 <gen>)
- Unit - Move Team2LeaderHero instantly to (Center of DuelStart2 <gen>)
- Unit - Set life of Team2LeaderHero to 100.00%
- Unit - Set mana of Team2LeaderHero to 100.00%
- Unit - Make Team2LeaderHero Vulnerable
- Custom script: call RemoveLocation(udg_HD_Loc)
- 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 Eye of Sauron 0140 <gen>
- Unit - Unpause Team2LeaderHero
- Unit - Unpause Eye of Sauron 0139 <gen>
- Countdown Timer - Start DuelTime as a One-shot timer that will expire in 120.00 seconds
- Set DuelTime = (Last started timer)
- Countdown Timer - Create a timer window for DuelTime with title Duel Ends
- Countdown Timer - Show DuelTime_Win
- Trigger - Add to End Duel <gen> the event (Time - DuelTime expires)
-
Events