﻿create_artifact_blackfyre_sword_effect = {
 	$OWNER$ = {
 		save_scope_as = owner
 	}
 	set_artifact_rarity_illustrious = yes
 	create_artifact = {
 		name = vs_blackfyre_name
 		visuals = vs_blackfyre_visuals
 		description = vs_blackfyre_description
 		type = sword
 		wealth = scope:wealth
 		quality = scope:quality
 		template = vs_blackfyre_template
 		history = {
 			type = created
 			date = 7852.1.1
 			recipient = character:Targaryen_13
 		}
 		modifier = vs_blackfyre_modifier
 		save_scope_as = newly_created_artifact
 		decaying = no
 	}
 	scope:newly_created_artifact = {
 		equip_artifact_to_owner = yes
		set_variable = {
			name = valyrian_steel
			value = yes
		}
		set_variable = {
			name = blackfyre_artifact
			value = yes
		}
		set_variable = {
			name = historical_unique_artifact
			value = yes
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 7900.1.1
			RECIPIENT = character:Targaryen_14
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 7930.1.1
			RECIPIENT = character:Targaryen_16
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 7935.1.1
			RECIPIENT = character:Targaryen_19
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 7950.1.1
			RECIPIENT = character:Targaryen_20
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 7955.1.1
			RECIPIENT = character:Targaryen_22
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 7959.1.1
			RECIPIENT = character:Targaryen_23
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 7963.1.1
			RECIPIENT = character:Targaryen_24
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 7971.1.1
			RECIPIENT = character:Targaryen_26
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 7996.1.1
			RECIPIENT = character:Targaryen_27
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8037.9.9
			RECIPIENT = character:Targaryen_31
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8037.9.10
			RECIPIENT = character:Targaryen_30
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8037.9.17
			RECIPIENT = character:Targaryen_31
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8048.3.6
			RECIPIENT = character:Targaryen_32
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8048.3.7
			RECIPIENT = character:Targaryen_35
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8103.1.1
			RECIPIENT = character:Targaryen_60
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8129.3.3
			RECIPIENT = character:Targaryen_65
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8130.12.1
			RECIPIENT = character:Broome_18
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8130.12.2
			RECIPIENT = character:Targaryen_65
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8131.1.8
			RECIPIENT = character:Targaryen_78
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8157.1.1
			RECIPIENT = character:Targaryen_81
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8161.6.9
			RECIPIENT = character:Targaryen_82
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8171.1.1
			RECIPIENT = character:Targaryen_79
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8172.1.1
			RECIPIENT = character:Targaryen_88
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8182.1.1
			RECIPIENT = character:Targaryen_94
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8196.6.1
			RECIPIENT = character:Blackfyre_2
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8196.6.2
			RECIPIENT = character:Targaryen_95
		}
 	}
 }
create_artifact_vs_dark_sister_effect = {
 	$OWNER$ = {
 		save_scope_as = owner
 	}
 	set_artifact_rarity_illustrious = yes
 	create_artifact = {
 		name = vs_dark_sister_name
 		visuals = vs_dark_sister_visuals
 		description = vs_dark_sister_description
 		type = sword
 		wealth = scope:wealth
 		quality = scope:quality
 		template = vs_dark_sister_template
 		history = {
 			type = created
 			recipient = character:Targaryen_rs_1
 		}
 		modifier = vs_dark_sister_modifier
 		save_scope_as = newly_created_artifact
 		decaying = no
 	}
 	scope:newly_created_artifact = {
 		equip_artifact_to_owner = yes
 		set_variable = {
 			name = valyrian_steel
 			value = yes
 		}
 		set_variable = {
 			name = dark_sister_artifact
 			value = yes
 		}
 		set_variable = {
 			name = historical_unique_artifact
 			value = yes
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 7900.1.1
 			recipient = character:Targaryen_15
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 7930.1.1
 			recipient = character:Targaryen_17
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 7950.1.1
 			recipient = character:Targaryen_21
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 7955.1.1
 			recipient = character:Targaryen_24
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 7971.1.1
 			recipient = character:Targaryen_26
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 7996.1.1
 			recipient = character:Targaryen_28
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8044.7.1
 			recipient = character:Targaryen_31
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8048.3.7
 			recipient = character:Targaryen_35
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8103.1.1
 			recipient = character:Targaryen_46
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8101.9.1
 			recipient = character:Targaryen_61
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8130.5.22
 			recipient = character:Targaryen_78
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8157.1.1
 			recipient = character:Targaryen_81
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8161.6.9
 			recipient = character:Targaryen_89
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8178.6.1
 			recipient = character:Targaryen_96
 		}
 	}
 }

