Scripted trigger
portrait_low_nobles_trigger
portrait_low_nobles_trigger = { CULTURE_INPUT = … }game/common/scripted_triggers/00_clothing_triggers.txt, line 1847 (140 lines). Parameters: $CULTURE_INPUT$.
portrait_low_nobles_trigger is a scripted trigger in Crusader Kings III, written at line 1847 of its file. A call passes 1 parameter: CULTURE_INPUT. The game's script calls it in 4 places, among them portrait_commoner_trigger (scripted trigger), portrait_low_nobles_armor_in_army_trigger (scripted trigger) and portrait_low_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
None of these
- Their spouse:
All of these
- If government is Adventurer: Has the Legitimists Law
- Their spouse:
NOT = { portrait_imperial_trigger = { CULTURE_INPUT = $CULTURE_INPUT$ } }NOT = { portrait_royalty_trigger = { CULTURE_INPUT = $CULTURE_INPUT$ } }NOT = { portrait_high_nobles_trigger = { CULTURE_INPUT = $CULTURE_INPUT$ } }One of these
All of these
has_no_particular_noble_roots_trigger = noportrait_$CULTURE_INPUT$_clothing_trigger = yes
or
or
or
portrait_mayor_trigger = { CULTURE_INPUT = $CULTURE_INPUT$ }or
All of these
- Government is unplayable
portrait_$CULTURE_INPUT$_clothing_trigger = yes
or
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
- Is a ruler
- Highest held Title is at most County Rank
- If government is Sōryō: Is not an Independent Ruler
None of these
- Government is unplayable
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:
One of these
- Highest held Title is exactly County Rank
or
Government is unplayableor
All of these
- Government is Adventurer
- Does NOT have the Legitimists Law
or
If government is Sōryō: Is not an Independent Ruler
None 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
or
Otherwise
scope:highest_held_title_tier = tier_countyportrait_$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 (120 lines of game script)
portrait_low_nobles_trigger = {
trigger_if = {
limit = { exists = this } # To check if this is an actual character
NOT = {
primary_spouse ?= {
AND = {
highest_held_title_tier >= tier_duchy
trigger_if = {
limit = { government_is_japanese_trigger = yes }
NOT = { government_has_flag = government_is_japan_feudal } # Japanese bushi class always wear low/war nobility clothing
}
}
trigger_if = {
limit = { government_has_flag = government_is_landless_adventurer }
has_realm_law = camp_purpose_legitimists
}
}
}
NOR = {
portrait_imperial_trigger = {
CULTURE_INPUT = $CULTURE_INPUT$
}
portrait_royalty_trigger = {
CULTURE_INPUT = $CULTURE_INPUT$
}
portrait_high_nobles_trigger = {
CULTURE_INPUT = $CULTURE_INPUT$
}
}
OR = {
AND = { # Nobles in general
has_no_particular_noble_roots_trigger = no
portrait_$CULTURE_INPUT$_clothing_trigger = yes
}
AND = { # Members of Council
liege ?= {
highest_held_title_tier >= tier_duchy
}
OR = {
has_council_position = councillor_chancellor
has_council_position = councillor_steward
}
portrait_$CULTURE_INPUT$_clothing_trigger = yes
}
AND = { # Courtiers
highest_held_title_tier < tier_county
court_owner ?= {
highest_held_title_tier > tier_duchy
}
portrait_$CULTURE_INPUT$_clothing_trigger = yes
}
portrait_mayor_trigger = { # Mayors
CULTURE_INPUT = $CULTURE_INPUT$
}
AND = { # Mercenaries
government_has_flag = government_is_mercenary
portrait_$CULTURE_INPUT$_clothing_trigger = yes
}
AND = { # Adventurers
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 = {
is_ruler = yes
highest_held_title_tier <= tier_county
# Japanese bushi class always wear low/war nobility clothing
trigger_if = {
limit = { government_has_flag = government_is_japan_feudal }
is_independent_ruler = no
}
NOR = {
government_has_flag = government_is_herder
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
}
AND = {
exists = primary_spouse
OR = {
is_ruler = no
highest_held_title_tier = tier_barony
}
primary_spouse = {
OR = {
highest_held_title_tier = tier_county
government_has_flag = government_is_mercenary
AND = {
government_has_flag = government_is_landless_adventurer
NOT = { has_realm_law = camp_purpose_legitimists }
}
# Japanese bushi class always wear low/war nobility clothing
trigger_if = {
limit = { government_has_flag = government_is_japan_feudal }
is_independent_ruler = no
}
}
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
}
}As written in game/common/scripted_triggers/00_clothing_triggers.txt.
The first 120 of its 140 lines; the rest is in game/common/scripted_triggers/00_clothing_triggers.txt from line 1847.
Where it is used
Every place in common/, events/ and history/ that calls portrait_low_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.