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_distribute_kingdoms_to_neighbouring_empires_effect

fp2_struggle_compromise_distribute_kingdoms_to_neighbouring_empires_effect = yes

game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt, line 318 (65 lines). No parameters.

fp2_struggle_compromise_distribute_kingdoms_to_neighbouring_empires_effect is a scripted effect in Crusader Kings III, in the The Fate of Iberia files, written at line 318 of its file. It takes no parameters: fp2_struggle_compromise_distribute_kingdoms_to_neighbouring_empires_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

Distribute remaining Kingdoms to neighboring empires

What it does

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

The script as written (65 lines of game script)
fp2_struggle_compromise_distribute_kingdoms_to_neighbouring_empires_effect = {
	hidden_effect = {
		title:e_spain = {
			every_in_de_jure_hierarchy = {
				limit = { tier = tier_kingdom }
				save_scope_as = kingdom_to_distribute
				random_title_to_title_neighboring_and_across_water_kingdom = {
					limit = { # Prefer land borders
						any_this_title_or_de_jure_above = { is_in_list = new_empire_list }
						any_title_to_title_neighboring_kingdom = { this = scope:kingdom_to_distribute }
					}
					alternative_limit = { # Then sea borders
						any_this_title_or_de_jure_above = { is_in_list = new_empire_list }
					}
					weight = {
						modifier = { # Value one from Iberia for small empire
							add = {
								value = 2
								subtract = {
									value = 0
									every_in_de_jure_hierarchy = {
										add = 0.25
									}
								}
								min = 0
							}
							any_in_de_jure_hierarchy = {
			 					tier = tier_county
								title_province = { geographical_region = world_europe_west_iberia }
							}
						}
						modifier = { # Value smaller empire
							add = {
								value = 2
								subtract = {
									value = 0
									every_in_de_jure_hierarchy = {
										limit = { tier = tier_kingdom }
										add = 0.5
									}
								}
								min = 0
							}
						}
						modifier = { # Value most shared borders
							add = {
								value = 0
								every_in_de_jure_hierarchy = {
									limit = {
										tier = tier_county
										any_neighboring_county = { target_is_de_jure_liege_or_above = scope:kingdom_to_distribute }
									}
									add = 1
								}
								min = 0
							}
						}
					}
					add_to_list = transferred_kingdoms
					scope:kingdom_to_distribute = { set_de_jure_liege_title = prev.de_jure_liege }
				}
			}
		}
	}
}

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_distribute_kingdoms_to_neighbouring_empires_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?