Hands-On Usage
remove_contested_owner is commonly used in territorial negotiations, peace agreements, or scenario events to revoke a nation's contested owner status when it relinquishes its sovereignty claim over a state. For example, in an event option where the player abandons their claim to a disputed state:
# In a country scope event option
GER = {
remove_contested_owner = 42 # Germany is no longer the contested owner of state 42
}
You can also write this from a state scope in reverse, with completely equivalent results—which approach you choose depends on your current script's scope context.
Synergy
[has_contested_owner](/wiki/trigger/has_contested_owner): Check whether the target state actually has that contested owner before executing the removal, preventing the effect from triggering in situations that don't meet the conditions and ensuring logical rigor.
[add_contested_owner](/wiki/effect/add_contested_owner): These two appear together as a pair. First use add_contested_owner to establish a contested claim, then use remove_contested_owner when conditions mature to revoke it, forming a complete lifecycle management of contested status.
[add_state_core](/wiki/effect/add_state_core) / [add_state_claim](/wiki/effect/add_state_claim): After removing contested ownership, you typically need to adjust cores or claims in sync. Using all three together allows precise control over all territorial rights levels a nation has over a state.
[country_event](/wiki/effect/country_event) / [state_event](/wiki/effect/state_event): Trigger a notification event after removing the contested status. Leveraging the Country and State localization contexts built into the effect, you can directly display the relevant nation and state names in event text, enhancing narrative coherence.
Common Pitfalls
- Scope and parameter type must be complementary: This effect requires that "if the current scope is a country, fill the parameter with a state; if the current scope is a state, fill the parameter with a country"—the two cannot be of the same type. Beginners might mistakenly write another country tag under a country scope (such as
GER = { remove_contested_owner = FRA }), which will not take effect, and the script won't report an error, making the issue difficult to debug.
- Failing to verify existence before removal: If the target nation isn't actually the contested owner of that state and you execute the removal anyway, the game won't crash, but it will silently fail. It's recommended to pair this with
[has_contested_owner](/wiki/trigger/has_contested_owner) as a precondition check to keep your script defensive.