arena system dont work like it should...

Happy

Well-Known Member
Reaction score
71
Hey guys...

like i already said in another thread here i have a problem with my arena system. the problems are listed below the triggers.

Here are the triggers:

Trigger:
  • arena timer and timer window
    • Events
      • Unit - A unit enters first hero spawn <gen>
    • Conditions
    • Actions
      • Countdown-Timer - Start arena_timer as a One-Shot timer that will expire in 60.00 seconds
      • Countdown-Timer - Create a timer window for arena_timer with title Arena starts in...
      • Set timer_window = (Last created timer window)
      • Countdown-Timer - Show (Last created timer window)
      • Trigger - Turn off (This trigger)


Trigger:
  • arena trigger
    • Events
      • Time - arena_timer expires
    • Conditions
    • Actions
      • Countdown-Timer - Pause arena_timer
      • Countdown-Timer - Destroy timer_window
      • Set Arena_IntegerType = (Random integer number between 1 and 3)
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • 'IF'-Conditions
            • Arena_IntegerType Equal to (==) 1
          • 'THEN'-Actions
            • Trigger - Run arena1 <gen> (ignoring conditions)
            • Set Arena_Boolean = True
          • 'ELSE'-Actions
            • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • 'IF'-Conditions
                • Arena_IntegerType Equal to (==) 2
              • 'THEN'-Actions
                • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • 'IF'-Conditions
                    • (Number of units in heaven_unit_group) Greater than/Equal to (>=) 2
                  • 'THEN'-Actions
                    • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      • 'IF'-Conditions
                        • (Number of units in hell_unit_group) Greater than/Equal to (>=) 2
                      • 'THEN'-Actions
                        • Trigger - Run arena2 <gen> (ignoring conditions)
                        • Set Arena_Boolean = True
                      • 'ELSE'-Actions
                        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                          • 'IF'-Conditions
                            • (Number of units in hell_unit_group) Greater than/Equal to (>=) 1
                          • 'THEN'-Actions
                            • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                              • 'IF'-Conditions
                                • (Number of units in heaven_unit_group) Greater than/Equal to (>=) 1
                              • 'THEN'-Actions
                                • Trigger - Run arena3 <gen> (ignoring conditions)
                                • Set Arena_Boolean = True
                              • 'ELSE'-Actions
                                • Trigger - Run arena1 <gen> (ignoring conditions)
                                • Set Arena_Boolean = True
                          • 'ELSE'-Actions
                            • Trigger - Run arena1 <gen> (ignoring conditions)
                            • Set Arena_Boolean = True
                  • 'ELSE'-Actions
                    • Trigger - Run arena3 <gen> (ignoring conditions)
                    • Set Arena_Boolean = True
              • 'ELSE'-Actions
                • Trigger - Run arena3 <gen> (ignoring conditions)
                • Set Arena_Boolean = True


