Hands-On Usage
every_occupied_country is well-suited for post-war events or decisions where you need to apply the same set of effects to every country currently occupied by the executing nation — for example, forcing puppets, spreading ideology, or clearing resistance. The example below shows the Soviet Union using an event to reduce stability and force-puppet every occupied country:
SOV = {
every_occupied_country = {
limit = {
is_ai = yes
has_war = no
}
set_autonomy = {
target = SOV
autonomous_state = autonomy_puppet
}
add_stability = -0.10
}
}
Synergy
- has_war — Used inside
limit to filter out occupied countries that are still at war, preventing logically inconsistent effects from being applied to active belligerents.
- set_autonomy — Bulk-sets occupied countries to a specified autonomy level (puppet, colony, etc.); this is the core command for post-occupation disposition.
- add_stability — Applies a uniform stability adjustment across all occupied countries, commonly used in punitive events or occupation policy effects.
- set_politics — Used alongside the loop to overwrite the ruling party and popularity of every occupied country to match the occupier's ideology.
Common Pitfalls
- Scope direction confusion: Once inside the
every_occupied_country block, the scope has already switched to the occupied country. When writing set_autonomy inside that block, target should be set to the overlord's tag — not the occupied country itself — otherwise the autonomy relationship will be invalid or incorrect.
- Missing
limit causing unintended hits on neutral countries: This command fires for any country that has territory occupied by the executing nation's troops. Without a limit filter (such as exists = yes or has_capitulated = yes), it may unexpectedly catch countries that have merely had a small number of enemy troops step onto their soil, producing unintended script side effects.