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_shared_clothing_contents_trigger

portrait_shared_clothing_contents_trigger = { CULTURE_FLAG = … CULTURE_SCOPE = … }

game/common/scripted_triggers/00_clothing_triggers.txt, line 557 (15 lines). Parameters: $CULTURE_FLAG$, $CULTURE_SCOPE$.

portrait_shared_clothing_contents_trigger is a scripted trigger in Crusader Kings III, written at line 557 of its file. A call passes 2 parameters: CULTURE_FLAG and CULTURE_SCOPE. The game's script calls it in 92 places, among them assign_random_nickname_effect (scripted effect), set_random_negative_nickname_effect (scripted effect) and portrait_afr_berber_clothing_spouse_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

    • top_liege.var:adopted_cultural_style = flag:$CULTURE_FLAG$

    Else if

    a check the game hides

    Then

    • Adopted cultural style is $CULTURE FLAG$
    • Has “years as varangian” (a variable the game's script sets)
    • Is not landed

    Otherwise

    • $CULTURE_SCOPE$ ?= { has_clothing_gfx = $CULTURE_FLAG$_clothing_gfx }

• 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 (15 lines of game script)
portrait_shared_clothing_contents_trigger = {
	trigger_if = {
		limit = { exists = top_liege.var:adopted_cultural_style }
		top_liege.var:adopted_cultural_style = flag:$CULTURE_FLAG$
	}
	trigger_else_if = {
		limit = { exists = this.var:adopted_cultural_style }
		var:adopted_cultural_style = flag:$CULTURE_FLAG$
		has_variable = years_as_varangian
		is_landed = no
	}
	trigger_else = {
		$CULTURE_SCOPE$ ?= { has_clothing_gfx = $CULTURE_FLAG$_clothing_gfx }
	}
}

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

Scripted triggers (90)

84 more

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?