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_no_mayors_trigger

portrait_commoner_no_mayors_trigger = { CULTURE_INPUT = … }

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

portrait_commoner_no_mayors_trigger is a scripted trigger in Crusader Kings III, written at line 1804 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

  • portrait_$CULTURE_INPUT$_clothing_trigger = yes
  • One of these

    • scope:highest_held_title_tier < tier_barony
    • or

      All of these

    • or

      Government is unplayable
  • If

    a check the game hides

    Then

    • None of these

    • If

      Then

      • Their court owner:
        • amenity_level = { target = court_fashion value < 4 }
  • portrait_wear_no_armor_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 (36 lines of game script)
portrait_commoner_no_mayors_trigger = {
	portrait_$CULTURE_INPUT$_clothing_trigger = yes
	OR = {
		scope:highest_held_title_tier < tier_barony
		AND = {
			government_has_flag = government_is_landless_adventurer
			has_realm_law = camp_purpose_scholars
		}
		government_has_flag = government_is_herder
	}
	trigger_if = {
		limit = { exists = this } # To check if this is an actual character
		NOR = {
			government_has_flag = government_is_republic
			primary_spouse ?= {
				AND = {
					highest_held_title_tier > tier_county
					NAND = {
						government_has_flag = government_is_landless_adventurer
						has_realm_law = camp_purpose_legitimists
					}
				}
			}
		}
		trigger_if = {
			limit = {
				court_owner ?= { has_royal_court = yes }
				has_dlc_feature = royal_court
			}
			court_owner = {
			amenity_level = { target = court_fashion value < 4 }
			}
		}
	}
	portrait_wear_no_armor_trigger = yes
}

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

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?