trigger stops working

Sui-cookie

You can change this now in User CP.
Reaction score
49
hai, this trigger is suppose to spawn two billion murgals, one every couple seconds for each of two clans. but..... it just randomly stops after it spawns one for each..... is it because i have a couple things using time-time elapsed equal to 0.00? well...anyway here's the trigger:
Trigger:
  • murgal units
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • -------- two billion \/ units......they should be done b4 then :/ --------
      • For each (Integer A) from 1 to (1000000000 + 1000000000), do (Actions)
        • Loop - Actions
          • Set tempoint[1] = (Random point in other naga spawn 1 <gen>)
          • Unit - Create 1 |cff4169e1Lockmech' |r |cff00ff00Mur'gal|r for Player 11 (Dark Green) at tempoint[1] facing Default building facing degrees
          • Custom script: call RemoveLocation (udg_tempoint[1])
          • Set tempunitislands = (Last created unit)
          • Set tempoint[1] = (Random point in Shall Reeve naga spawn 1 <gen>)
          • Unit - Order tempunitislands to Attack-Move To tempoint[1]
          • Custom script: call RemoveLocation (udg_tempoint[1])
          • -------- ----------------------------------- --------
          • Set tempoint[1] = (Random point in Shall Reeve naga spawn 1 <gen>)
          • Unit - Create 1 |cff4169e1Sha'Reeve|r |cff00ff00Mur'gal|r for Player 10 (Light Blue) at tempoint[1] facing Default building facing degrees
          • Custom script: call RemoveLocation (udg_tempoint[1])
          • Set tempunitislands = (Last created unit)
          • Set tempoint[1] = (Random point in other naga spawn 1 <gen>)
          • Unit - Order tempunitislands to Attack-Move To tempoint[1]
          • Custom script: call RemoveLocation (udg_tempoint[1])
          • Wait 10.00 seconds
 

Sui-cookie

You can change this now in User CP.
Reaction score
49
but ive used this trigger for days now, testing it both myself and on b.net and have experienced no lag.....but perhaps changing it would be better on the slow players and more than likely fix my problem o_O

i suppose this would be better?
Trigger:
  • murgal units
    • Events
      • Time - Every 10.00 seconds of game time
    • Conditions
    • Actions
      • Set tempoint[1] = (Random point in other naga spawn 1 <gen>)
      • Unit - Create 1 |cff4169e1Lockmech' |r |cff00ff00Mur'gal|r for Player 11 (Dark Green) at tempoint[1] facing Default building facing degrees
      • Custom script: call RemoveLocation (udg_tempoint[1])
      • Set tempunitislands = (Last created unit)
      • Set tempoint[1] = (Random point in Shall Reeve naga spawn 1 <gen>)
      • Unit - Order tempunitislands to Attack-Move To tempoint[1]
      • Custom script: call RemoveLocation (udg_tempoint[1])
      • -------- ----------------------------------- --------
      • Set tempoint[1] = (Random point in Shall Reeve naga spawn 1 <gen>)
      • Unit - Create 1 |cff4169e1Sha'Reeve|r |cff00ff00Mur'gal|r for Player 10 (Light Blue) at tempoint[1] facing Default building facing degrees
      • Custom script: call RemoveLocation (udg_tempoint[1])
      • Set tempunitislands = (Last created unit)
      • Set tempoint[1] = (Random point in other naga spawn 1 <gen>)
      • Unit - Order tempunitislands to Attack-Move To tempoint[1]
      • Custom script: call RemoveLocation (udg_tempoint[1])
 

Sevion

The DIY Ninja
Reaction score
413
I doubt it would run 2 billion times. And that loop would lag the hell out of your PC. ^_^

Unless you used Mfn Loops.
 

Romek

Super Moderator
Reaction score
963
You can't run a loop 2 million times regularly.
You could use another trigger and 'carry global variables' though, and run the other trigger when you're close to the limit.

Mfn is a graveyarded resource - don't use it.
 
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