Hands-On Usage
all_occupied_country is commonly used in victory condition checks, pre-peace-deal validation, or achievement unlock scenarios — for example, verifying that every country the player has occupied is fully conquered or meets some ideological condition before triggering a follow-up event or decision. In large campaign mods it is also frequently used to confirm whether a faction has reduced all enemy nations to occupied territories.
# Unlock a decision only when none of the occupied countries are major nations
available = {
all_occupied_country = {
is_major = no
}
}
Synergy
- any_enemy_country — Frequently paired with
all_occupied_country: use any_enemy_country first to confirm that at least one belligerent exists, then use this trigger to verify that every occupied country meets a uniform condition.
- has_government — Used inside the
all_occupied_country sub-block to check the government type of each occupied country; well-suited for ideological conquest objective conditions.
- controls_state — A complementary way to verify occupation; combine with this trigger when you need to narrow the check down to specific states rather than whole countries.
- has_war — Typically placed as an outer prerequisite to ensure the country is still at war before
all_occupied_country performs its bulk check on occupied nations.
Common Pitfalls
- Scope direction confusion: The scope of
all_occupied_country is COUNTRY, and inside the sub-block the scope automatically switches to the occupied country. Beginners often write reverse references such as ROOT = inside the sub-block while forgetting that ROOT still points to the original calling country, which leads to broken logic. Always be careful to distinguish what THIS and ROOT refer to at each level.
- Conflating "occupied" with "controlled": Occupied (
occupied) means the country's territory has been seized by your forces but the country has not yet been annexed — this is different from controls_state, which targets a single state. If a country has already been annexed via annex_country, it is no longer considered an "occupied country" and will not be iterated over by this trigger. Beginners frequently run into conditions that are permanently unsatisfied because of this distinction.