Scripted trigger · By God Alone files
pam_antipope_may_grant_clerical_region_trigger
pam_antipope_may_grant_clerical_region_trigger = { SEE = … }game/common/scripted_triggers/pam_antipope_triggers.txt, line 113 (15 lines). Parameters: $SEE$.
pam_antipope_may_grant_clerical_region_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 113 of its file. A call passes 1 parameter: SEE. 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_antipope_triggers.txt.
What it checks
If
scope:actor:pam_is_antipope_trigger = yes
Then
If
a check the game hides
Then
$SEE$.holder.religious_head_or_challenger ?= scope:actor
Otherwise
$SEE$.title_capital_county.holder.religious_head_or_challenger ?= scope:actor
Otherwise
always = yes
• 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 (15 lines of game script)
pam_antipope_may_grant_clerical_region_trigger = {
trigger_if = {
limit = { scope:actor = { pam_is_antipope_trigger = yes } }
trigger_if = {
limit = { exists = $SEE$.holder }
$SEE$.holder.religious_head_or_challenger ?= scope:actor
}
trigger_else = {
$SEE$.title_capital_county.holder.religious_head_or_challenger ?= scope:actor
}
}
trigger_else = {
always = yes
}
}As written in game/common/scripted_triggers/pam_antipope_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_antipope_may_grant_clerical_region_trigger.
Character interactions (1)
Source: game/common/scripted_triggers/pam_antipope_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.