Scripted effect · By God Alone files
pam_pick_founder_burial_province_effect
pam_pick_founder_burial_province_effect = yesgame/common/scripted_effects/pam_saint_effects.txt, line 198 (58 lines). No parameters.
pam_pick_founder_burial_province_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 198 of its file. It takes no parameters: pam_pick_founder_burial_province_effect = yes. The game's script calls it in 1 place, among them on_death (on action). Patch 1.20.1.2, from game/common/scripted_effects/pam_saint_effects.txt.
The comment above it in the file
Root = the dying monastic founder. Saves consecration_province if a free burial site exists.
What it does
If
- Their faith › Any faith holy order:
leader = rootholy_order_patron ?= { is_alive = yes }
Then
scope:pam_founder_burial_patron:
- Their faith › Any faith holy order:
• 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 (58 lines of game script)
pam_pick_founder_burial_province_effect = {
if = {
limit = {
exists = capital_province
capital_province = { pam_province_is_free_burial_site_trigger = yes }
}
capital_province = { save_scope_as = consecration_province }
}
if = {
limit = {
NOT = { exists = scope:consecration_province }
exists = location
location = { pam_province_is_free_burial_site_trigger = yes }
}
location = { save_scope_as = consecration_province }
}
if = {
limit = {
NOT = { exists = scope:consecration_province }
faith = {
any_faith_holy_order = {
leader = root
holy_order_patron ?= { is_alive = yes }
}
}
}
faith = {
random_faith_holy_order = {
limit = {
leader = root
holy_order_patron ?= { is_alive = yes }
}
holy_order_patron = { save_scope_as = pam_founder_burial_patron }
}
}
scope:pam_founder_burial_patron ?= {
pam_pick_actor_consecration_province_effect = yes
}
}
if = {
limit = {
NOT = { exists = scope:consecration_province }
faith = {
any_holy_site_barony = {
title_province ?= { pam_province_is_free_burial_site_trigger = yes }
}
}
}
faith = {
random_holy_site_barony = {
limit = {
title_province ?= { pam_province_is_free_burial_site_trigger = yes }
}
title_province = { save_scope_as = consecration_province }
}
}
}
}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_pick_founder_burial_province_effect.
On actions (the game's own hooks) (1)
- on_death
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.