Hands-On Usage
This trigger is commonly used in focus trees, decisions, or events to check whether a country has enough idle civilian factories to launch a specific project (such as special projects, production licenses, etc.), preventing players from being forced to trigger consumption during resource shortages. For example, set a threshold in the available block of a decision to ensure the player has surplus civilian factories before clicking:
available = {
num_of_civilian_factories_available_for_projects > 3
}
Synergy
[has_built](/wiki/trigger/has_built): Often used together with this trigger to check building completion status, comprehensively assessing whether the industrial base supports project development.
[building_count_trigger](/wiki/trigger/building_count_trigger): Can cross-verify the current total civilian factory count, comparing it against available quantity to identify whether large numbers of factories are being requisitioned.
[add_cic](/wiki/effect/add_cic): After the condition passes, this effect is commonly used to reward or replenish civilian factory production capacity, forming a standard "condition met → reward given" flow.
[amount_research_slots](/wiki/trigger/amount_research_slots): Idle civilian factories and research slot quantity often serve simultaneously as indicators of national development potential, frequently appearing side-by-side in the same trigger block.
Common Pitfalls
- Confusing "available" with "total": Beginners often mistake this trigger for checking the total number of civilian factories, but it actually checks the remaining idle quantity after subtracting factories assigned to trade imports, construction queues, and other purposes. High total quantity does not mean high available quantity; heavy import dependency will significantly reduce this value.
- Missing comparison operators: Writing
num_of_civilian_factories_available_for_projects = 5 directly creates semantic ambiguity in certain contexts. It is recommended to explicitly use comparison operators like > / < / >=, otherwise unexpected equality judgment behavior may occur.