Scripted trigger
can_have_single_heir_succession_law_trigger
can_have_single_heir_succession_law_trigger = yesgame/common/scripted_triggers/00_law_triggers.txt, line 346 (66 lines). No parameters.
can_have_single_heir_succession_law_trigger is a scripted trigger in Crusader Kings III, written at line 346 of its file. It takes no parameters: can_have_single_heir_succession_law_trigger = yes (or no). The game's script calls it in 3 places, among them Great Holy War (casus belli), Primogeniture (law) and can_keep_single_heir_succession_law_trigger (scripted trigger). Its body carries 3 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
If
One of these
- Government allows: merit
or
Government is Sōryō
Then
- One of these: Your Culture has the Primogeniture Innovation · You are an Independent Ruler · You are the Ceremonial Monarch
Otherwise
- Their culture:
has_innovation = innovation_primogeniture
If
a check the game hides
Then
- You must have the Feudal, Clan, Administrative, Celestial, Meritocratic, or Sōryō Government
- If they has administrative government mechanic:
Otherwise
- Is an Independent Ruler
• 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 (66 lines of game script)
can_have_single_heir_succession_law_trigger = {
trigger_if = { # Celestial/Meritocratic/Soryo
limit = {
OR = {
government_allows = merit
government_has_flag = government_is_japan_feudal
}
}
custom_tooltip = { # You are independent, have the innovation or are Ceremonial Monarch
text = can_have_single_heir_succession_law_trigger_merit_or_japan_tt
OR = {
is_independent_ruler = yes
culture = {
has_innovation = innovation_primogeniture
}
tgp_has_ceremonial_liege_title_trigger = yes
}
}
}
trigger_else_if = {
limit = { tgp_realm_has_ceremonial_liege_trigger = yes }
tgp_has_ceremonial_liege_title_trigger = yes
}
trigger_else = {
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
tgp_has_ceremonial_liege_title_trigger = yes
}
}
}
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_allows = merit
government_has_flag = government_is_japan_feudal
tgp_has_ceremonial_liege_title_trigger = yes
}
}
}
# Admin rules
trigger_if = {
limit = { government_has_mechanic = administrative }
trigger_if = {
limit = { tgp_realm_has_ceremonial_liege_trigger = yes }
tgp_has_ceremonial_liege_title_trigger = yes
}
trigger_else = { 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_succession_law_trigger.
Casus belli (1)
Laws (1)
Scripted triggers (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.