Scripted effect · By God Alone files
pam_heresy_c1_resolve_differences_effect
pam_heresy_c1_resolve_differences_effect = yesgame/common/scripted_effects/pam_heresy_shared_effects.txt, line 74 (29 lines). No parameters.
pam_heresy_c1_resolve_differences_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 74 of its file. It takes no parameters: pam_heresy_c1_resolve_differences_effect = yes. The game's script calls it in 1 place, among them heresy_light.0001 (event). Patch 1.20.1.2, from game/common/scripted_effects/pam_heresy_shared_effects.txt.
The comment above it in the file
Faith scope (called after change_rite_divergence has been applied). Saves scope:differing_tenet / scope:differing_doctrine for the C1 flavour text. C1 narrates a within-rite shift, so the comparison must be against the pre-divergence snapshot of scope:diverging_rite - not against the parent faith's main rite (which would surface pre-existing differences like Mozarabic's Communion). C2/C3 keep using rite_growth_resolve_differences_effect because there the mainline-vs-new-rite delta is the relevant story.
What it does
clear_saved_scope = differing_tenetclear_saved_scope = differing_doctrineIf
a check the game hides
Then
- scope:hor › One random character doctrine:
rite_filter = scope:diverging_rite
- scope:hor › One random character doctrine:
• 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 (29 lines of game script)
pam_heresy_c1_resolve_differences_effect = {
clear_saved_scope = differing_tenet
clear_saved_scope = differing_doctrine
scope:diverging_rite = {
random_rite_tenet = {
limit = {
NOT = { is_in_list = c1_pre_divergence_tenets }
}
save_scope_as = differing_tenet
}
}
if = {
limit = {
NOT = { exists = scope:differing_tenet }
exists = scope:hor
}
scope:hor = {
random_character_doctrine = {
rite_filter = scope:diverging_rite
limit = {
NOT = { is_in_list = c1_pre_divergence_doctrines }
}
save_scope_as = differing_doctrine
}
}
}
}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_c1_resolve_differences_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.