CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

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

• 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)

Scripted triggers inside an event file (2)

  • pam_sf_carnal_partner_valid_trigger
  • suitable_pool_marriage_trigger

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.

Spotted a mistake on this page?