Scripted effect · By God Alone files
consecrate_kingdom_effect
consecrate_kingdom_effect = yesgame/common/scripted_effects/pam_effects.txt, line 12489 (144 lines). No parameters.
consecrate_kingdom_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 12489 of its file. It takes no parameters: consecrate_kingdom_effect = yes. The game's script calls it in 4 places, among them Consecrate a New Kingdom (decision), Consecrate Kingdom (interaction) and pam_decision_events.0030 (event). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
What it does
If
a check the game hides
Then
If
NOT = { has_hook = scope:religious_authority }NOT = { scope:king_aspirant.puppet:theological_agent_puppet ?= scope:religious_authority }NOT = { scope:king_aspirant.puppet:external_theological_agent_puppet ?= scope:religious_authority }
Then
scope:religious_authority:add_hook = { type = strong_obligation_hook target = scope:king_aspirant }
Otherwise
scope:religious_authority:add_hook = { type = obligation_hook target = scope:king_aspirant }
create_custom_kingdom_effect = yesIf
top_participant_group:the_christian_church:One of these
participant_group_type = christian_clerical_main_power_rulersor
participant_group_type = christian_regular_main_power_rulers
- The Christian Church: The current phase counts “A new Kingdom is created by, and is beholden to, a high prelate”
None of these
- scope:king_aspirant: Government is a Theocratic-type Government
Then
- The Christian Church: Counts toward the situation's next phase: “A new Kingdom is created by, and is beholden to, a high prelate”
Else if
- The Christian Church: The current phase counts “A powerful prelate consecrated a new Kingdom for themselves”
Then
- The Christian Church: Counts toward the situation's next phase: “A powerful prelate consecrated a new Kingdom for themselves”
Else if
top_participant_group:the_christian_church:One of these
participant_group_type = christian_clerical_main_power_rulersor
participant_group_type = christian_regular_main_power_rulers
- The Christian Church: The current phase counts “A new Kingdom is consecrated so the Clergy can amass worldly power”
- Government is a Theocratic-type Government
Then
- The Christian Church: Counts toward the situation's next phase: “A new Kingdom is consecrated so the Clergy can amass worldly power”
• 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)
consecrate_kingdom_effect = {
#If you don't have sway over the pope... they get sway over you
if = {
limit = {
NOT = {
this = scope:religious_authority
}
}
if = {
limit = {
NOR = {
has_hook = scope:religious_authority
scope:king_aspirant.puppet:theological_agent_puppet ?= scope:religious_authority
scope:king_aspirant.puppet:external_theological_agent_puppet ?= scope:religious_authority
}
}
scope:religious_authority = {
add_hook = {
type = strong_obligation_hook
target = scope:king_aspirant
}
}
}
else = {
scope:religious_authority = {
add_hook = {
type = obligation_hook
target = scope:king_aspirant
}
}
}
}
if = {
limit = {
scope:religious_authority = {
this = scope:king_aspirant
}
}
every_held_title = {
limit = {
tier = tier_county
}
empire = {
every_de_jure_county = {
limit = {
holder ?= {
faith = scope:king_aspirant.faith
NOT = {
government_has_flag = government_is_theocracy
}
}
}
holder = {
add_to_list = angry_seculars
every_liege_or_above = {
limit = {
faith = scope:king_aspirant.faith
NOT = {
government_has_flag = government_is_theocracy
}
}
add_to_list = angry_seculars
}
}
}
}
}
every_in_list = {
custom = custom.every_empire_secular_ruler
list = angry_seculars
add_opinion = {
modifier = power_hungry_priest_opinion
target = scope:king_aspirant
opinion = -30
}
}
}
create_custom_kingdom_effect = yes
if = {
limit = {
NOT = {
this = scope:religious_authority
}
top_participant_group:the_christian_church ?= {
OR = {
participant_group_type = christian_clerical_main_power_rulers
participant_group_type = christian_regular_main_power_rulers
}
}
situation:the_christian_church ?= {
situation_top_has_catalyst = catalyst_consecrated_kingdom_for_ruler
}
NOT = {
scope:king_aspirant = { government_has_flag = government_is_theocracy }
}
}
situation:the_christian_church = {
trigger_situation_catalyst = catalyst_consecrated_kingdom_for_ruler
}
}
else_if = {
limit = {
this = scope:religious_authority
situation:the_christian_church ?= {
situation_top_has_catalyst = catalyst_prelate_empowered_self_with_kingdom
}
}
situation:the_christian_church = {
trigger_situation_catalyst = catalyst_prelate_empowered_self_with_kingdom
}
}
else_if = {
limit = {
top_participant_group:the_christian_church ?= {
OR = {
participant_group_type = christian_clerical_main_power_rulers
participant_group_type = christian_regular_main_power_rulers
}
}As written in game/common/scripted_effects/pam_effects.txt.
The first 120 of its 144 lines; the rest is in game/common/scripted_effects/pam_effects.txt from line 12489.
Where it is used
Every place in common/, events/ and history/ that calls consecrate_kingdom_effect.
Decisions (1)
Character interactions (1)
Source: game/common/scripted_effects/pam_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.