Scripted effect · By God Alone files
pam_redirect_request_excommunication_ruler_effect
pam_redirect_request_excommunication_ruler_effect = yesgame/common/scripted_effects/pam_effects.txt, line 10199 (171 lines). No parameters.
pam_redirect_request_excommunication_ruler_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 10199 of its file. It takes no parameters: pam_redirect_request_excommunication_ruler_effect = yes. The game's script calls it in 1 place, among them Request Excommunication (interaction). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (120 lines of game script)
pam_redirect_request_excommunication_ruler_effect = {
#Is the secondary recipient a theocrat? Only their superior can excommunicate them
if = {
limit = {
scope:secondary_recipient = {
government_has_flag = government_is_theocracy
exists = superior
NOR = {
superior = scope:secondary_recipient
superior = scope:actor
}
}
}
scope:secondary_recipient.superior = {
save_scope_as = recipient
}
}
#Redirect to bishop superior of court chaplain
else_if = {
limit = {
scope:secondary_recipient.cp:councillor_court_chaplain ?= {
highest_held_title_tier < tier_duchy
superior ?= {
highest_held_title_tier >= tier_duchy
is_clergy = yes
NOT = {
this = scope:actor
}
}
}
}
scope:secondary_recipient.cp:councillor_court_chaplain.superior = {
save_scope_as = recipient
}
}
#Redirect to ecclesiastical/theocratic liege or above
else_if = {
limit = {
scope:secondary_recipient = {
any_liege_or_above = {
highest_held_title_tier >= tier_duchy
government_has_flag = government_is_theocracy
faith ?= scope:secondary_recipient.faith
NOT = {
this = scope:actor
}
}
}
}
scope:secondary_recipient = {
ordered_liege_or_above = {
order_by = highest_held_title_tier
limit = {
highest_held_title_tier >= tier_duchy
government_has_flag = government_is_theocracy
faith ?= scope:secondary_recipient.faith
NOT = {
this = scope:actor
}
}
save_scope_as = recipient
}
}
}
#Redirect to court chaplain of liege or above
else_if = {
limit = {
scope:secondary_recipient = {
any_liege_or_above = {
cp:councillor_court_chaplain ?= {
highest_held_title_tier < tier_duchy
is_clergy = yes
NOT = {
this = scope:actor
}
}
}
}
}
scope:secondary_recipient = {
ordered_liege_or_above = {
order_by = {
value = highest_held_title_tier
multiply = -1
}
limit = {
cp:councillor_court_chaplain ?= {
highest_held_title_tier < tier_duchy
is_clergy = yes
NOT = {
this = scope:actor
}
}
}
cp:councillor_court_chaplain = {
save_scope_as = recipient
}
}
}
}
#Redirect to bishop
else_if = {
limit = {
scope:secondary_recipient.cp:councillor_court_chaplain ?= {
highest_held_title_tier >= tier_duchy
is_clergy = yes
NOT = {
this = scope:actor
}
}
}
scope:secondary_recipient.cp:councillor_court_chaplain = {
save_scope_as = recipient
}
}
#Redirect to clerical region_holder
else_if = {
limit = {
scope:secondary_recipient.capital_county = {
clerical_region_title ?= {As written in game/common/scripted_effects/pam_effects.txt.
The first 120 of its 171 lines; the rest is in game/common/scripted_effects/pam_effects.txt from line 10199.
Where it is used
Every place in common/, events/ and history/ that calls pam_redirect_request_excommunication_ruler_effect.
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.