Scripted trigger · By God Alone files
pam_investiture_supports_spiritual_revocable_trigger
pam_investiture_supports_spiritual_revocable_trigger = yesgame/common/scripted_triggers/pam_scripted_triggers.txt, line 555 (24 lines). No parameters.
pam_investiture_supports_spiritual_revocable_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 555 of its file. It takes no parameters: pam_investiture_supports_spiritual_revocable_trigger = yes (or no). The game's script calls it in 4 places, among them pam_investiture_conflict_apply_forced_stance_effect (scripted effect), pam_investiture_update_vote_estimate_effect (scripted effect) and pam_investiture_council_voter_supports_spiritual_trigger (scripted trigger). Patch 1.20.1.2, from game/common/scripted_triggers/pam_scripted_triggers.txt.
What it checks
If
- Has “investiture stance” (a variable the game's script sets)
- Investiture stance is spiritual revocable
Then
always = yes
Else if
- Has “investiture stance” (a variable the game's script sets)
- Investiture stance is temporal revocable
Then
- Never
Otherwise
One of these
government_is_religious_trigger = yesor
Is a member of the Clergy
• 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 (24 lines of game script)
pam_investiture_supports_spiritual_revocable_trigger = {
# Both flag values are read so neither is flagged "set but never used".
trigger_if = {
limit = {
has_variable = investiture_stance
var:investiture_stance = flag:spiritual_revocable
}
always = yes
}
trigger_else_if = {
limit = {
has_variable = investiture_stance
var:investiture_stance = flag:temporal_revocable
}
always = no
}
trigger_else = {
# is_clergy too: landless chaplains have no government, so the flag would count them as secular
OR = {
government_is_religious_trigger = yes
is_clergy = yes
}
}
}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_investiture_supports_spiritual_revocable_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.