Scripted effect
restore_holy_roman_empire_decision_scripted_effect
restore_holy_roman_empire_decision_scripted_effect = yesgame/common/scripted_effects/00_major_decisions_scripted_effects.txt, line 3222 (211 lines). No parameters.
restore_holy_roman_empire_decision_scripted_effect is a scripted effect in Crusader Kings III, written at line 3222 of its file. It takes no parameters: restore_holy_roman_empire_decision_scripted_effect = yes. The game's script calls it in 2 places, among them Restore the Holy Roman Empire (decision) and The Empire of the West (event middle_europe_decisions.0015). Its body carries 4 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
- Holy Roman Empire: Gains the … Title (root)
- Holy Roman Empire becomes their primary title
If
- scope:hre_blessing_authority: Opinion of them less than 60
One of these
has_weak_hook = scope:hre_blessing_authorityor
has_strong_usable_hook = scope:hre_blessing_authority
Then
use_hook = scope:hre_blessing_authority
- Holy Roman Empire:
add_title_law = princely_elective_succession_lawIf
- You:
One of these
- Has the Male Preference Law
or
Has the Male Only Law
Then
add_title_law = male_only_law
- You:
If
- You:
One of these
- Has the Female Preference Law
or
Has the Female Only Law
Then
add_title_law = female_only_law
- You:
- All held Kingdom and above Tier Titles will be destroyed
- Gain +750 Prestige
• 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)
restore_holy_roman_empire_decision_scripted_effect = {
save_scope_as = founder
create_title_and_vassal_change = {
type = created
save_scope_as = title_change
add_claim_on_loss = no
}
title:e_hre = {
change_title_holder = {
holder = root
change = scope:title_change
}
}
resolve_title_and_vassal_change = scope:title_change
set_primary_title_to = title:e_hre
# Consume a hook only when it supplied the authority's blessing.
if = {
limit = {
exists = scope:hre_blessing_authority
scope:hre_blessing_authority = {
opinion = {
target = root
value < high_positive_opinion
}
}
OR = {
has_weak_hook = scope:hre_blessing_authority
has_strong_usable_hook = scope:hre_blessing_authority
}
}
use_hook = scope:hre_blessing_authority
}
#Make Germany inalienable.
if = {
limit = {
any_vassal = { has_title = title:k_east_francia }
}
destroy_title = title:k_east_francia
}
else_if = {
limit = { has_title = title:k_east_francia }
hidden_effect = { destroy_title = title:k_east_francia } # hidden as included in other tooltips
}
#Sort title laws.
title:e_hre = {
add_title_law = princely_elective_succession_law
if = { #Add Salic law.
limit = {
root = {
OR = {
has_realm_law = male_preference_law
has_realm_law = male_only_law
}
}
}
add_title_law = male_only_law
}
if = { #Ignore Salic law.
limit = {
root = { has_realm_law = equal_law }
}
add_title_law = equal_law
}
if = { #Invert Salic law. Take that, Clovis, y'big nerd.
limit = {
root = {
OR = {
has_realm_law = female_preference_law
has_realm_law = female_only_law
}
}
}
add_title_law = female_only_law
}
}
#Add de jures.
hidden_effect = {
if = { #If Germania is nae a thing, merge it into the HRE.
limit = {
OR = {
has_title = title:k_east_francia
has_title = title:k_bavaria
has_title = title:k_lotharingia
has_title = title:k_frisia
any_vassal = {
OR = {
has_title = title:k_east_francia
has_title = title:k_bavaria
has_title = title:k_lotharingia
has_title = title:k_frisia
}
}
}
OR = {
NOT = { exists = title:e_germany.holder }
title:e_germany.holder ?= root
}
}
title:e_germany = {
every_in_de_jure_hierarchy = {
limit = { tier = tier_kingdom }
set_de_jure_liege_title = title:e_hre
}
}
}
every_held_title = {
title_tier = kingdom
limit = {
NOT = { #The Pope retains vague dibs on Italy.
any_this_title_or_de_jure_above = { this = title:e_italy }
}
save_temporary_scope_as = this_title
#root = { completely_controls = scope:this_title }
}
set_de_jure_liege_title = title:e_hre
}
every_vassal = {As written in game/common/scripted_effects/00_major_decisions_scripted_effects.txt.
The first 120 of its 211 lines; the rest is in game/common/scripted_effects/00_major_decisions_scripted_effects.txt from line 3222.
Where it is used
Every place in common/, events/ and history/ that calls restore_holy_roman_empire_decision_scripted_effect.
Decisions (1)
Events (1)
- The Empire of the West
middle_europe_decisions.0015
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.