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

Scripted effect

hre_elector_list_save_effect

hre_elector_list_save_effect = yes

game/common/scripted_effects/00_major_decisions_scripted_effects.txt, line 3556 (39 lines). No parameters.

hre_elector_list_save_effect is a scripted effect in Crusader Kings III, written at line 3556 of its file. It takes no parameters: hre_elector_list_save_effect = yes. The game's script calls it in 2 places, among them on_game_start (on action) and hre_assign_dynamic_prince_electors_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_major_decisions_scripted_effects.txt.

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (39 lines of game script)
hre_elector_list_save_effect = {
	ordered_in_global_list = {
		variable = hre_elector_list
		max = 7
		check_range_bounds = yes
		order_by = tier
		save_temporary_scope_as = hre_elector_title
		title:e_hre = {
			if = {
				limit = { NOT = { has_variable = hre_elector_1 } }
				set_variable = { name = hre_elector_1 value = scope:hre_elector_title }
			}
			else_if = {
				limit = { NOT = { has_variable = hre_elector_2 } }
				set_variable = { name = hre_elector_2 value = scope:hre_elector_title }
			}
			else_if = {
				limit = { NOT = { has_variable = hre_elector_3 } }
				set_variable = { name = hre_elector_3 value = scope:hre_elector_title }
			}
			else_if = {
				limit = { NOT = { has_variable = hre_elector_4 } }
				set_variable = { name = hre_elector_4 value = scope:hre_elector_title }
			}
			else_if = {
				limit = { NOT = { has_variable = hre_elector_5 } }
				set_variable = { name = hre_elector_5 value = scope:hre_elector_title }
			}
			else_if = {
				limit = { NOT = { has_variable = hre_elector_6 } }
				set_variable = { name = hre_elector_6 value = scope:hre_elector_title }
			}
			else_if = {
				limit = { NOT = { has_variable = hre_elector_7 } }
				set_variable = { name = hre_elector_7 value = scope:hre_elector_title }
			}
		}
	}
}

As written in game/common/scripted_effects/00_major_decisions_scripted_effects.txt.

Where it is used

Every place in common/, events/ and history/ that calls hre_elector_list_save_effect.

On actions (the game's own hooks) (1)

  • on_game_start

Source: game/common/scripted_effects/00_major_decisions_scripted_effects.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?