Scripted effect · By God Alone files
pam_react_to_new_archbishop_effect
pam_react_to_new_archbishop_effect = { TITLE = … }game/common/scripted_effects/pam_effects.txt, line 8604 (25 lines). Parameters: $TITLE$.
pam_react_to_new_archbishop_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 8604 of its file. A call passes 1 parameter: TITLE. The game's script calls it in 1 place, among them on_title_gain (on action). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
The comment above it in the file
Root = the new archbishop. $TITLE$ = the clerical region title that changed hands.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (25 lines of game script)
pam_react_to_new_archbishop_effect = {
if = {
limit = {
has_pam_dlc_trigger = yes
current_date_is_start_date_trigger = no
is_alive = yes
}
save_scope_as = new_archbishop
$TITLE$ = { save_scope_as = archdiocese }
every_player = {
limit = {
this != scope:new_archbishop
is_ruler = yes
# The clerical_region_title is geographic, so a non-Christian holder would be told they answer to it
religion = religion:christianity_religion
capital_county.clerical_region_title ?= scope:archdiocese
}
send_interface_message = {
type = msg_pam_new_archbishop
left_icon = scope:new_archbishop
right_icon = scope:archdiocese
}
}
}
}As written in game/common/scripted_effects/pam_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_react_to_new_archbishop_effect.
On actions (the game's own hooks) (1)
- on_title_gain
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.