Scripted Effect
break_union
Definitionin_game/common/scripted_effects/country_effects.txt:2078
2079custom_description = {
2080text = break_union_text
2081object = $target$
2082save_scope_as = root_country
2083if = {
}
2087if = {
2088limit = {
2088in_union_with = $target$
}
2089union = {
2090remove_country_from_international_organization = scope:root_country
}
}
2093if = {
2094limit = {
2095OR = {
2096has_ruler = no
2097ruler = {
2098NOT = {
2098owner = scope:root_country
}
}
}
}
2102if = {
2103limit = {
2103has_ruler = yes
}
2104ruler = {
2104save_scope_as = target_character
}
}
2106if = {
2107limit = {
2107NOT = {
2107exists = scope:target_character
}
}
2108ordered_character = {
2109order_by = heir_score_home
2110limit = {
2110is_adult = yes
}
2111max = 1
2112check_range_bounds = no
2113save_scope_as = target_character
}
}
2116if = {
2117limit = {
2117NOT = {
2117exists = scope:target_character
}
}
2118create_character = {}
}
2128if = {
2129limit = {
2129exists = scope:target_character
}
2130set_new_ruler = scope:target_character
}
}
}