I've posted this in the tutorials Forum (what I actually don`t wanted) but accidently it happened...
Hey guys,
I've got a Problem in my map. I want to move my unit Group and everything works except one Thing... there's only one unit of the Group moving to the Point. But every unit in the Group should move to the Point. the Trigger Looks like this:
Events: period every 2.5 secs of gametime
local variables: Zerg_spawn_middle (unitgroup); ArmyTempPlaceholder integer <0> (integer);
Actions: General: for each integer for ArmyTempPlaceholder from 1 to 5 wit increment 1, do (Actions); unit - create 1 Zergling for Player 14 at Zerg_middle_ling_1 using Default facing; unit Group - add (last created unit) to Zerg_middle_spawn );
General: for each integer for ArmyTempPlaceholder from 1 to 5 wit increment 1, do (Actions); unit - create 1 Zergling for Player 14 at Zerg_middle_ling_2 using Default facing; unit Group - add (last created unit) to Zerg_middle_spawn );
Unit - order all living Units in Zerg_middle_spawn to attack Zerg_middle_end (thats the Point the Group should move to with the attack order) replace existing order;
Your issue seems to be the ending. Your variables are mismatched: Zerg_spawn_middle has been the group you've been assigning all these guys to, and then suddenly, you're ordering Zerg_middle_spawn to attack?
I'd suggest trying to use the following action:
Unit - Issue Order to Unit Group
Set the Unit Group to Zerg_spawn_middle and then click the blue ( before the Ability Command and select Order Targeting Point, and then set the order to Attack and point to be Zerg_middle_end. In the end it should look like:
Unit - Order all units in Unit Group to ( Attack targeting Start Location 001) (Replace Existing Orders)
Other notes, combine your two create units. No point in having the two of them do the exact same thing in a different loop set up.
On that note you should use the repeat action (it's under the general action section) instead of for each integer. It would be much easier to know what was wrong with your trigger if you were to actually post the map, or a different one with a copy of the trigger. Also when you spawn it, order it with the following action to report to the point, and then add it to the unit group.
Edit: here is an example map to show you a demo of a action definition for it.
I've posted this in the tutorials Forum (what I actually don`t wanted) but accidently it happened...
Hey guys,
I've got a Problem in my map. I want to move my unit Group and everything works except one Thing... there's only one unit of the Group moving to the Point. But every unit in the Group should move to the Point. the Trigger Looks like this:
Events: period every 2.5 secs of gametime
local variables: Zerg_spawn_middle (unitgroup); ArmyTempPlaceholder integer <0> (integer);
Actions: General: for each integer for ArmyTempPlaceholder from 1 to 5 wit increment 1, do (Actions); unit - create 1 Zergling for Player 14 at Zerg_middle_ling_1 using Default facing; unit Group - add (last created unit) to Zerg_middle_spawn );
General: for each integer for ArmyTempPlaceholder from 1 to 5 wit increment 1, do (Actions); unit - create 1 Zergling for Player 14 at Zerg_middle_ling_2 using Default facing; unit Group - add (last created unit) to Zerg_middle_spawn );
Unit - order all living Units in Zerg_middle_spawn to attack Zerg_middle_end (thats the Point the Group should move to with the attack order) replace existing order;
@TheFuriousSam: Go
Your issue seems to be the ending. Your variables are mismatched: Zerg_spawn_middle has been the group you've been assigning all these guys to, and then suddenly, you're ordering Zerg_middle_spawn to attack?
I'd suggest trying to use the following action:
Unit - Issue Order to Unit Group
Set the Unit Group to Zerg_spawn_middle and then click the blue ( before the Ability Command and select Order Targeting Point, and then set the order to Attack and point to be Zerg_middle_end. In the end it should look like:
Unit - Order all units in Unit Group to ( Attack targeting Start Location 001) (Replace Existing Orders)
Other notes, combine your two create units. No point in having the two of them do the exact same thing in a different loop set up.
@FaithAnoe: Go
His variables are right, he just puts them down dislexically. He has them create units at 2 different points.
@TheFuriousSam: Go
On that note you should use the repeat action (it's under the general action section) instead of for each integer. It would be much easier to know what was wrong with your trigger if you were to actually post the map, or a different one with a copy of the trigger. Also when you spawn it, order it with the following action to report to the point, and then add it to the unit group.
Edit: here is an example map to show you a demo of a action definition for it.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
Disregard. : D I reread the trigger and it made a tad bit more sense. >.>
Thank you all gonna try it right now
@FaithAnoe perfect worked like a charm.
@willuwontu Don't know if that'd Change much but it's worth trying