Scripted effect · By God Alone files
bestow_title_shared_effect
bestow_title_shared_effect = yesgame/common/scripted_effects/pam_effects.txt, line 12764 (127 lines). No parameters.
bestow_title_shared_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 12764 of its file. It takes no parameters: bestow_title_shared_effect = yes. The game's script calls it in 2 places, among them bestow_title_effect (scripted effect) and request_unformed_title_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
The comment above it in the file
Creates the unheld title and hands it to its new holder. Runs in the new holder's scope; callers must save scope:bestowed_title_holder and scope:bestowing_cleric first, since the clergy and the ruler swap roles between the bestowal and the petition.
What it does
- scope:target: Gains the … Title (bestowed title holder)
scope:target:If
- Their government is not a Theocratic-type Government
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 prelate single-handedly bestowes a Kingdom upon a secular Ruler”
scope:target.tier >= tier_kingdom
Then
If
scope:target.tier >= tier_empire
Then
- The Christian Church: Counts toward the situation's next phase: “A prelate single-handedly bestowes an Empire upon a secular Ruler”
Otherwise
- The Christian Church: Counts toward the situation's next phase: “A prelate single-handedly bestowes a Kingdom upon a secular Ruler”
Else if
- Government is a Theocratic-type Government
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 prelate bestowes a Kingdom to the Clergy”
Then
If
scope:target.tier >= tier_empire
Then
- The Christian Church: Counts toward the situation's next phase: “A prelate bestowes an Empire to the Clergy”
Else if
scope:target.tier >= tier_kingdom
Then
- The Christian Church: Counts toward the situation's next phase: “A prelate bestowes a Kingdom to the Clergy”
Otherwise
- The Christian Church: Counts toward the situation's next phase: “A prelate bestowes a Duchy to the Clergy”
If
- scope:bestowing_cleric: Is played by a person
Then
• 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)
bestow_title_shared_effect = {
create_title_and_vassal_change = {
type = created
save_scope_as = ecclesiastical_bestow_title_change
add_claim_on_loss = no
}
scope:target = {
change_title_holder = {
holder = scope:bestowed_title_holder
change = scope:ecclesiastical_bestow_title_change
}
}
resolve_title_and_vassal_change = scope:ecclesiastical_bestow_title_change
scope:target ?= {
if = {
limit = { tier = tier_empire }
scope:bestowed_title_holder = {
add_opinion = {
modifier = received_title_empire
target = scope:bestowing_cleric
opinion = 50
}
}
}
else_if = {
limit = { tier = tier_kingdom }
scope:bestowed_title_holder = {
add_opinion = {
modifier = received_title_kingdom
target = scope:bestowing_cleric
opinion = 25
}
}
}
else_if = {
limit = { tier = tier_duchy }
scope:bestowed_title_holder = {
add_opinion = {
modifier = received_title_duchy
target = scope:bestowing_cleric
opinion = 15
}
}
}
}
if = {
limit = {
NOT = { government_has_flag = government_is_theocracy }
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_hof_bestowed_title
}
scope:target.tier >= tier_kingdom
}
if = {
limit = {
exists = scope:target
scope:target.tier >= tier_empire
}
situation:the_christian_church = {
trigger_situation_catalyst = catalyst_hof_bestowed_title_major
}
}
else = {
situation:the_christian_church = {
trigger_situation_catalyst = catalyst_hof_bestowed_title
}
}
}
else_if = {
limit = {
government_has_flag = government_is_theocracy
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_hof_bestowed_title_clergy
}
}
if = {
limit = {
exists = scope:target
scope:target.tier >= tier_empire
}
situation:the_christian_church = {
trigger_situation_catalyst = catalyst_hof_bestowed_title_clergy_major
}
}
else_if = {
limit = {
exists = scope:target
scope:target.tier >= tier_kingdom
}
situation:the_christian_church = {
trigger_situation_catalyst = catalyst_hof_bestowed_title_clergy
}
}
else = {
situation:the_christian_church = {
trigger_situation_catalyst = catalyst_hof_bestowed_title_clergy_minor
}
}
}
scope:bestowing_cleric = { save_scope_as = cleric }
if = {
limit = {
scope:bestowing_cleric = {
is_ai = no
}
}
ecclesiastical_title_bestowing_clerical_hesitation_effect = yesAs written in game/common/scripted_effects/pam_effects.txt.
The first 120 of its 127 lines; the rest is in game/common/scripted_effects/pam_effects.txt from line 12764.
Where it is used
Every place in common/, events/ and history/ that calls bestow_title_shared_effect.
Scripted effects (2)
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.