CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted trigger

has_two_stress_threshold_options

has_two_stress_threshold_options = yes

game/common/scripted_triggers/00_stress_triggers.txt, line 4 (22 lines). No parameters.

has_two_stress_threshold_options is a scripted trigger in Crusader Kings III, written at line 4 of its file. It takes no parameters: has_two_stress_threshold_options = yes (or no). The game's script calls it in 25 places, among them Mental Break: Befuddled by … (event stress_threshold.2321), Mental Break: Coming Home to Roost (event stress_threshold.1701) and Mental Break: Dark Thoughts (event stress_threshold.1001). Patch 1.20.1.2, from game/common/scripted_triggers/00_stress_triggers.txt.

The comment above it in the file

This trigger is used when offering the player a choice between two stress outlets for a stress threshold event.
The stress threshold event will add character flags from this list, based on a character's personality and relevance to the event, until two have been selected.

What it checks

  • 2 of these 16

    • has_character_flag = stress_threshold_option_drunkard
    • has_character_flag = stress_threshold_option_hashishiyah
    • has_character_flag = stress_threshold_option_rakish
    • has_character_flag = stress_threshold_option_reclusive
    • has_character_flag = stress_threshold_option_irritable
    • has_character_flag = stress_threshold_option_flagellant
    • has_character_flag = stress_threshold_option_profligate
    • has_character_flag = stress_threshold_option_improvident
    • has_character_flag = stress_threshold_option_contrite
    • has_character_flag = stress_threshold_option_comfort_eater
    • has_character_flag = stress_threshold_option_inappetetic
    • has_character_flag = stress_threshold_option_journaller
    • has_character_flag = stress_threshold_option_confider
    • has_character_flag = stress_threshold_option_athletic
    • has_character_flag = stress_threshold_option_conversion
    • has_character_flag = stress_threshold_option_depression

• 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 (22 lines of game script)
has_two_stress_threshold_options = {
	calc_true_if = {
		amount >= 2

		has_character_flag = stress_threshold_option_drunkard
		has_character_flag = stress_threshold_option_hashishiyah
		has_character_flag = stress_threshold_option_rakish
		has_character_flag = stress_threshold_option_reclusive
		has_character_flag = stress_threshold_option_irritable
		has_character_flag = stress_threshold_option_flagellant
		has_character_flag = stress_threshold_option_profligate
		has_character_flag = stress_threshold_option_improvident
		has_character_flag = stress_threshold_option_contrite
		has_character_flag = stress_threshold_option_comfort_eater
		has_character_flag = stress_threshold_option_inappetetic
		has_character_flag = stress_threshold_option_journaller
		has_character_flag = stress_threshold_option_confider
		has_character_flag = stress_threshold_option_athletic
		has_character_flag = stress_threshold_option_conversion
		has_character_flag = stress_threshold_option_depression
	}
}

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

Where it is used

Every place in common/, events/ and history/ that calls has_two_stress_threshold_options.

Events (24)

18 more

Scripted effects inside an event file (1)

  • stress_threshold_fallback_event_select_options_effect

Source: game/common/scripted_triggers/00_stress_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?