Scripted trigger · By God Alone files
pam_ai_deposable_cleric_trigger
pam_ai_deposable_cleric_trigger = { HEAD_OF_FAITH = … }game/common/scripted_triggers/pam_scripted_triggers.txt, line 1808 (23 lines). Parameters: $HEAD_OF_FAITH$.
pam_ai_deposable_cleric_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 1808 of its file. A call passes 1 parameter: HEAD_OF_FAITH. The game's script calls it in 1 place, among them Grant Clerical Title (interaction). Patch 1.20.1.2, from game/common/scripted_triggers/pam_scripted_triggers.txt.
What it checks
NOT = { has_relation_friend = $HEAD_OF_FAITH$ }NOT = { has_relation_lover = $HEAD_OF_FAITH$ }One of these
has_relation_rival = $HEAD_OF_FAITH$or
All of these
$HEAD_OF_FAITH$ = { … }NOT = { has_imprisonment_reason = $HEAD_OF_FAITH$ }One of these
- Has the Trait: Excommunicated
or
$HEAD_OF_FAITH$ = { has_imprisonment_reason = prev }
• 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 (23 lines of game script)
pam_ai_deposable_cleric_trigger = {
NOR = {
has_relation_friend = $HEAD_OF_FAITH$
has_relation_lover = $HEAD_OF_FAITH$
}
OR = {
has_relation_rival = $HEAD_OF_FAITH$
AND = {
$HEAD_OF_FAITH$ = {
NOR = {
has_trait = cynical
has_trait = arbitrary
has_trait = excommunicated
}
}
NOT = { has_imprisonment_reason = $HEAD_OF_FAITH$ }
OR = {
has_trait = excommunicated
$HEAD_OF_FAITH$ = { has_imprisonment_reason = prev }
}
}
}
}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_ai_deposable_cleric_trigger.
Character interactions (1)
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.