Efecto de script
banish_character
Definiciónin_game/common/scripted_effects/character_effects.txt:58
59custom_description = {
60text = banish_character_text
61if = {
62limit = {
62exists = owner
}
63owner = {
63save_scope_as = original_country
}
}
65else = {
66ROOT = {
66save_scope_as = original_country
}
}
68if = {
69limit = {
69exists = scope:original_country
}
70scope:original_country = {
71random_neighbor_country = {
71save_scope_as = target_banish_country
}
72if = {
73limit = {
73NOT = {
73exists = scope:target_banish_country
}
}
74random_country = {
75limit = {
75within_diplomatic_range = PREV
}
76save_scope_as = target_banish_country
}
}
}
}
81if = {
82limit = {
82exists = scope:target_banish_country
}
83if = {
84limit = {
84is_ruler_of = scope:original_country
}
85remove_ruler = scope:original_country
}
87move_country = scope:target_banish_country
}
89else = {
90kill_character_silently = {
91target = this
92reason = vanished
}
}
}