Scripted effect · All Under Heaven files
change_house_relation_effect
change_house_relation_effect = { CHAR = … HOUSE = … REASON = … TARGET_CHAR = … TITLE = … VALUE = … }game/common/scripted_effects/10_dlc_tgp_house_relation_scripted_effects.txt, line 208 (22 lines). Parameters: $CHAR$, $HOUSE$, $REASON$, $TARGET_CHAR$, $TITLE$, $VALUE$.
change_house_relation_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 208 of its file. A call passes 6 parameters: CHAR, HOUSE, REASON, TARGET_CHAR, TITLE and VALUE. The game's script calls it in 97 places, among them Acknowledge Bloc Leadership (interaction), Blind (interaction) and Call Follower to War (interaction). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_house_relation_scripted_effects.txt.
The comment above it in the file
Effect for incrementing towards a level change - used actual gameplay effects, e.g. war declarations Required parameters: HOUSE, CHAR, TARGET_CHAR, TITLE, VALUE, REASON
What it does
If
a check the game hides
Then
impact_house_relation = { target = scope:other_house steps = scope:steps description = house_relation_reason_$REASON$_desc }
• 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 (22 lines of game script)
change_house_relation_effect = {
# Save scopes to use in localization of description.
$HOUSE$ ?= { save_scope_as = other_house }
$CHAR$ ?= { save_scope_as = char }
$TARGET_CHAR$ ?= { save_scope_as = target_char }
$TITLE$ ?= { save_scope_as = title }
save_scope_value_as = {
name = steps
value = $VALUE$
}
if = {
limit = {
exists = scope:other_house
}
impact_house_relation = {
target = scope:other_house
steps = scope:steps
description = house_relation_reason_$REASON$_desc
}
}
}As written in game/common/scripted_effects/10_dlc_tgp_house_relation_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls change_house_relation_effect.
Character interactions (13)
Activity pulse actions (1)
- festival_house_relation_increase
Events (54)
- … and Peasants
murder_outcome_reworked.0041 - A Cask of Wine
murder_outcome_reworked.0051 - A Curse Undone
death_management.1006 - A Family Man's Proposal
tgp_tai_migration_event.3000 - A Mangled Corpse
murder_outcome_reworked.4001 - A Mercy
murder_outcome_reworked.8001
48 more
- A Test of Wit
festival.105 - Amatory Adventures
festival.107 - An Offering of … Flesh
tgp_japan_yearly_events.1160 - An Unwelcome Guest
murder_outcome_reworked.7011 - Assassin!
murder_outcome_reworked.0001 - Cups Raised Aloft
festival.102 - Dangerous Journeys
murder_outcome_reworked.0011 - death_management.0124
- Defenseless
murder_outcome_reworked.4011 - Drink of Life
murder_outcome_reworked.0071 - Esteemed Company
festival.1000 - Feud: … Appeal
bp1_house_feud.0420 - Feud: A Heavy Toll
bp1_house_feud.0210 - Feud: A Lopsided Resentment
bp1_house_feud.0100 - Feud: A Meet Fate
bp1_house_feud.7002 - Feud: A Tiresome Affray
bp1_house_feud.0300 - Feud: Beset by Threats
bp1_house_feud.0410 - Feud: Blood for Blood
bp1_house_feud.7001 - Feud: Desperate Measures
bp1_house_feud.0200 - Feud: Outclassed Adversaries
bp1_house_feud.0110 - Feud: Rightful …
bp1_house_feud.7000 - Feud: The Limits of Spite
bp1_house_feud.0220 - Feud: The Next Enemy
bp1_house_feud.0840 - Feud: The Sweetest Feeling
bp1_house_feud.0830 - Feud: Venerous Vengeance
bp1_house_feud.7003 - Forgotten in the Dark
murder_outcome_reworked.7001 - Genpei War: A Crossroads of Power
tgp_genpei_character.2010 - Genpei War: Bedeviled Gentian
tgp_genpei_character.1000 - Genpei War: Fierce Gentian
tgp_genpei_character.1100 - Genpei War: Gentian Unbound
tgp_genpei_character.1010 - Genpei War: Rightful Gentian
tgp_genpei_character.1095 - Genpei War: Scattered Wisteria
tgp_genpei_character.3000 - Genpei War: Vengeful Gentian
tgp_genpei_character.1090 - Healthy Eater
murder_outcome_reworked.0021 - In Choppy Waters
murder_outcome_reworked.0061 - Left Ashore
festival.114 - Outliving My Rival
death_management.3006 - Poetics Under Duress
festival.109 - Reading Between the Folds
festival.108 - Scented Sleeves
festival.101 - Sighting of the Sovereign
tgp_japan_yearly_events.1150 - Stained Honor
festival.016 - Stopped at the Clan Road
tgp_japan_yearly_events.1140 - The Fox's Wedding
festival.106 - The Passing of a Sage
tgp_china_career.0030 - Uninvited
murder_outcome_reworked.0031 - Upon a Moonlit Night
festival.100 - Word from the …
tgp_japan_yearly_events.1151
Scripted effects inside an event file (2)
- chinese_students.0002.option.b_effect
- raid_estate_failure_effect
On actions (the game's own hooks) (11)
- on_betrothal_broken
- on_divorce
- on_game_start_after_lobby
- on_imprison
- on_join_war_as_secondary
- on_raid_action_completion
5 more
- on_set_relation_best_friend
- on_set_relation_friend
- on_set_relation_nemesis
- on_set_relation_rival
- on_war_started
Scripted effects (13)
Combat phase events (2)
- commander_killed
- knight_killed
Secret types (1)
- Murder
Source: game/common/scripted_effects/10_dlc_tgp_house_relation_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.