Scripted effect
less_verbose_divorce_effect
less_verbose_divorce_effect = { DIVORCEE = … DIVORCER = … }game/common/scripted_effects/00_marriage_interaction_effects.txt, line 1172 (49 lines). Parameters: $DIVORCEE$, $DIVORCER$.
less_verbose_divorce_effect is a scripted effect in Crusader Kings III, written at line 1172 of its file. A call passes 2 parameters: DIVORCEE and DIVORCER. The game's script calls it in 3 places, among them child_leaves_effect (local effect), grant_cardinal_title_effect (scripted effect) and pam_the_christian_church_saeculum_obscurum_end_clergy_divorce_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_marriage_interaction_effects.txt.
What it does
$DIVORCER$ = { … }If
$DIVORCER$ = { has_relation_lover = $DIVORCEE$ }
Then
lover_breakup_effect = { BREAKER = $DIVORCER$ LOVER = $DIVORCEE$ }
• 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 (49 lines of game script)
less_verbose_divorce_effect = {
$DIVORCER$ = {
if = {
limit = {
any_spouse = {
this = $DIVORCEE$
}
}
divorce = $DIVORCEE$
}
hidden_effect = {
reverse_add_opinion = {
modifier = divorced_me_opinion
target = $DIVORCEE$
}
}
}
hidden_effect = {
# Opinion hit
$DIVORCEE$ = {
every_close_or_extended_family_member = {
limit = { NOT = { this = $DIVORCER$ } } # don't hate yourself just because of some incest
custom = all_family_members
add_opinion = {
modifier = divorced_close_kin
target = $DIVORCER$
}
}
}
if = {
limit = {
$DIVORCER$ = {
any_relation = { type = wedding_very_bad_fertility this = $DIVORCEE$ }
}
}
$DIVORCER$ = { remove_relation_wedding_very_bad_fertility = $DIVORCEE$ }
}
}
if = {
limit = { $DIVORCER$ = { has_relation_lover = $DIVORCEE$ } }
lover_breakup_effect = {
BREAKER = $DIVORCER$
LOVER = $DIVORCEE$
}
}
}As written in game/common/scripted_effects/00_marriage_interaction_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls less_verbose_divorce_effect.
Scripted effects inside an event file (1)
- child_leaves_effect
Source: game/common/scripted_effects/00_marriage_interaction_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.