• 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.
  • Vote for the theme of Hive's HD Modeling Contest #7! Click here to vote! - Please only vote if you plan on participating❗️

Help with unique unit group system (BFME2)

Status
Not open for further replies.
The problem is quite simple, but im unable to find the solution on my own. Ive been working an a map that is based off another game, the battle for middle earth 2. Some of the systems used there Im going to use in my map.

Now my problem comes with the group system. A short explanation of how it works:
- batalions are trained at the barracks (only gondor soldiers and archers for now), consisting of 9 units with 1 leader.
- only the leader needs to be selected to control the entire batalion.

It works partially now, but the following things bug:

- only one batalion follows target orders
- batalion leaders move wrong when more then 2 batalions are given point orders
- shield wall (unit ability) does only work for the selected units when other unit types are selected
 

Attachments

  • The Battle for Middle Earth 2 ALFA.w3x
    956.8 KB · Views: 79
Level 12
Joined
May 4, 2008
Messages
1,111
use arrays to count the units and make unit groups? :O

EDIT: i.e Array 1 of unit = Leader of Group 1 if Group 1 is selected, make a selection of Leader 1 and then move group1 to target position of LEader1 :D
 
Last edited:
Level 7
Joined
Jul 9, 2009
Messages
148
ask GhostThruster...


LOL, but yeah id use something like
  • Events-Groupleaderunit Finishes casting an ability
  • Conditions-Cast Ability=sheildwall
  • Actions-UnitGroup-Pick Every unit in unitgroup (Your unit group) and Issue order to use ability Sheild Wall
Or something like that, couldn't quite tell what you were asking. Hope it helps
:wink: :D
 
Status
Not open for further replies.
Top