Trigger:
  • arena1
    • Events
    • Conditions
    • Actions
      • Countdown-Timer - Start CreepsArena_Timer as a One-Shot timer that will expire in 0.10 seconds
      • Set Temp_Group = (Units in (Entire map))
      • Unit Group - Pick every unit in Temp_Group and do (Actions)
        • Loop - Actions
          • Unit - Make (Picked unit) Invurnable
          • Unit - Pause (Picked unit)
      • Custom script: call DestroyGroup (udg_Temp_Group)
      • Set Temp_Group = heaven_unit_group
      • Unit Group - Pick every unit in (Random 1 units from Temp_Group) and do (Actions)
        • Loop - Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Conditions
              • ((Picked unit) is dead) Equal to (==) True
            • 'THEN'-Actions
              • Set Temp_Point = (Center of revive heaven <gen>)
              • Hero - Instantly revive (Picked unit) at Temp_Point, Hide revival graphics
              • Custom script: call RemoveLocation (udg_Temp_Point)
            • 'ELSE'-Actions
          • Set Temp_Point = (Center of edge L port <gen>)
          • Set player_positions[(Player number of (Owner of (Picked unit)))] = (Position of (Picked unit))
          • Unit - Move (Picked unit) instantly to Temp_Point
          • Unit - Set life of (Picked unit) to 100.00%
          • Unit - Set mana of (Picked unit) to 100.00%
          • Custom script: call RemoveLocation (udg_Temp_Point)
          • Set Arena_Heroes[1] = (Picked unit)
      • Custom script: call DestroyGroup (udg_Temp_Group)
      • Set Temp_Group = hell_unit_group
      • Unit Group - Pick every unit in (Random 1 units from Temp_Group) and do (Actions)
        • Loop - Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Conditions
              • ((Picked unit) is dead) Equal to (==) True
            • 'THEN'-Actions
              • Set Temp_Point = (Center of revive hell <gen>)
              • Hero - Instantly revive (Picked unit) at Temp_Point, Hide revival graphics
              • Custom script: call RemoveLocation (udg_Temp_Point)
            • 'ELSE'-Actions
          • Set Temp_Point = (Center of edge R port <gen>)
          • Set player_positions[(Player number of (Owner of (Picked unit)))] = (Position of (Picked unit))
          • Unit - Move (Picked unit) instantly to Temp_Point
          • Unit - Set life of (Picked unit) to 100.00%
          • Unit - Set mana of (Picked unit) to 100.00%
          • Custom script: call RemoveLocation (udg_Temp_Point)
          • Set Arena_Heroes[2] = (Picked unit)
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Conditions
              • (Arena_Heroes[1] belongs to an ally of (Picked player)) Equal to (==) True
            • 'THEN'-Actions
              • Set Temp_Point = (Position of Arena_Heroes[1])
              • Camera - Pan camera for (Picked player) to Temp_Point over 0.00 seconds
              • Custom script: call RemoveLocation (udg_Temp_Point)
            • 'ELSE'-Actions
              • Set Temp_Point = (Position of Arena_Heroes[2])
              • Camera - Pan camera for (Picked player) to Temp_Point over 0.00 seconds
              • Custom script: call RemoveLocation (udg_Temp_Point)
      • Game - Display to (All players) the text: |cffFFB90FArena Mod...
      • Wait 2.00 seconds
      • 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: |cffFF3030GO!!!|r
      • Set Creep_Number = (Random integer number between 1 and 20)
      • Set Creep_ArenaNumber = (Random integer number between 1 and 6)
      • Set Temp_Point = (Random point in edge L <gen>)
        • Do Multiple ActionsFor each (Integer A) from 1 to Creep_Number, do (Actions)
          • Loop - Actions
            • Unit - Create 1 creeps_spawn_arena[Creep_ArenaNumber] for Neutral Hostile at Temp_Point facing ...
            • Unit Group - Add (Last created unit) to CreepsInArena[1]
      • Custom script: call RemoveLocation (udg_Temp_Point)
      • Set Temp_Point = (Random point in edge R <gen>)
        • Do Multiple ActionsFor each (Integer A) from 1 to Creep_Number, do (Actions)
          • Loop - Actions
            • Unit - Create 1 creeps_spawn_arena[Creep_ArenaNumber] for Neutral Hostile at Temp_Point facing ...
            • Unit Group - Add (Last created unit) to CreepsInArena[2]
      • Custom script: call RemoveLocation (udg_Temp_Point)
      • Set Temp_Group = (Units in edge L <gen>)
      • Unit Group - Pick every unit in Temp_Group and do (Actions)
        • Loop - Actions
          • Unit - Make (Picked unit) Vurnable
          • Unit - Unpause (Picked unit)
      • Custom script: call DestroyGroup(udg_Temp_Group)
      • Set Temp_Group = (Units in edge R <gen>)
      • Unit Group - Pick every unit in Temp_Group and do (Actions)
        • Loop - Actions
          • Unit - Make (Picked unit) Vurnable
          • Unit - Unpause (Picked unit)
      • Custom script: call DestroyGroup(udg_Temp_Group)
      • Trigger - Turn off revival <gen>


Trigger:
  • arena1 death check
    • Events
      • Unit - A unit Dies
    • Conditions
      • Arena_Boolean Equal to (==) True
    • Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Conditions
          • Arena_IntegerType Equal to (==) 1
        • 'THEN'-Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Conditions
              • ((Triggering unit) is in CreepsInArena[1]) Equal to (==) True
            • 'THEN'-Actions
              • Unit Group - Remove (Triggering unit) from CreepsInArena[1]
                • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • 'IF'-Conditions
                    • (Number of units in CreepsInArena[1]) Equal to (==) 0
                  • 'THEN'-Actions
                    • Set heaven_done = True
                    • Game - Display to (All players) the text: |cffFBB117Heaven fi...
                    • Game - Display to (All players) the text: (Each Player of Team Heaven got |cffFFC125 + ((String((500 x Creep_Number))) + |r Gold.))
                    • Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Actions)
                      • Loop - Actions
                        • Player - Add (500 x Creep_Number) to (Picked player) Gold
                  • 'ELSE'-Actions
            • 'ELSE'-Actions
              • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • 'IF'-Conditions
                  • ((Triggering unit) is in CreepsInArena[2]) Equal to (==) True
                • 'THEN'-Actions
                  • Unit Group - Remove (Triggering unit) from CreepsInArena[2]
                    • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      • 'IF'-Conditions
                        • (Number of units in CreepsInArena[2]) Equal to (==) 0
                      • 'THEN'-Actions
                        • Set hell_done = True
                        • Game - Display to (All players) the text: |cffFBB117Hell fini...
                        • Game - Display to (All players) the text: (Each Player of Team Hell got |cffFFC125 + ((String((500 x Creep_Number))) + |r Gold.))
                        • Player Group - Pick every player in (All allies of Player 7 (Green)) and do (Actions)
                          • Loop - Actions
                            • Player - Add (500 x Creep_Number) to (Picked player) Gold
                      • 'ELSE'-Actions
                • 'ELSE'-Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Conditions
              • (Triggering unit) Equal (==) Arena_Heroes[1]
            • 'THEN'-Actions
              • Set heaven_done = True
              • Game - Display to (All players) the text: |cffFBB117Heaven fa...
              • Unit Group - Pick every unit in CreepsInArena[1] and do (Actions)
                • Loop - Actions
                  • Unit - Add a 1.00 second Standard expiration timer to (Picked unit)
                  • Unit Group - Remove (Picked unit) from CreepsInArena[1]
            • 'ELSE'-Actions
              • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • 'IF'-Conditions
                  • (Triggering unit) Equal to (==) Arena_Heroes[2]
                • 'THEN'-Actions
                  • Set hell_done = True
                  • Game - Display to (All players) the text: |cffFBB117Hell fail...
                  • Unit Group - Pick every unit in CreepsInArena[2] and do (Actions)
                    • Loop - Actions
                      • Unit - Add a 1.00 second Standard expiration timer to (Picked unit)
                      • Unit Group - Remove (Picked unit) from CreepsInArena[2]
                • 'ELSE'-Actions
        • 'ELSE'-Actions


