Scripted trigger
portrait_religious_devoted_trigger
portrait_religious_devoted_trigger = yesgame/common/scripted_triggers/00_clothing_triggers.txt, line 2866 (41 lines). No parameters.
portrait_religious_devoted_trigger is a scripted trigger in Crusader Kings III, written at line 2866 of its file. It takes no parameters: portrait_religious_devoted_trigger = yes (or no). The game's script calls it in 4 places, among them portrait_armored_priest_trigger (scripted trigger), portrait_pam_monastic_order_member_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
or
portrait_has_trait_trigger = { TRAIT = devoted }or
All of these
portrait_has_trait_trigger = { TRAIT = cleric }- Their rite: The rite has Rulers can Decide to make a Vow of Poverty, reducing monthly Tax income but increasing monthly Piety gain
One of these
- Is not a ruler
or
pam_is_clergy_ruler_trigger = yes
or
All of these
• 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 (41 lines of game script)
portrait_religious_devoted_trigger = {
exists = this
OR = {
AND = {
has_character_flag = need_priest_outfit
rite = {
rite_has_parameter = vows_of_poverty_active
}
}
portrait_has_trait_trigger = { TRAIT = devoted }
# Clerics with a poverty rite take the habit, because portrait_religious_high bars the priestly look
AND = {
portrait_has_trait_trigger = { TRAIT = cleric }
rite = {
rite_has_parameter = vows_of_poverty_active
}
OR = {
is_ruler = no
pam_is_clergy_ruler_trigger = yes
}
}
AND = {
rite = {
rite_has_parameter = vows_of_poverty_active
}
OR = {
AND = {
has_council_position = councillor_court_chaplain
rite = {
rite_has_doctrine = doctrine_theocracy_lay_clergy
}
}
is_theocratic_lessee = yes
AND = {
is_ruler = yes
government_has_flag = government_is_theocracy
}
}
}
}
}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_devoted_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.