xAnaMorphine
Active Member
- Reaction score
- 43
Imagine, 3on3: Team A wins all heroes of team b are dead but it doesnt warp back:
Trigger:
- Start Arena Timer
- Events
- Conditions
- Actions
- Countdown Timer - Start Arena_Timer as a One-shot timer that will expire in 120.00 seconds
- Countdown Timer - Create a timer window for (Last started timer) with title Arena Fight in...
- Countdown Timer - Show (Last created timer window)
Trigger:
- Setup Arena
- Events
- Time - Arena_Timer expires
- Conditions
- Actions
- Countdown Timer - Destroy (Last created timer window)
- Sound - Play prepare <gen>
- Game - Display to (All players) the text: Notice: Prepare for...
- Wait 1.00 seconds
- Sound - Play BattleNetTick <gen>
- Game - Display to (All players) the text: 5...
- Wait 1.00 seconds
- Sound - Play BattleNetTick <gen>
- Game - Display to (All players) the text: 4...
- Wait 1.00 seconds
- Sound - Play BattleNetTick <gen>
- Game - Display to (All players) the text: 3...
- Wait 1.00 seconds
- Sound - Play BattleNetTick <gen>
- Game - Display to (All players) the text: 2...
- Wait 1.00 seconds
- Sound - Play BattleNetTick <gen>
- Game - Display to (All players) the text: 1...
- Wait 1.00 seconds
- Player Group - Pick every player in PlayerGroup[1] and do (Actions)
- Loop - Actions
- Unit Group - Pick every unit in (Units owned by (Picked player) matching ((((Matching unit) is A Hero) Equal to True) and ((Unit-type of (Matching unit)) Not equal to Stash))) and do (Actions)
- Loop - Actions
- Unit - Move (Picked unit) instantly to (Center of Arena 1 Team A Spawn <gen>)
- Camera - Set the camera bounds for (Owner of (Picked unit)) to Arena 1 <gen>
- Camera - Pan camera for (Owner of (Picked unit)) to (Center of Arena 1 Team A Spawn <gen>) over 0.00 seconds
- Unit - Set life of (Picked unit) to 100.00%
- Unit - Set mana of (Picked unit) to 100.00%
- Loop - Actions
- Unit Group - Pick every unit in (Units owned by (Picked player) matching ((((Matching unit) is A Hero) Equal to True) and ((Unit-type of (Matching unit)) Not equal to Stash))) and do (Actions)
- Loop - Actions
- Player Group - Pick every player in PlayerGroup[2] and do (Actions)
- Loop - Actions
- Unit Group - Pick every unit in (Units owned by (Picked player) matching ((((Matching unit) is A Hero) Equal to True) and ((Unit-type of (Matching unit)) Not equal to Stash))) and do (Actions)
- Loop - Actions
- Unit - Move (Picked unit) instantly to (Center of Arena 1 Team B Spawn <gen>)
- Camera - Set the camera bounds for (Owner of (Picked unit)) to Arena 1 <gen>
- Camera - Pan camera for (Owner of (Picked unit)) to (Center of Arena 1 Team B Spawn <gen>) over 0.00 seconds
- Unit - Set life of (Picked unit) to 100.00%
- Unit - Set mana of (Picked unit) to 100.00%
- Loop - Actions
- Unit Group - Pick every unit in (Units owned by (Picked player) matching ((((Matching unit) is A Hero) Equal to True) and ((Unit-type of (Matching unit)) Not equal to Stash))) and do (Actions)
- Loop - Actions
- Unit Group - Pick every unit in (Units in Arena 1 <gen>) and do (Actions)
- Loop - Actions
- Set Arena_UnitGroup[1] = (Units in Arena 1 <gen> matching (((Matching unit) belongs to an enemy of (Random player from PlayerGroup[2])) Equal to True))
- Set Arena_UnitGroup[2] = (Units in Arena 1 <gen> matching (((Matching unit) belongs to an enemy of (Random player from PlayerGroup[1])) Equal to True))
- Loop - Actions
- Trigger - Turn on Warp Back <gen>
- Trigger - Run Warp Back <gen> (ignoring conditions)
- Events
Trigger:
- Warp Back
- Events
- Time - Every 2.00 seconds of game time
- Conditions
- Or - Any (Conditions) are true
- Conditions
- (Number of units in Arena_UnitGroup[1]) Equal to 0
- (Number of units in Arena_UnitGroup[2]) Equal to 0
- Conditions
- Or - Any (Conditions) are true
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Number of units in Arena_UnitGroup[2]) Equal to 0
- Then - Actions
- Player Group - Pick every player in PlayerGroup[1] and do (Actions)
- Loop - Actions
- Player - Add 1 to (Picked player) Current lumber
- Unit Group - Pick every unit in (Units owned by (Picked player) matching ((((Matching unit) is A Hero) Equal to True) and ((Unit-type of (Matching unit)) Not equal to Stash))) and do (Actions)
- Loop - Actions
- Unit - Move (Picked unit) instantly to (Center of Team A <gen>)
- Loop - Actions
- Camera - Set the camera bounds for (Picked player) to Team A <gen>
- Camera - Pan camera for (Owner of (Picked unit)) to (Center of Team A <gen>) over 0.00 seconds
- Game - Display to (All players) the text: Team A wins!
- Player Group - Pick every player in (All players) and do (Actions)
- Loop - Actions
- Player - Add 350 to (Picked player) Current gold
- Player - Add 1 to (Picked player) Current lumber
- Loop - Actions
- Loop - Actions
- Player Group - Pick every player in PlayerGroup[1] and do (Actions)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Number of units in Arena_UnitGroup[1]) Equal to 0
- Then - Actions
- Player Group - Pick every player in PlayerGroup[2] and do (Actions)
- Loop - Actions
- Player - Add 1 to (Picked player) Current lumber
- Unit Group - Pick every unit in (Units owned by (Picked player) matching ((((Matching unit) is A Hero) Equal to True) and ((Unit-type of (Matching unit)) Not equal to Stash))) and do (Actions)
- Loop - Actions
- Unit - Move (Picked unit) instantly to (Center of Team B <gen>)
- Loop - Actions
- Camera - Set the camera bounds for (Picked player) to Team B <gen>
- Camera - Pan camera for (Owner of (Picked unit)) to (Center of Team B <gen>) over 0.00 seconds
- Game - Display to (All players) the text: Team B wins!
- Player Group - Pick every player in (All players) and do (Actions)
- Loop - Actions
- Player - Add 350 to (Picked player) Current gold
- Player - Add 1 to (Picked player) Current lumber
- Loop - Actions
- Loop - Actions
- Player Group - Pick every player in PlayerGroup[2] and do (Actions)
- Else - Actions
- If - Conditions
- Trigger - Run Start Arena Timer <gen> (ignoring conditions)
- Trigger - Turn off (This trigger)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events