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_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

    • 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

      • or

        All of these

        • Their liege: Highest held Title is at least Duchy Rank
        • One of these

          • has_council_position = councillor_chancellor
          • or

            has_council_position = councillor_steward
        • portrait_$CULTURE_INPUT$_clothing_trigger = yes
      • or

        All of these

        • Highest held Title is less than County Rank
        • Their court owner: Highest held Title is more than Duchy Rank
        • portrait_$CULTURE_INPUT$_clothing_trigger = yes
      • 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

      • 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
        • One of these

        • Their spouse:
          • One of these

          • 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

        All of these

        • One of these

        • exists = liege
        • is_diarch = yes
        • Their liege:
          • has_diarchy_active_parameter = diarchy_is_vizierate
          • Highest held Title is exactly County Rank
          • portrait_$CULTURE_INPUT$_clothing_trigger = yes

    Otherwise

    • scope:highest_held_title_tier = tier_county
    • portrait_$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.

Spotted a mistake on this page?