Scripted effect
give_or_update_embezzler_secret_effect
give_or_update_embezzler_secret_effect = { STAKE = … TARGET = … }game/common/scripted_effects/00_secret_effects.txt, line 500 (55 lines). Parameters: $STAKE$, $TARGET$.
give_or_update_embezzler_secret_effect is a scripted effect in Crusader Kings III, written at line 500 of its file. A call passes 2 parameters: STAKE and TARGET. The game's script calls it in 2 places, among them Skim the Coffers (interaction) and Do Crime: Embezzle (interaction). Patch 1.20.1.2, from game/common/scripted_effects/00_secret_effects.txt.
What it does
If
None of these
- Any secret:
secret_target = $TARGET$
- Any secret:
Then
add_secret = { type = secret_embezzler target = $TARGET$ }
• 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 (55 lines of game script)
give_or_update_embezzler_secret_effect = {
# Either try to add a new embezzler secret.
if = {
limit = {
NOT = {
any_secret = {
type = secret_embezzler
secret_target = $TARGET$
}
}
}
add_secret = {
type = secret_embezzler
target = $TARGET$
}
random_secret = {
type = secret_embezzler
limit = {
secret_target = $TARGET$
}
set_variable = {
name = embezzlement_stake
value = $STAKE$
}
set_variable = {
name = embezzlement_stake_half
value = {
value = $STAKE$
multiply = 0.5
}
}
}
}
# Or else increment the existing one.
else = {
random_secret = {
type = secret_embezzler
limit = {
secret_target = $TARGET$
has_variable = embezzlement_stake
}
change_variable = {
name = embezzlement_stake
add = $STAKE$
}
change_variable = {
name = embezzlement_stake_half
add = {
value = $STAKE$
multiply = 0.5
}
}
}
}
}As written in game/common/scripted_effects/00_secret_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls give_or_update_embezzler_secret_effect.
Character interactions (2)
- Skim the Coffers
- Do Crime: Embezzle
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.