Hands-On Usage
reserve_dynamic_country is primarily used in civil war or dynamic state dissolution scripts. When you create a dynamic country without territory via an event or decision, you must immediately mark it as "reserved" to prevent the game from recycling it. Once the dynamic country completes its purpose (such as the civil war ending or puppet regime dissolving), release it to return resources to the pool.
# Reserve dynamic country immediately after creating civil war faction
create_country_leader = { ... }
reserve_dynamic_country = yes
# Release in civil war end event
country_event = {
id = civil_war.99
immediate = {
reserve_dynamic_country = no
}
}
Synergy
[has_civil_war](/wiki/trigger/has_civil_war): Detects whether a civil war currently exists; typically serves as a prerequisite check before reserve/release operations to avoid unintended manipulation of dynamic countries when no civil war is active.
[add_civil_war_target](/wiki/effect/add_civil_war_target): Frequently appears alongside this command in civil war scenarios—first add the civil war target country, then reserve the dynamic country to prevent recycling.
[annex_country](/wiki/effect/annex_country): When the civil war ends, annex the dynamic country and immediately execute reserve_dynamic_country = no to release it, forming a complete "create→use→recycle" lifecycle.
[diplomatic_relation](/wiki/effect/diplomatic_relation): After a dynamic country is reserved, you typically need to establish diplomatic relations with the host nation (such as puppet or alliance) right away; executing both in sequence ensures the dynamic country is not recycled before relations are established.
Common Pitfalls
- Forgetting to release: After creating a dynamic country, you write
= yes but fail to add a corresponding = no when the civil war or event ends, causing the dynamic country slot to remain occupied for an extended period. Late-game, numerous civil war events may fail to generate new dynamic countries properly.
- Scope errors: This command must execute within the dynamic country's own COUNTRY scope. If mistakenly written within the host nation or STATE scope, it will not take effect, and the Clausewitz engine typically does not throw obvious errors, making it extremely difficult to debug.