• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Sudden lag

Status
Not open for further replies.
Level 13
Joined
Oct 16, 2010
Messages
731
Hi,

Not really sure how to put this or how to explain it so here goes.

I'm making a survival map that has 50 rounds, however the last 2 times I've played it on round 24-25 it has just started to lag out massively and I've had to end the program with the task manager.

Anyone got an idea of what may cause this? (This is obviously a big problem so I will send the map if need be)
 
Level 13
Joined
Oct 16, 2010
Messages
731
Oh man that's a lot, I'll see what I can find.

P.S. My theory for it's cause is that a single enemy unit can spawn on round 24 that has chain lightning, it has no bounces so it is single target and it's damage is triggered. Not certain but I thought I'd point that out. (Spiderant Zappa)

  • Spawn Round
    • Events
      • Time - RoundTimer expires
    • Conditions
    • Actions
      • Countdown Timer - Destroy RoundTimer_Window
      • Trigger - Run Set Spawn <gen> (checking conditions)
      • Wait 2.00 seconds
      • Wait until ((Number of units in EnemyGroup) Equal to 0), checking every 1.00 seconds
  • Set Spawn
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Current research level of Enemy Upgrades for Player 9 (Gray)) Less than or equal to (RoundNo / (4 - Difficulty))
        • Then - Actions
          • Player - Set the current research level of Enemy Upgrades to ((Current research level of Enemy Upgrades for Player 9 (Gray)) + 1) for Player 9 (Gray)
          • Player - Set the current research level of Ally Upgrades to (Current research level of Enemy Upgrades for Player 9 (Gray)) for Player 6 (Orange)
        • Else - Actions
      • Trigger - Run Spawn Boss <gen> (checking conditions)
      • Wait 5.00 seconds
      • Wait until ((Number of units in EnemyGroup) Equal to 0), checking every 1.00 seconds
      • Wait 2.00 seconds
      • Set RoundNo = (RoundNo + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • RoundNo Equal to 51
        • Then - Actions
          • Quest - Display to (All players) the Quest Completed message: YOU DID YOU BADASS!...
          • Wait 5.00 seconds
          • Player Group - Pick every player in AllPlayers and do (Actions)
            • Loop - Actions
              • Game - Victory (Picked player) (Show dialogs, Show scores)
          • Game - Defeat Player 9 (Gray) with the message: Defeat!
        • Else - Actions
          • Unit Group - Pick every unit in (Units owned by Player 9 (Gray)) and do (Unit - Remove (Picked unit) from the game)
          • Countdown Timer - Start RoundTimer as a One-shot timer that will expire in 45.00 seconds
          • Countdown Timer - Create a timer window for RoundTimer with title (Round + ((String(RoundNo)) + in...))
          • Set RoundTimer_Window = (Last created timer window)
          • Set TempInt = (Random integer number between 1 and 3)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TempInt Equal to 1
            • Then - Actions
              • Quest - Display to (All players) the Quest Update message: Someone kill them a...
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TempInt Equal to 2
                • Then - Actions
                  • Quest - Display to (All players) the Quest Update message: YOU DID ET!!
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • TempInt Equal to 3
                    • Then - Actions
                      • Quest - Display to (All players) the Quest Update message: Well played chaps!
                    • Else - Actions
  • Spawn Boss
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Bosses_01 Equal to False
          • RoundNo Greater than or equal to 7
          • (Random integer number between 1 and 5) Less than or equal to (RoundNo - 6)
        • Then - Actions
          • Game - Display to (All players) for 6.00 seconds the text: "It's our new tortu...
          • Set Bosses_01 = True
          • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
          • Unit - Create 1 Captain Flynt for Player 9 (Gray) at TempPoint facing Default building facing degrees
          • Set EnemyBoss = (Last created unit)
          • Unit Group - Add (Last created unit) to EnemyGroup
          • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
          • Custom script: call RemoveLocation(udg_TempPoint)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Bosses_02 Equal to False
              • RoundNo Greater than or equal to 17
              • (Random integer number between 1 and 5) Less than or equal to (RoundNo - 16)
            • Then - Actions
              • Game - Display to (All players) for 6.00 seconds the text: "Get 'em, Bad Maw!!...
              • Set Bosses_02 = True
              • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
              • Unit - Create 1 Bad Maw for Player 9 (Gray) at TempPoint facing Default building facing degrees
              • Set EnemyBoss = (Last created unit)
              • Unit Group - Add (Last created unit) to EnemyGroup
              • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
              • Custom script: call RemoveLocation(udg_TempPoint)
              • For each (Integer A) from 1 to (Random integer number between (4 + Difficulty) and 12), do (Actions)
                • Loop - Actions
                  • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
                  • Unit - Create 1 Merry Midget for Player 9 (Gray) at TempPoint facing Default building facing degrees
                  • Unit Group - Add (Last created unit) to EnemyGroup
                  • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
                  • Custom script: call RemoveLocation(udg_TempPoint)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Bosses_03 Equal to False
                  • RoundNo Greater than or equal to 27
                  • (Random integer number between 1 and 5) Less than or equal to (RoundNo - 26)
                • Then - Actions
                  • Game - Display to (All players) for 6.00 seconds the text: "Wilhelm, destroy t...
                  • Set Bosses_03 = True
                  • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
                  • Unit - Create 1 Wilhelm for Player 9 (Gray) at TempPoint facing Default building facing degrees
                  • Set EnemyBoss = (Last created unit)
                  • Unit Group - Add (Last created unit) to EnemyGroup
                  • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
                  • Custom script: call RemoveLocation(udg_TempPoint)
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • Bosses_04 Equal to False
                      • RoundNo Greater than or equal to 37
                      • (Random integer number between 1 and 5) Less than or equal to (RoundNo - 36)
                    • Then - Actions
                      • Game - Display to (All players) for 6.00 seconds the text: "00101010"
                      • Set Bosses_04 = True
                      • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
                      • Unit - Create 1 BNK3R for Player 9 (Gray) at TempPoint facing Default building facing degrees
                      • Set EnemyBoss = (Last created unit)
                      • Unit Group - Add (Last created unit) to EnemyGroup
                      • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
                      • Custom script: call RemoveLocation(udg_TempPoint)
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • Bosses_05 Equal to False
                          • RoundNo Equal to 50
                        • Then - Actions
                          • Game - Display to (All players) for 6.00 seconds the text: "Smash ‘em, Warri...
                          • Set Bosses_05 = True
                          • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
                          • Unit - Create 1 The Warrior for Player 9 (Gray) at TempPoint facing Default building facing degrees
                          • Set EnemyBoss = (Last created unit)
                          • Unit Group - Add (Last created unit) to EnemyGroup
                          • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
                          • Custom script: call RemoveLocation(udg_TempPoint)
                        • Else - Actions
                          • Trigger - Run Pick Round Type <gen> (checking conditions)
  • Pick Round Type
    • Events
    • Conditions
    • Actions
      • Set SpawnInt_Max = (RoundNo x (2 + (Number of players in AllPlayers)))
      • Set TempInt = (Random integer number between 1 and 3)
      • -------- Bandits --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TempInt Equal to 1
        • Then - Actions
          • Quest - Display to (All players) the Warning message: Everything Bandity ...
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Random integer number between 1 and 3) Less than or equal to Difficulty
              • RoundNo Greater than or equal to 3
            • Then - Actions
              • Trigger - Run Mini Boss Bandits <gen> (checking conditions)
            • Else - Actions
          • For each (Integer SpawnInt) from 1 to SpawnInt_Max, do (Actions)
            • Loop - Actions
              • Wait 0.50 seconds
              • Wait until ((Number of units in EnemyGroup) Less than 100), checking every 1.00 seconds
              • Trigger - Run Spawn 01 Bandits <gen> (checking conditions)
        • Else - Actions
          • -------- Animals --------
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TempInt Equal to 2
            • Then - Actions
              • Quest - Display to (All players) the Warning message: The creatures of Pa...
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Random integer number between 1 and 3) Less than or equal to Difficulty
                  • RoundNo Greater than or equal to 6
                • Then - Actions
                  • Trigger - Run Mini Boss Animals <gen> (checking conditions)
                • Else - Actions
              • For each (Integer SpawnInt) from 1 to SpawnInt_Max, do (Actions)
                • Loop - Actions
                  • Wait 0.50 seconds
                  • Wait until ((Number of units in EnemyGroup) Less than 100), checking every 1.00 seconds
                  • Trigger - Run Spawn 02 Animals <gen> (checking conditions)
            • Else - Actions
              • -------- Hyperion --------
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TempInt Equal to 3
                • Then - Actions
                  • Quest - Display to (All players) the Warning message: Hyperion sends it's...
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Random integer number between 1 and 3) Less than or equal to Difficulty
                      • RoundNo Greater than or equal to 18
                    • Then - Actions
                      • Trigger - Run Mini Boss Hyperion <gen> (checking conditions)
                    • Else - Actions
                  • For each (Integer SpawnInt) from 1 to SpawnInt_Max, do (Actions)
                    • Loop - Actions
                      • Wait 0.50 seconds
                      • Wait until ((Number of units in EnemyGroup) Less than 100), checking every 1.00 seconds
                      • Trigger - Run Spawn 03 Hyperion <gen> (checking conditions)
                • Else - Actions
  • Mini Boss Bandits
    • Events
    • Conditions
    • Actions
      • Set TempInt = (Random integer number between 1 and 3)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TempInt Equal to 1
        • Then - Actions
          • Game - Display to (All players) for 6.00 seconds the text: "Light the fuses, b...
          • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
          • Unit - Create 1 Bewm for Player 9 (Gray) at TempPoint facing Default building facing degrees
          • Unit Group - Add (Last created unit) to EnemyGroup
          • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
          • Unit - Create 1 Boom for Player 9 (Gray) at TempPoint facing Default building facing degrees
          • Unit Group - Add (Last created unit) to EnemyGroup
          • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
          • Custom script: call RemoveLocation(udg_TempPoint)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TempInt Equal to 2
              • RoundNo Greater than or equal to 9
            • Then - Actions
              • Game - Display to (All players) for 6.00 seconds the text: "Ah -- what an unli...
              • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
              • Unit - Create 1 Midgemong for Player 9 (Gray) at TempPoint facing Default building facing degrees
              • Unit Group - Add (Last created unit) to EnemyGroup
              • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
              • Custom script: call RemoveLocation(udg_TempPoint)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TempInt Equal to 3
                  • RoundNo Greater than or equal to 18
                • Then - Actions
                  • Game - Display to (All players) for 6.00 seconds the text: "Well this guy's ho...
                  • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
                  • Unit - Create 1 Smash Head for Player 9 (Gray) at TempPoint facing Default building facing degrees
                  • Unit Group - Add (Last created unit) to EnemyGroup
                  • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
                  • Custom script: call RemoveLocation(udg_TempPoint)
                • Else - Actions
                  • Trigger - Run (This trigger) (checking conditions)
  • Mini Boss Animals
    • Events
    • Conditions
    • Actions
      • Set TempInt = (Random integer number between 1 and 3)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • RoundNo Greater than or equal to 21
          • TempInt Equal to 1
        • Then - Actions
          • Game - Display to (All players) for 6.00 seconds the text: "Want a clue? He's ...
          • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
          • Unit - Create 1 Blue for Player 9 (Gray) at TempPoint facing Default building facing degrees
          • Unit Group - Add (Last created unit) to EnemyGroup
          • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
          • Custom script: call RemoveLocation(udg_TempPoint)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • RoundNo Greater than or equal to 6
              • TempInt Equal to 2
            • Then - Actions
              • Game - Display to (All players) for 6.00 seconds the text: "I implore you, des...
              • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
              • Unit - Create 1 Scorch for Player 9 (Gray) at TempPoint facing Default building facing degrees
              • Unit Group - Add (Last created unit) to EnemyGroup
              • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
              • Custom script: call RemoveLocation(udg_TempPoint)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • RoundNo Greater than or equal to 16
                  • TempInt Equal to 3
                • Then - Actions
                  • Game - Display to (All players) for 6.00 seconds the text: "Still only counts ...
                  • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
                  • Unit - Create 1 Skagzilla for Player 9 (Gray) at TempPoint facing Default building facing degrees
                  • Unit Group - Add (Last created unit) to EnemyGroup
                  • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
                  • Custom script: call RemoveLocation(udg_TempPoint)
                • Else - Actions
                  • Trigger - Run (This trigger) (checking conditions)
  • Mini Boss Hyperion
    • Events
    • Conditions
    • Actions
      • Set TempInt = (Random integer number between 1 and 3)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • RoundNo Greater than or equal to 18
          • TempInt Equal to 1
        • Then - Actions
          • Game - Display to (All players) for 6.00 seconds the text: "I will now attempt...
          • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
          • Unit - Create 1 Loader #1340 for Player 9 (Gray) at TempPoint facing Default building facing degrees
          • Unit Group - Add (Last created unit) to EnemyGroup
          • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
          • Custom script: call RemoveLocation(udg_TempPoint)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • RoundNo Greater than or equal to 34
              • TempInt Equal to 2
            • Then - Actions
              • Game - Display to (All players) for 6.00 seconds the text: "He's got more ring...
              • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
              • Unit - Create 1 Saturn for Player 9 (Gray) at TempPoint facing Default building facing degrees
              • Unit Group - Add (Last created unit) to EnemyGroup
              • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
              • Custom script: call RemoveLocation(udg_TempPoint)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • RoundNo Greater than or equal to 12
                  • TempInt Equal to 3
                • Then - Actions
                  • Game - Display to (All players) for 6.00 seconds the text: "This man's key is ...
                  • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
                  • Unit - Create 1 Foreman Jasper for Player 9 (Gray) at TempPoint facing Default building facing degrees
                  • Unit Group - Add (Last created unit) to EnemyGroup
                  • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
                  • Custom script: call RemoveLocation(udg_TempPoint)
                • Else - Actions
                  • Trigger - Run (This trigger) (checking conditions)
  • Spawn 01 Bandits
    • Events
    • Conditions
    • Actions
      • Set TempInt = (Random integer number between 1 and 10)
      • -------- Buzzards 1/10 --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TempInt Equal to 1
          • RoundNo Greater than 7
        • Then - Actions
          • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Random integer number between 1 and 250) Less than or equal to (RoundNo x Difficulty)
              • RoundNo Greater than 18
            • Then - Actions
              • Unit - Create 1 Badass Buzzard for Player 9 (Gray) at TempPoint facing Default building facing degrees
            • Else - Actions
              • Unit - Create 1 Buzzard for Player 9 (Gray) at TempPoint facing Default building facing degrees
          • Unit Group - Add (Last created unit) to EnemyGroup
          • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
          • Custom script: call RemoveLocation(udg_TempPoint)
        • Else - Actions
          • -------- Marauders 4/10 --------
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TempInt Greater than or equal to 2
              • TempInt Less than or equal to 5
            • Then - Actions
              • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Random integer number between 1 and 380) Less than or equal to (RoundNo x Difficulty)
                  • RoundNo Greater than 8
                • Then - Actions
                  • Unit - Create 1 Goliath for Player 9 (Gray) at TempPoint facing Default building facing degrees
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Random integer number between 1 and 150) Less than or equal to (RoundNo x Difficulty)
                      • RoundNo Greater than 12
                    • Then - Actions
                      • Unit - Create 1 Badass Marauder for Player 9 (Gray) at TempPoint facing Default building facing degrees
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Random integer number between 1 and 125) Less than or equal to (RoundNo x Difficulty)
                          • RoundNo Greater than 9
                        • Then - Actions
                          • Unit - Create 1 Nomad Pyro for Player 9 (Gray) at TempPoint facing Default building facing degrees
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • (Random integer number between 1 and 100) Less than or equal to (RoundNo x Difficulty)
                              • RoundNo Greater than 6
                            • Then - Actions
                              • Unit - Create 1 Elite Marauder for Player 9 (Gray) at TempPoint facing Default building facing degrees
                            • Else - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • (Random integer number between 1 and 75) Less than or equal to (RoundNo x Difficulty)
                                  • RoundNo Greater than 3
                                • Then - Actions
                                  • Unit - Create 1 Killer Marauder for Player 9 (Gray) at TempPoint facing Default building facing degrees
                                • Else - Actions
                                  • Unit - Create 1 Marauder for Player 9 (Gray) at TempPoint facing Default building facing degrees
              • Unit Group - Add (Last created unit) to EnemyGroup
              • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
              • Custom script: call RemoveLocation(udg_TempPoint)
            • Else - Actions
              • -------- Technicals 1/10 --------
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TempInt Equal to 6
                  • RoundNo Greater than 7
                • Then - Actions
                  • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Random integer number between 1 and 280) Less than or equal to (RoundNo x Difficulty)
                      • RoundNo Greater than 18
                    • Then - Actions
                      • Unit - Create 1 Badass Bandit Technical for Player 9 (Gray) at TempPoint facing Default building facing degrees
                    • Else - Actions
                      • Unit - Create 1 Bandit Technical for Player 9 (Gray) at TempPoint facing Default building facing degrees
                  • Unit Group - Add (Last created unit) to EnemyGroup
                  • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
                  • Custom script: call RemoveLocation(udg_TempPoint)
                • Else - Actions
                  • -------- Psychos 4/9 --------
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • TempInt Greater than or equal to 7
                      • TempInt Less than or equal to 10
                    • Then - Actions
                      • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Random integer number between 1 and 220) Less than or equal to (RoundNo x Difficulty)
                          • RoundNo Greater than 12
                        • Then - Actions
                          • Unit - Create 1 Badass Psycho for Player 9 (Gray) at TempPoint facing Default building facing degrees
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • RoundNo Greater than 6
                              • (Random integer number between 1 and 120) Less than or equal to (RoundNo x Difficulty)
                            • Then - Actions
                              • Unit - Create 1 Armored Psycho for Player 9 (Gray) at TempPoint facing Default building facing degrees
                            • Else - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • (Random integer number between 1 and 4) Less than or equal to 2
                                • Then - Actions
                                  • Unit - Create 1 Psycho for Player 9 (Gray) at TempPoint facing Default building facing degrees
                                • Else - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • (Random integer number between 1 and 2) Equal to 1
                                    • Then - Actions
                                      • Unit - Create 1 Shotgun Midget for Player 9 (Gray) at TempPoint facing Default building facing degrees
                                    • Else - Actions
                                      • Unit - Create 1 Midget Psycho for Player 9 (Gray) at TempPoint facing Default building facing degrees
                      • Unit Group - Add (Last created unit) to EnemyGroup
                      • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
                      • Custom script: call RemoveLocation(udg_TempPoint)
                    • Else - Actions
                      • Trigger - Run (This trigger) (checking conditions)
  • Spawn 02 Animals
    • Events
    • Conditions
    • Actions
      • Set TempInt = (Random integer number between 1 and 12)
      • -------- Skags 4/12 --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TempInt Greater than or equal to 1
          • TempInt Less than or equal to 4
        • Then - Actions
          • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Random integer number between 1 and 225) Less than or equal to (RoundNo x Difficulty)
              • RoundNo Greater than 15
            • Then - Actions
              • -------- Badass Skags --------
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Difficulty Greater than or equal to 2
                  • (Random integer number between 1 and 225) Less than or equal to (RoundNo x Difficulty)
                  • RoundNo Greater than 25
                • Then - Actions
                  • Unit - Create 1 Badmother Skag for Player 9 (Gray) at TempPoint facing Default building facing degrees
                • Else - Actions
                  • Unit - Create 1 Badass Skag for Player 9 (Gray) at TempPoint facing Default building facing degrees
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Random integer number between 1 and 125) Less than or equal to (RoundNo x Difficulty)
                  • RoundNo Greater than 8
                • Then - Actions
                  • -------- Alpha Skags --------
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • Difficulty Greater than or equal to 2
                      • (Random integer number between 1 and 125) Less than or equal to (RoundNo x Difficulty)
                      • RoundNo Greater than 14
                    • Then - Actions
                      • Unit - Create 1 Hardened Alpha Skag for Player 9 (Gray) at TempPoint facing Default building facing degrees
                    • Else - Actions
                      • Unit - Create 1 Alpha Skag for Player 9 (Gray) at TempPoint facing Default building facing degrees
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Random integer number between 1 and 90) Less than or equal to (RoundNo x Difficulty)
                      • RoundNo Greater than 5
                    • Then - Actions
                      • -------- Elder Skags --------
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • Difficulty Greater than or equal to 2
                          • (Random integer number between 1 and 90) Less than or equal to (RoundNo x Difficulty)
                          • RoundNo Greater than 10
                        • Then - Actions
                          • Unit - Create 1 Hulking Elder Skag for Player 9 (Gray) at TempPoint facing Default building facing degrees
                        • Else - Actions
                          • Unit - Create 1 Elder Skag for Player 9 (Gray) at TempPoint facing Default building facing degrees
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Random integer number between 1 and 75) Less than or equal to (RoundNo x Difficulty)
                          • Difficulty Greater than or equal to 2
                          • RoundNo Greater than 8
                        • Then - Actions
                          • -------- Hawking Skags --------
                          • Unit - Create 1 Hawking Skag for Player 9 (Gray) at TempPoint facing Default building facing degrees
                        • Else - Actions
                          • -------- Adult Skags --------
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • Difficulty Greater than or equal to 2
                              • (Random integer number between 1 and 40) Less than or equal to (RoundNo x Difficulty)
                              • RoundNo Greater than 6
                            • Then - Actions
                              • Unit - Create 1 Feral Skag for Player 9 (Gray) at TempPoint facing Default building facing degrees
                            • Else - Actions
                              • Unit - Create 1 Adult Skag for Player 9 (Gray) at TempPoint facing Default building facing degrees
          • Unit Group - Add (Last created unit) to EnemyGroup
          • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
          • Custom script: call RemoveLocation(udg_TempPoint)
        • Else - Actions
          • -------- Spiderants 4/12 --------
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TempInt Greater than or equal to 5
              • TempInt Less than or equal to 8
            • Then - Actions
              • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Random integer number between 1 and 300) Less than or equal to (RoundNo x Difficulty)
                  • RoundNo Greater than 24
                  • Difficulty Greater than or equal to 2
                • Then - Actions
                  • -------- Elemental Spiderants --------
                  • Unit - Create 1 Badass Spiderant Zappa for Player 9 (Gray) at TempPoint facing Default building facing degrees
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Random integer number between 1 and 220) Less than or equal to (RoundNo x Difficulty)
                      • RoundNo Greater than 16
                    • Then - Actions
                      • -------- Queen Spiderants --------
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • Difficulty Greater than or equal to 2
                          • (Random integer number between 1 and 220) Less than or equal to (RoundNo x Difficulty)
                          • RoundNo Greater than 25
                        • Then - Actions
                          • Unit - Create 1 Spiderant Matriarch for Player 9 (Gray) at TempPoint facing Default building facing degrees
                        • Else - Actions
                          • Unit - Create 1 Queen Spiderant for Player 9 (Gray) at TempPoint facing Default building facing degrees
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Random integer number between 1 and 180) Less than or equal to (RoundNo x Difficulty)
                          • RoundNo Greater than 10
                        • Then - Actions
                          • -------- Spiderant Knights --------
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • Difficulty Greater than or equal to 2
                              • (Random integer number between 1 and 180) Less than or equal to (RoundNo x Difficulty)
                              • RoundNo Greater than 17
                            • Then - Actions
                              • Unit - Create 1 Spiderant King for Player 9 (Gray) at TempPoint facing Default building facing degrees
                            • Else - Actions
                              • Unit - Create 1 Spiderant Knight for Player 9 (Gray) at TempPoint facing Default building facing degrees
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • (Random integer number between 1 and 140) Less than or equal to (RoundNo x Difficulty)
                              • RoundNo Greater than 5
                            • Then - Actions
                              • -------- Spiderant Warriors --------
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • Difficulty Greater than or equal to 2
                                  • (Random integer number between 1 and 140) Less than or equal to (RoundNo x Difficulty)
                                  • RoundNo Greater than 11
                                • Then - Actions
                                  • Unit - Create 1 Spiderant Soldier for Player 9 (Gray) at TempPoint facing Default building facing degrees
                                • Else - Actions
                                  • Unit - Create 1 Spiderant Warrior for Player 9 (Gray) at TempPoint facing Default building facing degrees
                            • Else - Actions
                              • -------- Spiderlings --------
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • Difficulty Greater than or equal to 2
                                  • (Random integer number between 1 and 60) Less than or equal to (RoundNo x Difficulty)
                                  • RoundNo Greater than 6
                                • Then - Actions
                                  • Unit - Create 1 Skittish Spiderling for Player 9 (Gray) at TempPoint facing Default building facing degrees
                                • Else - Actions
                                  • Unit - Create 1 Spiderling for Player 9 (Gray) at TempPoint facing Default building facing degrees
              • Unit Group - Add (Last created unit) to EnemyGroup
              • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
              • Custom script: call RemoveLocation(udg_TempPoint)
            • Else - Actions
              • -------- Rakk 1/12 --------
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TempInt Equal to 9
                  • RoundNo Greater than 4
                • Then - Actions
                  • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Random integer number between 1 and 175) Less than or equal to (RoundNo x Difficulty)
                      • RoundNo Greater than 12
                    • Then - Actions
                      • -------- Badass Rakk --------
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • Difficulty Greater than or equal to 2
                          • (Random integer number between 1 and 175) Less than or equal to (RoundNo x Difficulty)
                          • RoundNo Greater than 20
                        • Then - Actions
                          • Unit - Create 1 Volcanic Rakk for Player 9 (Gray) at TempPoint facing Default building facing degrees
                        • Else - Actions
                          • Unit - Create 1 Badass Rakk for Player 9 (Gray) at TempPoint facing Default building facing degrees
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Random integer number between 1 and 115) Less than or equal to (RoundNo x Difficulty)
                          • RoundNo Greater than 14
                          • Difficulty Greater than or equal to 2
                        • Then - Actions
                          • -------- Defender Rakk --------
                          • Unit - Create 1 Defender Rakk for Player 9 (Gray) at TempPoint facing Default building facing degrees
                        • Else - Actions
                          • -------- Normal Rakk --------
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • Difficulty Greater than or equal to 2
                              • (Random integer number between 1 and 60) Less than or equal to (RoundNo x Difficulty)
                              • RoundNo Greater than 7
                            • Then - Actions
                              • Unit - Create 1 Relentless Rakk for Player 9 (Gray) at TempPoint facing Default building facing degrees
                            • Else - Actions
                              • Unit - Create 1 Rakk for Player 9 (Gray) at TempPoint facing Default building facing degrees
                  • Unit Group - Add (Last created unit) to EnemyGroup
                  • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
                  • Custom script: call RemoveLocation(udg_TempPoint)
                • Else - Actions
                  • -------- Threshers 3/12 --------
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • TempInt Greater than or equal to 10
                      • TempInt Less than or equal to 12
                      • RoundNo Greater than 2
                    • Then - Actions
                      • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Random integer number between 1 and 340) Less than or equal to (RoundNo x Difficulty)
                          • RoundNo Greater than 18
                        • Then - Actions
                          • -------- Badass Threshers --------
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • Difficulty Greater than or equal to 2
                              • (Random integer number between 1 and 340) Less than or equal to (RoundNo x Difficulty)
                              • RoundNo Greater than 28
                            • Then - Actions
                              • Unit - Create 1 Super Badass Prye Thresher for Player 9 (Gray) at TempPoint facing Default building facing degrees
                            • Else - Actions
                              • Unit - Create 1 Badass Prye Thresher for Player 9 (Gray) at TempPoint facing Default building facing degrees
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • (Random integer number between 1 and 180) Less than or equal to (RoundNo x Difficulty)
                              • RoundNo Greater than 8
                            • Then - Actions
                              • -------- Wormhole Threshers --------
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • Difficulty Greater than or equal to 2
                                  • (Random integer number between 1 and 180) Less than or equal to (RoundNo x Difficulty)
                                  • RoundNo Greater than 13
                                • Then - Actions
                                  • Unit - Create 1 Black Hole Thresher for Player 9 (Gray) at TempPoint facing Default building facing degrees
                                • Else - Actions
                                  • Unit - Create 1 Wormhole Thresher for Player 9 (Gray) at TempPoint facing Default building facing degrees
                            • Else - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • (Random integer number between 1 and 155) Less than or equal to (RoundNo x Difficulty)
                                  • RoundNo Greater than 7
                                • Then - Actions
                                  • -------- Normal Threshers --------
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • Difficulty Greater than or equal to 2
                                      • (Random integer number between 1 and 155) Less than or equal to (RoundNo x Difficulty)
                                      • RoundNo Greater than 11
                                    • Then - Actions
                                      • Unit - Create 1 Turf Thresher for Player 9 (Gray) at TempPoint facing Default building facing degrees
                                    • Else - Actions
                                      • Unit - Create 1 Thresher for Player 9 (Gray) at TempPoint facing Default building facing degrees
                                • Else - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • (Random integer number between 1 and 120) Less than or equal to (RoundNo x Difficulty)
                                      • RoundNo Greater than 4
                                    • Then - Actions
                                      • -------- Feeler Threshers --------
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • If - Conditions
                                          • Difficulty Greater than or equal to 2
                                          • (Random integer number between 1 and 120) Less than or equal to (RoundNo x Difficulty)
                                          • RoundNo Greater than 7
                                        • Then - Actions
                                          • Unit - Create 1 Groper Thresher for Player 9 (Gray) at TempPoint facing Default building facing degrees
                                        • Else - Actions
                                          • Unit - Create 1 Feeler Thresher for Player 9 (Gray) at TempPoint facing Default building facing degrees
                                    • Else - Actions
                                      • -------- Tadpole Threshers --------
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • If - Conditions
                                          • Difficulty Greater than or equal to 2
                                          • (Random integer number between 1 and 55) Less than or equal to (RoundNo x Difficulty)
                                          • RoundNo Greater than 4
                                        • Then - Actions
                                          • Unit - Create 1 Leech Thresher for Player 9 (Gray) at TempPoint facing Default building facing degrees
                                        • Else - Actions
                                          • Unit - Create 1 Tadpole Thresher for Player 9 (Gray) at TempPoint facing Default building facing degrees
                      • Unit Group - Add (Last created unit) to EnemyGroup
                      • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
                      • Custom script: call RemoveLocation(udg_TempPoint)
                    • Else - Actions
                      • Trigger - Run (This trigger) (checking conditions)
  • Spawn 03 Hyperion
    • Events
    • Conditions
    • Actions
      • Set TempInt = (Random integer number between 1 and 7)
      • -------- Surveyers 1/7 --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TempInt Equal to 1
          • RoundNo Greater than 6
        • Then - Actions
          • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Random integer number between 1 and 225) Less than or equal to (RoundNo x Difficulty)
              • RoundNo Greater than 12
            • Then - Actions
              • Unit - Create 1 Badass Repair Surveyor for Player 9 (Gray) at TempPoint facing Default building facing degrees
            • Else - Actions
              • Unit - Create 1 Repair Surveyor for Player 9 (Gray) at TempPoint facing Default building facing degrees
          • Unit Group - Add (Last created unit) to EnemyGroup
          • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
          • Custom script: call RemoveLocation(udg_TempPoint)
        • Else - Actions
          • -------- Loaders 2/7 --------
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TempInt Greater than or equal to 2
              • TempInt Less than or equal to 3
              • RoundNo Greater than 3
            • Then - Actions
              • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Random integer number between 1 and 260) Less than or equal to (RoundNo x Difficulty)
                  • RoundNo Greater than 15
                • Then - Actions
                  • Unit - Create 1 Badass Loader for Player 9 (Gray) at TempPoint facing Default building facing degrees
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Random integer number between 1 and 235) Less than or equal to (RoundNo x Difficulty)
                      • RoundNo Greater than 10
                    • Then - Actions
                      • Unit - Create 1 War Loader for Player 9 (Gray) at TempPoint facing Default building facing degrees
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Random integer number between 1 and 180) Less than or equal to (RoundNo x Difficulty)
                          • RoundNo Greater than 7
                        • Then - Actions
                          • Unit - Create 1 Hot Loader for Player 9 (Gray) at TempPoint facing Default building facing degrees
                        • Else - Actions
                          • Unit - Create 1 Gun Loader for Player 9 (Gray) at TempPoint facing Default building facing degrees
              • Unit Group - Add (Last created unit) to EnemyGroup
              • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
              • Custom script: call RemoveLocation(udg_TempPoint)
            • Else - Actions
              • -------- Guys 3/7 --------
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TempInt Greater than or equal to 4
                  • TempInt Less than or equal to 6
                • Then - Actions
                  • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Random integer number between 1 and 225) Less than or equal to (RoundNo x Difficulty)
                      • RoundNo Greater than 12
                    • Then - Actions
                      • Unit - Create 1 Hyperion Hawk for Player 9 (Gray) at TempPoint facing Default building facing degrees
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Random integer number between 1 and 150) Less than or equal to (RoundNo x Difficulty)
                          • RoundNo Greater than 5
                        • Then - Actions
                          • Unit - Create 1 Hyperion Soldier for Player 9 (Gray) at TempPoint facing Default building facing degrees
                        • Else - Actions
                          • Unit - Create 1 Combat Engineer for Player 9 (Gray) at TempPoint facing Default building facing degrees
                  • Unit Group - Add (Last created unit) to EnemyGroup
                  • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
                  • Custom script: call RemoveLocation(udg_TempPoint)
                • Else - Actions
                  • -------- Constructors 0.5/7 --------
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • TempInt Equal to 7
                      • RoundNo Greater than 14
                      • (Random integer number between 1 and 4) Equal to 1
                    • Then - Actions
                      • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
                      • Unit - Create 1 Constructor for Player 9 (Gray) at TempPoint facing Default building facing degrees
                      • Unit Group - Add (Last created unit) to EnemyGroup
                      • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
                      • Custom script: call RemoveLocation(udg_TempPoint)
                    • Else - Actions
                      • Trigger - Run (This trigger) (checking conditions)
  • Spiderant Lightning 1
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Spiderant Lightning Bolt
    • Actions
      • Set TempUnit = (Casting unit)
      • Set Spell_TargetUnit = (Target unit of ability being cast)
      • Unit - Cause TempUnit to damage Spell_TargetUnit, dealing (65.00 x (Real(RoundNo))) damage of attack type Spells and damage type Universal
