View Single Post
Garfunkel
Senior Member
Volunteer Data File Author
 
Join Date: May 2005
Location: Grenoble, France
Posts: 167

Old March 17th, 2011, 02:59 AM
Hello,

An idea:

- define a dynamic group for unit type tagging ("type" for what follow)
- define a GLOBAL dynamic group for unit type tagging with the same tags ("TYPE" for what follow)

- On prelink unit, set type.unittypeXX where XX is the model count
- create a global linkset 'LTYPE'
- Define sets of option with a live script relying on the unit # for enabling which set the associated Global tag: TYPE.unitypeXX This will be quite boring as you will need 1 option for each # in the range * number of unit type as global tags cannot be assigned by other ways...

- With a greatest priority, define an option that will compare the minimum of TYPE.unittypeXX assigned to the unit (As it is global, you will have the lowest of the roster) and the type.unittypeXX if equal, the unit is the one with the lowest model. If TYPE.unittypeXX is assigned more than one time, there are several unit with the lowest model count.

This is the general description of one solution, just ask if you need more technical details.

Which game system is it, and what is the purpose behind the solution you asked for? There may be another way... (Stat, rules...)

Regards,
Frédéric
Garfunkel is offline   #2 Reply With Quote