Scripted trigger · Khans of the Steppe files
mpo_valid_dead_husband_trigger
mpo_valid_dead_husband_trigger = yesgame/common/scripted_triggers/mpo_scripted_triggers.txt, line 660 (34 lines). No parameters.
mpo_valid_dead_husband_trigger is a scripted trigger in Crusader Kings III, in the Khans of the Steppe files, written at line 660 of its file. It takes no parameters: mpo_valid_dead_husband_trigger = yes (or no). The game's script calls it in 1 place, among them mpo_nomad_events.1090 (event). Patch 1.20.1.2, from game/common/scripted_triggers/mpo_scripted_triggers.txt.
What it checks
- Government is Nomadic
- Is married
is_male = yes- Their spouse:
- If a ruler:
One of these
NOT = { exists = primary_heir }or
Their heir: Is played by the AIor
Their heir:
• 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 (34 lines of game script)
mpo_valid_dead_husband_trigger = {
government_has_flag = government_is_nomadic
is_married = yes
is_male = yes
primary_spouse = {
is_adult = yes
NOR = {
is_imprisoned = yes
has_contagious_deadly_disease_trigger = yes
has_trait = incapable
is_ruler = yes
has_trait = celibate
has_trait = devoted
}
save_temporary_scope_as = widow
}
trigger_if = {
limit = {
is_ruler = yes
}
OR = {
NOT = {
exists = primary_heir
}
primary_heir = {
is_ai = yes
}
primary_heir = {
mpo_valid_widow_marrier_trigger = yes
}
}
}
}As written in game/common/scripted_triggers/mpo_scripted_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls mpo_valid_dead_husband_trigger.
Events (1)
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.