Dois
New Member
- Reaction score
- 1
I have a trigger thats "disabling" all my other triggers that use "For each (Integer A) from X to Y, do (Actions)" whenever it runs.
This is it
When I use "For each (Integer B)..." for the other trigger instead of A, it works. So that tells me the problem is coming from the "For each (Integer A)" thing of course...
I don't know whats wrong... Can anyone help?
EDIT: ok i just realized that its not just this trigger.
All the triggers with "for each integer A" interfere with each other...
So i clearly have a lack of understand of how it works... is this "integer A" global? etc...
This is it
Code:
Constant Battle and Trees
Events
Time - Every 30.00 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 4, do (Actions)
Loop - Actions
Set Temp_Point = (Position of Ion Cannon Control Centre 0009 <gen>)
Unit - Create 1 (Unit-type of (Random unit from RandomUnits)) for Player 6 (Orange) at Temp_Point facing Default building facing degrees
Custom script: call RemoveLocation(udg_Temp_Point)
Set Temp_Point = (Position of Ion Cannon Control Centre 0011 <gen>)
Unit - Order (Last created unit) to Attack-Move To Temp_Point
Custom script: call RemoveLocation(udg_Temp_Point)
Set Temp_Point = (Position of Ion Cannon Control Centre 0011 <gen>)
Unit - Create 1 (Unit-type of (Random unit from RandomUnits)) for Player 12 (Brown) at Temp_Point facing Default building facing degrees
Custom script: call RemoveLocation(udg_Temp_Point)
Set Temp_Point = (Position of Ion Cannon Control Centre 0009 <gen>)
Unit - Order (Last created unit) to Attack-Move To Temp_Point
Custom script: call RemoveLocation(udg_Temp_Point)
Set Temp_Region = (Entire map)
Destructible - Pick every destructible in Temp_Region and do (Destructible - Resurrect (Picked destructible) with (Max life of (Picked destructible)) life and Show birth animation)
Custom script: call RemoveRect(udg_Temp_Region)
When I use "For each (Integer B)..." for the other trigger instead of A, it works. So that tells me the problem is coming from the "For each (Integer A)" thing of course...
I don't know whats wrong... Can anyone help?
EDIT: ok i just realized that its not just this trigger.
All the triggers with "for each integer A" interfere with each other...
So i clearly have a lack of understand of how it works... is this "integer A" global? etc...