Scripted effect · By God Alone files
pam_grant_dulia_canonization_faith_bonus_effect
pam_grant_dulia_canonization_faith_bonus_effect = { CANDIDATE = … CANONIZER = … }game/common/scripted_effects/pam_saint_effects.txt, line 259 (30 lines). Parameters: $CANDIDATE$, $CANONIZER$.
pam_grant_dulia_canonization_faith_bonus_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 259 of its file. A call passes 2 parameters: CANDIDATE and CANONIZER. The game's script calls it in 1 place, among them pam_canonize_saint_effect (scripted effect). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/pam_saint_effects.txt.
The comment above it in the file
CANONIZER - the ruler whose faith gains the saint. CANDIDATE - the newly canonized saint, shown as the message's portrait.
What it does
• 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 (30 lines of game script)
pam_grant_dulia_canonization_faith_bonus_effect = {
$CANDIDATE$ = { save_scope_as = pam_new_saint }
custom_tooltip = {
text = pam_dulia_canonization_faith_bonus_tt
$CANONIZER$.faith ?= {
every_faith_character = {
limit = { is_ruler = yes }
add_character_modifier = {
modifier = pam_dulia_new_saint_modifier
years = 5
}
if = {
limit = { this != $CANONIZER$ }
send_interface_message = {
type = msg_pam_new_saint_canonized
title = pam_dulia_new_saint_message_t
desc = pam_dulia_new_saint_message_desc
left_icon = $CANDIDATE$
show_as_tooltip = {
add_character_modifier = {
modifier = pam_dulia_new_saint_modifier
years = 5
}
}
}
}
}
}
}
}As written in game/common/scripted_effects/pam_saint_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_grant_dulia_canonization_faith_bonus_effect.
Scripted effects (1)
Source: game/common/scripted_effects/pam_saint_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.