Scripted trigger
hre_valid_prince_elector_trigger
hre_valid_prince_elector_trigger = yesgame/common/scripted_triggers/00_major_decision_triggers.txt, line 247 (19 lines). No parameters.
hre_valid_prince_elector_trigger is a scripted trigger in Crusader Kings III, written at line 247 of its file. It takes no parameters: hre_valid_prince_elector_trigger = yes (or no). The game's script calls it in 3 places, among them Restore the Holy Roman Empire (decision), hre_assign_dynamic_prince_electors_effect (scripted effect) and hre_potential_prince_electors_value (script value). Patch 1.20.1.2, from game/common/scripted_triggers/00_major_decision_triggers.txt.
What it checks
- Is landed
- Their faith is the same as yours
One of these
All of these
capital_province.kingdom.holder ?= rootcapital_province.empire != title:e_italy
or
capital_province.empire.holder ?= root
None of these
- Any held title:
is_target_in_global_variable_list = { name = hre_elector_list target = this }
- Any held title:
• 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 (19 lines of game script)
hre_valid_prince_elector_trigger = {
is_landed = yes
faith = root.faith
OR = { # must be de-jure vassal of empire
AND = {
capital_province.kingdom.holder ?= root
capital_province.empire != title:e_italy
}
capital_province.empire.holder ?= root
}
NOT = { # not already selected
any_held_title = {
is_target_in_global_variable_list = {
name = hre_elector_list
target = this
}
}
}
}As written in game/common/scripted_triggers/00_major_decision_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls hre_valid_prince_elector_trigger.
Decisions (1)
Scripted effects (1)
Script values (1)
- hre_potential_prince_electors_value
Source: game/common/scripted_triggers/00_major_decision_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.