Скриптовый эффект

set_as_designated_heir_with_reason_effect

set_as_designated_heir_with_reason_effectin_game/common/scripted_effects/country_effects.txt:2947

Определениеin_game/common/scripted_effects/country_effects.txt:2947

2948set_as_designated_heir = {
2948target = $target$
2948reason = $reason$
}
2949save_scope_as = root_country
2950if = {
2951limit = {
2952exists = union
2953exists = scope:root_country
2954union = {
2954country = scope:root_country
}
}
}
2956union ?= {
2957every_international_organization_member = {
2958limit = {
2958this != scope:root_country
}
2959set_as_designated_heir = {
2959target = $target$
2959reason = $reason$
}
2960every_subject = {
2961limit = {
2961subject_type = {
2961has_overlords_ruler = yes
}
}
2962set_as_designated_heir = {
2962target = $target$
2962reason = $reason$
}
}
}
}
}
2967every_subject = {
2968limit = {
2968subject_type = {
2968has_overlords_ruler = yes
}
}
2969set_as_designated_heir = {
2969target = $target$
2969reason = $reason$
}
}