Scripted effect · All Under Heaven files
set_house_relation_level_effect
set_house_relation_level_effect = { HOUSE = … LEVEL = … REASON = … }game/common/scripted_effects/10_dlc_tgp_house_relation_scripted_effects.txt, line 3 (17 lines). Parameters: $HOUSE$, $LEVEL$, $REASON$.
set_house_relation_level_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 3 of its file. A call passes 3 parameters: HOUSE, LEVEL and REASON. The game's script calls it in 2 places, among them decrease_house_relation_level_effect (scripted effect) and increase_house_relation_level_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_house_relation_scripted_effects.txt.
What it does
If
scope:house != scope:other_house
Then
set_house_relation = { … }
• 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 (17 lines of game script)
set_house_relation_level_effect = {
save_scope_as = house
$HOUSE$ ?= { save_scope_as = other_house }
if = {
limit = {
exists = scope:house
exists = scope:other_house
scope:house != scope:other_house
}
set_house_relation = {
target = scope:other_house
level = $LEVEL$
description = house_relation_reason_$REASON$_desc
save_scope_as = house_relation
}
}
}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 set_house_relation_level_effect.
Scripted effects (2)
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.