Ragnar Rök
New Member
- Reaction score
- 0
First I have two unit group leaders; a Captain(player1) and a Fel orc grunt(player2).
Both the Captain and the Fel orc have several "minions".
As the code states they are all placed into unitgroups:
Then I want them to attack-move towards "center of playable maparea".
And then The Captain and his footmen runs towards the center while all the Orcs stand still. Appearantly the leaders can't run towards a start location but the orcs should still go towards the center as the footmen. Can someone explain that to me? Thanks!
Both the Captain and the Fel orc have several "minions".
As the code states they are all placed into unitgroups:
Code:
Unit groups
Events
Map initialization
Conditions
Actions
Unit Group - Add Captain 0008 <gen> to Leader[1]
Unit Group - Add Fel Orc Grunt 0009 <gen> to Leader[2]
Unit Group - Pick every unit in (Units within 700.00 of (Position of Captain 0008 <gen>)) and do (Actions)
Loop - Actions
Unit Group - Add (Picked unit) to Group[1]
Unit Group - Pick every unit in (Units within 700.00 of (Position of Fel Orc Grunt 0009 <gen>)) and do (Actions)
Loop - Actions
Unit Group - Add (Picked unit) to Group[2]
Wait 1.00 seconds
Trigger - Run Charge <gen> (checking conditions)
Then I want them to attack-move towards "center of playable maparea".
Code:
Charge
Events
Conditions
Actions
Unit Group - Order Group[1] to Attack-Move To (Center of (Playable map area))
Unit Group - Order Group[2] to Attack-Move To (Center of (Playable map area))
Unit Group - Order Leader[1] to Attack-Move To (Player 3 (Teal) start location)
Unit Group - Order Leader[2] to Attack-Move To (Player 3 (Teal) start location)
And then The Captain and his footmen runs towards the center while all the Orcs stand still. Appearantly the leaders can't run towards a start location but the orcs should still go towards the center as the footmen. Can someone explain that to me? Thanks!