Warcraft 3 Crashes After Trigger Runs

OMGOMGOMG

UMBWGMG (Unidentified Human Being.)
Reaction score
28
I made a trigger which quits the game. The trigger is fired when someone walks into a region which checks if it's the correct dudes. The trigger then goes to set Ready[1] to true and then checking if Ready[1] is true and Enamy_Start = 0 and then it runs Enemy Round and then it goes into moving the unit.

Trigger:
Trigger:
  • Start Round
    • Events
      • Unit - A unit enters Ready <gen>
    • Conditions
      • (Entering unit) Equal to Ready? 0006 <gen>
    • Actions
      • Set Ready[1] = True
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Ready[1] = True
          • Enemy_Start Equal to 0
        • Then - Actions
          • Trigger - Run Start Round <gen> (ignoring conditions)
        • Else - Actions
      • Unit - Move Ready? 0006 <gen> instantly to (Center of Ready Region <gen>)


Enemy Start is pretty much checking if Enemy_Start = 0, setting enemy_start to 1 and then checking if enemy start is 1 and creating 1 peasant every 2 seconds... This will contain enemy_start = 2,3,4,5,6,7,8,9,10 due these being rounds.

Trigger:
  • Enemy Start
    • Events
    • Conditions
    • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Enemy_Start Equal to 0
      • Then - Actions
        • Set Enemy_Start Equal 1
        • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Enemy_Start Equal to 1
      • Then - Actions
        • For each (Integer A) from 1 to 10, do (Actions)
          • Loop - Actions
            • Unit - Create 1 Peasant (This one) for Player 8 (Pink) at (Center of Spawn <gen>) facing Default building facing degrees
            • Wait 2.00 seconds
      • Trigger - Turn Off (This Trigger)


Problem: Warcraft 3 tends to crash (receives no crash log or anything
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top