Scripted effect
decision_restore_carantania_effect
decision_restore_carantania_effect = yesgame/common/scripted_effects/00_major_decisions_scripted_effects.txt, line 1382 (88 lines). No parameters.
decision_restore_carantania_effect is a scripted effect in Crusader Kings III, written at line 1382 of its file. It takes no parameters: decision_restore_carantania_effect = yes. The game's script calls it in 2 places, among them Restore Carantanian Rule (decision) and Restored Carantanian Rule (event major_decisions.3400). Its body carries 3 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_major_decisions_scripted_effects.txt.
What it does
- Their dynasty: The dynasty gains +1,000 Renown
- Carantania: Gains the … Title (root)
Otherwise
- Every in list:
- Where: Not: Is Titular Title
- Becomes de jure part of Carantania
- Every in list:
- Every sub realm duchy:
If
NOT = { title:k_carantania = root.capital_county }
Then
- You: … becomes the new De Jure Capital of Carantania
- Carantania:
set_capital_county = root.capital_county
- Your capital county:
- If their culture is not the same as yours:
set_county_culture = root.culture
- The county gains the modifier “Home of the Carantanians” for 100 years
- Holding Taxes +10%
- Development Growth +0.2/month
- Monthly county control growth +0.1/month
- If their culture is not the same as yours:
• 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 (88 lines of game script)
decision_restore_carantania_effect = {
title:d_krain = { add_to_list = carantania_de_jure_list }
title:d_carinthia = { add_to_list = carantania_de_jure_list }
title:d_steyermark = { add_to_list = carantania_de_jure_list }
title:d_carinthia.de_jure_liege = { save_scope_as = previous_kingdom }
dynasty = { add_dynasty_prestige = monumental_dynasty_prestige_gain }
create_title_and_vassal_change = {
type = created
save_scope_as = title_change
add_claim_on_loss = no
}
title:k_carantania = {
change_title_holder = {
holder = root
change = scope:title_change
}
}
resolve_title_and_vassal_change = scope:title_change
hidden_effect = {
if = {
limit = { exists = scope:previous_kingdom.de_jure_liege }
title:k_carantania = {
set_de_jure_liege_title = scope:previous_kingdom.de_jure_liege
}
}
}
if = {
limit = {
NOT = {
any_in_list = {
list = carantania_de_jure_list
is_titular = yes
}
}
}
custom_tooltip = decision_restore_carantania_de_jure_regular_tooltip
hidden_effect = {
title:d_krain = { set_de_jure_liege_title = title:k_carantania }
title:d_carinthia = { set_de_jure_liege_title = title:k_carantania }
title:d_steyermark = { set_de_jure_liege_title = title:k_carantania }
}
}
else = {
every_in_list = {
list = carantania_de_jure_list
limit = {
is_titular = no
}
set_de_jure_liege_title = title:k_carantania
}
}
every_sub_realm_duchy = {
limit = {
NOR = {
is_in_list = carantania_de_jure_list
}
any_title_to_title_neighboring_duchy = {
is_in_list = carantania_de_jure_list
}
}
custom_tooltip = decision_restore_carantania_de_jure_tooltip
hidden_effect = { set_de_jure_liege_title = title:k_carantania }
}
if = {
limit = {
capital_province.duchy = { is_in_list = carantania_de_jure_list }
NOT = { title:k_carantania = root.capital_county }
}
root = { custom_tooltip = decision_restore_carantania_change_capital_tooltip }
title:k_carantania = {
set_capital_county = root.capital_county
}
}
root.capital_county = {
if = {
limit = {
NOT = { culture = root.culture }
}
set_county_culture = root.culture
}
add_county_modifier = {
modifier = restore_carantania_modifier
years = 100
}
}
}As written in game/common/scripted_effects/00_major_decisions_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls decision_restore_carantania_effect.
Decisions (1)
Events (1)
- Restored Carantanian Rule
major_decisions.3400
Source: game/common/scripted_effects/00_major_decisions_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.