Scripted trigger · All Under Heaven files
tgp_distant_realm_marriage_trigger
tgp_distant_realm_marriage_trigger = { ACTOR_SPOUSE = … RECIPIENT_SPOUSE = … }game/common/scripted_triggers/10_tgp_triggers.txt, line 47 (21 lines). Parameters: $ACTOR_SPOUSE$, $RECIPIENT_SPOUSE$.
tgp_distant_realm_marriage_trigger is a scripted trigger in Crusader Kings III, in the All Under Heaven files, written at line 47 of its file. A call passes 2 parameters: ACTOR_SPOUSE and RECIPIENT_SPOUSE. The game's script calls it in 1 place, among them marriage_ai_accept_modifier (scripted modifier). Patch 1.20.1.2, from game/common/scripted_triggers/10_tgp_triggers.txt.
What it checks
Every line of it is script with no tooltip text: the script is below.
The script as written (21 lines of game script)
tgp_distant_realm_marriage_trigger = {
$RECIPIENT_SPOUSE$ = {
culture = { has_cultural_parameter = reduced_marriage_acceptance_distant_realms }
top_liege != $ACTOR_SPOUSE$.top_liege
trigger_if = {
limit = { exists = capital_province }
capital_province = { save_temporary_scope_as = from }
}
trigger_else = {
location = { save_temporary_scope_as = from }
}
trigger_if = {
limit = { exists = $ACTOR_SPOUSE$.capital_province }
$ACTOR_SPOUSE$.capital_province = { save_temporary_scope_as = to }
}
trigger_else = {
$ACTOR_SPOUSE$.location = { save_temporary_scope_as = to }
}
"scope:from.squared_distance(scope:to)" > squared_distance_medium
}
}As written in game/common/scripted_triggers/10_tgp_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls tgp_distant_realm_marriage_trigger.
Scripted modifiers (AI weights) (1)
- marriage_ai_accept_modifier
Source: game/common/scripted_triggers/10_tgp_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.