Scripted trigger
dislikes_partner_cheating_trigger
dislikes_partner_cheating_trigger = { PARTNER = … }game/common/scripted_triggers/00_romance_and_seduction_triggers.txt, line 587 (41 lines). Parameters: $PARTNER$.
dislikes_partner_cheating_trigger is a scripted trigger in Crusader Kings III, written at line 587 of its file. A call passes 1 parameter: PARTNER. The game's script calls it in 1 place, among them potential_lifestyle_friend_availability_trigger (scripted trigger). Patch 1.20.1.2, from game/common/scripted_triggers/00_romance_and_seduction_triggers.txt.
What it checks
If
One of these
has_relation_lover = $PARTNER$or
is_consort_of = $PARTNER$
Then
$PARTNER$ = { save_temporary_scope_as = cheating_trigger_partner }One of these
All of these
has_relation_soulmate = $PARTNER$accepts_adultery_without_penalty_trigger = no
or
All of these
is_consort_of = $PARTNER$trait_is_shunned_or_criminal_in_rite_trigger = { TRAIT = trait:adulterer RITE = scope:cheating_trigger_root.rite GENDER_CHARACTER = scope:cheating_trigger_partner }
or
Opinion of $PARTNER$ at least 60
Not all of these
sexually_liberal_trigger = yesNOT = { has_relation_soulmate = $PARTNER$ }
Otherwise
- Never
• 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 (41 lines of game script)
dislikes_partner_cheating_trigger = {
trigger_if = {
limit = {
OR = {
has_relation_lover = $PARTNER$
is_consort_of = $PARTNER$
}
}
$PARTNER$ = { save_temporary_scope_as = cheating_trigger_partner }
save_temporary_scope_as = cheating_trigger_root
OR = {
AND = {
has_relation_soulmate = $PARTNER$ # Soulmates are exclusive
accepts_adultery_without_penalty_trigger = no
}
AND = { # Feels slighted
is_consort_of = $PARTNER$
trait_is_shunned_or_criminal_in_rite_trigger = {
TRAIT = trait:adulterer
RITE = scope:cheating_trigger_root.rite
GENDER_CHARACTER = scope:cheating_trigger_partner
}
OR = {
ai_honor >= 0
ai_zeal >= 0
has_trait = arrogant
ai_vengefulness <= 0
}
}
opinion = { # Loves partner
target = $PARTNER$
value >= high_positive_opinion
}
}
NAND = { # Sexually liberal characters don't mind, unless you're exclusive
sexually_liberal_trigger = yes
NOT = { has_relation_soulmate = $PARTNER$ }
}
}
trigger_else = { always = no } # Partner isn't my partner, so I don't care
}As written in game/common/scripted_triggers/00_romance_and_seduction_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls dislikes_partner_cheating_trigger.
Scripted triggers (1)
Source: game/common/scripted_triggers/00_romance_and_seduction_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.