create_artifact_armor_deathbrand_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	# Not really used, but if we don't set the scopes we get errors in the feature selection
	set_artifact_rarity_famed = yes


	# Create the artifact
	create_artifact = {
		name = "Deathbrand's Armor"
		description = "The enchanted Stalhrim armor of the legendary pirate Haknir Death-Brand. After his death it would be hidden across Solstheim as Death-Brand considered none fit to succeed him."
		type = armor_brigandine
		visuals = deathbrand_armor_visual
		wealth = scope:wealth
		quality = scope:quality
		rarity = famed
		decaying = no
		template = general_unique_template
		modifier = deathbrand_armor_modifier
		save_scope_as = deathbrand_armor
	}

	scope:deathbrand_armor = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = {
			name = artifact_succession_title
			value = title:d_ghost_fleet
		}
		save_scope_as = epic
		save_scope_value_as = {
			name = armor
			value = yes
		}
	}
}
create_artifact_helmet_deathbrand_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	# Not really used, but if we don't set the scopes we get errors in the feature selection
	set_artifact_rarity_famed = yes


	# Create the artifact
	create_artifact = {
		name = "Deathbrand's Helmet"
		description = "The enchanted Stalhrim helmet of the legendary pirate Haknir Death-Brand. After his death it would be hidden across Solstheim as Death-Brand considered none fit to succeed him."
		type = helmet
		visuals = deathbrand_helmet_visual
		wealth = scope:wealth
		quality = scope:quality
		rarity = famed
		decaying = no
		template = general_unique_template
		modifier = deathbrand_helmet_modifier
		save_scope_as = deathbrand_helmet
	}

	scope:deathbrand_helmet = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = {
			name = artifact_succession_title
			value = title:d_ghost_fleet
		}
		save_scope_as = epic
		save_scope_value_as = {
			name = armor
			value = yes
		}
	}
}
create_artifact_swords_deathbrand_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	# Not really used, but if we don't set the scopes we get errors in the feature selection
	set_artifact_rarity_famed = yes


	# Create the artifact
	create_artifact = {
		name = "Deathbrand's Swords"
		description = "The twin enchanted scimitars of legendary pirate Haknir Death-Brand, Bloodscythe and Soulrender."
		type = sword
		visuals = deathbrand_swords_visual
		wealth = scope:wealth
		quality = scope:quality
		rarity = famed
		decaying = no
		template = general_unique_template
		modifier = deathbrand_swords_modifier
		save_scope_as = deathbrand_swords
	}

	scope:deathbrand_swords = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = {
			name = artifact_succession_title
			value = title:d_ghost_fleet
		}
		set_variable = { name = arcana_modifier value = 3 }
		save_scope_as = epic
		save_scope_value_as = {
			name = armor
			value = yes
		}
	}
}