Scripted effect
stress_threshold_event_aftereffects
stress_threshold_event_aftereffects = yesgame/common/scripted_effects/00_stress_effects.txt, line 47 (50 lines). No parameters.
stress_threshold_event_aftereffects is a scripted effect in Crusader Kings III, written at line 47 of its file. It takes no parameters: stress_threshold_event_aftereffects = yes. The game's script calls it in 41 places, among them Mental Break: A Friend in Need (event stress_threshold_prison.3001), Mental Break: A Grasp on Power (event stress_threshold_prison.1031) and Mental Break: A Visitor (event stress_threshold.2360). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_stress_effects.txt.
The comment above it in the file
Must be run in the 'after' EVERY stress threshold event, to ensure all tasks the system expect to execute are done properly.
What it does
If
a check the game hides
Then
remove_stress_threshold_option_flags_effect = yes- Event stress_threshold.0005 (after stress_threshold_second_check_timing days)
- If you are still Stressed in 5–8 years, you may suffer another Mental Break
• 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 (50 lines of game script)
stress_threshold_event_aftereffects = {
if = {
limit = {
is_alive = yes
}
# Clean up all event option flags.
remove_stress_threshold_option_flags_effect = yes
# Based on the character's recorded stress level, apply the appropraite cooldown flag for the cooldown duration - 1 days.
if = {
limit = {
has_character_flag = apply_stress_threshold_cooldown_level_3
}
add_character_flag = {
flag = stress_threshold_event_3_cooldown
days = stress_threshold_cooldown_duration # 1 day less than 5 years (8 with Perk)
}
}
else_if = {
limit = {
has_character_flag = apply_stress_threshold_cooldown_level_2
}
add_character_flag = {
flag = stress_threshold_event_2_cooldown
days = stress_threshold_cooldown_duration # 1 day less than 5 years (8 with Perk)
}
}
else = {
add_character_flag = {
flag = stress_threshold_event_1_cooldown
days = stress_threshold_cooldown_duration # 1 day less than 5 years (8 with Perk)
}
}
# Remove the character's recorded stress level flags.
remove_character_flag = apply_stress_threshold_cooldown_level_3
remove_character_flag = apply_stress_threshold_cooldown_level_2
remove_character_flag = apply_stress_threshold_cooldown_level_1
# Schedule a new stress event to occur after the cooldown duration has elapsed.
trigger_event = {
id = stress_threshold.0005
days = stress_threshold_second_check_timing # 5 year maximum between events (8 with Perk)
}
# Warn the player that they will receive another event if they are still Stressed.
custom_tooltip = stress_threshold_cooldown_message
}
}As written in game/common/scripted_effects/00_stress_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls stress_threshold_event_aftereffects.
Events (41)
- Mental Break: A Friend in Need
stress_threshold_prison.3001 - Mental Break: A Grasp on Power
stress_threshold_prison.1031 - Mental Break: A Visitor
stress_threshold.2360 - Mental Break: Befuddled by …
stress_threshold.2321 - Mental Break: Boiling Anger
stress_threshold.2201 - Mental Break: Clawing Out
stress_threshold_prison.2001
35 more
- Mental Break: Coming Home to Roost
stress_threshold.1701 - Mental Break: Cruel Games
stress_threshold_prison.1021 - 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 - Mental Break: Estranged Authority
stress_threshold.2331 - Mental Break: Feeding Time
stress_threshold_prison.1012 - 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: Hunger Pangs
stress_threshold_prison.1011 - Mental Break: I am Unworthy!
stress_threshold.3411 - Mental Break: Impostor!
stress_threshold.1721 - Mental Break: Improprietous Remarks
stress_threshold.2351 - Mental Break: Ingratitude
stress_threshold.2001 - Mental Break: My … and I
stress_threshold_prison.2011 - Mental Break: No Time for Myself
stress_threshold.1731 - Mental Break: Nothing Matters
stress_threshold.1501 - Mental Break: Overload
stress_threshold.3201 - Mental Break: Prison Problems
stress_threshold_prison.1001 - Mental Break: Repressed Desires
stress_threshold_special.2001 - 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: The Darkest Corners
stress_threshold_prison.2021 - Mental Break: The Voices
stress_threshold.3001 - Mental Break: Too Busy
stress_threshold.1711 - Mental Break: Torrential Grief
stress_threshold_special.1001 - Mental Break: True Family
stress_threshold_prison.3011 - Mental Break: Unwelcome
stress_threshold.2101 - Mental Break: Wanton Desires
stress_threshold.1011 - Mental Break: Wrongdoing
stress_threshold.3101
Source: game/common/scripted_effects/00_stress_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.