Scripted Effect
set_as_designated_heir_effect
Definitionin_game/common/scripted_effects/country_effects.txt:2921
2922set_as_designated_heir = $target$
2923save_scope_as = root_country
2924if = {
2925limit = {
2926exists = union
2927exists = scope:root_country
}
2930union ?= {
2931every_international_organization_member = {
2932limit = {
2932this != scope:root_country
}
2933set_as_designated_heir = $target$
2934every_subject = {
2935limit = {
2935subject_type = {
2935has_overlords_ruler = yes
}
}
2936set_as_designated_heir = $target$
}
}
}
}
2941every_subject = {
2942limit = {
2942subject_type = {
2942has_overlords_ruler = yes
}
}
2943set_as_designated_heir = $target$
}