Scripted effect
secret_exposed_notification_effects_effect
secret_exposed_notification_effects_effect = { CHARACTER = … SECRET = … }game/common/scripted_effects/00_secret_effects.txt, line 1778 (15 lines). Parameters: $CHARACTER$, $SECRET$.
secret_exposed_notification_effects_effect is a scripted effect in Crusader Kings III, written at line 1778 of its file. A call passes 2 parameters: CHARACTER and SECRET. The game's script calls it in 16 places, among them A Dark Secret (event secret_bastard.2003), A Secret Exposed (event secret_bastard.2002) and A Secret Exposed! (event secrets.0101). Patch 1.20.1.2, from game/common/scripted_effects/00_secret_effects.txt.
What it does
If
has_hook_from_secret = $SECRET$
Then
remove_hook = { target = $CHARACTER$ }
$CHARACTER$ = { … }
• 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 (15 lines of game script)
secret_exposed_notification_effects_effect = {
save_temporary_scope_as = notification_receiver
if = {
limit = { has_hook_from_secret = $SECRET$ }
remove_hook = {
target = $CHARACTER$
}
}
show_as_tooltip = {
$CHARACTER$ = { #Shows traits etc. applied to owner (and other involved characters)
secret_exposed_owner_effects_effect = { SECRET = $SECRET$ POV = scope:notification_receiver }
secret_exposed_owner_opinion_effects_effect = yes
}
}
}As written in game/common/scripted_effects/00_secret_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls secret_exposed_notification_effects_effect.
Events (16)
- A Dark Secret
secret_bastard.2003 - A Secret Exposed
secret_bastard.2002 - A Secret Exposed!
secrets.0101 - A Secret Exposed!
secrets.0103 - A Secret Exposed!
secrets.0104 - A Secret Exposed!
secrets.0105
10 more
- A Secret Exposed!
secrets.0106 - A Secret Exposed!
secrets.0107 - A Secret Exposed!
secrets.0108 - A Secret Exposed!
secrets.0110 - A Secret Exposed!
secrets.0112 - A Secret Exposed!
secrets.0116 - Murderer!
secrets.0118 - Raider Revealed
secrets.0142 - Sticky Fingers
secrets.0122 - The Truth
secret_bastard.2001
Source: game/common/scripted_effects/00_secret_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.