Scripted Effect
set_new_ruler_with_union
Definitionin_game/common/scripted_effects/country_effects.txt:1009
1010if = {
1011limit = {
1011exists = union
}
1012custom_description = {
1013text = set_new_ruler_with_union
1014object = $character$
1015save_temporary_scope_as = union_country_event_scope
1016every_subject = {
1017limit = {
1017subject_type = {
1017has_overlords_ruler = yes
}
}
1018set_new_foreign_ruler_no_update = $character$
}
1020union ?= {
1021every_international_organization_member = {
1022limit = {
1022this != scope:union_country_event_scope
}
1024set_new_foreign_ruler_no_update = $character$
1025every_subject = {
1026limit = {
1026subject_type = {
1026has_overlords_ruler = yes
}
}
1027set_new_foreign_ruler_no_update = $character$
}
}
}
1032set_new_ruler = $character$
1033union ?= {
1034update_leadership = this
}
}
}
1038else = {
1039set_new_ruler = $character$
}