Scripted trigger
parent_for_elective_succession_trigger
parent_for_elective_succession_trigger = yesgame/common/scripted_triggers/00_elective_triggers.txt, line 111 (46 lines). No parameters.
parent_for_elective_succession_trigger is a scripted trigger in Crusader Kings III, written at line 111 of its file. It takes no parameters: parent_for_elective_succession_trigger = yes (or no). The game's script calls it in 1 place, among them feudal_elective_potential_landless_dynastic_candidate_trigger (scripted trigger). Patch 1.20.1.2, from game/common/scripted_triggers/00_elective_triggers.txt.
What it checks
dynasty = scope:holder.dynastyis_child_of = scope:holderOne of these
is_female = noor
scope:title:NOT = { has_title_law = male_only_law }
One of these
is_female = yesor
scope:title:NOT = { has_title_law = female_only_law }
One of these
All of these
- Is available (a ruler)
has_unelectable_government_trigger = no
or
None of these
- Any heir title › Their holder:
One of these
scope:holder:Not all of these
exists = faith.religious_headthis = faith.religious_head
or
Their faith is the same as that of holder
has_unelectable_trait_trigger = nohas_unelectable_government_trigger = no
• 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 (46 lines of game script)
parent_for_elective_succession_trigger = { #This trigger is used to prevent grandchildren from being selectable when their parent is still available as a candidate.
this != scope:holder #Not the current ruler.
dynasty = scope:holder.dynasty
is_child_of = scope:holder
OR = {
is_female = no
scope:title = {
NOT = { has_title_law = male_only_law }
}
}
OR = {
is_female = yes
scope:title = {
NOT = { has_title_law = female_only_law }
}
}
OR = { #Candidate should not be a landless Courtier that is about to inherit a Theocracy or Republic
AND = {
is_available_quick = {
ruler = yes
advanced_ruler = yes
}
has_unelectable_government_trigger = no
}
NOT = {
any_heir_title = {
holder ?= {
has_unelectable_government_trigger = yes
}
}
}
}
OR = { #If the title controls the faith, candidates must be of the same faith.
scope:holder = {
NAND = {
exists = faith.religious_head
this = faith.religious_head
}
}
faith = scope:holder.faith
}
has_unelectable_trait_trigger = no
has_unelectable_government_trigger = no
}As written in game/common/scripted_triggers/00_elective_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls parent_for_elective_succession_trigger.
Scripted triggers (1)
Source: game/common/scripted_triggers/00_elective_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.