Scripted effect · By God Alone files
pam_heresy_c3_pre_declaration_setup_effect
pam_heresy_c3_pre_declaration_setup_effect = yesgame/common/scripted_effects/pam_heresy_shared_effects.txt, line 674 (28 lines). No parameters.
pam_heresy_c3_pre_declaration_setup_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 674 of its file. It takes no parameters: pam_heresy_c3_pre_declaration_setup_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
--- Pre-declaration setup (faith scope) ---
What it does
scope:founder:If
a check the game hides
Then
scope:epicenter_ruler.capital_county:set_county_rite = scope:new_rite
- scope:epicenter_ruler.capital_county › Every neighboring county:
- Where:
faith = scope:origin_faithholder.faith ?= scope:origin_faith
set_county_rite = scope:new_rite
- Where:
• 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 (28 lines of game script)
pam_heresy_c3_pre_declaration_setup_effect = {
scope:founder = {
pam_heresy_dispatch_create_pre_declaration_rite_effect = yes
}
# Save scope:source_rite so downstream spread helpers filter by the parent-faith mainline rite
scope:origin_faith.main_rite = { save_scope_as = source_rite }
# Only the rite splits off
if = {
limit = {
exists = scope:new_rite
exists = scope:epicenter_ruler.capital_county
}
scope:epicenter_ruler.capital_county = {
set_county_rite = scope:new_rite
}
scope:epicenter_ruler.capital_county = {
every_neighboring_county = {
limit = {
faith = scope:origin_faith
holder.faith ?= scope:origin_faith
}
set_county_rite = scope:new_rite
}
}
}
}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_c3_pre_declaration_setup_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.