Scripted effect · Friends and Foes files
house_feud_torture_event_effect
house_feud_torture_event_effect = yesgame/common/scripted_effects/03_bp1_scripted_effects.txt, line 578 (87 lines). No parameters.
house_feud_torture_event_effect is a scripted effect in Crusader Kings III, in the Friends and Foes files, written at line 578 of its file. It takes no parameters: house_feud_torture_event_effect = yes. The game's script calls it in 8 places, among them Blinded (event prison.1021), Castrated (event prison.1026) and Disfigured (event prison.1031). Patch 1.20.1.2, from game/common/scripted_effects/03_bp1_scripted_effects.txt.
The comment above it in the file
Feud torture score and event effects
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (87 lines of game script)
house_feud_torture_event_effect = {
hidden_effect = {
# Tortured belongs to torturer's Houses's Feud target House
scope:actor.house ?= {
change_house_relation_feud_score_effect = {
TARGET = scope:recipient.house
REASON = torture
VALUE = house_feud_minor_counter_value
}
# If originial Feud reason was Torture, fire revenge event for House Head
if = {
limit = {
any_house_relation = {
has_house_relation_level = feud
OR = {
var:house_feud_victim.house ?= scope:actor.house
var:house_feud_reason ?= flag:head_tortured
var:house_feud_reason ?= flag:family_tortured
}
var:house_feud_attacker ?= scope:recipient
NOT = { exists = var:feud_avenged }
}
}
house_head = {
trigger_event = { id = bp1_house_feud.7002 days = 15 }
}
}
}
scope:recipient.house.house_head ?= {
# Chance for tortured House to start a Feud if eligible
if = {
limit = {
valid_for_feud_events_with_target_trigger = { TARGET = scope:actor }
}
random_list = {
# Give House Head option to start Feud
25 = {
modifier = {
add = 25
has_trait = vengeful
}
modifier = {
add = -25
has_trait = forgiving
}
scope:actor = { house_feud_save_head_and_attacker_effect = yes }
scope:recipient = {
save_scope_as = house_feud_victim
house.house_head = {
if = {
limit = { this = scope:house_feud_victim }
trigger_event = {
id = bp1_house_feud.0010 # Version for tortured House Heads
days = { 5 15 }
}
}
else = {
trigger_event = {
id = bp1_house_feud.0011 # Version for tortured close family
days = { 5 15 }
}
}
}
}
}
# Clean up tortured's flags if no Feud started
50 = {
scope:recipient = {
if = {
limit = { has_character_flag = house_feud_castration_flag }
remove_character_flag = house_feud_castration_flag
}
else_if = {
limit = { has_character_flag = house_feud_blinding_flag }
remove_character_flag = house_feud_blinding_flag
}
else_if = {
limit = { has_character_flag = house_feud_disfigured_flag }
remove_character_flag = house_feud_disfigured_flag
}
}
}
}
}
}
}
}As written in game/common/scripted_effects/03_bp1_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls house_feud_torture_event_effect.
Events (8)
- Blinded
prison.1021 - Castrated
prison.1026 - Disfigured
prison.1031 - Maimed
prison.1042 - Pariah of Court
court.8170 - Torture
prison.1003
2 more
- Torture
prison.1011 - Truth or Torment
prison.1002
Source: game/common/scripted_effects/03_bp1_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.