Trigger:
  • arena2
    • Events
    • Conditions
    • Actions
      • Set Arena_IntegerType2 = 0
      • Set Arena_IntegerType3 = 2
      • Countdown-Timer - Start CreepsArena_Timer as a One-Shot timer that will expire in 0.10 seconds
      • Set Temp_Group = (Units in (Entire map))
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • Unit - Make (Picked unit) Invurnable
          • Unit - Pause (Picked unit)
      • Custom script: call DestroyGroup (udg_Temp_Group)
      • Set Temp_Group = heaven_unit_group
        • Do Multiple ActionsFor each (Integer A) from 1 to 2, do (Actions)
          • Loop - Actions
            • Unit Group - Pick every unit in (Random 1 units from Temp_Group) and do (Actions)
              • Loop - Actions
                • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • 'IF'-Conditions
                    • ((Picked unit) is dead) Equal to (==) True
                  • 'THEN'-Actions
                    • Set Temp_Point = (Center of revive heaven <gen>)
                    • Hero - Instantly revive (Picked unit) at Temp_Point, Hide revival graphics
                    • Custom script: call RemoveLocation (udg_Temp_Point)
                      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • 'IF'-Conditions
                          • (Integer A) Equal to (==) 1
                        • 'THEN'-Actions
                          • Set Temp_Point = (Center of CreepsArenaHeavenPort <gen>)
                        • 'ELSE'-Actions
                          • Set Temp_Point = (Center of CreepsArenaHeavenPort2 <gen>)
                    • Set player_positions[(Player number of (Owner of (Picked unit)))] = (Position of (Picked unit))
                    • Unit - Move (Picked unit) instantly to Temp_Point
                    • Unit - Set life of (Picked unit) to 100.00%
                    • Unit - Set mana of (Picked unit) to 100.00%
                    • Custom script: call RemoveLocation (udg_Temp_Point)
                    • Set Arena_Heroes[(Integer A)] = (Picked unit)
                  • 'ELSE'-Actions
                    • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      • 'IF'-Conditions
                        • (Integer A) Equal to (==) 1
                      • 'THEN'-Actions
                        • Set Temp_Point = (Center of CreepsArenaHeavenPort <gen>)
                      • 'ELSE'-Actions
                        • Set Temp_Point = (Center of CreepsArenaHeavenPort2 <gen>)
                    • Set player_positions[(Player number of (Owner of (Picked unit)))] = (Position of (Picked unit))
                    • Unit - Move (Picked unit) instantly to Temp_Point
                    • Unit - Set life of (Picked unit) to 100.00%
                    • Unit - Set mana of (Picked unit) to 100.00%
                    • Custom script: call RemoveLocation (udg_Temp_Point)
                    • Set Arena_Heroes[(Integer A)] = (Picked unit)
      • Custom script: call DestroyGroup (udg_Temp_Group)
      • Set Temp_Group = hell_unit_group
        • Do Multiple ActionsFor each (Integer A) from 3 to 4, do (Actions)
          • Loop - Actions
            • Unit Group - Pick every unit in (Random 1 units from Temp_Group) and do (Actions)
              • Loop - Actions
                • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • 'IF'-Conditions
                    • ((Picked unit) is dead) Equal to (==) True
                  • 'THEN'-Actions
                    • Set Temp_Point = (Center of revive hell <gen>)
                    • Hero - Instantly revive (Picked unit) at Temp_Point, Hide revival graphics
                    • Custom script: call RemoveLocation (udg_Temp_Point)
                      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • 'IF'-Conditions
                          • (Integer A) Equal to (==) 3
                        • 'THEN'-Actions
                          • Set Temp_Point = (Center of CreepsArenaHellPort <gen>)
                        • 'ELSE'-Actions
                          • Set Temp_Point = (Center of CreepsArenaHellPort2 <gen>)
                    • Set player_positions[(Player number of (Owner of (Picked unit)))] = (Position of (Picked unit))
                    • Unit - Move (Picked unit) instantly to Temp_Point
                    • Unit - Set life of (Picked unit) to 100.00%
                    • Unit - Set mana of (Picked unit) to 100.00%
                    • Custom script: call RemoveLocation (udg_Temp_Point)
                    • Set Arena_Heroes[(Integer A)] = (Picked unit)
                  • 'ELSE'-Actions
                    • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      • 'IF'-Conditions
                        • (Integer A) Equal to (==) 3
                      • 'THEN'-Actions
                        • Set Temp_Point = (Center of CreepsArenaHellPort <gen>)
                      • 'ELSE'-Actions
                        • Set Temp_Point = (Center of CreepsArenaHellPort2 <gen>)
                    • Set player_positions[(Player number of (Owner of (Picked unit)))] = (Position of (Picked unit))
                    • Unit - Move (Picked unit) instantly to Temp_Point
                    • Unit - Set life of (Picked unit) to 100.00%
                    • Unit - Set mana of (Picked unit) to 100.00%
                    • Custom script: call RemoveLocation (udg_Temp_Point)
                    • Set Arena_Heroes[(Integer A)] = (Picked unit)
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Conditions
              • (Arena_Heroes[1] belongs to an ally of (Picked player)) Equal to (==) True
            • 'THEN'-Actions
              • Set Temp_Point = (Position of Arena_Heroes[1])
              • Camera - Pan camera for (Picked player) to Temp_Point over 0.00 seconds
              • Custom script: call RemoveLocation (udg_Temp_Point)
            • 'ELSE'-Actions
              • Set Temp_Point = (Position of Arena_Heroes[3])
              • Camera - Pan camera for (Picked player) to Temp_Point over 0.00 seconds
              • Custom script: call RemoveLocation (udg_Temp_Point)
      • Game - Display to (All players) the text: |cffFFB90FArena Mod...
      • Wait 2.00 seconds
      • 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: |cffFF3030GO!!!|r
      • Set Creep_Number = (Random integer number between 10 and 40)
      • Set Creep_ArenaNumber = (Random integer number between 1 and 6)
      • Set Temp_Point = (Random point in CreepsArenaHeaven <gen>)
        • Do Multiple ActionsFor each (Integer A) from 1 to Creep_Number, do (Actions)
          • Loop - Actions
            • Unit - Create 1 creeps_spawn_arena[Creep_ArenaNumber] for Neutral Hostile at Temp_Point facing ...
            • Unit Group - Add (Last created unit) to CreepsInArena[1]
      • Custom script: call RemoveLocation (udg_Temp_Point)
      • Set Temp_Point = (Random point in CreepsArenaHell <gen>)
        • Do Multiple ActionsFor each (Integer A) from 1 to Creep_Number, do (Actions)
          • Loop - Actions
            • Unit - Create 1 creeps_spawn_arena[Creep_ArenaNumber] for Neutral Hostile at Temp_Point facing ...
            • Unit Group - Add (Last created unit) to CreepsInArena[2]
      • Custom script: call RemoveLocation (udg_Temp_Point)
      • Set Temp_Group = (Units in CreepsArenaHeavenTotal <gen>)
      • Unit Group - Pick every unit in Temp_Group and do (Actions)
        • Schleifen - Aktionen
          • Unit - Make (Picked unit) Vurnable
          • Unit - Unpause (Picked unit)
      • Custom script: call DestroyGroup (udg_Temp_Group)
      • Set Temp_Group = (Units in CreepsArenaHellTotal <gen>)
      • Unit Group - Pick every unit in Temp_Group and do (Actions)
        • Loop - Actions
          • Unit - Make (Picked unit) Vurnable
          • Unit - Unpause (Picked unit)
      • Custom script: call DestroyGroup (udg_Temp_Group)
      • Trigger - Turn off revival <gen>


