Scripted effect · Roads to Power files
ep3_become_landed_save_liege_effect
ep3_become_landed_save_liege_effect = { ALWAYS_INDEPENDENT = … TITLE_GIVER = … TITLE_LIST = … }game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 856 (41 lines). Parameters: $ALWAYS_INDEPENDENT$, $TITLE_GIVER$, $TITLE_LIST$.
ep3_become_landed_save_liege_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 856 of its file. A call passes 3 parameters: ALWAYS_INDEPENDENT, TITLE_GIVER and TITLE_LIST. The game's script calls it in 9 places, among them ep3_interactions_events.0112 (event), Negotiate Joining Wars (event ep3_interactions_events.0111) and Restoration: An Honorable Man (event cid.2020). Patch 1.20.1.2, from game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (41 lines of game script)
ep3_become_landed_save_liege_effect = {
$TITLE_GIVER$ = { save_scope_as = ruler }
save_scope_value_as = {
name = override_independence_logic
value = $ALWAYS_INDEPENDENT$
}
if = {
limit = { scope:override_independence_logic = yes }
# Do nothing, we're just here to block subsequent checks.
}
else_if = {
limit = {
scope:ruler = { top_liege != this }
any_in_list = {
list = $TITLE_LIST$
tier = scope:ruler.highest_held_title_tier
}
NOT = {
any_in_list = {
list = $TITLE_LIST$
tier > scope:ruler.highest_held_title_tier
}
}
}
scope:ruler.liege = { save_scope_as = new_liege }
}
else_if = {
limit = {
NOT = {
any_in_list = {
list = $TITLE_LIST$
tier >= scope:ruler.highest_held_title_tier
}
}
}
scope:ruler = { save_scope_as = new_liege }
}
scope:new_liege.government_type ?= {
save_scope_as = old_government
}
}As written in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls ep3_become_landed_save_liege_effect.
Events (4)
- ep3_interactions_events.0112
- Negotiate Joining Wars
ep3_interactions_events.0111 - Restoration: An Honorable Man
cid.2020 - Restoration: Mio Cid
cid.4010
Source: game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.