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

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)

17 more

Scripted triggers inside an event file (1)

  • lover_0300_potential_soulmate_trigger

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.

Spotted a mistake on this page?