Scripted effect · Wards and Wardens files
bp2_execute_hostage_effect
bp2_execute_hostage_effect = yesgame/common/scripted_effects/05_bp2_hostage_effects.txt, line 6 (194 lines). No parameters.
bp2_execute_hostage_effect is a scripted effect in Crusader Kings III, in the Wards and Wardens files, written at line 6 of its file. It takes no parameters: bp2_execute_hostage_effect = yes. The game's script calls it in 2 places, among them bp2_hostage_system.0140 (event) and bp2_execute_hostages_option_effect (local effect). Patch 1.20.1.2, from game/common/scripted_effects/05_bp2_hostage_effects.txt.
The comment above it in the file
Execute that hostage
What it does
scope:executioner:- Dread +10
add_kinslayer_trait_or_nothing_effect = { VICTIM = scope:victim }
scope:victim:death = { death_reason = death_hostage_execution killer = scope:executioner }
scope:victim:scope:executioner:If
Then
- Stress and fulfillment impact: +20, and by trait: Compassionate +100, Forgiving +80, Generous +20, Family Hierarch +20
Else if
Then
- Stress and fulfillment impact: +40, and by trait: Compassionate +100, Forgiving +80, Generous +40, Trusting +20, Content +20
Otherwise
- Stress and fulfillment impact: by trait: Sadistic -30, Compassionate +40, Forgiving +20, Generous +20
• 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 (120 lines of game script)
bp2_execute_hostage_effect = {
scope:hostage = { save_scope_as = victim }
scope:hostage_warden = { save_scope_as = executioner }
scope:executioner = {
# Dread
add_dread = minor_dread_gain
#Kinslaying
add_kinslayer_trait_or_nothing_effect = { VICTIM = scope:victim }
}
show_as_tooltip = {
# Kill hostage
scope:victim = {
death = {
death_reason = death_hostage_execution
killer = scope:executioner
}
}
}
# Cancel truce
scope:executioner = {
if = {
limit = {
OR = {
NOT = { has_variable = recently_executed_hostage }
NOT = { has_variable = recently_executed_hostage_home_court }
}
}
set_variable = {
name = recently_executed_hostage
value = scope:hostage
years = 1
}
set_variable = {
name = recently_executed_hostage_home_court
value = scope:hostage_home_court
years = 1
}
}
}
# Opinion
scope:victim = {
# Victim's family & spouse hates executioner
every_close_family_member = {
limit = { this != scope:executioner }
add_to_temporary_list = victim_family_list
}
every_spouse = {
limit = { this != scope:executioner }
add_to_temporary_list = victim_family_list
}
if = {
limit = {
any_in_list = { list = victim_family_list count > 0 }
}
every_in_list = {
list = victim_family_list
custom = all_close_family_and_spouses
limit = {
NOR = {
this = scope:hostage_home_court
this = scope:executioner
}
}
add_opinion = {
target = scope:executioner
modifier = executed_close_family
}
}
}
# Victim's dynasty hates executioner
if = {
limit = {
exists = dynasty
exists = scope:executioner.dynasty
dynasty != scope:executioner.dynasty
}
dynasty = {
every_dynasty_member = {
limit = {
NOR = {
this = scope:executioner
this = scope:victim
is_in_list = victim_family_list
}
}
custom = all_dynasty_members
add_to_temporary_list = victim_dynasty_list
add_opinion = {
target = scope:executioner
modifier = executed_dynasty_member
}
}
}
}
# Victim's friends and lovers
every_relation = {
type = friend
type = lover
limit = {
NOR = {
this = scope:executioner
this = scope:victim
is_in_list = victim_family_list
is_in_list = victim_dynasty_list
}
}
custom = all_friends_and_lovers
add_opinion = {
target = scope:executioner
modifier = executed_close_relation_opinion
}
}
}
# Stress
scope:executioner = {
if = {
limit = {
NOT = { has_trait = sadistic }
scope:victim = {
OR = {As written in game/common/scripted_effects/05_bp2_hostage_effects.txt.
The first 120 of its 194 lines; the rest is in game/common/scripted_effects/05_bp2_hostage_effects.txt from line 6.
Where it is used
Every place in common/, events/ and history/ that calls bp2_execute_hostage_effect.
Events (1)
Scripted effects inside an event file (1)
- bp2_execute_hostages_option_effect
Source: game/common/scripted_effects/05_bp2_hostage_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.