trigger · has_damaged_buildings
Definition
- Supported scope:
COUNTRY - Supported target:
none
Description
check for damaged buildings of nation
has_damaged_buildingsCOUNTRYnonecheck for damaged buildings of nation
Hands-on notes are AI-generated and checked against the vanilla command vocabulary — treat them as a starting point, not authoritative reference. The definition above is the game's own documentation.
has_damaged_buildings is commonly used in post-war reconstruction events or decisions to detect whether a nation has damaged buildings, triggering corresponding aid programs or recovery focuses. For example, in certain mods, when a nation suffers bombing and building damage occurs, a "Post-War Reconstruction" decision is automatically unlocked:
# Example of decision available block
available = {
has_damaged_buildings = yes
has_political_power > 50
}
[damage_building](/wiki/effect/damage_building): Actively inflicts building damage during testing or scripted triggers, then uses has_damaged_buildings to verify the result, forming a complete "apply—verify" logical chain.[building_count_trigger](/wiki/trigger/building_count_trigger): Combined use allows fine distinction between "whether buildings are damaged" and "whether intact building count meets threshold", useful for hierarchical assessment of national infrastructure status.[has_capitulated](/wiki/trigger/has_capitulated): Defeat and capitulation typically accompany extensive building destruction; checking both simultaneously allows precise identification of nations that have "just experienced collapse/occupation", preventing accidental triggering of reconstruction logic.[controls_state](/wiki/trigger/controls_state): Reconstruction decisions usually require the nation to actually control damaged territory; pairing with this trigger filters out cases where buildings are damaged but the state has been lost.every_owned_state subblocks) causes script errors or silent failure, making it difficult for newcomers to trace the bug source.yes/no semantics: has_damaged_buildings = no does not equate to "all buildings intact"—it simply means the current nation has no damaged building records. When buildings are freshly destroyed (not damaged) rather than damaged, results may diverge from expectations; supplementary checks with building_count_trigger are recommended.