Trigger Crashing Warcraft 3

Zedzy

ℑΣÐℑΨ
Reaction score
41
I wanted to see if creating units instead of using preplaced units would fix by problem for this (still need help with that by the way). When I tested it in game, it crashed, why?

Code:
Set Flag
    Events
        Time - Elapsed game time is 1.00 seconds
    Conditions
    Actions
        For each (Integer A) from 1 to 8, do (Actions)
            Loop - Actions
                Unit - Create 1 Flag for (Player(((Integer A) - 1))) at (Center of (Playable map area)) facing Default building facing degrees
                Set PlayersDummyUnit[((Integer A) - 1)] = (Last created unit)
 

vypur85

Hibernate
Reaction score
803
Code:
Set Flag
    Events
        Time - Elapsed game time is 1.00 seconds
    Conditions
    Actions
        For each (Integer A) [B]from 2 to 8[/B], do (Actions) <-- Change the 1 to 2
            Loop - Actions
                Unit - Create 1 Flag for [B](Player(((Integer A) - 1)))[/B] at (Center of (Playable map area)) facing Default building facing degrees
                 ---[I]Or take off the Integer A - 1[/I]---
                Set PlayersDummyUnit[((Integer A) - 1)] = (Last created unit)
Player 0 does not exist.
 
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