create_artifact_oblivion_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = oblivion_name
		description = oblivion_description
		type = sword
		visuals = oblivion_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = oblivion_sword_template
		history = {
			type = created_before_history
		}
		modifier = oblivion_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
 		set_variable = {
 			name = valyrian_steel
 			value = yes
 		}
 		set_variable = {
 			name = historical_unique_artifact
 			value = yes
 		}		
	}
}

create_artifact_truth_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = truth_name
		description = truth_description
		type = sword
		visuals = truth_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = oblivion_template
		history = {
			type = created_before_history
		}
		modifier = oblivion_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
 		set_variable = {
 			name = valyrian_steel
 			value = yes
 		}
 		set_variable = {
 			name = historical_unique_artifact
 			value = yes
 		}		
	}
}

create_blackscales_sword_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = blackscales_name
		description = blackscales_description
		type = sword
		visuals = blackscale_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = oblivion_template
		history = {
			type = created_before_history
		}
		modifier = oblivion_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		equip_artifact_to_owner = yes
 		set_variable = {
 			name = valyrian_steel
 			value = yes
 		}
 		set_variable = {
 			name = historical_unique_artifact
 			value = yes
 		}		
	}
}

create_scales_sword_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = scales_name
		description = scales_description
		type = sword
		visuals = scales_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = oblivion_template
 		history = {
 			type = created
 			date = 7846.1.1
 			recipient = character:Scales_6
			location = province:4435
 		}
		modifier = oblivion_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		equip_artifact_to_owner = yes
 		set_variable = {
 			name = valyrian_steel
 			value = yes
 		}
 		set_variable = {
 			name = historical_unique_artifact
 			value = yes
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 7875.1.1
 			recipient = character:Scales_7
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 7900.1.1
 			recipient = character:Scales_23
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 7925.1.1
 			recipient = character:Scales_9
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 7950.1.1
 			recipient = character:Scales_10
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8000.1.1
 			recipient = character:Scales_11
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8016.1.1
 			recipient = character:Scales_12
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8026.1.1
 			recipient = character:Scales_13
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8051.1.1
 			recipient = character:Scales_14
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8077.1.1
 			recipient = character:Scales_15
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8102.1.1
 			recipient = character:Scales_16
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8124.1.1
 			recipient = character:Scales_17
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8149.1.1
 			recipient = character:Scales_18
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8200.1.1
 			recipient = character:Scales_19
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8218.1.1
 			recipient = character:Scales_4
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8233.1.1
 			recipient = character:Scales_3
 		}		
	}
}

create_truedrake_sword_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = truedrake_sword_name
		description = truedrake_sword_description
		type = sword
		visuals = truedrake_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = oblivion_template
		history = {
			type = created_before_history
		}
		modifier = oblivion_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
 		set_variable = {
 			name = valyrian_steel
 			value = yes
 		}
 		set_variable = {
 			name = historical_unique_artifact
 			value = yes
 		}		
	}
}

create_truefyre_sword_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = truefyre_sword_name
		description = truefyre_sword_description
		type = sword
		visuals = truefyre_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = oblivion_template
		history = {
			type = created_before_history
		}
		modifier = oblivion_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
 		set_variable = {
 			name = valyrian_steel
 			value = yes
 		}
 		set_variable = {
 			name = historical_unique_artifact
 			value = yes
 		}		
	}
}

create_longwaters_sword_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = longwaters_sword_name
		description = longwaters_sword_description
		type = sword
		visuals = longwaters_big_sword_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = oblivion_template
 		history = {
 			type = created
 			date = 8212.1.1
 			recipient = character:Longwaters_1
			location = province:4419
 		}
		modifier = oblivion_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
 		set_variable = {
 			name = valyrian_steel
 			value = yes
 		}
 		set_variable = {
 			name = historical_unique_artifact
 			value = yes
 		}
		add_artifact_history = {
 			type = inherited
 			date = 8239.1.1
 			recipient = character:Longwaters_7
 		}		
	}
}

