Scripted trigger
can_designate_heir_trigger
can_designate_heir_trigger = yesgame/common/scripted_triggers/00_legal_triggers.txt, line 150 (22 lines). No parameters.
can_designate_heir_trigger is a scripted trigger in Crusader Kings III, written at line 150 of its file. It takes no parameters: can_designate_heir_trigger = yes (or no). The game's script calls it in 2 places, among them Designate Heir (interaction) and can_designate_heir (scripted rules). Patch 1.20.1.2, from game/common/scripted_triggers/00_legal_triggers.txt.
The comment above it in the file
Can this character assign a dedicated heir? Check if a character can assign some designated heir, but not if the heir is a valid candidate. root: Character that will assign an heir
What it checks
Every line of it is script with no tooltip text: the script is below.
The script as written (22 lines of game script)
can_designate_heir_trigger = {
trigger_if = {
# Admin always has access to this
limit = { government_has_mechanic = administrative }
}
trigger_else_if = {
# Feudal and clan can get this by increasing crown authority
limit = { has_realm_law_in_group = crown_authority }
custom_description = {
text = "has_crown_authority_designate_heir"
has_realm_law_flag = can_designate_heirs
}
}
trigger_else = {
# Everyone else also needs a law to gain access to this interaction
custom_description = {
text = "has_law_allowing_designate_heir"
has_realm_law_flag = can_designate_heirs
}
}
}As written in game/common/scripted_triggers/00_legal_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls can_designate_heir_trigger.
Character interactions (1)
Scripted rules (1)
- can_designate_heir
Source: game/common/scripted_triggers/00_legal_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.