Scripted trigger
portrait_commoner_trigger
portrait_commoner_trigger = { CULTURE_INPUT = … }game/common/scripted_triggers/00_clothing_triggers.txt, line 1724 (72 lines). Parameters: $CULTURE_INPUT$.
portrait_commoner_trigger is a scripted trigger in Crusader Kings III, written at line 1724 of its file. A call passes 1 parameter: CULTURE_INPUT. The game's script calls it in 3 places, among them portrait_commoner_armor_in_army_trigger (scripted trigger), portrait_commoner_armor_trigger (scripted trigger) and portrait_commoner_clothing_trigger (scripted trigger). Patch 1.20.1.2, from game/common/scripted_triggers/00_clothing_triggers.txt.
What it checks
portrait_$CULTURE_INPUT$_clothing_trigger = yesOne of these
All of these
scope:highest_held_title_tier < tier_baronyNOT = { portrait_mayor_trigger = { CULTURE_INPUT = $CULTURE_INPUT$ } }
or
All of these
- Government is Adventurer
- Has the Scholars Law
or
Government is unplayable
NOT = { portrait_high_nobles_trigger = { CULTURE_INPUT = $CULTURE_INPUT$ } }NOT = { portrait_royalty_trigger = { CULTURE_INPUT = $CULTURE_INPUT$ } }NOT = { portrait_imperial_trigger = { CULTURE_INPUT = $CULTURE_INPUT$ } }NOT = { portrait_low_nobles_trigger = { CULTURE_INPUT = $CULTURE_INPUT$ } }If
a check the game hides
Then
None of these
- Their spouse:
All of these
- Highest held Title is more than Barony Rank
Not all of these
- Government is Adventurer
- Has the Legitimists Law
All of these
- Is not a ruler
- Government is Adventurer
- Their liege: Has the Legitimists Law
has_no_particular_noble_roots_trigger = no
- Their spouse:
If
- Their court owner: Have a Royal Court
Then
- Their court owner:
amenity_level = { target = court_fashion value < 4 }
• 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 (72 lines of game script)
portrait_commoner_trigger = {
portrait_$CULTURE_INPUT$_clothing_trigger = yes
OR = {
AND = { # You are not a ruler and not the courtier of a republic
scope:highest_held_title_tier < tier_barony
NOT = {
portrait_mayor_trigger = { # "Lives in a city"
CULTURE_INPUT = $CULTURE_INPUT$
}
}
}
AND = { # You are a Scholar Adventurer
government_has_flag = government_is_landless_adventurer
has_realm_law = camp_purpose_scholars
}
government_has_flag = government_is_herder
}
NOR = {
portrait_high_nobles_trigger = {
CULTURE_INPUT = $CULTURE_INPUT$
}
portrait_royalty_trigger = {
CULTURE_INPUT = $CULTURE_INPUT$
}
portrait_imperial_trigger = {
CULTURE_INPUT = $CULTURE_INPUT$
}
portrait_low_nobles_trigger = {
CULTURE_INPUT = $CULTURE_INPUT$
}
}
trigger_if = {
limit = { exists = this } # To check if this is an actual character
NOR = {
primary_spouse ?= { # You have a spouse that is higher than baron, unless Legitimists
AND = {
highest_held_title_tier > tier_barony
NAND = {
government_has_flag = government_is_landless_adventurer
has_realm_law = camp_purpose_legitimists
}
}
}
AND = { # You cannot be the courtier of a Legitimist Adventurer
is_ruler = no
government_has_flag = government_is_landless_adventurer
liege ?= {
has_realm_law = camp_purpose_legitimists
}
}
has_no_particular_noble_roots_trigger = no # You cannot have noble roots
AND = { # Members of Council
liege ?= {
highest_held_title_tier >= tier_duchy
}
OR = {
has_council_position = councillor_chancellor
has_council_position = councillor_steward
}
}
}
trigger_if = {
limit = {
court_owner ?= { has_royal_court = yes }
has_dlc_feature = royal_court
}
court_owner = {
amenity_level = { target = court_fashion value < 4 }
}
}
}
}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_commoner_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.