Trigger:
  • arena2 death check
    • Events
      • Unit - A unit Dies
    • Conditions
      • Arena_Boolean Equal to (==) True
    • Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Conditions
          • Arena_IntegerType Equal to (==) 2
        • 'THEN'-Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Conditions
              • ((Triggering unit) is in CreepsInArena[1]) Equal to (==) True
            • 'THEN'-Actions
              • Unit Group - Remove (Triggering unit) from CreepsInArena[1]
                • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • 'IF'-Conditions
                    • (Number of units in CreepsInArena[1]) Equal to (==) 0
                  • 'THEN'-Actions
                    • Set heaven_done = True
                    • Game - Display to (All players) the text: |cffFBB117Heaven fi...
                    • Game - Display to (All players) the text: (Each Player of Team Heaven got |cffFFC125 + ((String((500 x Creep_Number))) + |r Gold.))
                    • Player Group - Pick every player in (All allies of Spieler 1 (Rot)) and do (Actions)
                      • Loop - Actions
                        • Player - Add (500 x Creep_Number) to (Picked player) Gold
                  • 'ELSE'-Actions
            • 'ELSE'-Actions
              • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • 'IF'-Conditions
                  • ((Triggering unit) is in CreepsInArena[2]) Equal to (==) True
                • 'THEN'-Actions
                  • Unit Group - Remove (Triggering unit) from CreepsInArena[2]
                    • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      • 'IF'-Conditions
                        • (Number of units in CreepsInArena[2]) Equal to (==) 0
                      • 'THEN'-Actions
                        • Set hell_done = True
                        • Game - Display to (All players) the text: |cffFBB117Hell fini...
                        • Game - Display to (All players) the text: (Each Player of Team Hell got |cffFFC125 + ((String((500 x Creep_Number))) + |r Gold.))
                        • Player Group - Pick every player in (All allies of Player 7 (Green)) and do (Actions)
                          • Loop - Actions
                            • Player - Add (500 x Creep_Number) to (Picked player) Gold
                      • 'ELSE'-Actions
                • 'ELSE'-Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Conditions
              • Multiple ConditionsOr - Any (Conditions) are true
                • Conditions
                  • (Triggering unit) Equal to (==) Arena_Heroes[1]
                  • (Triggering unit) Equal to (==) Arena_Heroes[2]
            • 'THEN'-Actions
              • Set Arena2Integer[1] = (Arena2Integer[1] + 1)
                • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • 'IF'-Conditions
                    • Arena2Integer[1] Equal to (==) 2
                  • 'THEN'-Actions
                    • Game - Display to (All players) the text: |cffFBB117Both Hero...
                    • Game - Display to (All players) the text: |cffFBB117Heaven fa...
                    • Unit Group - Pick every unit in CreepsInArena[1] and do (Actions)
                      • Loop - Actions
                        • Unit - Add a 1.00 second Standard expiration timer to (Picked unit)
                        • Unit Group - Remove (Picked unit) from CreepsInArena[1]
                    • Set heaven_done = True
                  • 'ELSE'-Actions
                    • Game - Display to (All players) the text: |cffFBB117One Hero ...
            • 'ELSE'-ACtions
              • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • 'IF'-Conditions
                  • Multiple ConditionsOr - Any (Conditions) are true
                    • Conditions
                      • (Triggering unit) Equal to (==) Arena_Heroes[3]
                      • (Triggering unit) Equal to (==) Arena_Heroes[4]
                • 'THEN'-Actions
                  • Set Arena2Integer[2] = (Arena2Integer[2] + 1)
                    • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      • 'IF'-Conditions
                        • Arena2Integer[2] Equal to (==) 2
                      • 'THEN'-Actions
                        • Game - Display to (All players) the text: |cffFBB117Both Hero...
                        • Game - Display to (All players) the text: |cffFBB117Hell fail...
                        • Unit Group - Pick every unit in CreepsInArena[2] and do (Actions)
                          • Loop - Actions
                            • Unit - Add a 1.00 second Standard expiration timer to (Picked unit)
                            • Unit Group - Remove (Picked unit) from CreepsInArena[2]
                        • Set hell_done = True
                      • 'ELSE'-Actions
                        • Game - Display to (All players) the text: |cffFBB117One Hero ...
                • 'ELSE'-Actions
        • 'ELSE'-Actions


