Scripted trigger
portrait_religious_high_trigger
portrait_religious_high_trigger = yesgame/common/scripted_triggers/00_clothing_triggers.txt, line 2995 (33 lines). No parameters.
portrait_religious_high_trigger is a scripted trigger in Crusader Kings III, written at line 2995 of its file. It takes no parameters: portrait_religious_high_trigger = yes (or no). The game's script calls it in 4 places, among them portrait_armored_priest_trigger (scripted trigger), portrait_pam_prelate_cope_trigger (scripted trigger) and portrait_western_christian_clean_shaven_clergy_trigger (scripted trigger). Patch 1.20.1.2, from game/common/scripted_triggers/00_clothing_triggers.txt.
What it checks
One of these
has_character_flag = need_priest_outfitor
Is Leasing holdings from their Liegeor
All of these
exists = primary_title- Government is a Theocratic-type Government
or
or
All of these
portrait_has_trait_trigger = { TRAIT = cleric }One of these
- Is not a ruler
or
pam_is_clergy_ruler_trigger = 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 (33 lines of game script)
portrait_religious_high_trigger = {
exists = this
OR = {
has_character_flag = need_priest_outfit
is_theocratic_lessee = yes
AND = {
exists = primary_title # Check exists = primary_title instead of is_ruler, as dead characters aren't rulers
government_has_flag = government_is_theocracy
}
AND = {
has_council_position = councillor_court_chaplain
liege = {
NAND = {
highest_held_title_tier >= tier_hegemony
government_has_flag = government_is_celestial
}
}
}
# Ordained clerics dress as priests, unless they rise to lay rule
AND = {
portrait_has_trait_trigger = { TRAIT = cleric }
OR = {
is_ruler = no
pam_is_clergy_ruler_trigger = yes
}
}
}
NOT = {
rite = {
rite_has_parameter = vows_of_poverty_active
}
}
}As written in game/common/scripted_triggers/00_clothing_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls portrait_religious_high_trigger.
Source: game/common/scripted_triggers/00_clothing_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.