count _in _collection
Details
Checks the size of a given collection.
Note: unit and building and manpower are mutually exclusive
Example
count_in_collection = {
collection = {
input = game:scope
operators = { faction_members }
name = FACTION
}
unit = armor # (optional) checks the number of subunits that have the correct equipment type
buildings = {industrial_complex } # (optional) checks the number of building types in total
manpower = yes # (optional, default: no) checks the number of deployed manpower
equipment_ratio = 0.9 (optional, only works with land units default 0) what percentage of equipment the division needs to atleast have to be counted
unit_category = { marine marine_commando category_fighter }(optional) checks the number of sub units that match a certain sub unit definition / category
stockpile = light_tank_equipment (optional) counts the amount of a certain archetype in the countries stockpile
size > 10
}Source: Triggers Documentation