Scripted trigger · Khans of the Steppe files
has_chaotic_succession_trigger_action
has_chaotic_succession_trigger_action = yesgame/common/scripted_triggers/mpo_scripted_triggers.txt, line 1607 (81 lines). No parameters.
has_chaotic_succession_trigger_action is a scripted trigger in Crusader Kings III, in the Khans of the Steppe files, written at line 1607 of its file. It takes no parameters: has_chaotic_succession_trigger_action = yes (or no). The game's script calls it in 2 places, among them has_chaotic_succession_trigger (scripted trigger) and is_kurultai_succession_chaotic (scripted rules). Its body carries 7 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/mpo_scripted_triggers.txt.
What it checks
One of these
If
- Any held title: Has “chaotic succession protection” (a variable the game's script sets)
Then
- The ruling Dynasty's recent manifestation as Greatest of Khans protects them from Disobedient Kurultais during Succession
If
- Their primary title:
has_title_law = confederation_elective_succession_law
Then
- The Confederation Elective Law protects them from Disobedient Kurultais during Succession
- Their primary title:
• 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 (81 lines of game script)
has_chaotic_succession_trigger_action = { # Used in both Rules and Important Action
save_temporary_scope_as = root_scope
OR = {
trigger_if = {
limit = {
exists = scope:subregion
}
custom_tooltip = {
text = chaotic_succession_havsarsan_zud
scope:subregion ?= {
sub_region_current_phase = situation_steppe_havsarsan_zud_season
}
}
}
trigger_if = {
limit = {
mpo_current_disobedient_kurultai_value >= 1
}
custom_tooltip = {
text = chaotic_succession_disobedient_kurultai
always = yes
}
}
trigger_else = {
custom_tooltip = {
text = chaotic_succession_disobedient_kurultai_none
always = no
}
}
trigger_if = {
limit = {
OR = {
NOT = { exists = cp:councillor_kurultai_1 }
NOT = { exists = cp:councillor_kurultai_2 }
NOT = { exists = cp:councillor_kurultai_3 }
NOT = { exists = cp:councillor_kurultai_4 }
}
}
custom_tooltip = {
text = is_kurultai_succession_chaotic_empty_kurultai
always = yes
}
}
trigger_else = {
custom_tooltip = {
text = is_kurultai_succession_chaotic_empty_kurultai_none
always = no
}
}
}
trigger_if = {
limit = {
any_held_title = {
has_variable = chaotic_succession_protection
}
}
custom_tooltip = {
text = chaotic_succession_protection_tt
NOT = {
any_held_title = {
has_variable = chaotic_succession_protection
}
}
}
}
trigger_if = {
limit = {
primary_title ?= {
has_title_law = confederation_elective_succession_law
}
}
custom_tooltip = {
text = chaotic_succession_protection_title_law_tt
NOT = {
primary_title ?= {
has_title_law = confederation_elective_succession_law
}
}
}
}
}As written in game/common/scripted_triggers/mpo_scripted_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls has_chaotic_succession_trigger_action.
Scripted triggers (1)
Scripted rules (1)
- is_kurultai_succession_chaotic
Source: game/common/scripted_triggers/mpo_scripted_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.