Those triggers are the ones that I think are most likely causing the lag. If it helps the lag didn't stop once the round had finished (30 second timer), instead the lag managed to go through all of the inbetween round time and continued to the next round.
 
Level 16
Joined
Mar 27, 2011
Messages
1,349
The "Spawn 2" trigger leaks a unit group.

I think you need to destroy the location leak in "Spiderant Lightning 1"


I think a few of your triggers could infidelity loop.

  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
    • TempInt Greater than or equal to 7
    • TempInt Less than or equal to 10
  • Then - Actions
    • Set TempPoint = (Random point in SpawnZones[(Random integer number between 1 and 4)])
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Random integer number between 1 and 220) Less than or equal to (RoundNo x Difficulty)
        • RoundNo Greater than 12
      • Then - Actions
        • Unit - Create 1 Badass Psycho for Player 9 (Gray) at TempPoint facing Default building facing degrees
      • Else - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • RoundNo Greater than 6
            • (Random integer number between 1 and 120) Less than or equal to (RoundNo x Difficulty)
          • Then - Actions
            • Unit - Create 1 Armored Psycho for Player 9 (Gray) at TempPoint facing Default building facing degrees
          • Else - Actions
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • (Random integer number between 1 and 4) Less than or equal to 2
              • Then - Actions
                • Unit - Create 1 Psycho for Player 9 (Gray) at TempPoint facing Default building facing degrees
              • Else - Actions
                • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • If - Conditions
                    • (Random integer number between 1 and 2) Equal to 1
                  • Then - Actions
                    • Unit - Create 1 Shotgun Midget for Player 9 (Gray) at TempPoint facing
        • Default building facing degrees
          • Else - Actions
            • Unit - Create 1 Midget Psycho for Player 9 (Gray) at TempPoint facing
      • Default building facing degrees
        • Unit Group - Add (Last created unit) to EnemyGroup
        • Unit - Order (Last created unit) to Attack-Move To EnemyAttackPoint
        • Custom script: call RemoveLocation(udg_TempPoint)
  • Else - Actions
    • Trigger - Run (This trigger) (checking conditions)