Trigger:
  • arena3
    • Events
    • Conditions
    • Actions
      • Set Arena_IntegerType2 = 0
      • Set Arena_HeroesFight = (Random integer number between 1 and 6)
      • Set Arena_IntegerType3 = Arena_HeroesFight
      • Set Creep_Number = Arena_IntegerType3
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • 'IF'-Conditions
            • Multiple ConditionsOr - Any (Conditions) are true
              • Conditions
                • Arena_HeroesFight Greater than (>) (Number of units in heaven_unit_group)
                • Arena_HeroesFight Greater than (>) (Number of units in hell_unit_group)
          • 'THEN'-Actions
            • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • 'IF'-Conditions
                • (Number of units in heaven_unit_group) Greater than (>) (Number of units in hell_unit_group)
              • 'THEN'-Actions
                • Set Arena_HeroesFight = (Number of units in heaven_unit_group)
                • Set Arena_IntegerType3 = Arena_HeroesFight
                • Set Creep_Number = Arena_IntegerType3
              • 'ELSE'-Actions
                • Set Arena_HeroesFight = (Number of units in hell_unit_group)
                • Set Arena_IntegerType3 = Arena_HeroesFight
                • Set Creep_Number = Arena_IntegerType3
          • 'ELSE'-Actions
      • Countdown-Timer - Start CreepsArena_Timer as a One-Shot timer that will expire in 0.10 seconds
      • Set Temp_Group = (Units in (Entire map))
      • Unit Group - Pick every unit in Temp_Group and do (Actions)
        • Loop - Actions
          • Unit - Make (Picked unit) Invurnable
          • Unit - Pause (Picked unit)
      • Custom script: call DestroyGroup (udg_Temp_Group)
      • Set Temp_Group = heaven_unit_group
      • Unit Group - Pick every unit in (Random Arena_HeroesFight units from Temp_Group) and do (Actions)
        • Loop - Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Conditions
              • ((Picked unit) is dead) Equal to (==) True
            • 'THEN'-Actions
              • Set Temp_Point = (Center of revive heaven <gen>)
              • Hero - Instantly revive (Picked unit) at Temp_Point, Hide revival graphics
              • Custom script: call RemoveLocation (udg_Temp_Point)
              • Set Temp_Point = (Center of HeroArenaPortHeaven <gen>)
              • Set player_positions[(Player number of (Owner of (Picked unit)))] = (Position of (Picked unit))
              • Unit - Move (Picked unit) instantly to Temp_Point
              • Unit - Set life of (Picked unit) to 100.00%
              • Unit - Set mana of (Picked unit) to 100.00%
              • Custom script: call RemoveLocation (udg_Temp_Point)
              • Set Arena_IntegerType2 = (Arena_IntegerType2 + 1)
              • Set Arena_Heroes[Arena_IntegerType2] = (Picked unit)
              • Unit Group - Add Arena_Heroes[Arena_IntegerType2] to ArenaHeroFightsGroup[1]
            • 'ELSE'-Actions
              • Set Temp_Point = (Center of HeroArenaPortHeaven <gen>)
              • Set player_positions[(Player number of (Owner of (Picked unit)))] = (Position of (Picked unit))
              • Unit - Move (Picked unit) instantly to Temp_Point
              • Unit - Set life of (Picked unit) to 100.00%
              • Unit - Set mana of (Picked unit) to 100.00%
              • Custom script: call RemoveLocation (udg_Temp_Point)
              • Set Arena_IntegerType2 = (Arena_IntegerType2 + 1)
              • Set Arena_Heroes[Arena_IntegerType2] = (Picked unit)
              • Unit Group - Add Arena_Heroes[Arena_IntegerType2] to ArenaHeroFightsGroup[1]
      • Custom script: call DestroyGroup (udg_Temp_Group)
      • Set Temp_Group = hell_unit_group
      • Unit Group - Pick every unit in (Random Arena_HeroesFight units from Temp_Group) and do (Actions)
        • Loop - Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Conditions
              • ((Picked unit) is dead) Equal to (==) True
            • 'THEN'-Actions
              • Set Temp_Point = (Center of revive hell <gen>)
              • Hero - Instantly revive (Picked unit) at Temp_Point, Verbergen revival graphics
              • Custom script: call RemoveLocation (udg_Temp_Point)
              • Set Temp_Point = (Center of HeroArenaPortHell <gen>)
              • Set player_positions[(Player number of (Owner of (Picked unit)))] = (Position of (Picked unit))
              • Unit - Move (Picked unit) instantly to Temp_Point
              • Unit - Set life of (Picked unit) to 100.00%
              • Unit - Set mana of (Picked unit) to 100.00%
              • Custom script: call RemoveLocation (udg_Temp_Point)
              • Set Arena_IntegerType3 = (Arena_IntegerType3 + 1)
              • Set Arena_Heroes[Arena_IntegerType3] = (Picked unit)
              • Unit Group - Add Arena_Heroes[Arena_IntegerType3] to ArenaHeroFightsGroup[2]
            • 'ELSE'-Actions
              • Set Temp_Point = (Center of HeroArenaPortHell <gen>)
              • Set player_positions[(Player number of (Owner of (Picked unit)))] = (Position of (Picked unit))
              • Unit - Move (Picked unit) instantly to Temp_Point
              • Unit - Set life of (Picked unit) to 100.00%
              • Unit - Set mana of (Picked unit) to 100.00%
              • Custom script: call RemoveLocation (udg_Temp_Point)
              • Set Arena_IntegerType3 = (Arena_IntegerType3 + 1)
              • Set Arena_Heroes[Arena_IntegerType3] = (Picked unit)
              • Unit Group - Add Arena_Heroes[Arena_IntegerType3] to ArenaHeroFightsGroup[2]
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Conditions
              • (Arena_Heroes[1] belongs to an ally of (Picked player)) Equal to (==) True
            • 'THEN'-Actions
              • Set Temp_Point = (Position of Arena_Heroes[1])
              • Camera - Pan camera for (Picked player) to Temp_Point over 0.00 seconds
              • Custom script: call RemoveLocation (udg_Temp_Point)
            • 'ELSE'-Aktionen
              • Set Temp_Point = (Position of Arena_Heroes[Arena_HeroesFight])
              • Camera - Pan camera for (Picked player) to Temp_Point over 0.00 seconds
              • Custom script: call RemoveLocation (udg_Temp_Point)
      • Game - Display to (All players) the text: |cffFFB90FArena Mod...
      • Wait 2.00 seconds
      • 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: |cffFF3030GO!!!|r
      • Set Temp_Group = (Units in HeroArenaTotal <gen>)
      • Unit Group - Pick every unit in Temp_Group and do (Actions)
        • Loop - Actions
          • Unit - Make (Picked unit) Vurnable
          • Unit - Unpause (Picked unit)
      • Custom script: call DestroyGroup(udg_Temp_Group)
      • Trigger - Turn off revival <gen>


