Scripted effect
log_harm_event_death_as_variable_effect
log_harm_event_death_as_variable_effect = yesgame/common/scripted_effects/00_game_rule_effects.txt, line 3120 (25 lines). No parameters.
log_harm_event_death_as_variable_effect is a scripted effect in Crusader Kings III, written at line 3120 of its file. It takes no parameters: log_harm_event_death_as_variable_effect = yes. The game's script calls it in 22 places, among them A Bustling Settlement: Look Out! (event harm.1101), A Clogged Throat: Suffocation (event harm.1031) and A Disastrous Victory (event harm.2071). Patch 1.20.1.2, from game/common/scripted_effects/00_game_rule_effects.txt.
The comment above it in the file
Controls logging for harm events where the character is killed. Unless you're specifically looking to gather easy death metrics whilst run testing, this should always be toggled off.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (25 lines of game script)
log_harm_event_death_as_variable_effect = {
if = {
limit = { always = no }
if = {
# Only track noteworthy characters.
limit = { harm_game_rule_valid_for_logging_trigger = yes }
add_to_global_variable_list = {
name = harm_deaths_list
target = root
}
}
}
# And, for error suppression.
if = {
limit = { always = no }
if = {
limit = {
global_variable_list_size = {
name = harm_deaths_list
value >= 1
}
}
}
}
}As written in game/common/scripted_effects/00_game_rule_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls log_harm_event_death_as_variable_effect.
Events (21)
- A Bustling Settlement: Look Out!
harm.1101 - A Clogged Throat: Suffocation
harm.1031 - A Disastrous Victory
harm.2071 - Camp Fever
harm.2001 - Crimes of Passion: Taking Action
harm.1071 - Evening Meal: Choke On It
harm.1001
15 more
- Flickering Flames: The Inferno
harm.1051 - Flighty: Ride or Die
harm.1011 - For the Realm
harm.2041 - Full Bellied: Too Much
harm.1021 - Harried Each Step
harm.2061 - Marching Malaise
harm.2011 - Mid-Winter Maladies: Quiet & Still
harm.0541 - Moody Weather: Storm's Wrath
harm.1081 - Reign of Terror: People's Justice
harm.1111 - Serene Waters: An Inevitable Accident
harm.1041 - So... Cold...
harm.2021 - So... Hot...
harm.2031 - Starvation
harm.2051 - Thumping Heart: Burning Thoughts
harm.1091 - What a View: Tumbling Down
harm.1061
Scripted effects inside an event file (1)
- harm_0000_physic_rescue_chance_death_effect
Source: game/common/scripted_effects/00_game_rule_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.