CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

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

• 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.

Spotted a mistake on this page?