Scripted effect
unknown_murder_effect
unknown_murder_effect = { MURDERER = … REASON = … VICTIM = … }game/common/scripted_effects/00_murder_effects.txt, line 219 (69 lines). Parameters: $MURDERER$, $REASON$, $VICTIM$.
unknown_murder_effect is a scripted effect in Crusader Kings III, written at line 219 of its file. A call passes 3 parameters: MURDERER, REASON and VICTIM. The game's script calls it in 65 places, among them … Absence (event bp1_yearly.8134), … Consequences (event lover.8102) and … Judgment (event religious_interaction.2102). Patch 1.20.1.2, from game/common/scripted_effects/00_murder_effects.txt.
What it does
Otherwise
$VICTIM$ = { … }$MURDERER$ = { … }
• 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 (69 lines of game script)
unknown_murder_effect = {
# Party Baron handling
if = {
limit = { $VICTIM$ = { has_character_flag = is_party_baron } }
set_local_variable = {
name = murdered_party_baron
value = yes
}
}
# If we're a clan this affects unity
if = {
limit = { # If the victim is landed
$VICTIM$ = { is_landed = yes }
}
add_clan_unity_interaction_effect = {
CHARACTER = $MURDERER$
TARGET = $VICTIM$
VALUE = minor_unity_loss
DESC = clan_unity_murder_unknown.desc
REVERSE_NON_HOUSE_TARGET = no
}
}
else = { # For unlanded characters, we don't care as much, but you still lose some unity
add_clan_unity_interaction_effect = {
CHARACTER = $MURDERER$
TARGET = $VICTIM$
VALUE = miniscule_unity_loss
DESC = clan_unity_murder_unknown.desc
REVERSE_NON_HOUSE_TARGET = no
}
}
$VICTIM$ = {
#Killed by murder: set this up first to keep the killer hidden.
hidden_effect = {
death = {
killer = $MURDERER$
death_reason = $REASON$
}
}
# Hide murderer in tooltip
show_as_tooltip = {
death = { death_reason = $REASON$ }
}
}
$MURDERER$ = {
if = {
limit = { is_alive = yes }
hidden_effect = {
add_secret = {
type = secret_murder
target = $VICTIM$
}
}
if = {
limit = { exists = local_var:murdered_party_baron }
random_secret = {
type = secret_murder
limit = {
secret_target = $VICTIM$
}
set_variable = {
name = murdered_party_baron
value = yes
}
}
}
}
}
}As written in game/common/scripted_effects/00_murder_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls unknown_murder_effect.
Events (59)
- … Absence
bp1_yearly.8134 - … Consequences
lover.8102 - … Judgment
religious_interaction.2102 - ... Will Emerge
feast_default.1018 - …: Murder Rival
tournament_events.6012 - ...Do Us Part
ep2_wedding.0202
53 more
- ...Do Us Part
ep2_wedding.0203 - A Closeted Cadaver
court.0112 - A Common Cause
feast_default_laurence.100 - A Common Cause
feast_default_laurence.101 - A Fiery Night
ep2_wedding.3040 - A Knife in the Dark
feast_default.8002 - A Mirror in the Mud
bp1_yearly.9007 - A Night to Die For
ep2_wedding.3060 - A Secret Revealed
bp1_yearly.9038 - A Spear for …
hunt.1005 - Accusations
intrigue_scheme_ongoing.5022 - An Arrow for …
hunt.1013 - An Arrow for …
hunt.1015 - An Unfortunate Accident
feast_default.8003 - Blood and Steel
ep2_wedding.0204 - Caught in a Trap
hunt.7011 - Concerning Tutelage
yearly.5024 - Down to Bottomless Perdition
chariot_race.4051 - Down...
chariot_race.4050 - Errant Heir
hunt.4008 - Flesh of the Faithful
pam_secular_faith_events.0040 - From Cinders to Flames
feast_default.8001 - Hunted
hunt.4009 - Hunted
hunt.4010 - Ill-Advised: A Knife in the Dark
nomad_events.0010 - Ill-Advised: Blood on the Bone
nomad_events.0009 - Keep Your Eyes Open
feast_default.8004 - Lethal Liquids
feast_default.1012 - Losing Reality
trait_specific_ongoing.1008 - Murders At Court: A Killer Revealed
murders_at_court.2003 - Murders At Court: Consequences
murders_at_court.9002 - Murders At Court: Escalation
murders_at_court.2001 - Murders At Court: Murder in the Morning
murders_at_court.1002 - Murders At Court: Murdered Successor
murders_at_court.2101 - Murders At Court: My Child
murders_at_court.1004 - Murders At Court: One Step Ahead
murders_at_court.2002 - Murders At Court: Til Death Do Us Part
murders_at_court.1003 - Not Quite Alone
hunt.1081 - On the Warpath
feast_default.1011 - Paying Homage
yearly.8000 - Pie-based Shenanigans
court.9400 - Precarious Preoccupations
intrigue_scheme_ongoing.5023 - Private Meating
trait_specific_ongoing.5001 - Rivals' End
travel_events_oltner_2.1220 - Romance: The Wild Hunt
court_outcome.1005 - Show Them Who You Are
intrigue_dread.2301 - The Real Game
hunt.7211 - The Real Game
hunt.7212 - The Right of Clergy
bishop.2001 - The Witness
feast_default.1014 - The Witness
feast_default.2012 - What Hangs Above
ep2_wedding.3050 - yearly.1020
Scripted effects inside an event file (4)
- court_ongoing_1110_poison_murder_effect
- feast_events_ewan_0001_kill_intent_target_effect
- yearly_1010_abductee_taken_effect
- yearly_1010_kill_target_effect
Scripted effects (2)
Source: game/common/scripted_effects/00_murder_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.