Scripted effect · The Fate of Iberia files
fp2_struggle_found_kingdom_toledo_empire_effect
fp2_struggle_found_kingdom_toledo_empire_effect = yesgame/common/scripted_effects/03_dlc_fp2_scripted_effects.txt, line 2093 (67 lines). No parameters.
fp2_struggle_found_kingdom_toledo_empire_effect is a scripted effect in Crusader Kings III, in the The Fate of Iberia files, written at line 2093 of its file. It takes no parameters: fp2_struggle_found_kingdom_toledo_empire_effect = yes. The game's script calls it in 2 places, among them Establish Kingdom of Toledo (decision) and The Kingdom of Toledo (event fp2_other_decisions.1100). Patch 1.20.1.2, from game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt.
What it does
- Toledo: Gains the … Title (root)
If
a check the game hides
Then
- One held title, picked in order:
- Where:
- Not: Is Titular Title
- You:
completely_controls = prev
- Any title to title neighboring and across water duchy:
- Their de jure liege › In de jure hierarchy (more than 2): Title tier exactly Duchy
title_tier = duchy
- Where:
- One held title, picked in order:
- Every in list: Becomes de jure part of Toledo
- Every in list:
- Where: Is played by the AI
- Opinion: Absorbed De Jure Lands
- Gain +750 Prestige
- Gains the modifier “The Kingdom of Toledo” for 10 years
- Development Growth +10%
- Same Faith Opinion +10
• 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 (67 lines of game script)
fp2_struggle_found_kingdom_toledo_empire_effect = {
create_title_and_vassal_change = {
type = created
save_scope_as = title_change
add_claim_on_loss = no
}
title:k_toledo = {
change_title_holder = {
holder = root
change = scope:title_change
}
}
resolve_title_and_vassal_change = scope:title_change
title:d_toledo = { add_to_list = kingdom_toledo_absorb_list }
if = {
limit = { NOT = { exists = scope:has_kingdom_toledo_absorb_list_been_created } }
ordered_held_title = {
title_tier = duchy
limit = {
is_titular = no
NOT = { this = title:d_toledo }
root = { completely_controls = prev }
any_title_to_title_neighboring_and_across_water_duchy = { this = title:d_toledo }
de_jure_liege = {
any_in_de_jure_hierarchy = {
count > 2
tier = tier_duchy
}
}
}
order_by = {
value = 0
every_de_jure_county = {
limit = { any_neighboring_county = { de_jure_liege = title:d_toledo } }
add = 1
}
}
add_to_list = kingdom_toledo_absorb_list
}
}
every_in_list = {
list = kingdom_toledo_absorb_list
if = {
limit = {
exists = de_jure_liege.holder
de_jure_liege.holder != root
}
de_jure_liege.holder = { add_to_list = kingdom_toledo_opinion_list }
}
set_de_jure_liege_title = title:k_toledo
}
hidden_effect = { title:k_toledo = { set_de_jure_liege_title = title:e_spain } }
every_in_list = {
list = kingdom_toledo_opinion_list
limit = { is_ai = yes }
add_opinion = {
target = root
modifier = absorbed_de_jure_opinion
}
}
#Prestige
add_prestige = massive_prestige_gain
add_character_modifier = {
modifier = fp2_form_kingdom_toledo_modifier
years = 10
}
}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_found_kingdom_toledo_empire_effect.
Decisions (1)
Events (1)
- The Kingdom of Toledo
fp2_other_decisions.1100
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.