Scripted effect · By God Alone files
pam_pick_actor_consecration_province_effect
pam_pick_actor_consecration_province_effect = yesgame/common/scripted_effects/pam_saint_effects.txt, line 147 (49 lines). No parameters.
pam_pick_actor_consecration_province_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 147 of its file. It takes no parameters: pam_pick_actor_consecration_province_effect = yes. The game's script calls it in 1 place, among them pam_pick_founder_burial_province_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/pam_saint_effects.txt.
The comment above it in the file
Character scope. Saves consecration_province from a free cathedral, holy site, or adjacent county capital.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (49 lines of game script)
pam_pick_actor_consecration_province_effect = {
save_scope_as = pam_burial_site_actor
if = {
limit = { pam_has_free_primary_site_trigger = yes }
if = {
limit = { pam_faith_uses_cathedrals_trigger = yes }
if = {
limit = {
pam_character_has_cathedral_trigger = yes
domicile ?= { domicile_location = { pam_province_is_free_burial_site_trigger = yes } }
}
domicile = { domicile_location = { save_scope_as = consecration_province } }
}
else = {
random_realm_province = {
limit = {
pam_province_is_free_burial_site_trigger = yes
any_province_domicile = { owner = { pam_character_has_cathedral_trigger = yes } }
}
save_scope_as = consecration_province
}
}
}
else = {
random_realm_province = {
limit = {
barony ?= { is_holy_site_of = scope:pam_burial_site_actor.faith }
pam_province_is_free_burial_site_trigger = yes
}
save_scope_as = consecration_province
}
}
}
else_if = {
limit = { pam_has_free_adjacent_site_trigger = yes }
random_realm_province = {
limit = {
is_county_capital = yes
pam_province_is_free_burial_site_trigger = yes
county = {
any_neighboring_county = {
pam_county_has_actor_primary_site_trigger = { ACTOR = scope:pam_burial_site_actor }
}
}
}
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_actor_consecration_province_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.