I've kind of copied the 'A or B option' preset used for the final WoL mission, the one which determines which type of unit used. But now I want to modify it so that, if the number of A units is smaller than B units, the AI should use the B unit instead. This is most particular for Zerg since the burrowed and unburrowed types are independant and not linked. Any ideas?
function: Number?/Count of units in region matching conditions (native lib)
Number of units in (entire map) owned by computer, matching: Burrowed < Number of units in (entire map) owned by computer, matching: Burrowed not checked
I've kind of copied the 'A or B option' preset used for the final WoL mission, the one which determines which type of unit used. But now I want to modify it so that, if the number of A units is smaller than B units, the AI should use the B unit instead. This is most particular for Zerg since the burrowed and unburrowed types are independant and not linked. Any ideas?
@DeltaCadimus: Go
Sorry not sure what you're trying to do exactly. Can you explain in gameplay terms?
<Click Here> To See My Epic Single Player Campaign (LifeForceCampaign.com)
@Bilxor: Go
It's something like this, since it's meant to be semi-automated:
You have Type A of unit and Type B of unit.
If: Type A numbers < Type B numbers
Then: Return Type B
Else: Return Type A
function: Number?/Count of units in region matching conditions (native lib)
Number of units in (entire map) owned by computer, matching: Burrowed < Number of units in (entire map) owned by computer, matching: Burrowed not checked
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)