Trigger:
  • arena3 death check
    • Events
      • Unit - A unit Dies
    • Conditions
      • Arena_Boolean Equal to (==) True
    • Actions
      • Do Multiple ActionsFor each (Integer A) from 1 to Arena_IntegerType3, do (Actions)
        • Loop - Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Conditions
              • (Triggering unit) Equal to (==) Arena_Heroes[(Integer A)]
            • 'THEN'-Actions
              • Game - Display to (All players) the text: |cffFBB117A Hero of...
              • Set Arena_Heroes[(Integer A)] = Keine Einheit
              • Set Arena3Integer[1] = (Arena3Integer[1] + 1)
                • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • 'IF'-Conditions
                    • Arena3Integer[1] Equal to (==) Arena_IntegerType3
                  • 'THEN'-Actions
                    • Game - Display to (All players) the text: |cffFBB117All Heroe...
                    • Game - Display to (All players) the text: |cffFBB117Heaven lo...
                    • Set heaven_done = True
                    • Set hell_done = True
                    • Game - Display to (All players) the text: (Each Player of Team Hell got |cffFFC125 + ((String((500 x Creep_Number))) + |r Gold.))
                    • Player Group - Pick every player in (All allies of Player 7 (Green)) and do (Actions)
                      • Loop - Actions
                        • Player - Add (500 x Creep_Number) to (Picked player) Gold
                  • 'ELSE'-Actions
            • 'ELSE'-Actions
      • Do Multiple ActionsFor each (Integer A) from Arena_IntegerType3 to (2 x Arena_IntegerType3), do (Actions)
        • Loop - Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Conditions
              • (Triggering unit) Equal to (==) Arena_Heroes[(Integer A)]
            • 'THEN'-Actions
              • Game - Display to (All players) the text: |cffFBB117A Hero of...
              • Set Arena_Heroes[(Integer A)] = No Unit
              • Set Arena3Integer[2] = (Arena3Integer[2] + 1)
                • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • 'IF'-Conditions
                    • Arena3Integer[2] Equal to (==) Arena_IntegerType3
                  • 'THEN'-Actions
                    • Game - Display to (All players) the text: |cffFBB117All Heroe...
                    • Game - Display to (All players) the text: |cffFBB117Hell lost...
                    • Set heaven_done = True
                    • Set hell_done = True
                    • Game - Display to (All players) the text: (Each Player of Team Heaven got |cffFFC125 + ((String((500 x Creep_Number))) + |r Gold.))
                    • Player Group - Pick every player in (All allies of Spieler 1 (Rot)) and do (Actions)
                      • Loop - Actions
                        • Player - Add (500 x Creep_Number) to (Picked player) Gold
                  • 'ELSE'-Actions
            • 'ELSE'-Actions


