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

Scripted trigger · Silk and Silver files

is_heirless_and_close_to_trigger

is_heirless_and_close_to_trigger = { OTHER = … }

game/common/scripted_triggers/gdp_merchant_triggers.txt, line 1162 (23 lines). Parameters: $OTHER$.

is_heirless_and_close_to_trigger is a scripted trigger in Crusader Kings III, in the Silk and Silver files, written at line 1162 of its file. A call passes 1 parameter: OTHER. The game's script calls it in 2 places, among them Merge Company (interaction) and gdp_merge_company_effect (scripted effect). Patch 1.21.0, from game/common/scripted_triggers/gdp_merchant_triggers.txt.

What it checks

  • One of these

    • is_spouse_of = $OTHER$
    • or

      Not: Can have children
    • or

      All of these

      • Is at least 50 years old
      • None of these

      • One of these

        • is_close_family_of = $OTHER$
        • or

          has_relation_friend = $OTHER$
        • or

          has_relation_lover = $OTHER$

• 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 (23 lines of game script)
is_heirless_and_close_to_trigger = {
	OR = {
		is_spouse_of = $OTHER$
		can_have_children = no
		AND = {
			age >= 50
			NOR = {
				trigger_if = {
					limit = { matrilinear_marriage = yes }
					has_trait = pregnant
				}
				trigger_else = {
					any_spouse = { has_trait = pregnant }
				}	
			}
			OR = {
				is_close_family_of = $OTHER$
				has_relation_friend = $OTHER$
				has_relation_lover = $OTHER$
			}
		}
	}
}

As written in game/common/scripted_triggers/gdp_merchant_triggers.txt.

Where it is used

Every place in common/, events/ and history/ that calls is_heirless_and_close_to_trigger.

Character interactions (1)

Scripted effects (1)

Source: game/common/scripted_triggers/gdp_merchant_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.

Spotted a mistake on this page, or have an idea for the site?