Scripted trigger
valid_co_monarch_candidate_trigger
valid_co_monarch_candidate_trigger = { LIEGE = … }game/common/scripted_triggers/00_diarchy_scripted_triggers.txt, line 490 (41 lines). Parameters: $LIEGE$.
valid_co_monarch_candidate_trigger is a scripted trigger in Crusader Kings III, written at line 490 of its file. A call passes 1 parameter: LIEGE. The game's script calls it in 3 places, among them Elevate Co-Monarch (interaction), Grant Co-Monarch status (important action) and sort_co_monarch_candidates_to_list_effect (scripted effect). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/00_diarchy_scripted_triggers.txt.
What it checks
- Is an Adult
is_child_of = $LIEGE$- Is not imprisoned
- If is not a ruler:
is_courtier_of = $LIEGE$
- Otherwise:
is_vassal_of = $LIEGE$
- … is a … and not eligible for inheritance under your current Succession Laws
- Their government is not unplayable
- Their government is not a Theocratic-type Government
- Their government is not Adventurer
• 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 (41 lines of game script)
valid_co_monarch_candidate_trigger = {
is_adult = yes
is_child_of = $LIEGE$
is_imprisoned = no
trigger_if = {
limit = { is_ruler = no }
is_courtier_of = $LIEGE$
}
trigger_else = { is_vassal_of = $LIEGE$ }
# Gender restrictions.
custom_tooltip = {
text = valid_co_monarch_candidate_trigger.tt.gender_wrong_for_co_rule
OR = {
AND = {
is_female = yes
$LIEGE$ = {
OR = {
has_realm_law = female_only_law
has_realm_law = female_preference_law
}
}
}
AND = {
is_male = yes
$LIEGE$ = {
OR = {
has_realm_law = male_only_law
has_realm_law = male_preference_law
}
}
}
$LIEGE$ = { has_realm_law = equal_law }
}
}
# Prevent weird governments from taking place.
NOR = {
government_has_flag = government_is_republic
government_has_flag = government_is_theocracy
government_has_flag = government_is_landless_adventurer
}
}As written in game/common/scripted_triggers/00_diarchy_scripted_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls valid_co_monarch_candidate_trigger.
Character interactions (1)
Important actions (1)
- Grant Co-Monarch status
Scripted effects (1)
Source: game/common/scripted_triggers/00_diarchy_scripted_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.