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_duchies_to_kingdoms_effect

fp2_struggle_compromise_duchies_to_kingdoms_effect = yes

game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt, line 187 (51 lines). No parameters.

fp2_struggle_compromise_duchies_to_kingdoms_effect is a scripted effect in Crusader Kings III, in the The Fate of Iberia files, written at line 187 of its file. It takes no parameters: fp2_struggle_compromise_duchies_to_kingdoms_effect = yes. The game's script calls it in 1 place, among them Status Quo (event fp2_struggle.0901). Patch 1.20.1.2, from game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt.

The comment above it in the file

Create new de jure kingdoms from relevant duchies

What it does

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

The script as written (51 lines of game script)
fp2_struggle_compromise_duchies_to_kingdoms_effect = {
	hidden_effect = {
		title:d_zaragoza = { add_to_list = titular_iberian_duchies }
		title:e_spain = {
			# Cycle through de jure duchies held by independent dukes
			every_in_de_jure_hierarchy = {
				# Prefer primary titles
				limit = {
					this = this.holder.primary_title
					fp2_struggle_ending_compromise_independent_duchy_trigger = yes
				}
				# Then capital titles
				alternative_limit = {
					this.title_capital_county = this.kingdom.title_capital_county
					fp2_struggle_ending_compromise_independent_duchy_trigger = yes
				}
				alternative_limit = { fp2_struggle_ending_compromise_independent_duchy_trigger = yes }
				save_scope_as = old_title
				fp2_struggle_compromise_create_new_kingdom_effect = { TYPE = NEW FETCH = scope:old_title }
			}
			# Cycle through titular duchies held by independent dukes (e.g. Zaragoza)
			every_in_list = {
				list = titular_iberian_duchies
				save_scope_as = special_duchy
				if = {
					# Independent holder who controls at least 50% a de jure duchy, and no kingdom has the same as that duchy
					limit = { fp2_struggle_ending_compromise_titular_trigger = yes }
					title:e_spain = {
						random_in_de_jure_hierarchy = {
							limit = {
								tier = tier_duchy
								any_direct_de_jure_vassal_title = {
									percent >= 0.5
									holder.top_liege = scope:special_duchy.holder
								}
							}
							save_scope_as = old_title
						}
					}
					fp2_struggle_compromise_create_new_kingdom_effect = { TYPE = SPECIAL FETCH = scope:special_duchy }
				}
			}
			# Cycle through uncreated de jure duchies to split if needed (e.g. Coimbra)
			every_in_de_jure_hierarchy = {
				limit = { fp2_struggle_ending_compromise_split_duchy_trigger = yes }
			    save_scope_as = old_title
				fp2_struggle_compromise_create_new_kingdom_effect = { TYPE = NEW FETCH = scope:old_title }
			}
		}
	}
}

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

Events (1)

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?