Scripted effect
form_carolingian_hegemony_gdp_scripted_effect
form_carolingian_hegemony_gdp_scripted_effect = yesgame/common/scripted_effects/00_major_decisions_scripted_effects_3.txt, line 1210 (123 lines). No parameters.
form_carolingian_hegemony_gdp_scripted_effect is a scripted effect in Crusader Kings III, written at line 1210 of its file. It takes no parameters: form_carolingian_hegemony_gdp_scripted_effect = yes. The game's script calls it in 2 places, among them Restore Carolingian Borders (decision) and Charlemagne's Dream (event middle_europe_decisions.0005). Its body carries 1 text of the game's own for the player. Patch 1.21.0, from game/common/scripted_effects/00_major_decisions_scripted_effects_3.txt.
What it does
- Their dynasty: The dynasty gains +1,000 Renown
- Frankish Empire: Gains the … Title (root)
- If does NOT have the Primogeniture Law: Adopts the Primogeniture Law
- Their culture:
If
NOT = { has_innovation = innovation_knighthood }
Then
add_innovation = innovation_knighthood
If
NOT = { has_innovation = innovation_royal_prerogative }
Then
add_innovation = innovation_royal_prerogative
If
NOT = { has_innovation = innovation_heraldry }
Then
add_innovation = innovation_heraldry
• 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 (120 lines of game script)
form_carolingian_hegemony_gdp_scripted_effect = {
save_scope_as = scoped_ruler
# Renown
dynasty = { add_dynasty_prestige = monumental_dynasty_prestige_gain }
# Save the identity source BEFORE any title changes - primary_title may shift when h_carolingian is granted
if = {
limit = { primary_title = title:e_hre }
title:e_hre = { save_scope_as = carolingian_identity_source }
}
else = {
title:e_france = { save_scope_as = carolingian_identity_source }
}
hidden_effect = {
# Silently migrate all e_hre de jure kingdoms into e_germany - the HRE label is superseded
if = {
limit = { title:e_hre = { is_titular = no } }
title:e_hre = {
every_in_de_jure_hierarchy = {
limit = { tier = tier_kingdom }
set_de_jure_liege_title = title:e_germany
}
}
}
# Lift all held empire titles (except e_hre, which is being dissolved) under h_carolingian
every_held_title = {
title_tier = empire
limit = { NOT = { this = title:e_hre } }
set_de_jure_liege_title = title:h_carolingian
}
# Also pull in nearby empires mostly controlled by us (excluding e_hre)
every_empire = {
limit = {
NOT = { this = title:e_hre }
NOT = { exists = hegemony }
any_de_jure_county = {
percent >= 0.6
holder = {
OR = {
this = root
any_liege_or_above = { this = root }
}
}
}
}
set_de_jure_liege_title = title:h_carolingian
}
}
# Create and grant h_carolingian
create_title_and_vassal_change = {
type = created
save_scope_as = change
add_claim_on_loss = no
}
title:h_carolingian = {
change_title_holder = {
holder = root
change = scope:change
}
}
resolve_title_and_vassal_change = scope:change
# Copy history and set color/name from saved identity source; CoA is always the combined Carolingian design
if = {
limit = { scope:carolingian_identity_source = { this = title:e_hre } }
custom_tooltip = carolingian_hre_rename_tooltip
title:h_carolingian = {
copy_title_history = title:e_hre
set_title_name = h_carolingian_as_hre
set_title_color = { 255 255 255 }
}
}
else = {
title:h_carolingian = {
copy_title_history = title:e_france
}
}
hidden_effect = {
set_primary_title_to = title:h_carolingian
# Destroy e_hre, its kingdoms are already under e_germany
# The exists check is intentional, old saves may not have e_hre if the title was added after game start
if = {
limit = { exists = title:e_hre }
destroy_title = title:e_hre
}
# Release all other held empire-tier titles (they persist as de jure layers under h_carolingian)
every_held_title = {
title_tier = empire
root = { destroy_title = prev }
}
}
# Law
if = {
limit = {
NOT = { has_realm_law = single_heir_succession_law }
}
add_realm_law_skip_effects = single_heir_succession_law
}
# Grant innovations to the player's own culture
culture = {
if = {
limit = { NOT = { has_innovation = innovation_knighthood } }
add_innovation = innovation_knighthood
}
if = {
limit = { NOT = { has_innovation = innovation_royal_prerogative } }
add_innovation = innovation_royal_prerogative
}
if = {
limit = { NOT = { has_innovation = innovation_heraldry } }
add_innovation = innovation_heraldryAs written in game/common/scripted_effects/00_major_decisions_scripted_effects_3.txt.
The first 120 of its 123 lines; the rest is in game/common/scripted_effects/00_major_decisions_scripted_effects_3.txt from line 1210.
Where it is used
Every place in common/, events/ and history/ that calls form_carolingian_hegemony_gdp_scripted_effect.
Decisions (1)
Events (1)
- Charlemagne's Dream
middle_europe_decisions.0005
Source: game/common/scripted_effects/00_major_decisions_scripted_effects_3.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.