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

Scripted effect · The Fate of Iberia files

fp2_struggle_compromise_create_new_kingdom_effect

fp2_struggle_compromise_create_new_kingdom_effect = { FETCH = … TYPE = … }

game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt, line 155 (30 lines). Parameters: $FETCH$, $TYPE$.

fp2_struggle_compromise_create_new_kingdom_effect is a scripted effect in Crusader Kings III, in the The Fate of Iberia files, written at line 155 of its file. A call passes 2 parameters: FETCH and TYPE. The game's script calls it in 1 place, among them fp2_struggle_compromise_duchies_to_kingdoms_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt.

The comment above it in the file

Creates a new de jure kingdom from a duchy

What it does

  • create_dynamic_title = { tier = kingdom name = $TYPE$_CREATED_TITLE_NAME }
  • scope:old_title:
    • If

      • title_capital_county = de_jure_liege.title_capital_county
      • holder != de_jure_liege.holder

      Then

      • Their de jure liege:
        • set_capital_county = this.holder.capital_county
        • The coat of arms changes
    • set_de_jure_liege_title = scope:new_title
  • scope:new_title:
    • The coat of arms changes
    • set_color_from_title = $FETCH$
    • set_capital_county = $FETCH$.title_capital_county
    • Becomes de jure part of Hispania

• 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 (30 lines of game script)
fp2_struggle_compromise_create_new_kingdom_effect = {
	add_to_list = duchy_kingdom
	create_dynamic_title = {
		tier = kingdom
		name = $TYPE$_CREATED_TITLE_NAME
	}
	scope:old_title = {
		# Edge case for kingdoms which do not control their own capital duchy
		if = {
			limit = {
				title_capital_county = de_jure_liege.title_capital_county
				exists = de_jure_liege.holder
				holder != de_jure_liege.holder
			}
			de_jure_liege = {
				# So kingdom has a capital
				set_capital_county = this.holder.capital_county
				# So titles do not share CoAs
				set_coa = this.holder.house
			}
		}
		set_de_jure_liege_title = scope:new_title
	}
	scope:new_title = {
		set_coa = $FETCH$
		set_color_from_title = $FETCH$
		set_capital_county = $FETCH$.title_capital_county
		set_de_jure_liege_title = title:e_spain
	}
}

As written in game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt.

Where it is used

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

Source: game/common/scripted_effects/03_dlc_fp2_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?