Scripted effect
marry_on_realm_law
marry_on_realm_law = { SPOUSE_1 = … SPOUSE_2 = … }game/common/scripted_effects/00_marriage_effects.txt, line 13 (56 lines). Parameters: $SPOUSE_1$, $SPOUSE_2$.
marry_on_realm_law is a scripted effect in Crusader Kings III, written at line 13 of its file. A call passes 2 parameters: SPOUSE_1 and SPOUSE_2. The game's script calls it in 1 place, among them ep3_travel_8000_a (local effect). Patch 1.20.1.2, from game/common/scripted_effects/00_marriage_effects.txt.
What it does
If
$SPOUSE_1$ = { is_ruler = yes }$SPOUSE_1$ = { … }
Then
$SPOUSE_1$ = { marry = $SPOUSE_2$ }
Else if
$SPOUSE_1$ = { is_ruler = no }$SPOUSE_1$.liege ?= { … }
Then
$SPOUSE_1$ = { marry = $SPOUSE_2$ }
Else if
$SPOUSE_1$ = { is_ruler = yes }$SPOUSE_1$ = { … }
Then
$SPOUSE_1$ = { marry_matrilineal = $SPOUSE_2$ }
Else if
$SPOUSE_1$ = { is_ruler = no }$SPOUSE_1$.liege ?= { … }
Then
$SPOUSE_1$ = { marry_matrilineal = $SPOUSE_2$ }
Otherwise
marry_spouse_1_dominant = { SPOUSE_1 = $SPOUSE_1$ SPOUSE_2 = $SPOUSE_2$ }
• 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 (56 lines of game script)
marry_on_realm_law = {
if = {
limit = {
$SPOUSE_1$ = { is_ruler = yes }
$SPOUSE_1$ = {
OR = {
has_realm_law = male_only_law
has_realm_law = male_preference_law
}
}
}
$SPOUSE_1$ = { marry = $SPOUSE_2$ }
}
else_if = {
limit = {
$SPOUSE_1$ = { is_ruler = no }
$SPOUSE_1$.liege ?= {
OR = {
has_realm_law = male_only_law
has_realm_law = male_preference_law
}
}
}
$SPOUSE_1$ = { marry = $SPOUSE_2$ }
}
else_if = {
limit = {
$SPOUSE_1$ = { is_ruler = yes }
$SPOUSE_1$ = {
OR = {
has_realm_law = female_only_law
has_realm_law = female_preference_law
}
}
}
$SPOUSE_1$ = { marry_matrilineal = $SPOUSE_2$ }
}
else_if = {
limit = {
$SPOUSE_1$ = { is_ruler = no }
$SPOUSE_1$.liege ?= {
OR = {
has_realm_law = female_only_law
has_realm_law = female_preference_law
}
}
}
$SPOUSE_1$ = { marry_matrilineal = $SPOUSE_2$ }
}
else = {
marry_spouse_1_dominant = {
SPOUSE_1 = $SPOUSE_1$
SPOUSE_2 = $SPOUSE_2$
}
}
}As written in game/common/scripted_effects/00_marriage_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls marry_on_realm_law.
Scripted effects inside an event file (1)
- ep3_travel_8000_a
Source: game/common/scripted_effects/00_marriage_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.