Hands-On Usage
random_country_with_original_tag is typically used when you need to perform operations on a "successor" of a historical nation — for example, when multiple faction countries sharing the same original tag emerge after a civil war, or when an event needs to randomly select one instance of a "true" nation (regardless of its current tag) for diplomatic or resource operations. A classic use case is applying an effect to a random splinter of Britain without hard-coding any of its dynamic tags.
# Event effect: randomly find a country with original tag ENG, and if it is at war, grant it a stability bonus
random_country_with_original_tag = {
original_tag_to_check = ENG
limit = {
has_war = yes
exists = yes
}
add_stability = 0.05
add_war_support = 0.05
}
Synergy
- original_tag: Can be used inside the
limit block to further verify the original tag of the current scoped country, forming a double filter together with the original_tag_to_check parameter to ensure precise logic.
- exists: Used in
limit to check whether the target country still exists in the game, preventing errors or silent failures when effects are applied to already-eliminated nations.
- has_war: Commonly placed inside
limit to restrict the effect to original-tag countries that are currently at war, useful in conjunction with war-related event chains.
- add_stability: A typical effect command used as the execution body, representing any country-level modification applied to the randomly selected nation — the most common content found inside this effect.
Common Pitfalls
- Omitting the
original_tag_to_check field: This is the core required parameter of this effect. Leaving it out results in undefined behavior or an unintended candidate pool. Beginners often mistakenly assume that an original_tag trigger inside limit can substitute for it, but the two operate at different levels: original_tag_to_check is a prerequisite that defines the candidate pool, while limit is an additional filter applied on top of that pool.
- Using
tag instead of original_tag for validation: Writing tag = ENG inside limit will only match countries whose current in-game tag is exactly ENG, and will not cover derived nations sharing the same original tag that were created through civil wars or puppeting. You should use the original_tag = ENG trigger instead, so that the filtering logic stays consistent with original_tag_to_check.