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

Scripted effect

form_carolingian_empire_scripted_effect

form_carolingian_empire_scripted_effect = yes

game/common/scripted_effects/00_major_decisions_scripted_effects.txt, line 1471 (91 lines). No parameters.

form_carolingian_empire_scripted_effect is a scripted effect in Crusader Kings III, written at line 1471 of its file. It takes no parameters: form_carolingian_empire_scripted_effect = yes. The game's script calls it in 2 places, among them Restore Carolingian Borders (decision) and Charlemagne's Dream (event middle_europe_decisions.0005). Patch 1.20.1.2, from game/common/scripted_effects/00_major_decisions_scripted_effects.txt.

What it does

  • Gain +350 Prestige
  • If does NOT have the Primogeniture Law: Adopts the Primogeniture Law
  • If

    a check the game hides

    Then

    • Holy Roman Empire Title is destroyed
    • scope:scoped_emperor:
      • Gain -350 Prestige
      • Opinion: Pretender
  • Every culture global:
    • Where: Their Culture has the Frankish Cultural Pillar
    • If

      • NOT = { has_innovation = innovation_knighthood }

      Then

      • add_innovation = innovation_knighthood
    • If

      • NOT = { has_innovation = innovation_royal_prerogative }

      Then

      • add_innovation = innovation_royal_prerogative
    • If

      • NOT = { has_innovation = innovation_heraldry }

      Then

      • add_innovation = innovation_heraldry

• 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 (91 lines of game script)
form_carolingian_empire_scripted_effect = {
	save_scope_as = scoped_ruler
	title:e_hre.holder ?= { save_scope_as = scoped_emperor }
	#De jure shifts.
	hidden_effect = {
		title:k_france = { set_de_jure_liege_title = title:e_france }
		title:k_burgundy = { set_de_jure_liege_title = title:e_france }
		title:k_aquitaine = { set_de_jure_liege_title = title:e_france }
		title:k_brittany = { set_de_jure_liege_title = title:e_france }
		title:k_frisia = { set_de_jure_liege_title = title:e_france }
		title:k_lotharingia = { set_de_jure_liege_title = title:e_france }
		title:k_bavaria = { set_de_jure_liege_title = title:e_france }
		title:k_east_francia = { set_de_jure_liege_title = title:e_france }
		title:k_italy = { set_de_jure_liege_title = title:e_france }
		title:k_navarra = { set_de_jure_liege_title = title:e_france }
		title:k_aragon = { set_de_jure_liege_title = title:e_france }
		if = {
			limit = {
				OR = {
					#exists = title:k_austria.holder
					title:k_austria = { is_titular = yes }
					title:e_hre = {
						any_in_de_jure_hierarchy = {
							continue = { tier >= tier_kingdom }
							this = title:k_austria
						}
					}
				}
			}
			title:k_austria = { set_de_jure_liege_title = title:e_france }
		}
		if = {
			limit = {
				OR = {
					#exists = title:k_switzerland.holder
					title:k_switzerland = { is_titular = yes }
					title:e_hre = {
						any_in_de_jure_hierarchy = {
							continue = { tier >= tier_kingdom }
							this = title:k_switzerland
						}
					}
				}
			}
			title:k_switzerland = { set_de_jure_liege_title = title:e_france }
		}
	}
	# Prestige
	add_prestige = major_prestige_gain
	# Law
	if = {
		limit = {
			NOT = { has_realm_law = single_heir_succession_law }
		}
		add_realm_law_skip_effects = single_heir_succession_law
	}
	# HRE goes bye-bye
	if = {
		limit = { exists = scope:scoped_emperor }
		destroy_title = title:e_hre
		scope:scoped_emperor ?= {
			add_prestige = major_prestige_loss
			add_opinion = {
				target = scope:scoped_ruler
				modifier = pretender_opinion
			}
		}
	}
	# Innovations
	every_culture_global = {
		limit = { has_cultural_pillar = heritage_frankish }
		if = {
			limit = {
				NOT = { has_innovation = innovation_knighthood }
			}
			add_innovation = innovation_knighthood
		}
		if = {
			limit = {
				NOT = { has_innovation = innovation_royal_prerogative }
			}
			add_innovation = innovation_royal_prerogative
		}
		if = {
			limit = {
				NOT = { has_innovation = innovation_heraldry }
			}
			add_innovation = innovation_heraldry
		}
	}
}

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

Events (1)

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?