Scripted effect
blackmail_target_with_secret_effect
blackmail_target_with_secret_effect = { SECRET = … TARGET = … }game/common/scripted_effects/00_secret_effects.txt, line 56 (30 lines). Parameters: $SECRET$, $TARGET$.
blackmail_target_with_secret_effect is a scripted effect in Crusader Kings III, written at line 56 of its file. A call passes 2 parameters: SECRET and TARGET. The game's script calls it in 11 places, among them …: Opposition Research (event councillor_spouse_intrigue.1004), A Loose Tongue (event feast_lifestyle.2002) and Befriend: The Price of Trust (event befriend_outcome.8007). Patch 1.20.1.2, from game/common/scripted_effects/00_secret_effects.txt.
The comment above it in the file
adds a blackmail strong or weak blackmail hook for current scope against TARGET based on SECRET type Always use with is_blackmailable_secret_trigger
What it does
If
$SECRET$ = { is_criminal_for = $TARGET$ }can_add_hook = { target = $TARGET$ type = strong_blackmail_hook }
Then
add_hook = { target = $TARGET$ type = strong_blackmail_hook secret = $SECRET$ }
Else if
$SECRET$ = { is_shunned_for = $TARGET$ }can_add_hook = { target = $TARGET$ type = weak_blackmail_hook }
Then
add_hook = { target = $TARGET$ type = weak_blackmail_hook secret = $SECRET$ }
• 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 (30 lines of game script)
blackmail_target_with_secret_effect = {
if = {
limit = {
$SECRET$ = { is_criminal_for = $TARGET$ }
can_add_hook = {
target = $TARGET$
type = strong_blackmail_hook
}
}
add_hook = {
target = $TARGET$
type = strong_blackmail_hook
secret = $SECRET$
}
}
else_if = {
limit = {
$SECRET$ = { is_shunned_for = $TARGET$ }
can_add_hook = {
target = $TARGET$
type = weak_blackmail_hook
}
}
add_hook = {
target = $TARGET$
type = weak_blackmail_hook
secret = $SECRET$
}
}
}As written in game/common/scripted_effects/00_secret_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls blackmail_target_with_secret_effect.
Events (10)
- …: Opposition Research
councillor_spouse_intrigue.1004 - A Loose Tongue
feast_lifestyle.2002 - Befriend: The Price of Trust
befriend_outcome.8007 - Behind a Locked Door
feast_default.2008 - Fabricate Hook: A Secret
fabricate_hook_outcome.0001 - fp2_struggle.2016
4 more
- Servants and Masters
intrigue_scheming.3003 - Servants and Masters
intrigue_scheming.3012 - Servants and Masters
intrigue_scheming.3013 - Servants and Masters
intrigue_scheming.3021
Scripted effects (1)
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.