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 Northern Lords files

secure_high_kingdom_north_sea_scripted_effect

In the game: You get a Strong Hook (Loyalty) on Powerful Vassals

secure_high_kingdom_north_sea_scripted_effect = yes

game/common/scripted_effects/01_dlc_fp1_scripted_effects.txt, line 5 (274 lines). No parameters.

secure_high_kingdom_north_sea_scripted_effect is a scripted effect in Crusader Kings III, in the The Northern Lords files, written at line 5 of its file. It takes no parameters: secure_high_kingdom_north_sea_scripted_effect = yes. The game's script calls it in 4 places, among them Secure the High Kingdom of the North Sea (decision), The High … of the North (event fp1_major_decisions.0001) and The High … of the North (event fp1_major_decisions.0002). Its body carries 2 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/01_dlc_fp1_scripted_effects.txt.

What it does

• 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 (120 lines of game script)
secure_high_kingdom_north_sea_scripted_effect = {
	scope:founder = {
		dynasty = { add_dynasty_prestige = monumental_dynasty_prestige_gain }
		#Standard effects.
		##Adjust the de jure capital appropriately first up, since otherwise we won't be able to see your preferred title.
		hidden_effect = {
			#If it's Denmark, we do nothing, as Denmark has the capital & CoA by default.
			#If it's England, we make the capital London/York.
			if = {
				limit = { primary_title = title:k_england }
				title:e_north_sea = {
					set_capital_county = title:k_england.title_capital_county
				}
			}
			#If it's Norway, we make the capital Steinkjer.
			if = {
				limit = { primary_title = title:k_norway }
				title:e_north_sea = {
					set_capital_county = title:c_trandheim.title_capital_county
				}
			}
		}
		##Hand over the High Kingdom.
		create_title_and_vassal_change = {
			type = created
			save_scope_as = title_change
			add_claim_on_loss = no
		}
		title:e_north_sea = {
			change_title_holder = {
				holder = scope:founder
				change = scope:title_change
			}
		}
		resolve_title_and_vassal_change = scope:title_change
		##Configure the new de jure setup.
		title:k_england = { set_de_jure_liege_title = title:e_north_sea }
		title:k_denmark = { set_de_jure_liege_title = title:e_north_sea }
		title:k_norway = { set_de_jure_liege_title = title:e_north_sea }
		if = {
			limit = {
				title:k_daneland = { is_titular = no }
				OR = {
					has_title = title:k_daneland
					completely_controls = title:k_daneland
				}
			}
			title:k_daneland = { set_de_jure_liege_title = title:e_north_sea }
		}
		if = {
			limit = {
				title:k_frisia = { is_titular = no }
				OR = {
					has_title = title:k_frisia
					completely_controls = title:k_frisia
				}
			}
			title:k_frisia = { set_de_jure_liege_title = title:e_north_sea }
		}
		if = {
			limit = {
				title:d_flanders = { is_titular = no }
				title:d_normandy = { is_titular = no }
				OR = {
					has_title = title:d_flanders
					completely_controls = title:d_flanders
				}
				OR = {
					has_title = title:d_normandy
					completely_controls = title:d_normandy
				}
			}
			custom_tooltip = secure_high_kingdom_neustria
			hidden_effect = {
				save_scope_as = founder
				create_dynamic_title = {
					tier = kingdom
					name = NEUSTRIA
				}
				create_title_and_vassal_change = {
					type = created
					save_scope_as = change
					add_claim_on_loss = no
				}
				
				scope:new_title = {
					change_title_holder = {
						holder = root
						change = scope:change
					}
				}
				
				resolve_title_and_vassal_change = scope:change
				title:d_flanders = { set_de_jure_liege_title = scope:new_title }
				title:d_normandy = { set_de_jure_liege_title = scope:new_title }
				scope:new_title = { 
					set_de_jure_liege_title = title:e_north_sea 
					set_coa = title:c_guines
					set_color_from_title = title:d_normandy
					set_capital_county = title:d_normandy.title_capital_county
				}
			}
		}
		if = {
			limit = {
				title:k_brittany = { is_titular = no }
				OR = {
					has_title = title:k_brittany
					completely_controls = title:k_brittany
				}
			}
			title:k_brittany = { set_de_jure_liege_title = title:e_north_sea }
		}
		if = {
			limit = {
				title:k_scotland = { is_titular = no }
				OR = {
					has_title = title:k_scotland
					completely_controls = title:k_scotland
				}

As written in game/common/scripted_effects/01_dlc_fp1_scripted_effects.txt.

The first 120 of its 274 lines; the rest is in game/common/scripted_effects/01_dlc_fp1_scripted_effects.txt from line 5.

Where it is used

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

Events (3)

Source: game/common/scripted_effects/01_dlc_fp1_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?