- Joined
- Jan 20, 2011
- Messages
- 496
Hey guys I'm trying to make a trigger where I loop some point variables so I don't have to make 4 triggers, simplifying it down to one trigger. However I get an error every time saying "Expected Name". I have tried to fix the text in the custom script but I still get the error. I even used my own integer variable for it.
I don't see the problem.
Also I tried adding the brackets on the inside of the [] but it still gives me an error.
-
Spawn 1
-

Events
-


Time - Every 1.00 seconds of game time
-
-

Conditions
-

Actions
-


For each (Integer A) from 1 to 4, do (Actions)
-



Loop - Actions
-




Set Arena1Loc[(Integer A)] = (Center of Arena1[(Integer A)])
-




Unit - Create 1 Swordsman for Neutral Hostile at Arena1Loc[(Integer A)] facing Arena1Loc[0]
-




Unit - Order (Last created unit) to Attack-Move To Arena1Loc[0]
-




Custom script: call RemoveLocation(udg_Arena1Loc[Integer A])
-
-
-
-
Also I tried adding the brackets on the inside of the [] but it still gives me an error.
Last edited by a moderator:

