Scripted effect · By God Alone files
pam_the_christian_church_papal_dynasty_capture_catalyst_effect
pam_the_christian_church_papal_dynasty_capture_catalyst_effect = yesgame/common/scripted_effects/pam_effects.txt, line 4673 (53 lines). No parameters.
pam_the_christian_church_papal_dynasty_capture_catalyst_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 4673 of its file. It takes no parameters: pam_the_christian_church_papal_dynasty_capture_catalyst_effect = yes. The game's script calls it in 1 place, among them on_title_gain (on action). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
What it does
If
current_date_is_start_date_trigger = no- Their religion is Christianity
Then
- The Christian Church:
If
- Has “papal dynasty reigns” (a variable the game's script sets)
- Papal dynasty reigns at least @pam papal dynasty capture reigns
- Does not have “papal dynasty capture catalyst fired” (a variable the game's script sets)
- The current phase counts “Three consecutive holders of Papacy come from the same Dynasty”
Then
- Counts toward the situation's next phase: “Three consecutive holders of Papacy come from the same Dynasty”
• 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 (53 lines of game script)
pam_the_christian_church_papal_dynasty_capture_catalyst_effect = {
if = {
limit = {
has_pam_dlc_trigger = yes
current_date_is_start_date_trigger = no
religion = religion:christianity_religion
}
if = {
limit = { exists = dynasty }
dynasty = { save_scope_as = pam_new_papal_dynasty }
}
situation:the_christian_church ?= {
if = {
limit = {
exists = scope:pam_new_papal_dynasty
has_variable = pam_papal_dynasty
var:pam_papal_dynasty = scope:pam_new_papal_dynasty
}
change_variable = {
name = pam_papal_dynasty_reigns
add = 1
}
}
else_if = {
limit = { exists = scope:pam_new_papal_dynasty }
set_variable = {
name = pam_papal_dynasty
value = scope:pam_new_papal_dynasty
}
set_variable = {
name = pam_papal_dynasty_reigns
value = 1
}
remove_variable = pam_papal_dynasty_capture_catalyst_fired
}
else = {
remove_variable = pam_papal_dynasty
remove_variable = pam_papal_dynasty_reigns
remove_variable = pam_papal_dynasty_capture_catalyst_fired
}
if = {
limit = {
has_variable = pam_papal_dynasty_reigns
var:pam_papal_dynasty_reigns >= @pam_papal_dynasty_capture_reigns
NOT = { has_variable = pam_papal_dynasty_capture_catalyst_fired }
situation_top_has_catalyst = catalyst_the_christian_church_papal_dynasty_capture
}
set_variable = pam_papal_dynasty_capture_catalyst_fired
trigger_situation_catalyst = catalyst_the_christian_church_papal_dynasty_capture
}
}
}
}As written in game/common/scripted_effects/pam_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_the_christian_church_papal_dynasty_capture_catalyst_effect.
On actions (the game's own hooks) (1)
- on_title_gain
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.