Scripted trigger · All Under Heaven files
house_relation_is_valid_to_keep_trigger
house_relation_is_valid_to_keep_trigger = { HOUSE = … OTHER_HOUSE = … }game/common/scripted_triggers/10_tgp_house_relation_triggers.txt, line 68 (17 lines). Parameters: $HOUSE$, $OTHER_HOUSE$.
house_relation_is_valid_to_keep_trigger is a scripted trigger in Crusader Kings III, in the All Under Heaven files, written at line 68 of its file. A call passes 2 parameters: HOUSE and OTHER_HOUSE. The game's script calls it in 1 place, among them Relation (house relation types). Patch 1.20.1.2, from game/common/scripted_triggers/10_tgp_house_relation_triggers.txt.
What it checks
$HOUSE$ ?= { save_temporary_scope_as = house_1_temp }$OTHER_HOUSE$ ?= { save_temporary_scope_as = house_2_temp }If
a check the game hides
Then
- scope:house_1_temp › Their house head:
in_diplomatic_range = scope:house_2_temp.house_head
Otherwise
- Never
- scope:house_1_temp › Their house head:
• 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)
house_relation_is_valid_to_keep_trigger = {
$HOUSE$ ?= { save_temporary_scope_as = house_1_temp }
$OTHER_HOUSE$ ?= { save_temporary_scope_as = house_2_temp }
trigger_if = {
limit = {
exists = scope:house_1_temp.house_head
exists = scope:house_2_temp.house_head
}
scope:house_1_temp = {
NOT = { this = scope:house_2_temp }
# DIPLO RANGE IS ALWAYS REQUIRED
house_head = { in_diplomatic_range = scope:house_2_temp.house_head }
}
}
# SCOPES ARE INVALID
trigger_else = { always = no }
}As written in game/common/scripted_triggers/10_tgp_house_relation_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls house_relation_is_valid_to_keep_trigger.
House relation types (1)
- Relation
Source: game/common/scripted_triggers/10_tgp_house_relation_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.