Scripted trigger · By God Alone files
pam_rite_can_be_declared_heresy_trigger
pam_rite_can_be_declared_heresy_trigger = yesgame/common/scripted_triggers/pam_scripted_triggers.txt, line 2814 (33 lines). No parameters.
pam_rite_can_be_declared_heresy_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 2814 of its file. It takes no parameters: pam_rite_can_be_declared_heresy_trigger = yes (or no). The game's script calls it in 3 places, among them Declare a Rite Heretical (decision), Declare a Rite Heretical (decision) and Enact a Bull (decision). Its body carries 4 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/pam_scripted_triggers.txt.
What it checks
- Cannot be the Faith's main Rite
- Cannot be followed by a Challenger Head of Faith or any of their supporters
• 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 (33 lines of game script)
pam_rite_can_be_declared_heresy_trigger = {
save_temporary_scope_as = pam_rite_candidate
custom_tooltip = {
text = pam_rite_heresy_not_mainline_tt
this != faith.main_rite
}
custom_tooltip = {
text = pam_rite_heresy_no_antipope_tt
faith = {
NOT = {
any_faith_ruler = {
rite = scope:pam_rite_candidate
is_following_religious_head_challenger = yes
}
}
}
}
trigger_if = {
limit = {
faith.religious_head ?= { has_trait = zealous }
}
custom_tooltip = {
text = pam_rite_heresy_divergence_zealous_tt
"divergence(faith.main_rite)" > faith_heresy_threshold_times_4_over_5
}
}
trigger_else = {
custom_tooltip = {
text = pam_rite_heresy_divergence_tt
"divergence(faith.main_rite)" > faith.heresy_threshold
}
}
}As written in game/common/scripted_triggers/pam_scripted_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_rite_can_be_declared_heresy_trigger.
Source: game/common/scripted_triggers/pam_scripted_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.