Scripted trigger
portrait_high_nobles_trigger
portrait_high_nobles_trigger = { CULTURE_INPUT = … }game/common/scripted_triggers/00_clothing_triggers.txt, line 1995 (113 lines). Parameters: $CULTURE_INPUT$.
portrait_high_nobles_trigger is a scripted trigger in Crusader Kings III, written at line 1995 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_armor_in_army_trigger (scripted trigger) and portrait_high_nobles_armor_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
One of these
If
- Their culture:
has_clothing_gfx = japanese_clothing_gfx
Then
- Their culture:
or
All of these
- Government is unplayable
primary_title.tier > tier_barony
or
All of these
- Is a ruler
- Government is a Theocratic-type Government
or
All of these
- Is not a ruler
- Government is Adventurer
- Their liege: Has the Legitimists Law
None of these
- Government is unplayable
All of these
- Government is Adventurer
None of these
- Has the Legitimists Law
- Their liege: Has the Legitimists Law
portrait_$CULTURE_INPUT$_clothing_trigger = yes
or
All of these
- Their spouse:
One of these
If
- Their culture:
has_clothing_gfx = japanese_clothing_gfx
Then
- Their culture:
or
All of these
- Government is unplayable
primary_title.tier > tier_barony
or
All of these
- Is a ruler
- Government is a Theocratic-type Government
None of these
- Government is unplayable
All of these
- Government is Adventurer
None of these
- Has the Legitimists Law
- Their liege: Has the Legitimists Law
portrait_$CULTURE_INPUT$_clothing_spouse_trigger = yes
or
or
or
has_character_flag = high_noble_clothing
Otherwise
scope:highest_held_title_tier >= tier_duchyportrait_$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 (113 lines of game script)
portrait_high_nobles_trigger = {
trigger_if = {
limit = { exists = this } # To check if this is an actual character
OR = {
AND = { # Rulers
OR = {
trigger_if = {
limit = { culture = { has_clothing_gfx = japanese_clothing_gfx } }
tgp_japanese_high_nobility_clothing_trigger = yes
}
# Most cultures do not have specific clothes for royalty and imperial tier, so we use the high nobility for anything from duke/duchess and up
trigger_else = { highest_held_title_tier >= tier_duchy }
AND = {
government_has_flag = government_is_republic
primary_title.tier > tier_barony
}
AND = {
is_ruler = yes
government_has_flag = government_is_theocracy
}
AND = {
is_ruler = no
government_has_flag = government_is_landless_adventurer
liege ?= { has_realm_law = camp_purpose_legitimists }
}
}
NOR = { # Blocked for mercenaries and adventurers
government_has_flag = government_is_mercenary
AND = {
government_has_flag = government_is_landless_adventurer
NOR = {
has_realm_law = camp_purpose_legitimists
liege ?= { has_realm_law = camp_purpose_legitimists }
}
}
}
portrait_$CULTURE_INPUT$_clothing_trigger = yes
}
AND = { # Spouses of rulers
OR = {
is_ruler = no
highest_held_title_tier <= tier_county
}
primary_spouse ?= {
OR = {
trigger_if = {
limit = { culture = { has_clothing_gfx = japanese_clothing_gfx } }
tgp_japanese_high_nobility_clothing_trigger = yes
}
# Most cultures do not have specific clothes for royalty and imperial tier, so we use the high nobility for anything from duke/duchess and up
trigger_else = { highest_held_title_tier >= tier_duchy }
AND = {
government_has_flag = government_is_republic
primary_title.tier > tier_barony
}
AND = {
is_ruler = yes
government_has_flag = government_is_theocracy
}
}
NOR = { # Blocked for mercenaries and adventurers
government_has_flag = government_is_mercenary
AND = {
government_has_flag = government_is_landless_adventurer
NOR = {
has_realm_law = camp_purpose_legitimists
liege ?= { has_realm_law = camp_purpose_legitimists }
}
}
}
portrait_$CULTURE_INPUT$_clothing_spouse_trigger = yes
}
}
AND = { # Viziers of rulers
exists = liege
is_diarch = yes
OR = {
is_ruler = no
highest_held_title_tier = tier_barony
}
liege = {
has_diarchy_active_parameter = diarchy_is_vizierate
highest_held_title_tier >= tier_duchy
portrait_$CULTURE_INPUT$_clothing_trigger = yes
}
}
AND = { # Family members of rulers
highest_held_title_tier <= tier_duchy
trigger_if = {
limit = { government_is_japanese_trigger = yes }
OR = {
tgp_japanese_high_nobility_clothing_family_trigger = yes
tgp_is_in_ceremonial_house_trigger = yes
}
}
trigger_else = {
any_close_family_member = {
AND = {
is_ruler = yes
highest_held_title_tier > tier_duchy
}
}
}
portrait_$CULTURE_INPUT$_clothing_trigger = yes
}
has_character_flag = high_noble_clothing
}
}
trigger_else = { # Fallback
scope:highest_held_title_tier >= tier_duchy # We use scope in case this is not an actual character (for the Hybrid Culture preview window)
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_high_nobles_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.