Scripted trigger
eligible_for_affairs_trigger
eligible_for_affairs_trigger = yesgame/common/scripted_triggers/00_romance_and_seduction_triggers.txt, line 670 (19 lines). No parameters.
eligible_for_affairs_trigger is a scripted trigger in Crusader Kings III, written at line 670 of its file. It takes no parameters: eligible_for_affairs_trigger = yes (or no). No file of common/, events/ or history/ calls it. Patch 1.20.1.2, from game/common/scripted_triggers/00_romance_and_seduction_triggers.txt.
The comment above it in the file
Can this character ever have an affair? Counts both inability and whether sex outside marriage is counted as religiously problematic for them.
What it checks
None of these
- Has the Trait: Celibate
One of these
accepts_adultery_without_penalty_trigger = yesor
trait_is_shunned_or_criminal_in_rite_trigger = { TRAIT = trait:adulterer RITE = root.rite GENDER_CHARACTER = root }or
trait_is_shunned_or_criminal_in_rite_trigger = { TRAIT = trait:fornicator RITE = root.rite GENDER_CHARACTER = root }
• 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 (19 lines of game script)
eligible_for_affairs_trigger = {
NOR = {
has_trait = celibate
#Technically (and, historically, frequently) eunuchs can still have affairs, they just aren't able to impregnate.
OR = {
accepts_adultery_without_penalty_trigger = yes
trait_is_shunned_or_criminal_in_rite_trigger = {
TRAIT = trait:adulterer
RITE = root.rite
GENDER_CHARACTER = root
}
trait_is_shunned_or_criminal_in_rite_trigger = {
TRAIT = trait:fornicator
RITE = root.rite
GENDER_CHARACTER = root
}
}
}
}As written in game/common/scripted_triggers/00_romance_and_seduction_triggers.txt.
Where it is used
No file of common/, events/ or history/ calls it.
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.