Hands-On Usage
any_country_with_original_tag is commonly used in historical events or decisions to check whether a successor or splinter state derived from a given historical tag meets certain conditions — for example, verifying that all successors of Austria-Hungary are still at war, or confirming that all colonial forms of Britain have become independent. A typical scenario is performing a unified status check when multiple tags coexist (such as puppet regimes spawned after GER is occupied).
# Check whether any country whose original tag is FRA is currently at war
any_country_with_original_tag = {
original_tag_to_check = FRA
has_war = yes
}
Synergy
- original_tag: Used inside
any_country_with_original_tag to further narrow down the iterated country by confirming its own original tag, preventing false positives in cross-tag scenarios.
- has_war: The most common nested condition, used to check whether a country matching the original tag is currently at war.
- is_puppet_of: Combine with this to verify whether a successor of a given original tag has become a puppet of a specific country, useful for liberation or annexation checks.
- exists: Place this first inside the loop body to confirm the country actually exists in the current game state, preventing logic errors caused by evaluating conditions against already-eliminated nations.
Common Pitfalls
original_tag_to_check expects the original tag of the target being checked, not the tag of the current scope — beginners often enter the current scope country's tag here, reversing the logic entirely. This field specifies which historical tag's associated countries should be iterated over.
- This trigger iterates over all currently existing countries whose original tag matches, and returns true as soon as any one of them satisfies the inner conditions — if you need all such countries to satisfy the conditions, use
all_country_with_original_tag instead (if available), or construct a universal check via NOT-based negation. Never treat any semantics as equivalent to all.