create_kingspyre_sword_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = kingspyre_sword_name
		description = kingspyre_sword_description
		type = sword
		visuals = kingspyre_sword_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = oblivion_template
 		history = {
 			type = created
 			date = 7971.1.1
 			recipient = character:Qoherys_1
			location = province:1934
 		}
		modifier = oblivion_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
 		set_variable = {
 			name = valyrian_steel
 			value = yes
 		}
 		set_variable = {
 			name = historical_unique_artifact
 			value = yes
 		}
		add_artifact_history = {
 			type = inherited
 			date = 7975.1.1
 			recipient = character:Qoherys_2
 		}
		add_artifact_history = {
 			type = inherited
 			date = 7980.1.1
 			recipient = character:Qoherys_3
 		}
		add_artifact_history = {
 			type = inherited
 			date = 8002.1.1
 			recipient = character:Qoherys_4
 		}
	}
}

create_Pyraeris_sword_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = Pyraeris_sword_name
		description = Pyraeris_sword_description
		type = sword
		visuals = Pyraeris_sword_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = oblivion_template
		history = {
			type = created_before_history
		}
		modifier = oblivion_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
 		set_variable = {
 			name = valyrian_steel
 			value = yes
 		}
 		set_variable = {
 			name = historical_unique_artifact
 			value = yes
 		}		
	}
}

create_brightfyre_sword_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = brightfyre_sword_name
		description = brightfyre_sword_description
		type = sword
		visuals = brightfyre_sword_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = oblivion_template
		history = {
			type = created_before_history
		}
		modifier = oblivion_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
 		set_variable = {
 			name = valyrian_steel
 			value = yes
 		}
 		set_variable = {
 			name = historical_unique_artifact
 			value = yes
 		}		
	}
}

create_wildyfre_sword_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = wildyfre_sword_name
		description = wildyfre_sword_description
		type = sword
		visuals = wildyfre_sword_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = oblivion_template
		history = {
			type = created_before_history
		}
		modifier = oblivion_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
 		set_variable = {
 			name = valyrian_steel
 			value = yes
 		}
 		set_variable = {
 			name = historical_unique_artifact
 			value = yes
 		}		
	}
}

create_wildfyre_sword2_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = wildfyre_sword2_name
		description = wildfyre_sword2_description
		type = sword
		visuals = wildfyre_sword2_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = oblivion_template
		history = {
			type = created_before_history
		}
		modifier = oblivion_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
 		set_variable = {
 			name = valyrian_steel
 			value = yes
 		}
 		set_variable = {
 			name = historical_unique_artifact
 			value = yes
 		}		
	}
}

create_wildborn_axe_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = wildborn_axe_name
		description = wildborn_axe_description
		type = axe
		visuals = wildborn_axe_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = oblivion_template
		history = {
			type = created_before_history
		}
		modifier = oblivion_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
 		set_variable = {
 			name = valyrian_steel
 			value = yes
 		}
 		set_variable = {
 			name = historical_unique_artifact
 			value = yes
 		}		
	}
}

###Armors####

create_artifact_drace_armor_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = drace_armor_name
		description = drace_armor_description
		type = armor_plate
		visuals = drace_armor_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = drace_armour_template
		history = {
			type = created_before_history
		}
		modifier = drace_armor_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
	}
}

create_artifact_varezys_armor_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = varezys_armor_name
		description = varezys_armor_description
		type = armor_plate
		visuals = varezys_armor_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = valyrian_armour_template
		history = {
			type = created_before_history
		}
		modifier = drace_armor_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
	}
}

create_artifact_celtigar_armor_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = celtigar_armor_name
		description = celtigar_armor_description
		type = armor_plate
		visuals = celtigar_armor_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = valyrian_armour_template
		history = {
			type = created
			date = 7848.1.1
			recipient = character:Celtigar_8
			location = province:4436
		}
		modifier = drace_armor_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		equip_artifact_to_owner = yes
		set_variable = {
			name = historical_unique_artifact
			value = yes
		}
		set_variable = {
			name = artifact_succession_title
			value = title:d_claw_isle
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 7883.1.1
			RECIPIENT = character:Celtigar_9
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 7900.1.1
			RECIPIENT = character:Celtigar_10
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 7957.1.1
			RECIPIENT = character:Celtigar_11
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 7968.1.1
			RECIPIENT = character:Celtigar_13
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 7980.1.1
			RECIPIENT = character:Celtigar_15
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8006.1.1
			RECIPIENT = character:Celtigar_16
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8017.1.1
			RECIPIENT = character:Celtigar_18
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8059.2.1
			RECIPIENT = character:Celtigar_19
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8059.2.4
			RECIPIENT = character:Celtigar_22
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8087.1.1
			RECIPIENT = character:Celtigar_23
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8114.1.1
			RECIPIENT = character:Celtigar_24
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8130.5.22
			RECIPIENT = character:Celtigar_26
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8167.1.1
			RECIPIENT = character:Celtigar_43
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8187.1.1
			RECIPIENT = character:Celtigar_45
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8188.1.1
			RECIPIENT = character:Celtigar_48
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8248.1.1
			RECIPIENT = character:Celtigar_50
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8280.1.1
			RECIPIENT = character:Celtigar_2
		}
	}
}

