Scripted effect
lover_breakup_effect
lover_breakup_effect = { BREAKER = … LOVER = … }game/common/scripted_effects/00_lover_effects.txt, line 106 (43 lines). Parameters: $BREAKER$, $LOVER$.
lover_breakup_effect is a scripted effect in Crusader Kings III, written at line 106 of its file. A call passes 2 parameters: BREAKER and LOVER. The game's script calls it in 5 places, among them Break Up With Lover (interaction), Dismiss Concubine (interaction) and divorce_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_lover_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (43 lines of game script)
lover_breakup_effect = {
$BREAKER$ = {
save_scope_as = breaker
}
$LOVER$ = {
save_scope_as = lover
}
show_as_tooltip = {
$BREAKER$ = {
remove_lover_or_soulmate_relation_effect = { CHARACTER = $LOVER$ }
}
$LOVER$ = {
add_opinion = {
target = $BREAKER$
modifier = lover_breakup_opinion
}
}
}
hidden_effect = {
$LOVER$ = {
if = {
limit = {
is_consort_of = $BREAKER$
}
trigger_event = lover.0202 #Spouse breakup
}
else_if = {
limit = {
opinion = {
target = $BREAKER$
value > 0
}
}
trigger_event = lover.0201 #Normal
}
else = {
trigger_event = lover.0203 #Relieved
}
}
}
}As written in game/common/scripted_effects/00_lover_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls lover_breakup_effect.
Character interactions (2)
Scripted effects (3)
Source: game/common/scripted_effects/00_lover_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.