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

Scripted effect · Silk and Silver files

gdp_hre_elector_loss_warning_effect

gdp_hre_elector_loss_warning_effect = yes

game/common/scripted_effects/gdp_republic_effects.txt, line 3527 (28 lines). No parameters.

gdp_hre_elector_loss_warning_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 3527 of its file. It takes no parameters: gdp_hre_elector_loss_warning_effect = yes. The game's script calls it in 1 place, among them gdp_found_a_republic_effect (scripted effect). Its body carries 1 text of the game's own for the player. Patch 1.21.0, from game/common/scripted_effects/gdp_republic_effects.txt.

What it does

  • If

    • Holy Roman Empire: Any elector:
    • Any held title:
      • Title tier more than County
      • is_target_in_global_variable_list = { name = hre_elector_list target = this }
    • None of these

      • Any held title:
        • Title tier exactly County
        • is_target_in_global_variable_list = { name = hre_elector_list target = this }

    Then

• 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 (28 lines of game script)
gdp_hre_elector_loss_warning_effect = {
	if = {
		limit = {
			save_temporary_scope_as = elector_temp
			title:e_hre = {
				exists = holder
				any_elector = { this = scope:elector_temp }
			}
			any_held_title = {
				tier > tier_county
				is_target_in_global_variable_list = {
					name = hre_elector_list
					target = this
				}
			}
			NOT = {
				any_held_title = {
					tier = tier_county
					is_target_in_global_variable_list = {
						name = hre_elector_list
						target = this
					}
				}
			}
		}
		custom_tooltip = gdp_adopt_republic_government_decision_hre_warning_tt
	}
}

As written in game/common/scripted_effects/gdp_republic_effects.txt.

Where it is used

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

Scripted effects (1)

Source: game/common/scripted_effects/gdp_republic_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.

Spotted a mistake on this page, or have an idea for the site?