Scripted effect · By God Alone files
pam_heresy_pick_epicenter_ruler_effect
pam_heresy_pick_epicenter_ruler_effect = yesgame/common/scripted_effects/pam_heresy_shared_effects.txt, line 419 (78 lines). No parameters.
pam_heresy_pick_epicenter_ruler_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 419 of its file. It takes no parameters: pam_heresy_pick_epicenter_ruler_effect = yes. The game's script calls it in 1 place, among them heresy_historical.0001 (event). Patch 1.20.1.2, from game/common/scripted_effects/pam_heresy_shared_effects.txt.
The comment above it in the file
--- Epicenter ruler picker (faith scope) ---
Picks scope:epicenter_ruler. Game rule controls geography:
strict_regional_heresy: prefers the holder of scope:heresy_strict_capital;
falls back to a default-region pick if that holder is unsuitable.
relaxed_regional_heresy: any same-faith duke+ AI ruler in the world.
default_regional_heresy / fallback: a same-faith duke+ AI ruler whose
capital sits inside the heresy's regional trigger.What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (78 lines of game script)
pam_heresy_pick_epicenter_ruler_effect = {
clear_saved_scope = epicenter_ruler
# Strict: try the historical capital's holder first.
if = {
limit = {
pam_heresy_strict_rule_trigger = yes
exists = scope:heresy_strict_capital
scope:heresy_strict_capital.holder ?= {
faith = root
is_landed = yes
is_ai = yes
highest_held_title_tier >= tier_duchy
NOR = {
this = root.religious_head
has_trait = heresiarch
has_trait = herald
recently_converted_faith_trigger = yes
}
}
}
scope:heresy_strict_capital.holder = { save_scope_as = epicenter_ruler }
}
# Default / fallback: regional duke+ holder.
if = {
limit = { NOT = { exists = scope:epicenter_ruler } }
random_faith_ruler = {
limit = {
is_eligible_heresy_epicenter_ruler_trigger = yes
OR = {
pam_heresy_relaxed_rule_trigger = yes
AND = {
# Default: must be in heresy region.
pam_heresy_default_rule_trigger = yes
exists = capital_county
capital_county.title_province = {
pam_heresy_capital_in_heresy_region_trigger = yes
}
}
AND = {
# Strict but historical capital not held by an eligible ruler:
# fall back to default-region behaviour rather than skipping.
pam_heresy_strict_rule_trigger = yes
exists = capital_county
capital_county.title_province = {
pam_heresy_capital_in_heresy_region_trigger = yes
}
}
}
}
weight = {
base = 100
modifier = {
factor = 2
highest_held_title_tier >= tier_kingdom
}
modifier = {
factor = 1.5
OR = {
has_trait = zealous
has_trait = lifestyle_mystic
has_trait = lifestyle_scholar
has_trait = theologian
}
}
modifier = {
factor = 0.5
opinion = {
target = root.religious_head
value >= 75
}
}
}
save_scope_as = epicenter_ruler
}
}
}As written in game/common/scripted_effects/pam_heresy_shared_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_heresy_pick_epicenter_ruler_effect.
Events (1)
Source: game/common/scripted_effects/pam_heresy_shared_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.