- Joined
- Aug 1, 2007
- Messages
- 535
Okay, so in my map I have four spawn points that spawn units.
Each point has it's own trigger to spawn the units.
Inside the trigger it adds the spawned units to a group.
Another trigger than calls all of the groups and gives them orders depending on what is going on in the map.
Only one of the groups responds to it's orders.
I am very confused.
I think the problem has to do with assigning the groups.
Here are the triggers:
It spawns the units for all the spawn zones.
But the units do not respond to the issued orders.
Here is the trigger that orders all the spawn zones to attack:
For some reason this works perfectly with the first group, but not the others.
What exactly is going wrong here? Seems to me it should work just fine.
I have even tried replacing all the (Integer A) in the triggers to the actual numbers, not even that worked.
If anyone can find what is going wrong here I will +REP you.
Each point has it's own trigger to spawn the units.
Inside the trigger it adds the spawned units to a group.
Another trigger than calls all of the groups and gives them orders depending on what is going on in the map.
Only one of the groups responds to it's orders.
I am very confused.
I think the problem has to do with assigning the groups.
Here are the triggers:
-
ORC DOCK 1
-
Events
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
SPAWNraider Equal to True
-
-
Then - Actions
-
Custom script: set bj_forLoopAIndex = 1
-
Unit - Create 2 Grunt for WaveOwner at (Random point in DOCKlandings[(Integer A)]) facing 90.00 degrees
-
Unit Group - Add all units of (Last created unit group) to ORCgroup[(Integer A)]
-
Unit - Create 1 Raider for WaveOwner at (Random point in DOCKlandings[(Integer A)]) facing 90.00 degrees
-
Unit Group - Add (Last created unit) to ORCgroup[(Integer A)]
-
Unit - Create 1 Forest Troll Berserker for WaveOwner at (Random point in DOCKlandings[(Integer A)]) facing 90.00 degrees
-
Unit Group - Add (Last created unit) to ORCgroup[(Integer A)]
-
-
Else - Actions
-
Custom script: set bj_forLoopAIndex = 1
-
Unit - Create 3 Grunt for WaveOwner at (Random point in DOCKlandings[(Integer A)]) facing 90.00 degrees
-
Unit Group - Add all units of (Last created unit group) to ORCgroup[(Integer A)]
-
Unit - Create 1 Forest Troll Berserker for WaveOwner at (Random point in DOCKlandings[(Integer A)]) facing 90.00 degrees
-
Unit Group - Add (Last created unit) to ORCgroup[(Integer A)]
-
-
-
-
Else - Actions
-
-
-
-
ORC DOCK 2
-
Events
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
SPAWNogre Equal to True
-
-
Then - Actions
-
Custom script: set bj_forLoopAIndex = 2
-
Unit - Create 3 Grunt for WaveOwner at (Random point in DOCKlandings[(Integer A)]) facing 90.00 degrees
-
Unit Group - Add all units of (Last created unit group) to ORCgroup[(Integer A)]
-
Unit - Create 1 Stonemaul Ogre for WaveOwner at (Random point in DOCKlandings[(Integer A)]) facing 90.00 degrees
-
Unit Group - Add (Last created unit) to ORCgroup[(Integer A)]
-
-
Else - Actions
-
Custom script: set bj_forLoopAIndex = 2
-
Unit - Create 4 Grunt for WaveOwner at (Random point in DOCKlandings[(Integer A)]) facing 90.00 degrees
-
Unit Group - Add all units of (Last created unit group) to ORCgroup[(Integer A)]
-
-
-
-
Else - Actions
-
-
-
-
ORC DOCK 3
-
Events
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
SPAWNogre Equal to True
-
-
Then - Actions
-
Custom script: set bj_forLoopAIndex = 3
-
Unit - Create 3 Grunt for WaveOwner at (Random point in DOCKlandings[(Integer A)]) facing 90.00 degrees
-
Unit Group - Add all units of (Last created unit group) to ORCgroup[(Integer A)]
-
Unit - Create 1 Stonemaul Ogre for WaveOwner at (Random point in DOCKlandings[(Integer A)]) facing 90.00 degrees
-
Unit Group - Add (Last created unit) to ORCgroup[(Integer A)]
-
-
Else - Actions
-
Custom script: set bj_forLoopAIndex = 3
-
Unit - Create 4 Grunt for WaveOwner at (Random point in DOCKlandings[(Integer A)]) facing 90.00 degrees
-
Unit Group - Add all units of (Last created unit group) to ORCgroup[(Integer A)]
-
-
-
-
Else - Actions
-
-
-
-
ORC DOCK 4
-
Events
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
SPAWNraider Equal to True
-
-
Then - Actions
-
Custom script: set bj_forLoopAIndex = 4
-
Unit - Create 2 Grunt for WaveOwner at (Random point in DOCKlandings[(Integer A)]) facing 90.00 degrees
-
Unit Group - Add all units of (Last created unit group) to ORCgroup[(Integer A)]
-
Unit - Create 1 Raider for WaveOwner at (Random point in DOCKlandings[(Integer A)]) facing 90.00 degrees
-
Unit Group - Add (Last created unit) to ORCgroup[(Integer A)]
-
Unit - Create 1 Forest Troll Berserker for WaveOwner at (Random point in DOCKlandings[(Integer A)]) facing 90.00 degrees
-
Unit Group - Add (Last created unit) to ORCgroup[(Integer A)]
-
-
Else - Actions
-
Custom script: set bj_forLoopAIndex = 4
-
Unit - Create 3 Grunt for WaveOwner at (Random point in DOCKlandings[(Integer A)]) facing 90.00 degrees
-
Unit Group - Add all units of (Last created unit group) to ORCgroup[(Integer A)]
-
Unit - Create 1 Forest Troll Berserker for WaveOwner at (Random point in DOCKlandings[(Integer A)]) facing 90.00 degrees
-
Unit Group - Add (Last created unit) to ORCgroup[(Integer A)]
-
-
-
-
Else - Actions
-
-
-
It spawns the units for all the spawn zones.
But the units do not respond to the issued orders.
Here is the trigger that orders all the spawn zones to attack:
-
REORDER
-
Events
-
Conditions
-
Actions
-
For each (Integer A) from 1 to 4, do (Actions)
-
Loop - Actions
-
Unit Group - Order ORCgroup[(Integer A)] to Attack-Move To ORCOrders[(Integer A)]
-
-
-
-
For some reason this works perfectly with the first group, but not the others.
What exactly is going wrong here? Seems to me it should work just fine.
I have even tried replacing all the (Integer A) in the triggers to the actual numbers, not even that worked.
If anyone can find what is going wrong here I will +REP you.