Scripted trigger
would_attempt_to_seduce_trigger
would_attempt_to_seduce_trigger = { CHARACTER = … }game/common/scripted_triggers/00_adultery_triggers.txt, line 15 (47 lines). Parameters: $CHARACTER$.
would_attempt_to_seduce_trigger is a scripted trigger in Crusader Kings III, written at line 15 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 5 places, among them A Meeting of Houses (event ep2_wedding.3400), Alone in the Dark (event tour_travel.3020) and Moonlit Confessions (event travel_events_oltner_2.1180). Patch 1.20.1.2, from game/common/scripted_triggers/00_adultery_triggers.txt.
What it checks
- Is an Adult
- Age at most 50
If
has_any_scripted_relation = $CHARACTER$
Then
One of these
has_relation_potential_lover = $CHARACTER$or
has_relation_crush = $CHARACTER$
NOT = { is_consort_of = $CHARACTER$ }One of these
is_scheming_against = { target = $CHARACTER$ type = seduce }or
is_scheming_against = { target = $CHARACTER$ type = courting }or
would_attempt_to_seduce_incest_trigger = { CHARACTER = $CHARACTER$ }would_attempt_to_seduce_married_trigger = yes
• 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 (47 lines of game script)
would_attempt_to_seduce_trigger = {
is_adult = yes
age <= 50
# Already interested or not a relation
trigger_if = {
limit = { has_any_scripted_relation = $CHARACTER$ }
OR = {
has_relation_potential_lover = $CHARACTER$
has_relation_crush = $CHARACTER$
}
}
# Not married
NOT = { is_consort_of = $CHARACTER$ }
OR = {
# Pre-existing schemes
is_scheming_against = {
target = $CHARACTER$
type = seduce
}
is_scheming_against = {
target = $CHARACTER$
type = courting
}
AND = {
# Sexuality
is_attracted_to_gender_of = $CHARACTER$
NOR = {
# Proactive
has_trait = chaste
# Undevoted
any_relation = { type = soulmate }
}
# Compatible or attractive
OR = {
trait_compatibility = {
target = $CHARACTER$
value >= low_positive_trait_compatibility
}
$CHARACTER$.attraction >= medium_positive_attraction
}
}
}
# Flouts the laws of decency
would_attempt_to_seduce_incest_trigger = { CHARACTER = $CHARACTER$ }
# Flouts the sanctity of marriage
would_attempt_to_seduce_married_trigger = yes
}As written in game/common/scripted_triggers/00_adultery_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls would_attempt_to_seduce_trigger.
Events (4)
- A Meeting of Houses
ep2_wedding.3400 - Alone in the Dark
tour_travel.3020 - Moonlit Confessions
travel_events_oltner_2.1180 - Nighttime Serenade
travel_events_oltner_2.1210
Scripted triggers inside an event file (1)
- suitably_flirty_knight
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.