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

Scripted effect

contrite_reveal_secrets_effect

contrite_reveal_secrets_effect = yes

game/common/scripted_effects/00_stress_effects.txt, line 149 (43 lines). No parameters.

contrite_reveal_secrets_effect is a scripted effect in Crusader Kings III, written at line 149 of its file. It takes no parameters: contrite_reveal_secrets_effect = yes. The game's script calls it in 7 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

Requires 'contrite_get_secret_scopes_effect' to be run first. Reveals one or more secrets you know or, if you have none, applies a general opinion modifier to you and reduces stress.

What it does

  • If

    • scope:confessed_secret:
      • can_be_exposed_by = root

    Then

    • scope:confessed_secret:
      • expose_secret = root
    • If

      • scope:second_confessed_secret:
        • can_be_exposed_by = root

      Then

      • scope:second_confessed_secret:
        • expose_secret = root
      • Loses 100 Stress

      Otherwise

    Else if

    • scope:second_confessed_secret:
      • can_be_exposed_by = root

    Then

    • scope:second_confessed_secret:
      • expose_secret = root
    • Loses 30 Stress

    Otherwise

• 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 (43 lines of game script)
contrite_reveal_secrets_effect = {
	# The more secrets you have to confess, the more stress reduction you get!
	if = {
		limit = {
			exists = scope:confessed_secret
			scope:confessed_secret = { can_be_exposed_by = root }
		}
		scope:confessed_secret = {
			expose_secret = root
		}
		if = {
			limit = {
				exists = scope:second_confessed_secret
				scope:second_confessed_secret = { can_be_exposed_by = root }
			}
			scope:second_confessed_secret = {
				expose_secret = root
			}
			add_stress = massive_stress_impact_loss # Revealing both a Criminal secret and a 2nd secret gives us a lot of Stress Reduction.
		}
		else = {
			add_stress = major_stress_impact_loss # Revealing only a Criminal secret still gives us a lot of Stress Reduction.
		}
	}
	else_if = {
		limit = {
			exists = scope:second_confessed_secret
			scope:second_confessed_secret = { can_be_exposed_by = root }
		}
		scope:second_confessed_secret = {
			expose_secret = root
		}
		add_stress = medium_stress_impact_loss # Revealing only a non-Criminal secret gives us less Stress Reduction.
	}
	# If you have no secrets, you reveal a 'minor secret' about yourself (not something which is a real Secret, but something still disturbing enough to make people uncomfortable).
	else = {
		add_character_modifier = {
			modifier = stress_disturbing_confession
			years = 3
		}
		add_stress = medium_stress_impact_loss
	}	
}

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_reveal_secrets_effect.

Events (7)

1 more

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.

Spotted a mistake on this page?