HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

<Unit group> to attack <Unit group>?

03-08-2004, 04:00 PM#1
Vagabond
Lo 'all, im back :P

I just wondered whats the trigger to make one group of units attacking another group of units.

Thnx in Adv.
~VgBd
03-08-2004, 04:38 PM#2
TheReaper
Just make that group to move-attack to a region behind the othere group. And the same with the other group. It should work :D
03-08-2004, 04:41 PM#3
dexllgamer
Dont even have to make them attack move to a region behind them. Just tell each group to attack move to center of region where you want them to fight and they will. As long as their not allies.
03-08-2004, 05:10 PM#4
Vagabond
Can you please write the trigger in a "[code]" format?
I can't seem to find them :-|
03-08-2004, 06:15 PM#5
Kamux
Actions:
Pick every unit in <your first group> and loop actions:
loop
order picked unit to attack random unit from <second unit group>

now each unit will attack a random unit from the other group.
03-08-2004, 06:54 PM#6
Vagabond
First, whit "loop" do you mean "do"?
And second, were do i manage/create unit groups?

Thnx again
^V^G^B^D^
03-08-2004, 07:58 PM#7
Vagabond
come' on - answer :P
*bump*
03-08-2004, 08:01 PM#8
linkmaster23
You must understand the concept of a loop to understand the loop... o_O

Anyways, you double-posted. Closing thread. Just kiddin.
03-08-2004, 08:47 PM#9
Balthamos
Ok, technically you don't need to order one unit at a time, you can order entire groups at a time. but then you'd need to find the centre of the group you're ordering to, which would take a few loops and some variable juggling, instead, we'll order one at a time, to a random unit in the other group.

So...loops are basically a set of events that can be run more than once...

Unit Group - Pick every unit in "attackinggroup" and do...
-Unit - Issue order to a point, "attack-move" to position of unit (random unit from unitgroup "attackedgroup")

ok, so that'll send every unit to a random unit in the other group. As long as the attacked groups is fairly well kept together, it should work fine. You could've made a complex loop to find the centre of the group, but you don't really need it.

To manage unit groups, you can find the "Unit group" actions, you'll be able to add and remove and clear units from unitgroups with those actions. Hope this helps.