Scripted effect · The Fate of Iberia files
fp2_struggle_compromise_transfer_duchies_effect
fp2_struggle_compromise_transfer_duchies_effect = yesgame/common/scripted_effects/03_dlc_fp2_scripted_effects.txt, line 240 (41 lines). No parameters.
fp2_struggle_compromise_transfer_duchies_effect is a scripted effect in Crusader Kings III, in the The Fate of Iberia files, written at line 240 of its file. It takes no parameters: fp2_struggle_compromise_transfer_duchies_effect = yes. The game's script calls it in 1 place, among them Status Quo (event fp2_struggle.0901). Patch 1.20.1.2, from game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt.
The comment above it in the file
Moves duchies to another kingdom
What it does
- Hispania:
while = { … }
• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists
“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.
The script as written (41 lines of game script)
fp2_struggle_compromise_transfer_duchies_effect = {
title:e_spain = {
while = {
limit = {
any_in_de_jure_hierarchy = { fp2_struggle_compromise_transfer_duchy_trigger = yes }
}
every_in_de_jure_hierarchy = {
limit = { fp2_struggle_compromise_transfer_duchy_trigger = yes }
add_to_list = transferred_duchies
# To ensure kingdom's capitals are always inside them
if = {
limit = { title_capital_county = kingdom.title_capital_county }
kingdom = {
save_scope_as = old_kingdom
if = {
limit = {
any_direct_de_jure_vassal_title = {
NOT = { is_in_list = transferred_duchies }
title_capital_county.kingdom = scope:old_kingdom
}
}
random_direct_de_jure_vassal_title = {
limit = {
NOT = { is_in_list = transferred_duchies }
title_capital_county.kingdom = scope:old_kingdom
}
title_capital_county = { save_scope_as = new_capital }
}
set_capital_county = scope:new_capital
}
}
}
if = {
limit = { title_capital_county.holder.top_liege.primary_title.tier = tier_kingdom }
set_de_jure_liege_title = title_capital_county.holder.top_liege.primary_title
}
else = { set_de_jure_liege_title = title_capital_county.holder.top_liege.capital_county.kingdom }
}
}
}
}As written in game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls fp2_struggle_compromise_transfer_duchies_effect.
Events (1)
- Status Quo
fp2_struggle.0901
Source: game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.