Couldn't be bothered indenting the trigger properly. The line I'm talking about is at the end. A number of your triggers do roughly the same thing. That is, run itself if certain conditions are/are not met.

What happens if the conditions do not pass and the same trigger is run again. Because there's no wait within the trigger, the trigger will loop as soon as it finished executing the code. This is extremely resource demanding. One or two of these trigger accidentally falling into this loop would probably cause your map to freeze.
 
Level 13
Joined
Oct 16, 2010
Messages
731
I'm aware of Spawn 2's leak, I didn't really think it'd do much as it's only hit a maximum of 49 times (ends of round). I'll clean it up anyway.

Spiderant Lightning has no point?

Those are meant to go though an infinite loop until they hit a part where they would spawn a unit, it is there because it randomizes the enemies but if I didn't make it fire the trigger again it wouldn't spawn a unit at all in some situations. Obviously that's not a good situation.

Given that it's mostly on random chances the trigger will vary each time it's fired, so it won't be exactly "infinite"
 

EdgeOfChaos

E

EdgeOfChaos

Typically, when it actually freezes the game and you have to use ctrl+alt+del, it is an infinite loop that is not caught, so it doesn't terminate wc3. An example from one of my maps is a loop that I accidentally decremented the index variable so it never terminated, but function calls can also do it.

I don't know precisely where it is, but I would recommend try disabling the function calls one by one and see if one of them is causing it.

(edit)
Umm, by any chance are you doing Test Map with "Fixed Random Seed" on?
 
Level 13
Joined
Oct 16, 2010
Messages
731
I think I've just found it. Was nothing to do with any of the above.

It was a hero's spell (was indexed) that I hadn't lowed the loop int and max index of, so it didn't deindex properly, causing massive lag. It just happens that both times the lag happened where on round 24, where i had enough money to become this hero.

Anyway thanks anyway, will make some of the changes you pointed out. :)
 
Status
Not open for further replies.
Top