Scripted trigger
secret_murder_attempt_is_valid_trigger
secret_murder_attempt_is_valid_trigger = { OWNER = … TARGET = … }game/common/scripted_triggers/00_secret_type_triggers.txt, line 65 (13 lines). Parameters: $OWNER$, $TARGET$.
secret_murder_attempt_is_valid_trigger is a scripted trigger in Crusader Kings III, written at line 65 of its file. A call passes 2 parameters: OWNER and TARGET. The game's script calls it in 1 place, among them Attempted Murder (secret types). Patch 1.20.1.2, from game/common/scripted_triggers/00_secret_type_triggers.txt.
The comment above it in the file
SECRET MURDER ATTEMPT
What it checks
NOT = { $OWNER$ = $TARGET$ }If
$TARGET$ = { is_alive = no }
Then
NOT = { $TARGET$.killer = $OWNER$ }
• 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 (13 lines of game script)
secret_murder_attempt_is_valid_trigger = {
NOT = { $OWNER$ = $TARGET$ } # Murder requires two people
trigger_if = { # If the target is dead, check that the killer isn't the owner since then the attempt isn't really an attempt...
limit = {
$TARGET$ = { is_alive = no }
exists = $TARGET$.killer
}
NOT = {
$TARGET$.killer = $OWNER$
}
}
}As written in game/common/scripted_triggers/00_secret_type_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls secret_murder_attempt_is_valid_trigger.
Secret types (1)
- Attempted Murder
Source: game/common/scripted_triggers/00_secret_type_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.