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_royalty_african_headgear_trigger

portrait_royalty_african_headgear_trigger = yes

game/common/scripted_triggers/00_clothing_triggers.txt, line 2342 (85 lines). No parameters.

portrait_royalty_african_headgear_trigger is a scripted trigger in Crusader Kings III, written at line 2342 of its file. It takes no parameters: portrait_royalty_african_headgear_trigger = yes (or no). 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 (85 lines of game script)
portrait_royalty_african_headgear_trigger = {
	trigger_if = {
		limit = { exists = this }
		portrait_can_use_noble_headgear_trigger = yes
		OR = {
			AND = {
				OR = {
					highest_held_title_tier = tier_kingdom
					AND = {
						is_ruler = yes
						government_has_flag = government_is_theocracy
					}
				}
				NAND = { # Blocked for mercenaries and adventurers
					is_ruler = yes
					OR = {
						government_has_flag = government_is_mercenary
						AND = {
							government_has_flag = government_is_landless_adventurer
							NOR = {
								has_realm_law = camp_purpose_legitimists
								liege ?= {  has_realm_law = camp_purpose_legitimists }
							}
						}
					}
				}
				NOT = { government_has_flag = government_is_republic }
				OR = {
					portrait_african_clothing_trigger = yes
					AND = {
						culture = {
							has_cultural_pillar = heritage_east_african
						}
						NOT = {
							religion = religion:islam_religion
						}
					}
				}
			}
			AND = {
				exists = primary_spouse
				OR = {
					is_ruler = no
					highest_held_title_tier = tier_barony
				}
				primary_spouse = {
					OR = {
						highest_held_title_tier = tier_kingdom
						AND = {
							is_ruler = yes
							government_has_flag = government_is_theocracy
						}
					}
					NAND = { # Blocked for mercenaries
						is_ruler = yes
						government_has_flag = government_is_mercenary
					}
					NAND = { # Blocked for adventurers
						is_ruler = yes
						AND = {
							government_has_flag = government_is_landless_adventurer
							has_realm_law = camp_purpose_legitimists
						}
					}
					NOT = { government_has_flag = government_is_republic }
					OR = {
						portrait_african_clothing_spouse_trigger = yes
						AND = {
							culture = {
								has_cultural_pillar = heritage_east_african
							}
							NOT = {
								religion = religion:islam_religion
							}
						}
					}
				}
			}
		}
	}
	trigger_else = {
		scope:highest_held_title_tier = tier_kingdom
		portrait_african_clothing_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?