Hands-On Usage
every_core_state is commonly used in post-war peace conferences or events to perform bulk construction, transfers, or modifications across all core states of a given country — for example, replenishing manpower or setting flags on every Soviet core state. It can also be used when an independence event fires to transfer all of a nation's core states to the target country in a single pass.
SOV = {
every_core_state = {
limit = {
is_owned_by = GER
}
transfer_state_to = SOV
add_manpower = 1000
}
}
Synergy
- is_owned_by — Used inside a
limit block to filter for core states currently owned by a specific country, preventing duplicate operations on states that have already been returned.
- transfer_state_to — The most common pairing; bulk-transfers every qualifying core state to the specified country. Frequently used in peaceful resolution scripts.
- add_manpower — Adds manpower to each core state individually. Combined with
limit, this can be restricted to enemy-occupied states or those meeting specific conditions.
- set_state_flag — Sets a flag on each core state, which can later be checked with
has_state_flag in other triggers to determine whether a state has already been processed by this effect, preventing repeated triggers.
Common Pitfalls
- Forgetting scope switching: Inside
every_core_state you are already in STATE scope, so writing country-level effects directly (such as add_political_power) will cause errors or have no effect. You must use state-level commands like set_state_owner_to or add_manpower. If a country-level operation is genuinely needed, you must first jump back to country scope using owner = { ... }.
- Misunderstanding the interaction between
random_select_amount and limit: random_select_amount randomly draws the specified number of states from those that have already passed the limit filter — it does not randomly select first and then filter. If the limit conditions are too strict and fewer states are available than the value of random_select_amount, the game will simply execute on however many states actually exist. No error is thrown, but the result may not match the expected count.