What in my trigger makes the boss spawn twice?

FrozenShadow

I am a WolfieeifloW fan.
Reaction score
75
What in my trigger makes the boss spawn twice? [SOLVED]

There is a trigger that detects when the timer ends, when the timer does end, it turns on that trigger. Any ideas as to why it spawns twice? By the way, here are the mechanics, it's meant to spawn twenty (20) units, on non-boss waves, but on boss waves it spawns two, but it works for all the other waves.

Trigger:
  • Boss Waves
    • Events
      • Timer - Every 1.5 seconds of Game Time
    • Local Variables
    • Conditions
      • Or
        • Conditions
          • Current Level == 10
          • Current Level == 20
          • Current Level == 30
          • Current Level == 40
          • Current Level == 50
    • Actions
      • General - If (Conditions) then do (Actions) else do (Actions)
        • If
          • Spawn Count <= (20 * (Number of players in (Players on team 1)))
        • Then
          • Variable - Set Spawn Count = (Spawn Count + ((Number of players in (Players on team 1)) * 20))
          • General - If (Conditions) then do (Actions) else do (Actions)
            • If
              • (Controller of player 1) == User
            • Then
              • Unit - Create 1 Current Spawn[Current Level] for player 14 at Spawn Point [1] facing (Center of Third Move Point [1]) (No Options)
            • Else
          • General - If (Conditions) then do (Actions) else do (Actions)
            • If
              • (Controller of player 2) == User
            • Then
              • Unit - Create 1 Current Spawn[Current Level] for player 14 at Spawn Point [2] facing (Center of Third Move Point [2]) (No Options)
            • Else
          • General - If (Conditions) then do (Actions) else do (Actions)
            • If
              • (Controller of player 3) == User
            • Then
              • Unit - Create 1 Current Spawn[Current Level] for player 14 at Spawn Point [3] facing (Center of Third Move Point [3]) (No Options)
            • Else
          • General - If (Conditions) then do (Actions) else do (Actions)
            • If
              • (Controller of player 4) == User
            • Then
              • Unit - Create 1 Current Spawn[Current Level] for player 14 at Spawn Point [4] facing (Center of Third Move Point [4]) (No Options)
            • Else
        • Else
          • Trigger - Turn (Current trigger) Off
          • Variable - Set Spawn Count = 0
          • Variable - Set Current Level = (Current Level + 1)
 

Dave312

Censored for your safe viewing
Reaction score
269
Are we looking at the correct trigger? That trigger gives the player minerals when it sells an object. It has nothing to do with spawning units :confused:
 

Dave312

Censored for your safe viewing
Reaction score
269
When you test the value of Spawn Count, it should be < instead of <=. The second time the trigger runs, these values will be equal and hence why two bosses spawn.
 

FrozenShadow

I am a WolfieeifloW fan.
Reaction score
75
Thank you, for seeing something that I definitely have overlooked, thinking my system was already as close to perfect as I want. :thup:
 
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