CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted trigger

hre_valid_prince_elector_trigger

hre_valid_prince_elector_trigger = yes

game/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 ?= root
      • capital_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 }

• 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.

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.

Spotted a mistake on this page?