Scripted effect
stress_threshold_event_post_immediate
stress_threshold_event_post_immediate = yesgame/common/scripted_effects/00_stress_effects.txt, line 23 (22 lines). No parameters.
stress_threshold_event_post_immediate is a scripted effect in Crusader Kings III, written at line 23 of its file. It takes no parameters: stress_threshold_event_post_immediate = yes. The game's script calls it in 40 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: Befuddled by … (event stress_threshold.2321). Patch 1.20.1.2, from game/common/scripted_effects/00_stress_effects.txt.
The comment above it in the file
Must be run at the end of 'immediate' in EVERY stress threshold event, to ensure all tasks the system expects to execute are done properly.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (22 lines of game script)
stress_threshold_event_post_immediate = {
# Record the character's current stress level (must be done in the immediate so that if a character's stress level changes before 'after' executes we still apply the correct cooldowns).
if = {
limit = {
stress_level >= 3
}
add_character_flag = apply_stress_threshold_cooldown_level_3
}
else_if = {
limit = {
stress_level >= 2
}
add_character_flag = apply_stress_threshold_cooldown_level_2
}
else_if = {
limit = {
stress_level >= 1
}
add_character_flag = apply_stress_threshold_cooldown_level_1
}
}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_post_immediate.
Events (40)
- Mental Break: A Friend in Need
stress_threshold_prison.3001 - Mental Break: A Grasp on Power
stress_threshold_prison.1031 - Mental Break: Befuddled by …
stress_threshold.2321 - Mental Break: Boiling Anger
stress_threshold.2201 - Mental Break: Clawing Out
stress_threshold_prison.2001 - Mental Break: Coming Home to Roost
stress_threshold.1701
34 more
- 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: 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 Heart Aches
stress_threshold.3301 - 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.