Scripted trigger
petition_head_of_faith_core_available_trigger
petition_head_of_faith_core_available_trigger = yesgame/common/scripted_triggers/11_petition_head_of_faith_triggers.txt, line 28 (29 lines). No parameters.
petition_head_of_faith_core_available_trigger is a scripted trigger in Crusader Kings III, written at line 28 of its file. It takes no parameters: petition_head_of_faith_core_available_trigger = yes (or no). The game's script calls it in 3 places, among them petition_head_of_faith_any_available_trigger (scripted trigger), petition_head_of_faith_excommunication_decision_available_trigger (scripted trigger) and petition_head_of_faith_repentance_available_trigger (scripted trigger). Its body carries 2 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/11_petition_head_of_faith_triggers.txt.
The comment above it in the file
Evaluated in CHARACTER scope Follows petition_head_of_faith_recipient_still_valid_trigger so setup and arrival stay aligned
What it checks
- Is played by a person
- Is not imprisoned
- Your Faith has a current Head of Faith
If
Then
NOT = { religious_head_or_challenger = this }NOT = { is_at_war_with = religious_head_or_challenger }religious_head_or_challenger = { save_temporary_scope_as = hof is_imprisoned = no }- You are already petitioning …
• 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)
petition_head_of_faith_core_available_trigger = {
has_pam_dlc_trigger = yes
is_ai = no
is_imprisoned = no
custom_description = {
text = petition_head_of_faith_decision_head_of_faith_exists
petition_head_of_faith_has_religious_authority_trigger = yes
}
# Cannot be the recipient, at war with them, or have a petition pending or in flight
trigger_if = {
limit = { petition_head_of_faith_has_religious_authority_trigger = yes }
NOR = {
religious_head_or_challenger = this
is_at_war_with = religious_head_or_challenger
}
religious_head_or_challenger = {
save_temporary_scope_as = hof # for localization
is_imprisoned = no
}
custom_tooltip = {
text = NOT_IN_A_PETITION_TOOLTIP
has_none_of_variables = {
name = pending_petition_head_of_faith_type
name = petition_head_of_faith_character_flag
}
}
}
# No recipient or pending-petition checks are needed when the vacancy requirement above fails.
}As written in game/common/scripted_triggers/11_petition_head_of_faith_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls petition_head_of_faith_core_available_trigger.
Source: game/common/scripted_triggers/11_petition_head_of_faith_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.