Scripted trigger
exposed_cheating_on_spouse_trigger
exposed_cheating_on_spouse_trigger = { SPOUSE = … }game/common/scripted_triggers/00_adultery_triggers.txt, line 2 (12 lines). Parameters: $SPOUSE$.
exposed_cheating_on_spouse_trigger is a scripted trigger in Crusader Kings III, written at line 2 of its file. A call passes 1 parameter: SPOUSE. The game's script calls it in 16 places, among them Execute (interaction), Imprison (interaction) and Negotiate Release (interaction). Patch 1.20.1.2, from game/common/scripted_triggers/00_adultery_triggers.txt.
The comment above it in the file
This character is publicly known for cheating on the SPOUSE
What it checks
One of these
reverse_has_opinion_modifier = { modifier = unfaithful_spouse_exposed_opinion target = $SPOUSE$ }or
All of these
- Has “std from unfaithfulness against” (a variable the game's script sets)
- Std from unfaithfulness against is $SPOUSE$
• 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 (12 lines of game script)
exposed_cheating_on_spouse_trigger = { #Is a publicly known cheater against spouse
OR = {
reverse_has_opinion_modifier = {
modifier = unfaithful_spouse_exposed_opinion
target = $SPOUSE$
}
AND = {
has_variable = std_from_unfaithfulness_against
var:std_from_unfaithfulness_against = $SPOUSE$
}
}
}As written in game/common/scripted_triggers/00_adultery_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls exposed_cheating_on_spouse_trigger.
Character interactions (5)
Events (4)
Scripted effects (2)
Scripted triggers (4)
Scripted modifiers (AI weights) (1)
- divorce_character_ai_accept_modifier
Source: game/common/scripted_triggers/00_adultery_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.