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_high_nobles_headgear_trigger

portrait_high_nobles_headgear_trigger = { CULTURE_INPUT = … }

game/common/scripted_triggers/00_clothing_triggers.txt, line 2116 (137 lines). Parameters: $CULTURE_INPUT$.

portrait_high_nobles_headgear_trigger is a scripted trigger in Crusader Kings III, written at line 2116 of its file. A call passes 1 parameter: CULTURE_INPUT. No file of common/, events/ or history/ calls it. 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 (120 lines of game script)
portrait_high_nobles_headgear_trigger = {
	exists = this
	portrait_can_use_noble_headgear_trigger = yes
	OR = {
		AND = { # Rulers
			OR = {
				# 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_if = {
					limit = { culture = { has_clothing_gfx = japanese_clothing_gfx } }
					tgp_japanese_high_nobility_clothing_trigger = yes
				}
				trigger_else = { highest_held_title_tier = tier_duchy }
				AND = {
					government_has_flag = government_is_republic
					primary_title.tier > tier_county
				}
				AND = {
					is_ruler = yes
					government_has_flag = government_is_theocracy
				}
				AND = {
					highest_held_title_tier >= tier_kingdom
					is_governor = yes
				}
				AND = { # Uncoronated kings and emperors can use high nobility headgear
					OR = {
						portrait_royalty_trigger = {
							CULTURE_INPUT = $CULTURE_INPUT$
						}
						portrait_imperial_trigger = {
							CULTURE_INPUT = $CULTURE_INPUT$
						}
					}
					portrait_wear_no_crown_trigger = yes 
				}
			}
			NOR = { # Blocked for mercenaries and adventurers
				government_has_flag = government_is_mercenary
				AND = {
					government_has_flag = government_is_landless_adventurer
					NOT = {
						has_realm_law = camp_purpose_legitimists
					}
				}
			}
			portrait_$CULTURE_INPUT$_clothing_trigger = yes
		}
		AND = { # Spouses of rulers
			exists = primary_spouse
			OR = {
				is_ruler = no
				highest_held_title_tier <= tier_county
			}
			primary_spouse = {
				OR = {
					# 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_if = {
						limit = { culture = { has_clothing_gfx = japanese_clothing_gfx } }
						tgp_japanese_high_nobility_clothing_trigger = yes
					}
					trigger_else = { highest_held_title_tier >= tier_duchy }
					AND = {
						government_has_flag = government_is_republic
						primary_title.tier > tier_county
					}
					AND = {
						is_ruler = yes
						government_has_flag = government_is_theocracy
					}
					AND = {
						highest_held_title_tier >= tier_kingdom
						is_governor = yes
					}
				}
				NOR = { # Blocked for mercenaries and adventurers
					government_has_flag = government_is_mercenary
					AND = {
						government_has_flag = government_is_landless_adventurer
						NOT = { 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
		}
	}
	NAND = { # Exclude high ranking Co-Rulers
		exists = liege
		is_diarch = yes

As written in game/common/scripted_triggers/00_clothing_triggers.txt.

The first 120 of its 137 lines; the rest is in game/common/scripted_triggers/00_clothing_triggers.txt from line 2116.

Where it is used

No file of common/, events/ or history/ calls it.

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?