Scripted trigger
portrait_imperial_trigger
portrait_imperial_trigger = { CULTURE_INPUT = … }game/common/scripted_triggers/00_clothing_triggers.txt, line 2428 (50 lines). Parameters: $CULTURE_INPUT$.
portrait_imperial_trigger is a scripted trigger in Crusader Kings III, written at line 2428 of its file. A call passes 1 parameter: CULTURE_INPUT. The game's script calls it in 5 places, among them portrait_commoner_trigger (scripted trigger), portrait_high_nobles_headgear_trigger (scripted trigger) and portrait_imperial_clothing_trigger (scripted trigger). Patch 1.20.1.2, from game/common/scripted_triggers/00_clothing_triggers.txt.
What it checks
If
a check the game hides
Then
One of these
All of these
is_governor = notgp_portrait_liege_or_ceremonial_liege_emperor_trigger = yesNone of these
All of these
- Government is unplayable
primary_title.tier > tier_barony
All of these
- Is a ruler
- Government is a Theocratic-type Government
portrait_$CULTURE_INPUT$_clothing_trigger = yes
or
All of these
exists = primary_spouse- Their spouse:
is_governor = notgp_portrait_liege_or_ceremonial_liege_emperor_trigger = yesNone of these
All of these
- Government is unplayable
primary_title.tier > tier_barony
All of these
- Is a ruler
- Government is a Theocratic-type Government
portrait_$CULTURE_INPUT$_clothing_spouse_trigger = yes
Otherwise
scope:highest_held_title_tier >= tier_empireportrait_$CULTURE_INPUT$_clothing_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 (50 lines of game script)
portrait_imperial_trigger = {
trigger_if = {
limit = { exists = this } # To check if this is an actual character
OR = {
# Rulers
AND = {
is_governor = no
tgp_portrait_liege_or_ceremonial_liege_emperor_trigger = yes
NOR = {
AND = {
government_has_flag = government_is_republic
primary_title.tier > tier_barony
}
AND = {
is_ruler = yes
government_has_flag = government_is_theocracy
}
}
portrait_$CULTURE_INPUT$_clothing_trigger = yes
}
# Spouses
AND = {
exists = primary_spouse
OR = {
is_ruler = no
highest_held_title_tier <= primary_spouse.highest_held_title_tier
}
primary_spouse = {
is_governor = no
tgp_portrait_liege_or_ceremonial_liege_emperor_trigger = yes
NOR = {
AND = {
government_has_flag = government_is_republic
primary_title.tier > tier_barony
}
AND = {
is_ruler = yes
government_has_flag = government_is_theocracy
}
}
portrait_$CULTURE_INPUT$_clothing_spouse_trigger = yes
}
}
}
}
trigger_else = {
scope:highest_held_title_tier >= tier_empire
portrait_$CULTURE_INPUT$_clothing_trigger = yes
}
}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_imperial_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.