SwedishChef
New Member
- Reaction score
- 32
Okey, I tested my map today but someone it had this big bug in it. I checked it up and it seems like there is problem with a wait for condition action. Check the trigger. The wait is in the middle of the trigger. First the "For each integer" checks which value a variable of mine has and then runs a movie-trigger depending on the value.
Problem is when I played this trigger ran the right movie-trigger as is should but then skipped the wait and continued without the "Wait until (ArenaMovieOn[(Integer A)] Equal to False..." wait. I don't understand since the ArenaMovieOn bolean is initially set to true and I even added a trigger which runs on Map Initialization setting ArenaMovieOn to true.
So any guess what's happening here? If you want I can cut off some of the action in the start since they basically does nothing. But could be good to have the whole trigger.
Problem is when I played this trigger ran the right movie-trigger as is should but then skipped the wait and continued without the "Wait until (ArenaMovieOn[(Integer A)] Equal to False..." wait. I don't understand since the ArenaMovieOn bolean is initially set to true and I even added a trigger which runs on Map Initialization setting ArenaMovieOn to true.
So any guess what's happening here? If you want I can cut off some of the action in the start since they basically does nothing. But could be good to have the whole trigger.
Trigger:
- Arena
- Events
- Conditions
- Actions
- Set ArenaCount = (ArenaCount + 1)
- Set MyLocation = (Center of Arena <gen>)
- Player Group - Pick every player in All_Players and do (Actions)
- Loop - Actions
- Hero - Instantly revive Hero[(Player number of (Picked player))] at MyLocation, Hide revival graphics
- Loop - Actions
- Custom script: call RemoveLocation(udg_MyLocation)
- Set ArenaFacing = (Center of Arena Face Point <gen>)
- Trigger - Turn on First Blood <gen>
- Trigger - Turn on Hero Dies <gen>
- Set MyLocation = (Random point in Arena Visitors <gen>)
- Unit - Create 1 Villager (Male 2) for Neutral Passive at MyLocation facing ArenaFacing
- Custom script: call RemoveLocation(udg_MyLocation)
- Set MyLocation = (Random point in Arena Visitors <gen>)
- Unit - Create 1 Villager (Male) for Neutral Passive at MyLocation facing ArenaFacing
- Custom script: call RemoveLocation(udg_MyLocation)
- Set MyLocation = (Random point in Arena Visitors Copy <gen>)
- Unit - Create 1 Child (2) for Neutral Passive at MyLocation facing ArenaFacing
- Custom script: call RemoveLocation(udg_MyLocation)
- Set MyLocation = (Random point in Arena Visitors Copy <gen>)
- Unit - Create 1 Villager (Male) for Neutral Passive at MyLocation facing ArenaFacing
- Custom script: call RemoveLocation(udg_MyLocation)
- Set MyLocation = (Random point in Arena Visitors Copy <gen>)
- Unit - Create 1 Child (2) for Neutral Passive at MyLocation facing ArenaFacing
- Custom script: call RemoveLocation(udg_MyLocation)
- Player Group - Pick every player in (All players) and do (Camera - Pan camera for (Picked player) to ArenaFacing over 5.00 seconds)
- Cinematic - Fade out over 5.00 seconds using texture White Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency
- If (RandomArena Equal to True) then do (If ((Random integer number between 1 and 3) Equal to 1) then do (Trigger - Run Arena Init <gen> (checking conditions)) else do (If ((Random integer number between 1 and 2) Equal to 1) then do (Trigger - Run Goblin Land Init <gen> (checking conditions)) else else do (Do nothing)
- Wait 5.00 seconds
- Trigger - Run Move Hero <gen> (checking conditions)
- For each (Integer A) from 1 to 3, do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Arenas Equal to (Integer A)
- ArenaMovieOn[(Integer A)] Equal to True
- Then - Actions
- Trigger - Run Movie[(Integer A)] (checking conditions)
- Wait until (ArenaMovieOn[(Integer A)] Equal to False), checking every 1.00 seconds
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Player Group - Pick every player in All_Players and do (Actions)
- Loop - Actions
- Set MyLocation = (Position of Hero[(Player number of (Picked player))])
- Camera - Pan camera for (Picked player) to MyLocation over 1.00 seconds
- Custom script: call RemoveLocation(udg_MyLocation)
- Loop - Actions
- Cinematic - Fade in over 1.00 seconds using texture White Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency
- Sound - Play ArrangedTeamInvitation <gen>
- Wait 4.00 seconds
- Game - Display to (All players) the text: Duel Arena Battle b...
- Wait 1.50 seconds
- Game - Display to (All players) the text: 3!
- Sound - Play BattleNetTick <gen>
- Wait 1.00 seconds
- Game - Display to (All players) the text: 2!
- Sound - Play BattleNetTick <gen>
- Wait 1.00 seconds
- Game - Display to (All players) the text: 1!
- Sound - Play BattleNetTick <gen>
- Wait 1.00 seconds
- Game - Display to (All players) the text: START FIGHTING!
- Set MyUnitGroup = (Units in ArenaRegion)
- Unit Group - Pick every unit in MyUnitGroup and do (Actions)
- Loop - Actions
- Unit - Unpause (Picked unit)
- Unit - Make (Picked unit) Vulnerable
- Loop - Actions
- If (Arenas Equal to 2) then do (Trigger - Turn on Mines <gen>) else do (If (Arenas Equal to 3) then do (Trigger - Turn on Impale Point <gen>) else do (Do nothing))
- Custom script: call RemoveLocation(udg_ArenaFacing)
- Custom script: call DestroyGroup(udg_MyUnitGroup)