Scripted effect · By God Alone files
pam_commit_canonization_effect
pam_commit_canonization_effect = yesgame/common/scripted_effects/pam_saint_effects.txt, line 17 (43 lines). No parameters.
pam_commit_canonization_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 17 of its file. It takes no parameters: pam_commit_canonization_effect = yes. The game's script calls it in 1 place, among them … … (decision). Its body carries 3 texts 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 is root, and this expects scope:saint_candidate and consecration_province already saved
What it does
If
Then
- If their religion is Christianity: A petition to recognize … as a holy Saint, to be consecrated at …, will be sent to … for approval
- Otherwise: A petition to honour … as a venerated ancestor, to be enshrined at …, will be sent to … for approval
- If played by a person: Event pam_saint_events.0001
Otherwise
- Venerate the chosen departed dynast, enshrining their remains
pam_canonize_saint_effect = { … }- If played by a person: Event pam_saint_events.0003
• 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 (43 lines of game script)
pam_commit_canonization_effect = {
if = {
limit = { pam_needs_hof_approval_for_canonization_trigger = yes }
faith.religious_head = { save_scope_as = petition_recipient }
# Pick the wording here so saint_candidate / consecration_province / petition_recipient stay reachable in the loc key (SelectLocalization would drop them).
if = {
limit = { faith.religion = religion:christianity_religion }
custom_tooltip = pam_canonize_saint_petition_sent_tt_saint
}
else = {
custom_tooltip = pam_canonize_saint_petition_sent_tt_va
}
# Players acknowledge via event 0001, whose option starts the HoF's clock (0002 -> 0003/0004). The AI never sees that event, so schedule the HoF decision directly for it.
if = {
limit = { is_ai = no }
trigger_event = pam_saint_events.0001
}
else = {
hidden_effect = {
scope:petition_recipient = {
trigger_event = {
id = pam_saint_events.0002
days = 30
}
}
}
}
}
else = {
custom_tooltip = pam_canonize_saint_decision_canonize_tt
pam_canonize_saint_effect = {
CANONIZER = root
CANDIDATE = scope:saint_candidate
CONSECRATION_PROVINCE = scope:consecration_province
PRESET = no
}
# No HoF (or self-HoF): canonization is done, so show the finalization event now (players only).
if = {
limit = { is_ai = no }
trigger_event = pam_saint_events.0003
}
}
}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_commit_canonization_effect.
Decisions (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.