Scripted effect · By God Alone files
pam_pope_core_tenet_popularity_catalyst_effect
pam_pope_core_tenet_popularity_catalyst_effect = yesgame/common/scripted_effects/pam_effects.txt, line 8459 (38 lines). No parameters.
pam_pope_core_tenet_popularity_catalyst_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 8459 of its file. It takes no parameters: pam_pope_core_tenet_popularity_catalyst_effect = yes. The game's script calls it in 1 place, among them head_of_faith_change_core_tenet_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
What it does
- If their religion is Christianity:
If
faith.tenet_popularity(scope:tenet_to_add) >= tenet_popularity_popular_threshold- The Christian Church: The current phase counts “The Head of Faith declares a popular Tenet as core”
Then
- The Christian Church: Counts toward the situation's next phase: “The Head of Faith declares a popular Tenet as core”
Else if
faith.tenet_popularity(scope:tenet_to_add) < tenet_popularity_popular_threshold- The Christian Church: The current phase counts “The Head of Faith declares an unpopular Tenet as core”
Then
- The Christian Church: Counts toward the situation's next phase: “The Head of Faith declares an unpopular Tenet as core”
• 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 (38 lines of game script)
pam_pope_core_tenet_popularity_catalyst_effect = {
if = {
limit = {
has_pam_dlc_trigger = yes
exists = scope:tenet_to_add
religion = religion:christianity_religion
exists = situation:the_christian_church
}
if = {
limit = {
"faith.tenet_popularity(scope:tenet_to_add)" >= tenet_popularity_popular_threshold
situation:the_christian_church = {
situation_top_has_catalyst = catalyst_pope_declared_popular_core_tenet
}
}
situation:the_christian_church = {
trigger_situation_catalyst = {
catalyst = catalyst_pope_declared_popular_core_tenet
character = root
}
}
}
else_if = {
limit = {
"faith.tenet_popularity(scope:tenet_to_add)" < tenet_popularity_popular_threshold
situation:the_christian_church = {
situation_top_has_catalyst = catalyst_pope_declared_unpopular_core_tenet
}
}
situation:the_christian_church = {
trigger_situation_catalyst = {
catalyst = catalyst_pope_declared_unpopular_core_tenet
character = root
}
}
}
}
}As written in game/common/scripted_effects/pam_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_pope_core_tenet_popularity_catalyst_effect.
Scripted effects (1)
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.