Scripted effect
contrite_get_secret_scopes_effect
contrite_get_secret_scopes_effect = yesgame/common/scripted_effects/00_stress_effects.txt, line 121 (26 lines). No parameters.
contrite_get_secret_scopes_effect is a scripted effect in Crusader Kings III, written at line 121 of its file. It takes no parameters: contrite_get_secret_scopes_effect = yes. The game's script calls it in 6 places, among them Mental Break: Befuddled by … (event stress_threshold.2321), Mental Break: Dark Thoughts (event stress_threshold.1001) and Mental Break: Haunted by the Past (event stress_threshold.2311). Patch 1.20.1.2, from game/common/scripted_effects/00_stress_effects.txt.
The comment above it in the file
Setup for 'contrite_reveal_secrets_effect'. Checks what secrets we have and save their scopes so the option tooltip is consistent and correct. While preferable to have some, it is okay if we don't have any, as we have a fallback in the option itself.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (26 lines of game script)
contrite_get_secret_scopes_effect = {
random_secret = {
limit = {
is_criminal_for = root
can_be_exposed_by = root
}
save_scope_as = confessed_secret # The first secret must be criminal.
}
if = {
limit = {
exists = scope:confessed_secret
any_secret = {
this != scope:confessed_secret
can_be_exposed_by = root
}
}
random_secret = {
limit = {
this != scope:confessed_secret
can_be_exposed_by = root
}
save_scope_as = second_confessed_secret # The second secret can be anything as long as it is different from the first.
}
}
}As written in game/common/scripted_effects/00_stress_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls contrite_get_secret_scopes_effect.
Events (5)
- Mental Break: Befuddled by …
stress_threshold.2321 - Mental Break: Dark Thoughts
stress_threshold.1001 - Mental Break: Haunted by the Past
stress_threshold.2311 - Mental Break: I am Unworthy!
stress_threshold.3411 - Mental Break: Impostor!
stress_threshold.1721
Scripted effects inside an event file (1)
- stress_threshold_fallback_event_select_options_effect
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.