Scripted effect · By God Alone files
pam_change_great_schism_progress_effect
pam_change_great_schism_progress_effect = { TT = … VALUE = … }game/common/scripted_effects/pam_effects.txt, line 12080 (57 lines). Parameters: $TT$, $VALUE$.
pam_change_great_schism_progress_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 12080 of its file. A call passes 2 parameters: TT and VALUE. The game's script calls it in 14 places, among them Demote Holy Site (decision), And the Son (event ecumenical_council_summons_events.0061) and First Among Equals (event ecumenical_council_summons_events.0060). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
The comment above it in the file
PAM Great Schism: shows $TT$, and $VALUE$ goes up when positive (zero still shows the tooltip) Progress only goes up, and we do nothing once the schism has happened or been prevented
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (57 lines of game script)
pam_change_great_schism_progress_effect = {
custom_tooltip = $TT$
hidden_effect = {
if = {
limit = { pam_great_schism_progress_can_change_trigger = yes }
if = {
limit = { $VALUE$ > 0 }
situation:the_christian_church = {
if = {
limit = { NOT = { has_variable = pam_progress_towards_great_schism } }
set_variable = { name = pam_progress_towards_great_schism value = 0 }
}
change_variable = {
name = pam_progress_towards_great_schism
add = $VALUE$
}
}
every_player = {
limit = {
faith.religion = religion:christianity_religion
exists = top_participant_group:the_christian_church
}
send_interface_message = {
type = msg_pam_great_schism_progress
desc = $TT$
}
}
}
if = {
limit = {
situation:the_christian_church = {
NOT = { has_variable = pam_great_schism_status }
pam_great_schism_progress_value >= pam_great_schism_progress_threshold_value
}
}
situation:the_christian_church = {
pam_update_schism_rite_variables_effect = yes
var:schism_mainline_rite ?= { save_scope_as = schism_mainline_rite }
var:schism_competitor_rite ?= { save_scope_as = schism_competitor_rite }
set_variable = {
name = pam_great_schism_status
value = flag:threshold_reached
}
}
scope:schism_mainline_rite.head_of_rite ?= { save_scope_as = schism_mainline_head }
scope:schism_competitor_rite.head_of_rite ?= { save_scope_as = schism_competitor_head }
every_player = {
limit = {
faith.religion = religion:christianity_religion
any_character_situation = { this = situation:the_christian_church }
}
trigger_event = pam_the_christian_church.0064
}
}
}
}
}As written in game/common/scripted_effects/pam_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_change_great_schism_progress_effect.
Decisions (1)
Character interactions (1)
- debug_add_schism_progress
Events (5)
- And the Son
ecumenical_council_summons_events.0061 - First Among Equals
ecumenical_council_summons_events.0060 - Matter of Language
ecumenical_council_summons_events.0063 - The Bread of the Altar
ecumenical_council_summons_events.0062 - The One Left Behind
pam_the_christian_church.0063
On actions (the game's own hooks) (2)
- on_death
- on_war_started
Source: game/common/scripted_effects/pam_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.