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_have_single_heir_youngest_succession_law_trigger

can_have_single_heir_youngest_succession_law_trigger = yes

game/common/scripted_triggers/00_law_triggers.txt, line 426 (36 lines). No parameters.

can_have_single_heir_youngest_succession_law_trigger is a scripted trigger in Crusader Kings III, written at line 426 of its file. It takes no parameters: can_have_single_heir_youngest_succession_law_trigger = yes (or no). The game's script calls it in 2 places, among them Ultimogeniture (law) and can_keep_single_heir_youngest_succession_law_trigger (scripted trigger). Its body carries 2 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/00_law_triggers.txt.

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 (36 lines of game script)
can_have_single_heir_youngest_succession_law_trigger = {
	culture = {
		has_innovation = innovation_primogeniture
	}
	# Non-tribals only
	trigger_if = { # We split the tooltip into two, to make sure we don't show admin unless you actually have it
		limit = {
			has_ep3_dlc_trigger = yes
		}
		custom_tooltip = {
			text = must_be_feudal_clan_or_admin
			OR = {
				government_has_flag = government_is_feudal
				government_has_flag = government_is_clan
				government_has_mechanic = administrative
				government_has_flag = government_is_japan_feudal
			}
		}
	}
	trigger_else = {
		custom_description = {
			text = succession_laws_must_have_organised_government_tooltip
			OR = {
				government_has_flag = government_is_feudal
				government_has_flag = government_is_clan
				government_has_flag = government_is_japan_feudal
			}
		}
	}
	trigger_if = {
		limit = {
			government_has_mechanic = administrative
		}
		is_independent_ruler = yes
	}
}

As written in game/common/scripted_triggers/00_law_triggers.txt.

Where it is used

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

Source: game/common/scripted_triggers/00_law_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?