Scripted trigger
has_two_stress_threshold_options
has_two_stress_threshold_options = yesgame/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_drunkardhas_character_flag = stress_threshold_option_hashishiyahhas_character_flag = stress_threshold_option_rakishhas_character_flag = stress_threshold_option_reclusivehas_character_flag = stress_threshold_option_irritablehas_character_flag = stress_threshold_option_flagellanthas_character_flag = stress_threshold_option_profligatehas_character_flag = stress_threshold_option_improvidenthas_character_flag = stress_threshold_option_contritehas_character_flag = stress_threshold_option_comfort_eaterhas_character_flag = stress_threshold_option_inappetetichas_character_flag = stress_threshold_option_journallerhas_character_flag = stress_threshold_option_confiderhas_character_flag = stress_threshold_option_athletichas_character_flag = stress_threshold_option_conversionhas_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)
- Mental Break: Befuddled by …
stress_threshold.2321 - Mental Break: Coming Home to Roost
stress_threshold.1701 - Mental Break: Dark Thoughts
stress_threshold.1001 - Mental Break: Domain of Debauchery
stress_threshold.3421 - Mental Break: Emptiness Inside
stress_threshold.1503 - Mental Break: Endless Toil
stress_threshold.1504
18 more
- Mental Break: Estranged Authority
stress_threshold.2331 - Mental Break: Forgotten Needs
stress_threshold_prison.1041 - Mental Break: Growing Needs
stress_threshold.2301 - Mental Break: Haunted by the Past
stress_threshold.2311 - Mental Break: I am Unworthy!
stress_threshold.3411 - Mental Break: Impostor!
stress_threshold.1721 - Mental Break: Improprietous Remarks
stress_threshold.2351 - Mental Break: No Time for Myself
stress_threshold.1731 - Mental Break: Nothing Matters
stress_threshold.1501 - Mental Break: Prison Problems
stress_threshold_prison.1001 - Mental Break: Resentment
stress_threshold.1502 - Mental Break: Shirked Duty
stress_threshold.2341 - Mental Break: Shooting the Messenger
stress_threshold.3401 - Mental Break: Spinning Thoughts
stress_threshold.1601 - Mental Break: Swirling Emotions
stress_threshold.1602 - Mental Break: Too Busy
stress_threshold.1711 - Mental Break: Torrential Grief
stress_threshold_special.1001 - Mental Break: Wanton Desires
stress_threshold.1011
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.