Scripted effect · All Under Heaven files
decrease_house_relation_level_effect
decrease_house_relation_level_effect = { HOUSE = … REASON = … }game/common/scripted_effects/10_dlc_tgp_house_relation_scripted_effects.txt, line 113 (92 lines). Parameters: $HOUSE$, $REASON$.
decrease_house_relation_level_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 113 of its file. A call passes 2 parameters: HOUSE and REASON. The game's script calls it in 1 place, among them Stopped at the Clan Road (event tgp_japan_yearly_events.1140). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_house_relation_scripted_effects.txt.
What it does
scope:house:If
scope:other_house != this
Then
If
has_house_relation_with = scope:other_house
Then
- One random house relation:
- Where › Any relation house:
scope:other_house = this
If
has_house_relation_level = amity
Then
scope:house:set_house_relation_level_effect = { HOUSE = scope:other_house REASON = $REASON$ LEVEL = friendly }
Else if
has_house_relation_level = friendly
Then
scope:house:set_house_relation_level_effect = { HOUSE = scope:other_house REASON = $REASON$ LEVEL = cordial }
Else if
has_house_relation_level = cordial
Then
scope:house:set_house_relation_level_effect = { HOUSE = scope:other_house REASON = $REASON$ LEVEL = neutral }
Else if
has_house_relation_level = neutral
Then
scope:house:set_house_relation_level_effect = { HOUSE = scope:other_house REASON = $REASON$ LEVEL = quarrel }
Else if
has_house_relation_level = quarrel
Then
scope:house:set_house_relation_level_effect = { HOUSE = scope:other_house REASON = $REASON$ LEVEL = rivalry }
Else if
has_house_relation_level = rivalry
Then
scope:house:set_house_relation_level_effect = { HOUSE = scope:other_house REASON = $REASON$ LEVEL = feud }
- Where › Any relation house:
Otherwise
set_house_relation_level_effect = { HOUSE = scope:other_house REASON = $REASON$ LEVEL = quarrel }
• 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 (92 lines of game script)
decrease_house_relation_level_effect = {
save_scope_as = house
$HOUSE$ ?= { save_scope_as = other_house }
scope:house ?= {
if = {
limit = {
exists = scope:other_house
scope:other_house != this
}
if = {
limit = { has_house_relation_with = scope:other_house }
random_house_relation = {
limit = {
any_relation_house = { scope:other_house = this }
}
save_scope_as = house_relation
if = {
limit = { has_house_relation_level = amity }
scope:house = {
set_house_relation_level_effect = {
HOUSE = scope:other_house
REASON = $REASON$
LEVEL = friendly
}
}
}
else_if = {
limit = { has_house_relation_level = friendly }
scope:house = {
set_house_relation_level_effect = {
HOUSE = scope:other_house
REASON = $REASON$
LEVEL = cordial
}
}
}
else_if = {
limit = { has_house_relation_level = cordial }
scope:house = {
set_house_relation_level_effect = {
HOUSE = scope:other_house
REASON = $REASON$
LEVEL = neutral
}
}
}
else_if = {
limit = { has_house_relation_level = neutral }
scope:house = {
set_house_relation_level_effect = {
HOUSE = scope:other_house
REASON = $REASON$
LEVEL = quarrel
}
}
}
else_if = {
limit = { has_house_relation_level = quarrel }
scope:house = {
set_house_relation_level_effect = {
HOUSE = scope:other_house
REASON = $REASON$
LEVEL = rivalry
}
}
}
else_if = {
limit = { has_house_relation_level = rivalry }
scope:house = {
set_house_relation_level_effect = {
HOUSE = scope:other_house
REASON = $REASON$
LEVEL = feud
}
}
}
}
}
else = {
set_house_relation_level_effect = {
HOUSE = scope:other_house
REASON = $REASON$
LEVEL = quarrel
}
random_house_relation = {
limit = { any_relation_house = { this = scope:other_house } }
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 decrease_house_relation_level_effect.
Events (1)
- Stopped at the Clan Road
tgp_japan_yearly_events.1140
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.