• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Multiple Units - Issue Commands

Status
Not open for further replies.
Level 2
Joined
Oct 10, 2007
Messages
12
I figured out how to issue commands between units for a cinematic I am making, but I don't know how to issue orders to an entire group of units (about 10-12 units I need to charge towards another group of units).

It seems I only know how to send one unit at a time, which is very pain-staking.

Here's what I've got for the first unit at the moment:

multiple_issue.gif


So what obvious thing am I missing. :confused:
 
Level 6
Joined
Nov 4, 2004
Messages
125
At first, you do "Unit Group - Pick every unit..." and then "Unit - Issue Order..."
I wouldn't use "Unit Group - Issue Order" because it seems it has a maximum number of 12 (I never used it myself, but the function comment says so - and picking every unit and ordering it works for sure on the other hand), but if you don't need to order more than 12 units that should do.
 
Level 2
Joined
Oct 10, 2007
Messages
12
Okay, my problem was I didn't know how to make Unit Groups. I played around with it some more though and got this:
unit_groups.gif


This enables me to move a full group of units at a time :)

Does anyone know how to post my triggers as actual text? Because it is kind of annoying needing to go to Photobucket to post, and I've seen other people doing it.
 
Level 10
Joined
Jul 14, 2004
Messages
463
If you don't have to do this often, it's probably easier just to make a region containing the units and then instead of adding each unit to a group variable just use "Pick every unit in (Units in Region) and do...", maybe with a condition if there may be also other units in the region.
Technically, your solution is better, because it does not leak, but I think you should be allowed to be as lazy as everybody else (if you already knew the thing I suggested, just ignore the post).
 
Level 2
Joined
Oct 10, 2007
Messages
12
At first, you do "Unit Group - Pick every unit..." and then "Unit - Issue Order..."
I wouldn't use "Unit Group - Issue Order" because it seems it has a maximum number of 12 (I never used it myself, but the function comment says so - and picking every unit and ordering it works for sure on the other hand), but if you don't need to order more than 12 units that should do.

Ah, I tried doing this, and it still won't command more than 12. :(

  • Unit Group - Pick every unit in UGcinema_bad and do (Unit Group - Order UGcinema_bad to Attack-Move To (Position of Forest Troll Warlord 0097 <gen>))
There are still stragglers at the back of my group. Is there a better way to do it (other than just making more unit groups for each group of 12 units)?
 
Level 6
Joined
Nov 4, 2004
Messages
125
you have to select "Unit - Order (Picked Unit) to...". The way you did it, it orders 12 units in the group (because you used that very function!) for every unit in the group. I'll try to make it more clear:
The action "Pick every unit in group" picks every unit in a group and basically calls a function with that unit as a parameter (the thing in brackets, in your case (Unit Group - Order UGcinema_bad to Attack-Move To (Position of Forest Troll Warlord 0097 <gen>)). This should be changed to
  • Unit - Order Picked Unit to Attack-Move To (Position of Forest Troll Warlord 0097 <gen>)
so that the whole action looks like
  • Unit Group - Pick every unit in UGcinema_bad and do (Unit - Order Picked Unit to Attack-Move To (Position of Forest Troll Warlord 0097 <gen>))
"Picked Unit" always refers to a unit called by a unit group call, just like picked player works for a player from a player group (in your other thread).
 
Status
Not open for further replies.
Top