create_artifact_velaryon_armor_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = velaryon_armor_name
		description = velaryon_armor_description
		type = armor_plate
		visuals = velaryon_armor_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = valyrian_armour_template
		history = {
			type = created
			date = 7844.1.1
			recipient = character:Velaryon_6
			location = province:4419
		}
		modifier = drace_armor_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		equip_artifact_to_owner = yes
		set_variable = {
			name = historical_unique_artifact
			value = yes
		}
		set_variable = {
			name = artifact_succession_title
			value = title:d_driftmark
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 7912.1.1
			RECIPIENT = character:Velaryon_8
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 7941.1.1
			RECIPIENT = character:Velaryon_9
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 7968.1.1
			RECIPIENT = character:Velaryon_10
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 7990.1.1
			RECIPIENT = character:Velaryon_11
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 7998.5.9
			RECIPIENT = character:Velaryon_13
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8035.1.1
			RECIPIENT = character:Velaryon_20
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8086.1.1
			RECIPIENT = character:Velaryon_31
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8132.1.8
			RECIPIENT = character:Velaryon_44
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8175.1.1
			RECIPIENT = character:Velaryon_52
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8197.1.1
			RECIPIENT = character:Velaryon_54
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8235.1.1
			RECIPIENT = character:Velaryon_56
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8258.1.1
			RECIPIENT = character:Velaryon_57
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8271.1.1
			RECIPIENT = character:Velaryon_1
		}
	}
}

create_artifact_blackfyre_armor_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = blackfyre_armor_name
		description = blackfyre_armor_description
		type = armor_plate
		visuals = blackfyre_armor_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = valyrian_armour_template
 		history = {
 			type = created
 			date = 8182.1.1
 			recipient = character:Targaryen_94
 		}
		modifier = drace_armor_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8196.6.1
			RECIPIENT = character:Blackfyre_2
		}
		agot_add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8196.6.2
			RECIPIENT = character:Targaryen_95
		}
		add_artifact_history = {
			ARTIFACT = this
			TYPE = inherited
			DATE = 8196.6.5
			RECIPIENT = character:Blackfyre_14
		}
	}
}

create_artifact_stark_targaryen_armor_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = stark_targaryen_armor_name
		description = stark_targaryen_armor_description
		type = armor_plate
		visuals = stark_targaryen_armor_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = valyrian_armour_template
		history = {
			type = created_before_history
		}
		modifier = drace_armor_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
	}
}

create_artifact_saerys_armor_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = saerys_armor_name
		description = saerys_armor_description
		type = armor_plate
		visuals = saerys_armor_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = valyrian_armour_template
		history = {
			type = created_before_history
		}
		modifier = drace_armor_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
	}
}

create_artifact_saerystos_armor_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = saerystos_armor_name
		description = saerystos_armor_description
		type = armor_plate
		visuals = saerystos_armor_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = valyrian_armour_template
		history = {
			type = created_before_history
		}
		modifier = drace_armor_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
	}
}

create_artifact_saerynar_armor_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = saerynar_armor_name
		description = saerynar_armor_description
		type = armor_plate
		visuals = saerynar_armor_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = valyrian_armour_template
		history = {
			type = created_before_history
		}
		modifier = drace_armor_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
	}
}

create_artifact_goldfyre_armor_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = goldfyre_armor_name
		description = goldfyre_description
		type = armor_plate
		visuals = goldfyre_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = valyrian_armour_template
		history = {
			type = created_before_history
		}
		modifier = drace_armor_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
	}
}

create_artifact_targaryen_armor_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = targaryen_armor_name
		description = targaryen_description
		type = armor_plate
		visuals = targaryen_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = valyrian_armour_template
		history = {
			type = created_before_history
		}
		modifier = drace_armor_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
	}
}

