Scripted trigger · Roads to Power files
any_valid_candidacy_trigger
any_valid_candidacy_trigger = { CANDIDATE = … TOP_LIEGE = … }game/common/scripted_triggers/07_ep3_triggers.txt, line 242 (48 lines). Parameters: $CANDIDATE$, $TOP_LIEGE$.
any_valid_candidacy_trigger is a scripted trigger in Crusader Kings III, in the Roads to Power files, written at line 242 of its file. A call passes 2 parameters: CANDIDATE and TOP_LIEGE. No file of common/, events/ or history/ calls it. Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/07_ep3_triggers.txt.
What it checks
Every line of it is script with no tooltip text: the script is below.
The script as written (48 lines of game script)
any_valid_candidacy_trigger = {
$CANDIDATE$ = {
custom_tooltip = {
text = any_valid_candidacy_tt
trigger_if = {
limit = {
$TOP_LIEGE$ = {
OR = {
has_realm_law_flag = appointment_type_succession
primary_title = {
has_title_law_flag = appointment_type_succession
}
}
}
appointment_candidate_score = {
target = $TOP_LIEGE$.primary_title
value > 0
}
}
always = yes
}
trigger_else = {
$TOP_LIEGE$.primary_title ?= {
any_in_de_jure_hierarchy = {
exists = holder
tier >= tier_duchy
OR = {
has_title_law_flag = appointment_type_succession
holder = {
has_realm_law_flag = appointment_type_succession
}
}
save_temporary_scope_as = title_temp
trigger_if = {
limit = { exists = scope:title_temp }
$CANDIDATE$ = {
appointment_candidate_score = {
target = scope:title_temp
value > 0
}
}
}
}
}
}
}
}
}As written in game/common/scripted_triggers/07_ep3_triggers.txt.
Where it is used
No file of common/, events/ or history/ calls it.
Source: game/common/scripted_triggers/07_ep3_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.