Scripted effect · Roads to Power files
adventurer_realm_destabilisation_transfer_effect
adventurer_realm_destabilisation_transfer_effect = { TITLE = … TITLE_GIVER = … TITLE_LIST = … TITLE_RECEIVER = … }game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 2598 (114 lines). Parameters: $TITLE$, $TITLE_GIVER$, $TITLE_LIST$, $TITLE_RECEIVER$.
adventurer_realm_destabilisation_transfer_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 2598 of its file. A call passes 4 parameters: TITLE, TITLE_GIVER, TITLE_LIST and TITLE_RECEIVER. The game's script calls it in 2 places, among them ep3_landless_invasion_titles_taken_effect (scripted effect) and seize_realm_scheme_success_effect (scripted effect). Its body carries 1 text of the game's own for the player. 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 (114 lines of game script)
adventurer_realm_destabilisation_transfer_effect = {
$TITLE_RECEIVER$ = { save_scope_as = adventurer }
$TITLE_GIVER$ = { save_scope_as = ruler }
$TITLE$ = { save_scope_as = title }
if = {
limit = {
any_in_list = { list = independent_vassals }
}
# Vassals Breakaway
create_title_and_vassal_change = {
type = independency
add_claim_on_loss = yes
save_scope_as = change
}
hidden_effect = {
every_in_list = {
list = independent_vassals
save_temporary_scope_as = vassal_temp
if = {
limit = {
scope:adventurer = { top_liege = this }
scope:ruler = {
NOT = {
any_held_title = {
this != scope:title
any_in_de_jure_hierarchy = { this = scope:vassal_temp.primary_title }
}
}
}
}
becomes_independent = { change = scope:change }
}
else_if = {
limit = {
scope:ruler = {
NOT = {
any_held_title = {
this != scope:title
any_in_de_jure_hierarchy = { this = scope:vassal_temp.primary_title }
}
}
}
}
change_liege = {
liege = scope:adventurer.liege
change = scope:change
}
}
add_opinion = {
modifier = seized_lieges_realm_crime
target = scope:adventurer
}
}
}
resolve_title_and_vassal_change = scope:change
}
create_title_and_vassal_change = {
type = conquest
add_claim_on_loss = yes
save_scope_as = change
}
hidden_effect = {
every_in_list = {
list = $TITLE_LIST$
limit = { tier >= tier_county }
custom_tooltip = CONQUEST_CB_TITLE
every_in_de_jure_hierarchy = {
continue = { tier >= tier_duchy }
limit = {
tier >= tier_county
holder ?= {
OR = {
this = scope:ruler
target_is_liege_or_above = scope:ruler
}
}
}
save_temporary_scope_as = title_temp
if = {
limit = {
holder != scope:adventurer
OR = {
holder = scope:ruler
holder.highest_held_title_tier >= scope:title.tier
scope:adventurer = { has_claim_on = scope:title_temp }
}
}
add_to_temporary_list = titles_taken
}
else = {
holder = {
if = {
limit = {
liege = scope:ruler
NOT = { is_in_list = independent_vassals }
}
add_to_temporary_list = vassals_taken
}
}
}
}
}
}
hidden_effect = {
every_in_list = {
list = vassals_taken
change_liege = {
liege = scope:adventurer
change = scope:change
}
}
}
resolve_title_and_vassal_change = scope:change
}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 adventurer_realm_destabilisation_transfer_effect.
Scripted effects (2)
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.