create_artifact_scales_armor_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = scales_armor_name
		description = scales_armor_description
		type = armor_plate
		visuals = scales_armor_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = valyrian_armour_template
 		history = {
 			type = created
 			date = 7846.1.1
 			recipient = character:Scales_6
			location = province:4435
 		}
		modifier = drace_armor_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		equip_artifact_to_owner = yes
		set_variable = { name = historical_unique_artifact value = yes }
		add_artifact_history = {
 			type = inherited
 			date = 7875.1.1
 			recipient = character:Scales_7
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 7900.1.1
 			recipient = character:Scales_23
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 7925.1.1
 			recipient = character:Scales_9
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 7950.1.1
 			recipient = character:Scales_10
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8000.1.1
 			recipient = character:Scales_11
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8016.1.1
 			recipient = character:Scales_12
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8026.1.1
 			recipient = character:Scales_13
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8051.1.1
 			recipient = character:Scales_14
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8077.1.1
 			recipient = character:Scales_15
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8102.1.1
 			recipient = character:Scales_16
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8124.1.1
 			recipient = character:Scales_17
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8149.1.1
 			recipient = character:Scales_18
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8200.1.1
 			recipient = character:Scales_19
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8218.1.1
 			recipient = character:Scales_4
 		}
 		add_artifact_history = {
 			type = inherited
 			date = 8233.1.1
 			recipient = character:Scales_3
 		}
	}
}

create_artifact_truedrake_armor_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = truedrake_armor_name
		description = truedrake_armor_description
		type = armor_plate
		visuals = truedrake_armor_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = valyrian_armour_template
		history = {
			type = created_before_history
		}
		modifier = drace_armor_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
	}
}

create_artifact_truefyre_armor_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = truefyre_armor_name
		description = truefyre_armor_description
		type = armor_plate
		visuals = truefyre_armor_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = valyrian_armour_template
		history = {
			type = created_before_history
		}
		modifier = drace_armor_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
	}
}

create_artifact_longwaters_armor_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = longwaters_armor_name
		description = longwaters_armor_description
		type = armor_plate
		visuals = longwaters_armor_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = valyrian_armour_template
 		history = {
 			type = created
 			date = 8212.1.1
 			recipient = character:Longwaters_1
			location = province:4419
 		}
		modifier = drace_armor_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		add_artifact_history = {
 			type = inherited
 			date = 8239.1.1
 			recipient = character:Longwaters_7
 		}
	}
}

create_artifact_qoherys_armor_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = qoherys_armor_name
		description = qoherys_armor_description
		type = armor_plate
		visuals = qoherys_armor_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = valyrian_armour_template
 		history = {
 			type = created
 			date = 7971.1.1
 			recipient = character:Qoherys_1
			location = province:1934
 		}
		modifier = drace_armor_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		add_artifact_history = {
 			type = inherited
 			date = 7975.1.1
 			recipient = character:Qoherys_2
 		}
		add_artifact_history = {
 			type = inherited
 			date = 7980.1.1
 			recipient = character:Qoherys_3
 		}
		add_artifact_history = {
 			type = inherited
 			date = 8002.1.1
 			recipient = character:Qoherys_4
 		}
	}
}

create_artifact_brightfyre_armor_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = brightfyre_armor_name
		description = brightfyre_armor_description
		type = armor_plate
		visuals = brightfyre_armor_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = valyrian_armour_template
		history = {
			type = created_before_history
		}
		modifier = drace_armor_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
	}
}

create_artifact_wildfyre_armor1_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = wildfyre_armor1_name
		description = wildfyre_armor1_description
		type = armor_plate
		visuals = wildfyre_armor1_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = valyrian_armour_template
		history = {
			type = created_before_history
		}
		modifier = drace_armor_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
	}
}

create_artifact_wildfyre_armor2_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = wildfyre_armor2_name
		description = wildfyre_armor2_description
		type = armor_plate
		visuals = wildfyre_armor2_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = valyrian_armour_template
		history = {
			type = created_before_history
		}
		modifier = drace_armor_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
	}
}

create_artifact_dragonfyre_armor_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = dragonfyre_armor_name
		description = dragonfyre_armor_description
		type = armor_plate
		visuals = dragonfyre_armor_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = valyrian_armour_template
		history = {
			type = created_before_history
		}
		modifier = drace_armor_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
	}
}

create_artifact_wildborn_armor_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = wildborn_armor_name
		description = wildborn_armor_description
		type = armor_plate
		visuals = wildborn_armor_visuals
		wealth = scope:wealth
		quality = scope:quality
		template = valyrian_armour_template
		history = {
			type = created_before_history
		}
		modifier = drace_armor_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
	}
}