Trigger:
  • finished
    • Events
      • Time - CreepsArena_Timer expires
    • Conditions
    • Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Conditions
          • heaven_done Equal to (==) True
        • 'THEN'-Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Conditions
              • hell_done Equal to (==) True
            • 'THEN'-Actions
              • Trigger - Turn on revival <gen>
              • Trigger - Run port back and unpause <gen> (ignoring conditions)
              • Set Arena_Boolean = False
            • 'ELSE'-Actions
        • 'ELSE'-Actions


Trigger:
  • port back and unpause
    • Events
    • Conditions
    • Actions
      • Set Temp_Group = (Units in (Entire map))
      • Unit Group - Pick every unit in Temp_Group and do (Actions)
        • Loop - Actions
          • Do Multiple ActionsFor each (Integer A) from 1 to 20, do (Actions)
            • Loop - Actions
              • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • 'IF'-Conditions
                  • (Unit-type of (Picked unit)) Equal to (==) LabyCreeps[(Integer A)]
                • 'THEN'-Actions
                • 'ELSE'-Actions
                  • Unit - Pause (Picked unit)
                  • Unit - Make (Picked unit) Verwundbar
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • 'IF'-Bedingungen
            • LabyBoolean[1] Gleich (==) True
          • 'THEN'-Aktionen
            • Einheitengruppe - Pick every unit in Temp_Group and do (Actions)
              • Schleifen - Aktionen
                • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • 'IF'-Bedingungen
                    • Multiple ConditionsOr - Any (Conditions) are true
                      • Bedingungen
                        • (Unit-type of (Picked unit)) Gleich (==) LabyCreeps[13]
                        • (Unit-type of (Picked unit)) Gleich (==) LabyCreeps[14]
                        • (Unit-type of (Picked unit)) Gleich (==) LabyCreeps[10]
                        • (Unit-type of (Picked unit)) Gleich (==) LabyCreeps[11]
                        • (Unit-type of (Picked unit)) Gleich (==) LabyCreeps[12]
                  • 'THEN'-Aktionen
                    • Einheit - Pause aus (Picked unit)
                    • Einheit - Make (Picked unit) Verwundbar
                  • 'ELSE'-Aktionen
          • 'ELSE'-Aktionen
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • 'IF'-Bedingungen
            • LabyBoolean[2] Gleich (==) True
          • 'THEN'-Aktionen
            • Einheitengruppe - Pick every unit in Temp_Group and do (Actions)
              • Schleifen - Aktionen
                • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • 'IF'-Bedingungen
                    • Multiple ConditionsOr - Any (Conditions) are true
                      • Bedingungen
                        • (Unit-type of (Picked unit)) Gleich (==) LabyCreeps[15]
                        • (Unit-type of (Picked unit)) Gleich (==) LabyCreeps[16]
                        • (Unit-type of (Picked unit)) Gleich (==) LabyCreeps[7]
                        • (Unit-type of (Picked unit)) Gleich (==) LabyCreeps[8]
                        • (Unit-type of (Picked unit)) Gleich (==) LabyCreeps[9]
                  • 'THEN'-Aktionen
                    • Einheit - Pause aus (Picked unit)
                    • Einheit - Make (Picked unit) Verwundbar
                  • 'ELSE'-Aktionen
          • 'ELSE'-Aktionen
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • 'IF'-Bedingungen
            • LabyBoolean[3] Gleich (==) True
          • 'THEN'-Aktionen
            • Einheitengruppe - Pick every unit in Temp_Group and do (Actions)
              • Schleifen - Aktionen
                • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • 'IF'-Bedingungen
                    • Multiple ConditionsOr - Any (Conditions) are true
                      • Bedingungen
                        • (Unit-type of (Picked unit)) Gleich (==) LabyCreeps[4]
                        • (Unit-type of (Picked unit)) Gleich (==) LabyCreeps[5]
                        • (Unit-type of (Picked unit)) Gleich (==) LabyCreeps[6]
                        • (Unit-type of (Picked unit)) Gleich (==) LabyCreeps[17]
                        • (Unit-type of (Picked unit)) Gleich (==) LabyCreeps[18]
                  • 'THEN'-Aktionen
                    • Einheit - Pause aus (Picked unit)
                    • Einheit - Make (Picked unit) Verwundbar
                  • 'ELSE'-Aktionen
          • 'ELSE'-Aktionen
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • 'IF'-Bedingungen
            • LabyBoolean[4] Gleich (==) True
          • 'THEN'-Aktionen
            • Einheitengruppe - Pick every unit in Temp_Group and do (Actions)
              • Schleifen - Aktionen
                • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • 'IF'-Bedingungen
                    • Multiple ConditionsOr - Any (Conditions) are true
                      • Bedingungen
                        • (Unit-type of (Picked unit)) Gleich (==) LabyCreeps[19]
                        • (Unit-type of (Picked unit)) Gleich (==) LabyCreeps[20]
                        • (Unit-type of (Picked unit)) Gleich (==) LabyCreeps[1]
                        • (Unit-type of (Picked unit)) Gleich (==) LabyCreeps[2]
                        • (Unit-type of (Picked unit)) Gleich (==) LabyCreeps[3]
                  • 'THEN'-Aktionen
                    • Einheit - Pause aus (Picked unit)
                    • Einheit - Make (Picked unit) Verwundbar
                  • 'ELSE'-Aktionen
          • 'ELSE'-Aktionen
        • Do Multiple ActionsFor each (Integer A) from 1 to 12, do (Actions)
          • Schleifen - Aktionen
            • Einheitengruppe - Pick every unit in Temp_Group and do (Actions)
              • Schleifen - Aktionen
                • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • 'IF'-Bedingungen
                    • (Picked unit) Gleich (==) Arena_Heroes[(Integer A)]
                  • 'THEN'-Aktionen
                    • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      • 'IF'-Bedingungen
                        • (Arena_Heroes[(Integer A)] is dead) Gleich (==) True
                      • 'THEN'-Aktionen
                        • Set Temp_Point = (Center of item fuse over rank 2 til rank 4 <gen>)
                        • Held - Instantly revive Arena_Heroes[(Integer A)] at Temp_Point, Verbergen revival graphics
                        • Custom script: call RemoveLocation (udg_Temp_Point)
                      • 'ELSE'-Aktionen
                    • Einheit - Move (Picked unit) instantly to player_positions[(Player number of (Owner of (Picked unit)))]
                    • Set Arena_Heroes[(Integer A)] = Keine Einheit
                  • 'ELSE'-Aktionen
      • Set heaven_done = False
      • Set hell_done = False
      • Custom script: call DestroyGroup (udg_Temp_Group)
      • Countdown-Timer - Start arena_timer as a Einmalig timer that will expire in 600.00 seconds
      • Countdown-Timer - Create a timer window for (Last started timer) with title Arena starts in...
      • Set timer_window = (Last created timer window)



now the problems :

-sometimes the heroes are not ported into the arena.
-Sometimes they are not revived after they died in the arena.


if someone would take a look at the system i would be glad. :D

thanks in advance
greetz happy
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
You know that is an awful long post of triggers... If you could test it and see where the problem lies, in which trigger, and reduce it, I believe you'll receive more help.
 

Happy

Well-Known Member
Reaction score
71
i already said what the problem is...but i posted all triggers because i dont know where the problem lies in the triggers. You understand?
 

OMGOMGOMG

UMBWGMG (Unidentified Human Being.)
Reaction score
28
I have said this once, and I will say it again!

Violation of Rule 4. B.

Use the edit button, no matter how long the post :p

Back on track, not many people can read German :p
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top