Scripted trigger · Roads to Power files
is_candidate_for_title_trigger
is_candidate_for_title_trigger = { CANDIDATE = … TITLE = … }game/common/scripted_triggers/07_ep3_triggers.txt, line 291 (26 lines). Parameters: $CANDIDATE$, $TITLE$.
is_candidate_for_title_trigger is a scripted trigger in Crusader Kings III, in the Roads to Power files, written at line 291 of its file. A call passes 2 parameters: CANDIDATE and TITLE. The game's script calls it in 5 places, among them Harm Candidacy (interaction), … Appointed... …? (event ep3_governor_yearly.3020) and … Autokrator! (event ep3_governor_yearly.3040). 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 (26 lines of game script)
is_candidate_for_title_trigger = {
$CANDIDATE$ = {
custom_tooltip = {
text = is_candidate_for_title_tt
$TITLE$ = {
OR = {
has_title_law = acclamation_succession_law
has_title_law = appointment_succession_law
holder ?= {
OR = {
has_realm_law = acclamation_succession_law
has_realm_law = appointment_succession_law
}
}
}
holder = {
NOT = { this = $CANDIDATE$ }
}
}
appointment_candidate_score = {
target = $TITLE$
value > 0
}
}
}
}As written in game/common/scripted_triggers/07_ep3_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls is_candidate_for_title_trigger.
Character interactions (1)
Events (4)
- … Appointed... …?
ep3_governor_yearly.3020 - … Autokrator!
ep3_governor_yearly.3040 - ep3_governor_yearly.3021
- Still, the … Fights
ep3_governor_yearly.3010
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.