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

Scripted trigger

character_gender_can_inherit_from_trigger

character_gender_can_inherit_from_trigger = { CHARACTER = … }

game/common/scripted_triggers/00_law_triggers.txt, line 32 (18 lines). Parameters: $CHARACTER$.

character_gender_can_inherit_from_trigger is a scripted trigger in Crusader Kings III, written at line 32 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 3 places, among them learning_medicine.2020 (event), Scourge (event hold_court.4001) and break_up_mongol_empire_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_triggers/00_law_triggers.txt.

What it checks

  • If

    • $CHARACTER$ = { exists = primary_title }

    Then

    • $CHARACTER$ = { … }

    Otherwise

    • Never

• 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 (18 lines of game script)
character_gender_can_inherit_from_trigger = {
	save_temporary_scope_as = heir

	trigger_if = {
		limit = {
			$CHARACTER$ = { exists = primary_title }
		}
		$CHARACTER$ = {
			character_gender_can_rule_title_trigger = {
				GENDER = scope:heir
				TITLE = primary_title
			}
		}
	}
	trigger_else = {
		always = no
	}
}

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

Where it is used

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

Events (2)

Scripted effects (1)

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?