Scripted trigger
can_set_relation_soulmate_trigger
can_set_relation_soulmate_trigger = { CHARACTER = … }game/common/scripted_triggers/00_relation_triggers.txt, line 53 (27 lines). Parameters: $CHARACTER$.
can_set_relation_soulmate_trigger is a scripted trigger in Crusader Kings III, written at line 53 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 26 places, among them A Courtly Gift: Defeated (event court.9005), A Never-ending Feast (event party_baron.9003) and At the Service of a … (event legend_spread_events.0050). Patch 1.20.1.2, from game/common/scripted_triggers/00_relation_triggers.txt.
What it checks
- Is an Adult
If
has_sexuality = asexual
Then
- If played by the AI: Never
- Otherwise:
$CHARACTER$ = { is_consort_of = prev }
Otherwise
is_attracted_to_gender_of = $CHARACTER$
NOT = { has_relation_rival = $CHARACTER$ }NOT = { has_relation_nemesis = $CHARACTER$ }$CHARACTER$ = { is_adult = yes is_attracted_to_gender_of = prev num_of_relation_soulmate = 0 }num_of_relation_soulmate = 0
• 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 (27 lines of game script)
can_set_relation_soulmate_trigger = {
is_adult = yes
#Some asexuality handling
trigger_if = {
limit = { has_sexuality = asexual }
trigger_if = {
limit = { is_ai = yes }
always = no
}
trigger_else = {
$CHARACTER$ = { is_consort_of = prev }
}
}
trigger_else = { is_attracted_to_gender_of = $CHARACTER$ }
NOR = {
this = $CHARACTER$
has_relation_rival = $CHARACTER$
has_relation_nemesis = $CHARACTER$
}
$CHARACTER$ = {
is_adult = yes
is_attracted_to_gender_of = prev
num_of_relation_soulmate = 0
}
num_of_relation_soulmate = 0
}As written in game/common/scripted_triggers/00_relation_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls can_set_relation_soulmate_trigger.
Character interactions (1)
- Set Relationship
Events (23)
- A Courtly Gift: Defeated
court.9005 - A Never-ending Feast
party_baron.9003 - At the Service of a …
legend_spread_events.0050 - Could it Be You?
ep2_wedding.1020 - courtier_guest_management.3001
- Encouraging Words
prelude_events.0190
17 more
- Even … Fears Me
intrigue_dread.2001 - Family First
tgp_travel_events.0025 - Inspiration: … of the Mount
fund_inspiration.6512 - Is It Love?
court_outcome.0003 - More Than a Pretty Face
bp1_yearly.9014 - My Lover, My …
ep2_wedding.1330 - My One and Only
lover.0301 - Passionate Interests
relation_upgrade.2003 - Rhythms of the Dark
ep3_wedding.0002 - Romance: Intruder
court_outcome.1101 - Romance: The Wild Hunt
court_outcome.1001 - Shared Conviction
pam_secular_faith_events.0046 - Shimmering, Shining
ep2_wedding_ewan.0021 - Speech! Speech!
ep2_wedding_ewan.0041 - That Cursed Table
ep2_wedding.1060 - The Flower Thief
yearly.9110 - Set Relationship
debug.350
Scripted triggers inside an event file (1)
- lover_0300_potential_soulmate_trigger
Scripted triggers (1)
Source: game/common/scripted_triggers/00_relation_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.