Scripted trigger
are_characters_sensible_lovers_trigger
are_characters_sensible_lovers_trigger = { INSTIGATING_LOVER = … TARGET_OF_LOVE = … }game/common/scripted_triggers/00_generic_event_sensibility_triggers.txt, line 27 (112 lines). Parameters: $INSTIGATING_LOVER$, $TARGET_OF_LOVE$.
are_characters_sensible_lovers_trigger is a scripted trigger in Crusader Kings III, written at line 27 of its file. A call passes 2 parameters: INSTIGATING_LOVER and TARGET_OF_LOVE. The game's script calls it in 9 places, among them story_adventurer_ai (story cycle), … Brahmacharya Challenged (event pilgrimage.3401) and … The Fishermen of … (event pilgrimage_seasia.500). Patch 1.20.1.2, from game/common/scripted_triggers/00_generic_event_sensibility_triggers.txt.
The comment above it in the file
Would two characters fancy each other somewhat?
What it checks
$INSTIGATING_LOVER$ = { save_temporary_scope_as = instigating_character }$TARGET_OF_LOVE$ = { save_temporary_scope_as = target_of_love }- If any consort:
scope:instigating_character:is_physically_able_adult = yescan_set_relation_lover_trigger = { CHARACTER = scope:target_of_love }is_attracted_to_gender_of = scope:target_of_love- Does not have the Trait: Celibate
NOT = { has_sexuality = asexual }- Does not have the Trait: Beardless Eunuch
- Does not have the Trait: Leper
- Does not have the Trait: Great Pox
- Does not have the Trait: Bubonic Plague
- Does not have the Trait: Smallpox
- Does not have the Trait: Measles
- Does not have the Trait: Holy Fire
- Does not have the Trait: Bloody Flux
- Does not have the Trait: Consumption
- Does not have the Trait: Typhus
- Does not have the Trait: Pneumonia
scope:target_of_love:can_set_relation_lover_trigger = { CHARACTER = scope:instigating_character }is_attracted_to_gender_of = scope:instigating_character- Does not have the Trait: Celibate
NOT = { has_sexuality = asexual }- Does not have the Trait: Beardless Eunuch
- Does not have the Trait: Leper
- Does not have the Trait: Great Pox
- Does not have the Trait: Bubonic Plague
- Does not have the Trait: Smallpox
- Does not have the Trait: Measles
- Does not have the Trait: Holy Fire
- Does not have the Trait: Bloody Flux
- Does not have the Trait: Consumption
- Does not have the Trait: Typhus
- Does not have the Trait: Pneumonia
- Otherwise:
scope:instigating_character:is_physically_able_adult = yesmight_cheat_on_every_partner_trigger = yescan_set_relation_lover_trigger = { CHARACTER = scope:target_of_love }is_attracted_to_gender_of = scope:target_of_love- Does not have the Trait: Chaste
- Does not have the Trait: Celibate
NOT = { has_sexuality = asexual }- Does not have the Trait: Beardless Eunuch
- Does not have the Trait: Leper
- Does not have the Trait: Great Pox
- Does not have the Trait: Bubonic Plague
- Does not have the Trait: Smallpox
- Does not have the Trait: Measles
- Does not have the Trait: Holy Fire
- Does not have the Trait: Bloody Flux
- Does not have the Trait: Consumption
- Does not have the Trait: Typhus
- Does not have the Trait: Pneumonia
age <= scope:target_of_love.age_plus_10age >= scope:target_of_love.age_minus_10trait_compatibility = { target = scope:target_of_love value >= low_positive_trait_compatibility }
scope:target_of_love:might_cheat_on_every_partner_trigger = yescan_set_relation_lover_trigger = { CHARACTER = scope:instigating_character }is_attracted_to_gender_of = scope:instigating_character- Does not have the Trait: Chaste
- Does not have the Trait: Celibate
NOT = { has_sexuality = asexual }- Does not have the Trait: Beardless Eunuch
- Does not have the Trait: Leper
- Does not have the Trait: Great Pox
- Does not have the Trait: Bubonic Plague
- Does not have the Trait: Smallpox
- Does not have the Trait: Measles
- Does not have the Trait: Holy Fire
- Does not have the Trait: Bloody Flux
- Does not have the Trait: Consumption
- Does not have the Trait: Typhus
- Does not have the Trait: Pneumonia
accepts_incest_with_each_other_trigger = { CHARACTER_1 = scope:instigating_character CHARACTER_2 = scope:target_of_love }
• 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 (112 lines of game script)
are_characters_sensible_lovers_trigger = {
$INSTIGATING_LOVER$ = { save_temporary_scope_as = instigating_character }
$TARGET_OF_LOVE$ = { save_temporary_scope_as = target_of_love }
trigger_if = {
limit = {
any_consort = { this = scope:target_of_love }
}
scope:instigating_character = {
this != scope:target_of_love
is_physically_able_adult = yes
can_set_relation_lover_trigger = { CHARACTER = scope:target_of_love }
is_attracted_to_gender_of = scope:target_of_love
NOR = {
has_trait = celibate
has_sexuality = asexual
has_trait = beardless_eunuch
has_trait = leper
has_trait = great_pox
has_trait = bubonic_plague
has_trait = smallpox
has_trait = measles
has_trait = ergotism
has_trait = dysentery
has_trait = consumption
has_trait = typhus
has_trait = pneumonic
}
}
scope:target_of_love = {
this != scope:instigating_character
can_set_relation_lover_trigger = { CHARACTER = scope:instigating_character }
is_attracted_to_gender_of = scope:instigating_character
NOR = {
has_trait = celibate
has_sexuality = asexual
has_trait = beardless_eunuch
has_trait = leper
has_trait = great_pox
has_trait = bubonic_plague
has_trait = smallpox
has_trait = measles
has_trait = ergotism
has_trait = dysentery
has_trait = consumption
has_trait = typhus
has_trait = pneumonic
}
}
}
trigger_else = {
scope:instigating_character = {
this != scope:target_of_love
is_physically_able_adult = yes
might_cheat_on_every_partner_trigger = yes
can_set_relation_lover_trigger = { CHARACTER = scope:target_of_love }
is_attracted_to_gender_of = scope:target_of_love
NOR = {
has_trait = chaste
has_trait = celibate
has_sexuality = asexual
has_trait = beardless_eunuch
has_trait = leper
has_trait = great_pox
has_trait = bubonic_plague
has_trait = smallpox
has_trait = measles
has_trait = ergotism
has_trait = dysentery
has_trait = consumption
has_trait = typhus
has_trait = pneumonic
}
# These three only need to be checked on one char
age <= scope:target_of_love.age_plus_10
age >= scope:target_of_love.age_minus_10
trait_compatibility = {
target = scope:target_of_love
value >= low_positive_trait_compatibility
}
}
scope:target_of_love = {
this != scope:instigating_character
might_cheat_on_every_partner_trigger = yes
can_set_relation_lover_trigger = { CHARACTER = scope:instigating_character }
is_attracted_to_gender_of = scope:instigating_character
NOR = {
has_trait = chaste
has_trait = celibate
has_sexuality = asexual
has_trait = beardless_eunuch
has_trait = leper
has_trait = great_pox
has_trait = bubonic_plague
has_trait = smallpox
has_trait = measles
has_trait = ergotism
has_trait = dysentery
has_trait = consumption
has_trait = typhus
has_trait = pneumonic
}
}
accepts_incest_with_each_other_trigger = {
CHARACTER_1 = scope:instigating_character
CHARACTER_2 = scope:target_of_love
}
}
}As written in game/common/scripted_triggers/00_generic_event_sensibility_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls are_characters_sensible_lovers_trigger.
Story cycles (1)
- story_adventurer_ai
Events (5)
- … Brahmacharya Challenged
pilgrimage.3401 - … The Fishermen of …
pilgrimage_seasia.500 - courtier_guest_management.3001
- Religious Study: A Second Pair of Hands
study_scripture_outcome.1040 - Shared Conviction
pam_secular_faith_events.0046
Scripted triggers inside an event file (2)
- pam_sf_carnal_partner_valid_trigger
- suitable_pool_marriage_trigger
Scripted triggers (1)
Source: game/common/scripted_triggers/00_generic_event_sensibility_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.