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

Scripted effect

resolve_danelaw_partition_effect

resolve_danelaw_partition_effect = yes

game/common/scripted_effects/00_decisions_effects.txt, line 2724 (99 lines). No parameters.

resolve_danelaw_partition_effect is a scripted effect in Crusader Kings III, written at line 2724 of its file. It takes no parameters: resolve_danelaw_partition_effect = yes. The game's script calls it in 4 places, among them A United … (event british_isles.1051), A United … (event british_isles.1052) and A United … (event british_isles.1053). Its body carries 2 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_decisions_effects.txt.

What it does

  • All De Jure parts of the Danelaw are Drifted into England
  • If

    • scope:partition_winner = title:k_danelaw

    Then

    • If a check the game hides passes: the same again (1 line)

      Else if

      • NOT = { title:k_england.holder = scope:victor }

      Then

    • England:
      • If

        Then

        • England will use the Danelaw Coat-of-Arms
        • England: The coat of arms changes
        • add_title_law = scandinavian_elective_succession_law
      • copy_title_history = title:k_danelaw
      • set_capital_county = title:c_north_riding
    • Danelaw Title is destroyed
    • Danelaw:
      • All Claimants:
        • remove_claim = title:k_danelaw
        • add_unpressed_claim = title:k_england
  • If

    • scope:partition_winner = title:k_england

    Then

• 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 (99 lines of game script)
resolve_danelaw_partition_effect = {
	# Drift all k_danelaw cores into England.
	custom_tooltip = resolve_danelaw_partition_effect.adjust_de_jures.tt
	hidden_effect = {
		title:k_danelaw = {
			every_in_de_jure_hierarchy = {
				limit = { tier = tier_duchy }
				set_de_jure_liege_title = title:k_england
			}
		}
	}
	# If k_danelaw is victorious, take care of various bits'n'pieces.
	if = {
		limit = { scope:partition_winner = title:k_danelaw }
		# If appropriate, create k_england.
		if = {
			limit = {
				NOT = { exists = title:k_england.holder }
			}
			create_title_and_vassal_change = {
				type = created
				save_scope_as = title_change
			}
			title:k_england = {
				change_title_holder = {
					holder = scope:victor
					change = scope:title_change
				}
			}
			resolve_title_and_vassal_change = scope:title_change
		}
		# Else usurp k_england.
		else_if = {
			limit = {
				NOT = { title:k_england.holder = scope:victor }
			}
			create_title_and_vassal_change = {
				type = usurped
				save_scope_as = title_change
				add_claim_on_loss = yes
			}
			title:k_england = {
				change_title_holder = {
					holder = scope:victor
					change = scope:title_change
				}
			}
			resolve_title_and_vassal_change = scope:title_change
		}
		# Sundry cosmetic changes.
		title:k_england = {
			if = { # Only do Scandinavian things for Scandinavians
				limit = {
					holder.culture = { has_cultural_pillar = heritage_north_germanic }
				}
				# Set k_england's CoA to k_danelaw's.
				custom_tooltip = resolve_danelaw_partition_effect.coa_changed.tt
				title:k_england = { set_coa = title:k_danelaw }
				# Give k_england the appropriate succession law.
				add_title_law = scandinavian_elective_succession_law
			}
			# Use k_danelaw's title history, as they won the cold war.
			copy_title_history = title:k_danelaw
			# And make York the de jure capital.
			set_capital_county = title:c_north_riding
		}
		# Remove k_danelaw.
		destroy_title = title:k_danelaw
		# All claims on k_danelaw become claims on k_england.
		title:k_danelaw = {
			every_claimant = {
				custom = resolve_danelaw_partition_effect.all_claimants
				remove_claim = title:k_danelaw
				add_unpressed_claim = title:k_england
			}
		}
		# Finally, mark that this has happened for HKotNS purposes.
		set_global_variable = {
			name = danelaw_became_england
			value = yes
		}
	}
	# If k_england is victorious, we also have a few little things to do.
	if = {
		limit = { scope:partition_winner = title:k_england }
		# If it still exists, destroy k_danelaw.
		if = {
			limit = { exists = title:k_danelaw.holder }
			destroy_title = title:k_danelaw
		}
		# All claims on k_danelaw are removed.
		title:k_danelaw = {
			every_claimant = {
				custom = resolve_danelaw_partition_effect.all_claimants
				remove_claim = title:k_danelaw
			}
		}
	}
}

As written in game/common/scripted_effects/00_decisions_effects.txt.

Where it is used

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

Events (4)

Source: game/common/scripted_effects/00_decisions_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?