﻿set_dices_of_fate_effect = {
	random_list = {
	    18 = { add_artifact_modifier = artifact_diplomacy_add_1_modifier }
	    17 = { add_artifact_modifier = artifact_diplomacy_remove_1_modifier }
	    15 = { add_artifact_modifier = artifact_diplomacy_add_2_modifier }
	    14 = { add_artifact_modifier = artifact_diplomacy_remove_2_modifier }
	    13 = { add_artifact_modifier = artifact_diplomacy_add_3_modifier }
	    12 = { add_artifact_modifier = artifact_diplomacy_remove_3_modifier }
	    11 = { add_artifact_modifier = artifact_diplomacy_add_4_modifier }
	    10 = { add_artifact_modifier = artifact_diplomacy_remove_4_modifier }
	    8 = { add_artifact_modifier = artifact_diplomacy_add_5_modifier }
	    7 = { add_artifact_modifier = artifact_diplomacy_remove_5_modifier }
	}

	random_list = {
	    18 = { add_artifact_modifier = artifact_stewardship_add_1_modifier }
	    17 = { add_artifact_modifier = artifact_stewardship_remove_1_modifier }
	    15 = { add_artifact_modifier = artifact_stewardship_add_2_modifier }
	    14 = { add_artifact_modifier = artifact_stewardship_remove_2_modifier }
	    13 = { add_artifact_modifier = artifact_stewardship_add_3_modifier }
	    12 = { add_artifact_modifier = artifact_stewardship_remove_3_modifier }
	    11 = { add_artifact_modifier = artifact_stewardship_add_4_modifier }
	    10 = { add_artifact_modifier = artifact_stewardship_remove_4_modifier }
	    8 = { add_artifact_modifier = artifact_stewardship_add_5_modifier }
	    7 = { add_artifact_modifier = artifact_stewardship_remove_5_modifier }
	}

	random_list = {
	    18 = { add_artifact_modifier = artifact_martial_add_1_modifier }
	    17 = { add_artifact_modifier = artifact_martial_remove_1_modifier }
	    15 = { add_artifact_modifier = artifact_martial_add_2_modifier }
	    14 = { add_artifact_modifier = artifact_martial_remove_2_modifier }
	    13 = { add_artifact_modifier = artifact_martial_add_3_modifier }
	    12 = { add_artifact_modifier = artifact_martial_remove_3_modifier }
	    11 = { add_artifact_modifier = artifact_martial_add_4_modifier }
	    10 = { add_artifact_modifier = artifact_martial_remove_4_modifier }
	    8 = { add_artifact_modifier = artifact_martial_add_5_modifier }
	    7 = { add_artifact_modifier = artifact_martial_remove_5_modifier }
	}

	random_list = {
	    18 = { add_artifact_modifier = artifact_intrigue_add_1_modifier }
	    17 = { add_artifact_modifier = artifact_intrigue_remove_1_modifier }
	    15 = { add_artifact_modifier = artifact_intrigue_add_2_modifier }
	    14 = { add_artifact_modifier = artifact_intrigue_remove_2_modifier }
	    13 = { add_artifact_modifier = artifact_intrigue_add_3_modifier }
	    12 = { add_artifact_modifier = artifact_intrigue_remove_3_modifier }
	    11 = { add_artifact_modifier = artifact_intrigue_add_4_modifier }
	    10 = { add_artifact_modifier = artifact_intrigue_remove_4_modifier }
	    8 = { add_artifact_modifier = artifact_intrigue_add_5_modifier }
	    7 = { add_artifact_modifier = artifact_intrigue_remove_5_modifier }
	}

	random_list = {
	    18 = { add_artifact_modifier = artifact_learning_add_1_modifier }
	    17 = { add_artifact_modifier = artifact_learning_remove_1_modifier }
	    15 = { add_artifact_modifier = artifact_learning_add_2_modifier }
	    14 = { add_artifact_modifier = artifact_learning_remove_2_modifier }
	    13 = { add_artifact_modifier = artifact_learning_add_3_modifier }
	    12 = { add_artifact_modifier = artifact_learning_remove_3_modifier }
	    11 = { add_artifact_modifier = artifact_learning_add_4_modifier }
	    10 = { add_artifact_modifier = artifact_learning_remove_4_modifier }
	    8 = { add_artifact_modifier = artifact_learning_add_5_modifier }
	    7 = { add_artifact_modifier = artifact_learning_remove_5_modifier }
	}
}

create_artifact_dices_of_fate_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_common = yes
	# Create the artifact
	create_artifact = {	
		name = artifact_dices_of_fate_name
		description = artifact_dices_of_fate_description
		type = miscellaneous
		visuals = dices_of_fate
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = dices_of_fate_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = dices_of_fate
		set_variable = mar_acquisition_route_occult
		set_dices_of_fate_effect = yes
		save_scope_as = epic
	}
}

mar_handle_celestial_tablet_effect = {
	if = {
		limit = {
			any_character_artifact = {
				has_variable = mar_celestial_tablet
			}
			NOT = { has_government = celestial_government }
		}
		if = {
			limit = {
				exists = top_liege
				top_liege = { has_government = celestial_government }
			}
			top_liege = {
				save_scope_as = mar_celestial_tablet_receiver
			}
			every_character_artifact = {
				limit = {
					has_variable = mar_celestial_tablet
				}
				set_owner = scope:mar_celestial_tablet_receiver
			}
		}
		else = {
			every_character_artifact = {
				limit = {
					has_variable = mar_celestial_tablet
				}
				destroy_artifact = this
			}
		}
	}
}

create_artifact_mar_celestial_tablet_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	# Fixed-quality unique artifact used by the Celestial Tablet decision and rare adventure rewards.
	set_artifact_rarity_illustrious = yes
	# Create the artifact
	create_artifact = {
		name = artifact_mar_celestial_tablet_name
		description = artifact_mar_celestial_tablet_desc
		type = miscellaneous
		visuals = mar_celestial_tablet
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_celestial_tablet_template
		history = {
			type = created_before_history
		}
		modifier = mar_celestial_tablet_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = mar_celestial_tablet
		set_variable = mar_acquisition_route_government
		save_scope_as = epic
	}
}


create_artifact_ashes_of_buddha_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_illustrious = yes
	# Create the artifact
	create_artifact = {	
		name = artifact_ashes_of_buddha_name
		description = artifact_ashes_of_buddha_description
		type = pedestal
		visuals = ashes_of_buddha
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_branch_buddhism_template
		history = {
			type = created_before_history
		}
		modifier = ashes_of_buddha_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = ashes_of_buddha
		set_variable = mar_acquisition_route_relic
		save_scope_as = epic
	}
}

create_artifact_skofnung_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_illustrious = yes
	# Create the artifact
	create_artifact = {	
		name = artifact_skofnung_name
		description = artifact_skofnung_description
		type = sword
		visuals = skofnung
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_branch_germanic_template_skofnung
		history = {
			type = created_before_history
		}
		modifier = skofnung_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = skofnung
		set_variable = mar_acquisition_route_legendary
		save_scope_as = epic
	}
}

create_artifact_rollons_horn_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 = artifact_rollons_horn_name
		description = artifact_rollons_horn_description
		type = regalia
		visuals = rollons_horn
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = rollons_horn_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = rollons_horn
		set_variable = mar_content_status_vanilla_overlap_retired
		save_scope_as = epic
	}
}

create_artifact_ragnar_trousers_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 = artifact_ragnar_trousers_name
		description = artifact_ragnar_trousers_description
		type = armor_plate
		visuals = ragnar_trousers
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_branch_germanic_template
		history = {
			type = created_before_history
		}
		modifier = ragnar_trousers_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = ragnar_trousers
		set_variable = mar_acquisition_route_legendary
		save_scope_as = epic
	}
}

create_artifact_book_of_kells_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_illustrious = yes
	# Create the artifact
	create_artifact = {	
		name = artifact_book_of_kells_name
		description = artifact_book_of_kells_description
		type = miscellaneous
		visuals = book_of_kells
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = book_of_kells_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = book_of_kells
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_voynich_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_illustrious = yes
	# Create the artifact
	create_artifact = {	
		name = artifact_voynich_name
		description = artifact_voynich_description
		type = book
		visuals = voynich
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_voynich_template
		history = {
			type = created_before_history
		}
		modifier = voynich_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = voynich
		set_variable = mar_acquisition_route_occult
		save_scope_as = epic
	}
}

create_artifact_labyrinth_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_masterwork = yes
	# Create the artifact
	create_artifact = {	
		name = artifact_labyrinth_name
		description = artifact_labyrinth_description
		type = miscellaneous
		visuals = labyrinth
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = labyrinth_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = labyrinth
		set_variable = mar_acquisition_route_archaeology
		save_scope_as = epic
	}
}

create_artifact_dharmachakra_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 = artifact_dharmachakra_name
		description = artifact_dharmachakra_description
		type = miscellaneous
		visuals = dharmachakra
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_branch_buddhism_template
		history = {
			type = created_before_history
		}
		modifier = dharmachakra_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = dharmachakra
		set_variable = mar_acquisition_route_relic
		save_scope_as = epic
	}
}

create_artifact_yggdrasil_bark_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_illustrious = yes
	# Create the artifact
	create_artifact = {	
		name = artifact_yggdrasil_bark_name
		description = artifact_yggdrasil_bark_description
		type = miscellaneous
		visuals = yggdrasil_bark
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_branch_germanic_template
		history = {
			type = created_before_history
		}
		modifier = yggdrasil_bark_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = yggdrasil_bark
		set_variable = mar_content_status_vanilla_overlap_retired
		save_scope_as = epic
	}
}

create_artifact_ver_helmet_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 = artifact_ver_helmet_name
		description = artifact_ver_helmet_description
		type = helmet
		visuals = ver_helmet
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = ver_helmet_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = ver_helmet
		set_variable = mar_acquisition_route_archaeology
		save_scope_as = epic
	}
}

create_artifact_agamemnon_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 = artifact_agamemnon_name
		description = artifact_agamemnon_description
		type = helmet
		visuals = agamemnon
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = agamemnon_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = agamemnon
		set_variable = mar_acquisition_route_archaeology
		save_scope_as = epic
	}
}

create_artifact_aurelian_mask_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_masterwork = yes
	# Create the artifact
	create_artifact = {	
		name = artifact_aurelian_mask_name
		description = artifact_aurelian_mask_description
		type = helmet
		visuals = aurelian_mask
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = aurelian_mask_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = aurelian_mask
		set_variable = mar_acquisition_route_archaeology
		save_scope_as = epic
	}
}

create_artifact_frankish_annals_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 = artifact_frankish_annals_name
		description = artifact_frankish_annals_description
		type = book
		visuals = frankish_annals
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = frankish_annals_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = frankish_annals
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_kakungu_mask_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_masterwork = yes
	# Create the artifact
	create_artifact = {	
		name = artifact_kakungu_mask_name
		description = artifact_kakungu_mask_description
		type = helmet
		visuals = kakungu_mask
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_branch_west_afr_template
		history = {
			type = created_before_history
		}
		modifier = kakungu_mask_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = kakungu_mask
		set_variable = mar_acquisition_route_archaeology
		save_scope_as = epic
	}
}

create_artifact_thorns_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 = artifact_thorns_name
		description = artifact_thorns_description
		type = pedestal
		visuals = thorns
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_christian_artifact_template
		history = {
			type = created_before_history
		}
		modifier = thorns_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = thorns
		set_variable = mar_acquisition_route_relic
		save_scope_as = epic
	}
}

create_artifact_laurels_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_masterwork = yes
	# Create the artifact
	create_artifact = {	
		name = artifact_laurels_name
		description = artifact_laurels_description
		type = miscellaneous
		visuals = laurels
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = laurels_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = laurels
		set_variable = mar_acquisition_route_archaeology
		save_scope_as = epic
	}
}

create_artifact_alfred_jewel_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 = artifact_alfred_jewel_name
		description = artifact_alfred_jewel_description
		type = miscellaneous
		visuals = alfred_jewel
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = alfred_jewel_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = alfred_jewel
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_book_of_durrow_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 = artifact_book_of_durrow_name
		description = artifact_book_of_durrow_description
		type = book
		visuals = book_of_durrow
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = book_of_durrow_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = book_of_durrow
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_caracalla_cameo_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_masterwork = yes
	# Create the artifact
	create_artifact = {	
		name = artifact_caracalla_cameo_name
		description = artifact_caracalla_cameo_description
		type = pedestal
		visuals = caracalla_cameo
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = caracalla_cameo_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = caracalla_cameo
		set_variable = mar_acquisition_route_archaeology
		save_scope_as = epic
	}
}

create_artifact_dilmun_seal_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_masterwork = yes
	# Create the artifact
	create_artifact = {	
		name = artifact_dilmun_seal_name
		description = artifact_dilmun_seal_description
		type = miscellaneous
		visuals = dilmun_seal
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = dilmun_seal_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = dilmun_seal
		set_variable = mar_acquisition_route_archaeology
		save_scope_as = epic
	}
}

create_artifact_junius_bassus_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_illustrious = yes
	# Create the artifact
	create_artifact = {	
		name = artifact_junius_bassus_name
		description = artifact_junius_bassus_description
		type = chest
		visuals = junius_bassus
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_christian_artifact_template
		history = {
			type = created_before_history
		}
		modifier = junius_bassus_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = junius_bassus
		set_variable = mar_acquisition_route_archaeology
		save_scope_as = epic
	}
}

create_artifact_pyxis_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_illustrious = yes
	# Create the artifact
	create_artifact = {	
		name = artifact_pyxis_name
		description = artifact_pyxis_description
		type = miscellaneous
		visuals = pyxis
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_islam_artifact_template
		history = {
			type = created_before_history
		}
		modifier = pyxis_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = pyxis
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_sasanian_bowl_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_masterwork = yes
	# Create the artifact
	create_artifact = {	
		name = artifact_sasanian_bowl_name
		description = artifact_sasanian_bowl_description
		type = miscellaneous
		visuals = sasanian_bowl
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = sasanian_bowl_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = sasanian_bowl
		set_variable = mar_acquisition_route_archaeology
		save_scope_as = epic
	}
}

create_artifact_tara_brooch_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 = artifact_tara_brooch_name
		description = artifact_tara_brooch_description
		type = miscellaneous
		visuals = tara_brooch
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = tara_brooch_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = tara_brooch
		set_variable = mar_acquisition_route_archaeology
		save_scope_as = epic
	}
}

create_artifact_liber_cogni_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_illustrious = yes
	# Create the artifact
	create_artifact = {	
		name = artifact_liber_cogni_name
		description = artifact_liber_cogni_description
		type = miscellaneous
		visuals = liber_cogni
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_demonic_template
		history = {
			type = created_before_history
		}
		modifier = liber_cogni_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = liber_cogni
		set_variable = mar_acquisition_route_occult
		save_scope_as = epic
	}
}

create_artifact_aeolipile_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_masterwork = yes
	# Create the artifact
	create_artifact = {	
		name = artifact_aeolipile_name
		description = artifact_aeolipile_description
		type = miscellaneous
		visuals = aeolipile
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = aeolipile_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = aeolipile
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_b_blue_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_masterwork = yes
	# Create the artifact
	create_artifact = {	
		name = artifact_b_blue_name
		description = artifact_b_blue_description
		type = miscellaneous
		visuals = b_blue
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = b_blue_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = b_blue
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_b_green_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_masterwork = yes
	# Create the artifact
	create_artifact = {	
		name = artifact_b_green_name
		description = artifact_b_green_description
		type = miscellaneous
		visuals = b_green
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = b_green_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = b_green
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_b_red_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_masterwork = yes
	# Create the artifact
	create_artifact = {	
		name = artifact_b_red_name
		description = artifact_b_red_description
		type = miscellaneous
		visuals = b_red
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = b_red_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = b_red
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_b_white_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_masterwork = yes
	# Create the artifact
	create_artifact = {	
		name = artifact_b_white_name
		description = artifact_b_white_description
		type = miscellaneous
		visuals = b_white
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = b_white_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = b_white
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_b_purple_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_masterwork = yes
	# Create the artifact
	create_artifact = {	
		name = artifact_b_purple_name
		description = artifact_b_purple_description
		type = miscellaneous
		visuals = b_purple
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = b_purple_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = b_purple
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_b_yellow_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_masterwork = yes
	# Create the artifact
	create_artifact = {	
		name = artifact_b_yellow_name
		description = artifact_b_yellow_description
		type = miscellaneous
		visuals = b_yellow
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = b_yellow_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = b_yellow
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}
create_artifact_zbruch_idol_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_illustrious = yes
	create_artifact = {
		name = artifact_zbruch_idol_name
		description = artifact_zbruch_idol_description
		type = pedestal
		visuals = zbruch_idol
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_slavic_pagan_artifact_template
		history = {
			type = created_before_history
		}
		modifier = zbruch_idol_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = zbruch_idol
		set_variable = mar_acquisition_route_relic
		save_scope_as = epic
	}
}

create_artifact_horn_of_svetovid_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_famed = yes
	create_artifact = {
		name = artifact_horn_of_svetovid_name
		description = artifact_horn_of_svetovid_description
		type = regalia
		visuals = horn_of_svetovid
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_slavic_pagan_artifact_template
		history = {
			type = created_before_history
		}
		modifier = horn_of_svetovid_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = horn_of_svetovid
		set_variable = mar_acquisition_route_relic
		save_scope_as = epic
	}
}

create_artifact_peruns_axe_amulet_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_masterwork = yes
	create_artifact = {
		name = artifact_peruns_axe_amulet_name
		description = artifact_peruns_axe_amulet_description
		type = miscellaneous
		visuals = peruns_axe_amulet
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_ambiguous_pagan_relic_template
		history = {
			type = created_before_history
		}
		modifier = peruns_axe_amulet_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = peruns_axe_amulet
		set_variable = mar_acquisition_route_relic
		save_scope_as = epic
	}
}

create_artifact_amber_sun_disk_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_masterwork = yes
	create_artifact = {
		name = artifact_amber_sun_disk_name
		description = artifact_amber_sun_disk_description
		type = miscellaneous
		visuals = amber_sun_disk
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_baltic_pagan_artifact_template
		history = {
			type = created_before_history
		}
		modifier = amber_sun_disk_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = amber_sun_disk
		set_variable = mar_acquisition_route_relic
		save_scope_as = epic
	}
}

create_artifact_ostromir_gospel_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_illustrious = yes
	create_artifact = {
		name = artifact_ostromir_gospel_name
		description = artifact_ostromir_gospel_description
		type = book
		visuals = ostromir_gospel
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_orthodox_slavic_book_template
		history = {
			type = created_before_history
		}
		modifier = ostromir_gospel_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = ostromir_gospel
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_codex_suprasliensis_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_famed = yes
	create_artifact = {
		name = artifact_codex_suprasliensis_name
		description = artifact_codex_suprasliensis_description
		type = book
		visuals = codex_suprasliensis
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_orthodox_slavic_book_template
		history = {
			type = created_before_history
		}
		modifier = codex_suprasliensis_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = codex_suprasliensis
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

# STAGE8A_JAPAN_KOREA_START

create_artifact_ancient_magatama_jewel_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_masterwork = yes
	create_artifact = {
		name = artifact_ancient_magatama_jewel_name
		description = artifact_ancient_magatama_jewel_description
		type = miscellaneous
		visuals = ancient_magatama_jewel
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_japanese_artifact_template
		history = {
			type = created_before_history
		}
		modifier = ancient_magatama_jewel_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = ancient_magatama_jewel
		set_variable = mar_acquisition_route_archaeology
		save_scope_as = epic
	}
}

create_artifact_sacred_mirror_of_ise_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_illustrious = yes
	create_artifact = {
		name = artifact_sacred_mirror_of_ise_name
		description = artifact_sacred_mirror_of_ise_description
		type = regalia
		visuals = sacred_mirror_of_ise
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_japanese_artifact_template
		history = {
			type = created_before_history
		}
		modifier = sacred_mirror_of_ise_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = sacred_mirror_of_ise
		set_variable = mar_content_status_vanilla_overlap_retired
		save_scope_as = epic
	}
}

create_artifact_hachiman_war_banner_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_famed = yes
	create_artifact = {
		name = artifact_hachiman_war_banner_name
		description = artifact_hachiman_war_banner_description
		type = regalia
		visuals = hachiman_war_banner
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_japanese_warrior_artifact_template
		history = {
			type = created_before_history
		}
		modifier = hachiman_war_banner_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = hachiman_war_banner
		set_variable = mar_acquisition_route_legendary
		save_scope_as = epic
	}
}

create_artifact_engishiki_ceremonial_scroll_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_famed = yes
	create_artifact = {
		name = artifact_engishiki_ceremonial_scroll_name
		description = artifact_engishiki_ceremonial_scroll_description
		type = book
		visuals = engishiki_ceremonial_scroll
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_japanese_court_artifact_template
		history = {
			type = created_before_history
		}
		modifier = engishiki_ceremonial_scroll_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = engishiki_ceremonial_scroll
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_silla_gold_crown_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_illustrious = yes
	create_artifact = {
		name = artifact_silla_gold_crown_name
		description = artifact_silla_gold_crown_description
		type = helmet
		visuals = silla_gold_crown
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_korean_artifact_template
		history = {
			type = created_before_history
		}
		modifier = silla_gold_crown_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = silla_gold_crown
		set_variable = mar_acquisition_route_archaeology
		save_scope_as = epic
	}
}

create_artifact_goryeo_celadon_maebyeong_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_masterwork = yes
	create_artifact = {
		name = artifact_goryeo_celadon_maebyeong_name
		description = artifact_goryeo_celadon_maebyeong_description
		type = pedestal
		visuals = goryeo_celadon_maebyeong
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_korean_artifact_template
		history = {
			type = created_before_history
		}
		modifier = goryeo_celadon_maebyeong_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = goryeo_celadon_maebyeong
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_goryeo_sutra_woodblock_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_famed = yes
	create_artifact = {
		name = artifact_goryeo_sutra_woodblock_name
		description = artifact_goryeo_sutra_woodblock_description
		type = book
		visuals = goryeo_sutra_woodblock
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_korean_buddhist_artifact_template
		history = {
			type = created_before_history
		}
		modifier = goryeo_sutra_woodblock_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = goryeo_sutra_woodblock
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_silla_astronomers_tablet_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_masterwork = yes
	create_artifact = {
		name = artifact_silla_astronomers_tablet_name
		description = artifact_silla_astronomers_tablet_description
		type = pedestal
		visuals = silla_astronomers_tablet
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_korean_scholarly_artifact_template
		history = {
			type = created_before_history
		}
		modifier = silla_astronomers_tablet_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = silla_astronomers_tablet
		set_variable = mar_acquisition_route_archaeology
		save_scope_as = epic
	}
}
# STAGE8A_JAPAN_KOREA_END

mar_create_random_unique_adventure_artifact_effect = {
	$OWNER$ = { save_scope_as = owner }
	mar_create_unique_artifact_from_adventure_route_effect = { OWNER = root }
}

inspiration_adventure_create_artifact_effect = {
	$OWNER$ = { save_scope_as = owner } #Will always exist!
	$CREATOR$ = { save_scope_as = adventurer } #Will always exist in an adventure inspiration!

	#If you've somehow managed to not set a destination by now we generate one here
	if = {
		limit = {
			NOT = { exists = scope:adventurer.var:adventure_destination }
		}
		set_adventure_location_effect = {
			BASE_SCOPE = scope:adventurer
			NO_DESTINATION = no
		}
		get_adventure_inspiration_start_location = { ADVENTURER = scope:adventurer }
	}
	else = {
		#To save the location and make sure materials can access it
		scope:adventurer.location = { save_scope_as = location } # To save the location scope based on the destination
	}

	#Creating the artifact based on the previous choice and outcome
	scope:adventurer = {
		hidden_effect = {
			if = {
				limit = { exists = scope:location }
				scope:location = { add_to_list = artifact_material_sources } #Used for artifact creation
			}
			create_character = {
				location = root.location
				template = local_artisan_template
				culture = scope:location.culture
				faith = scope:location.faith
				rite = scope:location.rite
				gender = scope:adventurer
				dynasty = none
				save_scope_as = artifact_origin #Fictional maker of artifact
			}

			random_list = {
				25 = {
					trigger = { #Epic Artifact
						trigger_if = {
							limit = { exists = var:adventure_type }
							OR = {
								var:adventure_type = flag:epic_quest
								var:adventure_type = flag:free_reign
							}
						}
					}
					modifier = {
						scope:adventurer.adventure_inspiration_average_skill_value <= low_inspiration_skill
						add = -10
					}
					modifier = {
						scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
						add = 25
					}
					root = {
						random_list = {
							10 = { #Chance of Relic
								modifier = {
									scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
									add = -5 #More likely to find something better.
								}
								modifier = {
									scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
									add = -4 #High inspiration skill adventurers will only find relics if there is nothing else to find.
								}
								random_list = { #This is a list inside an item in the other list because we need _one_ chance for relic and the relic types must be able to have overlapping triggers.
									100 = {	#Christian
										trigger = {
											scope:location ?= {
												OR = {
													faith.religion = religion:christianity_religion
													geographical_region = world_europe
													geographical_region = world_middle_east_jerusalem
												}
											}
										}
										modifier = {
											NOT = { scope:location.religion = religion:christianity_religion }
											add = -75
										}
										random_list = {
											75 = {
												create_artifact_pedestal_christian_relic_effect_hist = {
													OWNER = root
												}
											}
											10 = {
												create_artifact_pedestal_crucifix_effect = { OWNER = root CREATOR = root }
											}
											10 = {
												create_artifact_pedestal_cross_effect = { OWNER = root CREATOR = root }
											}
										}
									}
									100 = { #Islamic
										trigger = {
											scope:location ?= {
												OR = {
													religion = religion:islam_religion
													geographical_region = world_africa_north
													geographical_region = world_middle_east
												}
											}
										}
										modifier = {
											NOT = { scope:location.religion = religion:islam_religion }
											add = -75
										}
										create_artifact_pedestal_islamic_relic_effect_hist = { OWNER = root }
									}
									100 = { #Buddhist
										trigger = {
											scope:location ?= {
												OR = {
													religion = religion:buddhism_religion
													geographical_region = world_india
													geographical_region = world_tibet
													geographical_region = world_himalaya
													geographical_region = world_asia_china
													geographical_region = world_asia_japan
													geographical_region = world_asia_korea
													geographical_region = world_asia_southeast
												}
											}
										}
										modifier = {
											NOT = { scope:location.religion = religion:buddhism_religion }
											add = -75
										}
										random_list = {
											50 = {
												create_artifact_pedestal_buddhism_relic_effect_hist = { OWNER = root }
											}
											10 = {
												trigger = {
													any_artifact = {
														count < 3
														has_variable = cintamani_buddhist
													}
												}
												create_artifact_cintamani_buddhist_effect = { OWNER = root }
											}
											10 = {
												trigger = {
													any_artifact = {
														count < 1
														has_variable = staff_kakusandha
													}
												}
												create_artifact_staff_kakusandha_effect = { OWNER = root }
											}
											10 = {
												trigger = {
													any_artifact = {
														count < 1
														has_variable = konagamana
													}
												}
												create_artifact_konagamana_effect = { OWNER = root }
											}
											10 = {
												trigger = {
													any_artifact = {
														count < 1
														has_variable = kassapa
													}
												}
												create_artifact_robe_kassapa_effect = { OWNER = root }
											}
										}
									}
									85 = { #Jainist
										trigger = {
											scope:location ?= {
												OR = {
													religion = religion:jainism_religion
													geographical_region = world_india
													geographical_region = world_tibet
													geographical_region = world_burma
													geographical_region = world_himalaya
												}
											}
										}
										modifier = {
											NOT = { scope:location.religion = religion:jainism_religion }
											add = -75
										}
										create_artifact_siddhachakra_effect = { OWNER = root }
									}
									100 = { #Zoroastrian
										trigger = {
											scope:location ?= {
												OR = {
													religion = religion:zoroastrianism_religion
													geographical_region = world_middle_east_persia
												}
											}
										}
										modifier = {
											NOT = { scope:location.religion = religion:zoroastrianism_religion }
											add = -75
										}
										random_list = {
											50 = {
												create_artifact_pedestal_branch_relic_zoroastr_effect = {
													OWNER = root
												}
											}
											50 = {
												create_artifact_afarganyu_effect = {
													OWNER = root
												}
											}
										}
									}
									100 = { #Germanic
										trigger = {
											scope:location ?= {
												OR = {
													religion = religion:germanic_religion
													geographical_region = world_europe_north
												}
											}
										}
										modifier = {
											NOT = { scope:location.religion = religion:germanic_religion }
											add = -75
										}
										create_artifact_pedestal_branch_relic_germanic_effect = {
											OWNER = root
										}
									}
									100 = { #Roog
										trigger = {
											scope:location ?= {
												OR = {
													religion = religion:west_african_roog_religion
													geographical_region = world_africa_west
												}
											}
										}
										modifier = {
											NOT = { scope:location.religion = religion:west_african_roog_religion }
											add = -75
										}
										create_artifact_pedestal_branch_relic_boog_effect = {
											OWNER = root
										}
									}
									100 = { #Slavic
										trigger = {
											scope:location ?= {
												OR = {
													religion = religion:slavic_religion
													geographical_region = world_europe_east
													geographical_region = world_europe_south_east
												}
											}
										}
										modifier = {
											NOT = { scope:location.religion = religion:slavic_religion }
											add = -75
										}
										create_artifact_pedestal_branch_relic_slavic_effect = {
											OWNER = root
										}
									}
									100 = { #Hinduism
										trigger = {
											scope:location ?= {
												OR = {
													religion = religion:hinduism_religion
													geographical_region = world_india
													geographical_region = world_himalaya
													geographical_region = world_asia_southeast
												}
											}
										}
										modifier = {
											NOT = { scope:location.religion = religion:hinduism_religion }
											add = -75
										}
										random_list = {
											10 = {
												trigger = {
													any_artifact = {
														count < 8
														has_variable = aruval
													}
													scope:location ?= {
														OR = {
															geographical_region = world_india
															geographical_region = world_tibet
															geographical_region = ghw_region_afghanistan
															religion = religion:hinduism_religion
														}
													}
												}
												create_artifact_aruval_effect = { OWNER = root }
											}
											10 = {
												trigger = {
													any_artifact = {
														count < 12
														has_variable = conch
													}
													scope:location ?= {
														OR = {
															geographical_region = world_india
															geographical_region = world_tibet
															geographical_region = world_asia_southeast
															religion = religion:hinduism_religion
														}
													}
												}
												create_artifact_pedestal_shankha_conch_effect = { OWNER = root }
											}
											10 = { #Ancient Khanda
												trigger = {
													any_artifact = {
														count < 8
														has_variable = khanda
													}
													scope:location ?= {
														OR = {
															geographical_region = world_india
															geographical_region = world_tibet
															geographical_region = ghw_region_afghanistan
															religion = religion:hinduism_religion
														}
													}
												}
												create_artifact_khanda_effect = { OWNER = root }
											}
											10 = { #Cintamani stone
												trigger = {
													any_artifact = {
														count < 5
														has_variable = cintamani_hindu
													}
													scope:location ?= {
														OR = {
															geographical_region = world_india
															geographical_region = world_tibet
															geographical_region = ghw_region_afghanistan
															religion = religion:hinduism_religion
														}
													}
												}
												create_artifact_cintamani_hindu_effect = { OWNER = root }
											}
											25 = {
												create_artifact_pedestal_branch_relic_hinduism_effect = { OWNER = root }
											}
										}
									}
									100 = { #Judaism
										trigger = {
											scope:location ?= {
												OR = {
													religion = religion:judaism_religion
													geographical_region = world_europe
													geographical_region = world_middle_east
												}
											}
										}
										modifier = {
											NOT = { scope:location.religion = religion:judaism_religion }
											add = -75
										}
										create_artifact_pedestal_reliquary_judaism_effect = {
											OWNER = root
										}
									}
									100 = { #Finno-Ugric
										trigger = {
											scope:location ?= {
												OR = {
													religion = religion:finno_ugric_religion
													geographical_region = world_europe_north
												}
											}
										}
										modifier = {
											NOT = { scope:location.religion = religion:finno_ugric_religion }
											add = -75
										}
										random_list = {
											90 = {
												create_artifact_sledovik_effect = {
													OWNER = root
												}
											}
											10 = {
												trigger = {
													any_artifact = {
														count < 3
														has_variable = kantele
													}
												}
												create_artifact_kantele_effect = {
													OWNER = root
												}
											}
										}
									}
									1 = { #Fallback Relic
										create_artifact_pedestal_branch_relic_general_effect = {
											OWNER = root
											RELIGION = scope:location.religion
										}
									}
								}
							}
							0 = { # Unique Artifacts+ custom adventure artifacts
								modifier = {
									add = mar_unique_adventure_artifact_weight_value
								}
								trigger = {
									mar_has_available_unique_adventure_artifact_trigger = yes
								}
								mar_create_random_unique_adventure_artifact_effect = { OWNER = root }
							}
							2 = { #Ark of the covenant
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									NOT = {
										any_artifact = {
											has_variable = ark_of_the_covenant
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_middle_east
											geographical_region = world_africa_north_east
											geographical_region = world_africa_east
										}
									}
								}
								create_artifact_sculpture_ark_of_covenant_effect = { OWNER = root }
							}
							2 = { #Babr E Bayan
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									NOT = {
										any_artifact = {
											has_variable = babr_e_bayan
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_middle_east_persia
											#geographical_region = world_steppe
											culture = { has_cultural_pillar = heritage_iranian }
										}
									}
								}
								create_artifact_sculpture_babr_e_bayan_effect = { OWNER = root }
							}
							10 = {
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									NOT = {
										any_artifact = {
											has_variable = crown_of_justinian
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = custom_eastern_roman_empire
											culture = { has_cultural_pillar = heritage_byzantine }
										}
									}
								}
								create_artifact_pedestal_justinian_effect = { OWNER = root }
							}
							10 = { #Cup of Jamshid
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									NOT = {
										any_artifact = {
											has_variable = cup_jamshid
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_middle_east_persia
											#geographical_region = world_steppe
											culture = { has_cultural_pillar = heritage_iranian }
										}
									}
								}
								create_artifact_pedestal_cup_jamshid_effect = { OWNER = root }
							}
							10 = {
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									NOT = {
										any_artifact = {
											has_variable = david_harp
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_middle_east_jerusalem
											culture = { has_cultural_pillar = heritage_israelite }
											faith.religion = religion:judaism_religion
										}
									}
								}
								create_artifact_pedestal_david_harp_effect = { OWNER = root }
							}
							10 = { #Recreate if lost
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									NOT = {
										any_artifact = {
											has_variable = iron_crown
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = custom_northern_italy
											culture = { has_cultural_pillar = heritage_latin }
										}
									}
								}
								create_artifact_pedestal_crown_iron_effect = { OWNER = root }
							}
							10 = {
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									NOT = {
										any_artifact = {
											has_variable = banner_kaviani
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_middle_east_persia
											#geographical_region = world_steppe
											culture = { has_cultural_pillar = heritage_iranian }
										}
									}
								}
								create_artifact_wall_banner_kaviani_effect = { OWNER = root }
							}
							10 = {
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									NOT = {
										any_artifact = {
											has_variable = banner_edessa
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_middle_east
											geographical_region = world_asia_minor
										}
									}
								}
								create_artifact_wall_banner_edessa_effect = { OWNER = root }
							}
							10 = {
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									current_year >= 1097
									character:107590 ?= { is_alive = no } #El Cid is not around
									NOT = {
										any_artifact = {
											has_variable = sword_cid
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_middle_east
											geographical_region = world_asia_minor
										}
									}
								}
								create_artifact_wall_cid_sword_effect = { OWNER = root }
							}
							10 = {
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 4
										has_variable = sword_of_goujian
									}
									scope:location ?= {
										geographical_region = world_asia_east
									}
								}
								create_artifact_sword_goujian_effect = { OWNER = root }
							}
							10 = {
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 9
										has_variable = sword_of_muhammad
									}
									scope:location ?= {
										OR = {
											geographical_region = world_middle_east
											geographical_region = world_asia_minor
											geographical_region = world_africa_north_east
											religion = religion:islam_religion
										}
									}
								}
								create_artifact_wall_muhammad_sword_effect = { OWNER = root }
							}
							10 = {
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									NOT = {
										any_artifact = {
											has_variable = sword_attila
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = custom_south_slavia
											geographical_region = custom_carpathia
											geographical_region = ghw_region_crimea
											geographical_region = custom_bavaria
										}
									}
								}
								create_artifact_wall_sword_attila_effect = { OWNER = root }
							}
							10 = {
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									NOT = {
										any_artifact = {
											has_variable = throne_scone
										}
									}
									scope:location ?= {
										geographical_region = world_europe_west_britannia
									}
								}
								create_artifact_throne_scone_effect = { OWNER = root }
							}
							10 = {
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									NOT = {
										any_artifact = {
											has_variable = throne_of_solomon
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_middle_east_jerusalem
											culture = { has_cultural_pillar = heritage_israelite }
											faith.religion = religion:judaism_religion
										}
									}
								}
								create_artifact_throne_solomon_effect = { OWNER = root }
							}
							10 = { #Recreate if lost
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									NOT = {
										any_artifact = {
											has_variable = charlamagne_throne
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = custom_carolingian_francia
											geographical_region = custom_carolingian_germany
											geographical_region = custom_lotharingia
											geographical_region = custom_northern_italy
										}
									}
								}
								create_artifact_throne_charlemagne_effect = { OWNER = root }
							}
							15 = { #Excalibur
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = -10 #If the adventurer is of medium or above skill they will avoid mass produced swords.
								}
								trigger = {
									any_artifact = {
										count < 6
										has_variable = excalibur
									}
									scope:location ?= {
										geographical_region = world_europe_west_britannia
									}
								}
								create_artifact_excalibur_effect = { OWNER = root }
							}
							10 = { #Head of St Edmund
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									NOT = {
										any_artifact = {
											has_variable = edmund_head
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_west_britannia
											geographical_region = world_europe_north
										}
									}
								}
								create_artifact_edmund_head_effect = { OWNER = root }
							}
							10 = { #Dhammapada
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 10
										has_variable = dhammapada
									}
									scope:location ?= {
										OR = {
											geographical_region = world_india
											geographical_region = world_tibet
											geographical_region = ghw_region_afghanistan
											religion = religion:buddhism_religion
											geographical_region = world_asia_china
											geographical_region = world_asia_japan
											geographical_region = world_asia_korea
											geographical_region = world_asia_southeast
										}
									}
								}
								create_artifact_dhammapada_effect = { OWNER = root }
							}
							10 = { #Sutta Pitaka
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 10
										has_variable = vinaya_pitaka
									}
									scope:location ?= {
										OR = {
											geographical_region = world_india
											geographical_region = world_tibet
											geographical_region = ghw_region_afghanistan
											religion = religion:buddhism_religion
											geographical_region = world_asia_china
											geographical_region = world_asia_japan
											geographical_region = world_asia_korea
											geographical_region = world_asia_southeast
										}
									}
								}
								create_artifact_sutta_pitaka_effect = { OWNER = root }
							}
							10 = { #Vinaya Pitaka
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 10
										has_variable = sutta_pitaka
									}
									scope:location ?= {
										OR = {
											geographical_region = world_india
											geographical_region = world_tibet
											geographical_region = ghw_region_afghanistan
											religion = religion:buddhism_religion
											geographical_region = world_asia_china
											geographical_region = world_asia_japan
											geographical_region = world_asia_korea
											geographical_region = world_asia_southeast
										}
									}
								}
								create_artifact_vinaya_pitaka_effect = { OWNER = root }
							}
							10 = { #Abhidhamma
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 10
										has_variable = abhidhamma
									}
									scope:location ?= {
										OR = {
											geographical_region = world_india
											geographical_region = world_tibet
											geographical_region = ghw_region_afghanistan
											religion = religion:buddhism_religion
											geographical_region = world_asia_china
											geographical_region = world_asia_japan
											geographical_region = world_asia_korea
											geographical_region = world_asia_southeast
										}
									}
								}
								create_artifact_abhidhamma_pitaka_effect = { OWNER = root }
							}
							15 = { #Jewelled Danda
								trigger = {
									any_artifact = {
										count < 10
										has_variable = danda
									}
									scope:location ?= {
										OR = {
											geographical_region = world_india
											geographical_region = world_tibet
											geographical_region = ghw_region_afghanistan
										}
									}
								}
								create_artifact_jewelled_danda_effect = { OWNER = ROOT }
							}
							5 = { #Mountain of Light
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = koh_i_noor
									}
									scope:location ?= {
										OR = {
											geographical_region = world_india
											geographical_region = world_tibet
											geographical_region = ghw_region_afghanistan
										}
									}
								}
								create_artifact_pedestal_koh_i_noor_effect = { OWNER = ROOT }
							}
							10 = { #Makarakundala
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 10
										has_variable = makarakundala
									}
									scope:location ?= {
										OR = {
											geographical_region = world_india
											geographical_region = world_tibet
											geographical_region = ghw_region_afghanistan
										}
									}
								}
								create_artifact_makarakundala_effect = { OWNER = ROOT }
							}
							10 = { #Great Diamond
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = great_diamond
									}
									scope:location ?= {
										OR = {
											geographical_region = world_india
											geographical_region = world_tibet
											geographical_region = ghw_region_afghanistan
										}
									}
								}
								create_artifact_pedestal_great_diamond_effect = { OWNER = ROOT }
							}
							10 = { #Al Taj
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = al_taj
									}
									scope:location ?= {
										OR = {
											geographical_region = world_middle_east
											geographical_region = world_africa_north_east
										}
									}
								}
								create_artifact_al_taj_crown_effect = { OWNER = ROOT }
							}
							10 = { #al-Sayf al-Khass
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = al_sayf_al_khass
									}
									scope:location ?= {
										OR = {
											geographical_region = world_middle_east
											geographical_region = world_africa_north_east
										}
									}
								}
								create_artifact_al_sayf_al_khass_effect = { OWNER = ROOT }
							}
							10 = { #Qadib al-Mulk
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = qadib_al_mulk
									}
									scope:location ?= {
										OR = {
											geographical_region = world_middle_east
											geographical_region = world_africa_north_east
										}
									}
								}
								create_artifact_qadib_al_mulk_effect = { OWNER = ROOT }
							}
							10 = { #Al Dawat
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = al_dawat
									}
									scope:location ?= {
										OR = {
											geographical_region = world_middle_east
											geographical_region = world_africa_north_east
										}
									}
								}
								create_artifact_al_dawat_effect = { OWNER = ROOT }
							}
							10 = { #Al Hafir
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = al_hafir
									}
									scope:location ?= {
										OR = {
											geographical_region = world_middle_east
											geographical_region = world_africa_north_east
										}
									}
								}
								create_artifact_al_hafir_effect = { OWNER = ROOT }
							}
							2 = { #Banner of thankfulness
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 2
										has_variable = banner_thankfulness
									}
									scope:location ?= {
										OR = {
											geographical_region = world_middle_east
											geographical_region = world_africa_north_east
										}
									}
								}
								create_artifact_wall_banner_thankfulness_effect = { OWNER = ROOT }
							}
							5 = { #Al Jabal
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = al_jabal
									}
									scope:location ?= {
										OR = {
											geographical_region = world_middle_east
											geographical_region = world_middle_east_persia
										}
									}
								}
								create_artifact_pedestal_al_jabal_effect = { OWNER = ROOT }
							}
							5 = { #Al Yatima
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = al_yatima
									}
									scope:location ?= {
										OR = {
											geographical_region = world_middle_east
											geographical_region = world_africa_north_east
										}
									}
								}
								create_artifact_pedestal_al_yatima_effect = { OWNER = ROOT }
							}
							10 = { #Dagger of Rostam
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = dagger_of_rostam
									}
									scope:location ?= {
										OR = {
											geographical_region = world_asia_minor
											geographical_region = world_middle_east
											geographical_region = world_middle_east_persia
										}
									}
								}
								create_artifact_dagger_of_rostam_effect = { OWNER = ROOT }
							}
							10 = { #Ascalon
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = ascalon
									}
									scope:location ?= {
										OR = {
											geographical_region = world_asia_minor
											geographical_region = world_middle_east
											geographical_region = world_middle_east_persia
										}
									}
								}
								create_artifact_ascalon_effect = { OWNER = ROOT }
							}
							10 = { #Shamshir-e Zomorrodnegar
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = zomorrodnegar
									}
									scope:location ?= {
										OR = {
											geographical_region = world_asia_minor
											geographical_region = world_middle_east
											geographical_region = world_middle_east_persia
										}
									}
								}
								create_artifact_zomorrodnegar_effect = { OWNER = ROOT }
							}
							15 = { #Muhammads epistles
								trigger = {
									any_artifact = {
										count < 12
										has_variable = muhammads_epistles
									}
									scope:location ?= {
										OR = {
											geographical_region = world_asia_minor
											geographical_region = world_middle_east
											geographical_region = world_middle_east_persia
										}
									}
								}
								create_artifact_muhammads_epistles_effect = { OWNER = ROOT }
							}
							10 = { #Kave's Apron
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = kaves_apron
									}
									scope:location ?= {
										OR = {
											geographical_region = world_asia_minor
											geographical_region = world_middle_east
											geographical_region = world_middle_east_persia
										}
									}
								}
								create_artifact_kaves_apron_effect = { OWNER = ROOT }
							}
							2 = { #Armor of Alexander the Great
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = arms_of_alex
									}
									scope:location ?= {
										OR = {
											geographical_region = world_india
											geographical_region = world_asia_minor
											geographical_region = world_middle_east
											geographical_region = world_middle_east_persia
										}
									}
								}
								create_artifact_arms_of_alexander_effect = { OWNER = ROOT }
							}
							10 = { #Olifant
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = olifant
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_west
											geographical_region = world_europe_south
										}
									}
								}
								create_artifact_olifant_effect = { OWNER = ROOT }
							}
							10 = { #Angelicas Ring
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = angelica_ring
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_west
											geographical_region = world_europe_south
										}
									}
								}
								create_artifact_angelicas_ring_effect = { OWNER = ROOT }
							}
							10 = { #Colada
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = colada
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_west
											geographical_region = world_europe_south
										}
									}
								}
								create_colada_effect = { OWNER = ROOT }
							}
							10 = { #Curtana
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = curtana
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_west
											geographical_region = world_europe_south
										}
									}
								}
								create_artifact_curtana_effect = { OWNER = ROOT }
							}
							10 = { #Durendal
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = durendal
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_west
											geographical_region = world_europe_south
										}
									}
								}
								create_artifact_durendal_effect = { OWNER = ROOT }
							}
							10 = { #Joyeuse
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = joyeuse
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_west
											geographical_region = world_europe_south
										}
									}
								}
								create_artifact_joyeuse_effect = { OWNER = ROOT }
							}
							10 = { #Aram
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = aram
									}
									scope:location ?= {
										geographical_region = world_steppe
									}
								}
								create_artifact_aram_effect = { OWNER = ROOT }
							}
							10 = { #Mmaagha Kamalu
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = mmaagha_kamalu
									}
									scope:location ?= {
										geographical_region = world_africa_west
									}
								}
								create_artifact_sword_mmaagha_kamalu_effect = { OWNER = ROOT }
							}
							15 = { #Ikenga
								trigger = {
									any_artifact = {
										count < 15
										has_variable = ikenga
									}
									scope:location ?= {
										geographical_region = world_africa_west
									}
								}
								create_artifact_pedestal_ikenga_effect = { OWNER = ROOT }
							}
							10 = { #Bronze head
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 5
										has_variable = bronze_head
									}
									scope:location ?= {
										geographical_region = world_africa_west
									}
								}
								create_artifact_bronze_head_effect = { OWNER = ROOT }
							}
							15 = { #Ibeji
								trigger = {
									any_artifact = {
										count < 15
										has_variable = ibeji
									}
									scope:location ?= {
										geographical_region = world_africa_west
									}
								}
								create_artifact_ibeji_effect = { OWNER = ROOT }
							}
							10 = { #Rock Crystal Carving
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 3
										has_variable = crystal_carving
									}
									scope:location ?= {
										OR = {
											geographical_region = world_middle_east
											geographical_region = world_middle_east_persia
										}
									}
								}
								create_artifact_crystal_carving_effect = { OWNER = ROOT }
							}
							10 = { #Nagelring
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = nagelring
									}
									scope:location ?= {
										geographical_region = world_europe_west_germania
									}
								}
								create_artifact_nagelring_effect = { OWNER = ROOT }
							}
							10 = { #szczerbiec
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									current_date > 1080.1.1
									any_artifact = {
										count < 1
										has_variable = szczerbiec
									}
									scope:location ?= {
										geographical_region = world_europe_east
									}
								}
								create_artifact_szczerbiec_effect = { OWNER = ROOT }
							}
							10 = { #Kladenets
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = kladenets
									}
									scope:location ?= {
										geographical_region = world_europe_east
									}
								}
								create_artifact_kladenets_effect = { OWNER = ROOT }
							}
							10 = { #Legbiter
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									current_date > 1120.1.1
									any_artifact = {
										count < 1
										has_variable = legbiter
									}
									scope:location ?= {
										geographical_region = world_europe_north
									}
								}
								create_artifact_legbiter_effect = { OWNER = ROOT }
							}
							10 = { #Quern-Biter
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									current_date > 920.1.1
									any_artifact = {
										count < 1
										has_variable = quernbiter
									}
									scope:location ?= {
										geographical_region = world_europe_north
									}
								}
								create_artifact_quernbiter_effect = { OWNER = ROOT }
							}
							15 = { #Navaratna
								trigger = {
									scope:location ?= {
										geographical_region = world_india
									}
									any_artifact = {
										count < 3
										has_variable = navaratna
									}
								}
								create_artifact_navaratna_effect = { OWNER = ROOT }
							}
							10 = { #Dragvandil
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									current_date > 920.1.1
									any_artifact = {
										count < 1
										has_variable = dragvandil
									}
									scope:location ?= {
										geographical_region = world_europe_north
									}
								}
								create_artifact_dragvandil_effect = { OWNER = ROOT }
							}
							2 = { #Chinese Caligraphy
								trigger = {
									root.culture = {
										has_graphical_east_asia_culture_group_trigger = no
									} #This is not a notable artifact if you are already from the region
									any_artifact = {
										count < 15
										has_variable = chinese_caligraphy
									}
									scope:location ?= {
										OR = {
											geographical_region = world_india
											geographical_region = world_tibet
											geographical_region = world_asia_china
											geographical_region = world_asia_japan
											geographical_region = world_asia_korea
											geographical_region = world_asia_southeast
										}
									}
								}
								create_artifact_chinese_caligraphy_effect = { OWNER = ROOT }
							}
							5 = { #Ruyi
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									root.culture = {
										has_graphical_east_asia_culture_group_trigger = no
									} #This is not a notable artifact if you are already from the region
									any_artifact = {
										count < 15
										has_variable = ruyi
									}
									scope:location ?= {
										OR = {
											geographical_region = world_india
											geographical_region = world_tibet
											geographical_region = world_asia_china
											geographical_region = world_asia_japan
											geographical_region = world_asia_korea
											geographical_region = world_asia_southeast
										}
									}
								}
								create_artifact_ruyi_effect = { OWNER = ROOT }
							}
							5 = { #Turquoise Throne
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = turquoise_throne
									}
									scope:location ?= {
										OR = {
											geographical_region = world_india
											geographical_region = world_burma
											geographical_region = world_middle_east_persia
										}
									}
								}
								create_artifact_turquoise_throne_effect = { OWNER = ROOT }
							}
							5 = { #Peacock Throne
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = peacock_throne
									}
									scope:location ?= {
										OR = {
											geographical_region = world_india
											geographical_region = world_burma
											geographical_region = world_middle_east_persia
										}
									}
								}
								create_artifact_peacock_throne_effect = { OWNER = ROOT }
							}
							5 = { #Mantle of the Prophet
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = mantle_of_prophet
									}
									scope:location ?= {
										OR = {
											geographical_region = world_middle_east
											geographical_region = world_middle_east_persia
										}
									}
								}
								create_artifact_mantle_of_the_prophet_effect = { OWNER = ROOT }
							}
							5 = { #Spear of the Prophet
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 1
										has_variable = spear_of_the_prophet
									}
									scope:location ?= {
										OR = {
											geographical_region = world_middle_east
											geographical_region = world_middle_east_persia
										}
									}
								}
								create_artifact_spear_of_the_prophet_effect = { OWNER = ROOT }
							}
							10 = { #FP3 Sassanian Sword
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 15
										has_variable = sassanian_sword
									}
									scope:location ?= {
										OR = {
											geographical_region = world_middle_east
											geographical_region = world_middle_east_persia
										}
									}
								}
								create_artifact_illustrious_sassanian_sword_effect = { OWNER = ROOT }
							}
							2 = { #
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = { #Narwhal Horn
									scope:location ?= {
										geographical_region = world_europe_north
									}
								}
								create_artifact_wall_narwhal_horn_effect = {
									OWNER = scope:owner
									HUNTER = scope:inspiration_owner
								}
							}
							10 = { #Constantine statue
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									any_artifact = {
										count < 3
										has_variable = statue_constantine
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_south_italy #Rome
											geographical_region = world_asia_minor #Constantinople
										}
									}
								}
								create_artifact_statue_constantine_effect = { OWNER = root }
							}
							5 = {
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									has_tgp_dlc_trigger = yes
									any_artifact = {
										count < 1
										has_variable = heirloom_seal
									}
									scope:location ?= {
										geographical_region = world_asia_china
									}
								}
								create_artifact_heirloom_seal_effect = { OWNER = root }
							}
							10 = {
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									has_tgp_dlc_trigger = yes
									any_artifact = {
										count < 1
										has_variable = statue_amitabha_buddha
									}
									scope:location ?= {
										geographical_region = world_asia_southeast
									}
									current_date >= 1080.1.1
								}
								create_artifact_statue_viet_green_amitabha_buddha_effect = { OWNER = root }
							}
							10 = {
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									has_tgp_dlc_trigger = yes
									any_artifact = {
										count < 1
										has_variable = chinese_armillary_sphere
									}
									scope:location ?= {
										geographical_region = world_asia_china
									}
								}
								create_artifact_chinese_armillary_sphere_effect = { OWNER = root }
							}
							10 = {
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									has_tgp_dlc_trigger = yes
									any_artifact = {
										count < 1
										has_variable = eight_fold_chest
									}
									scope:location ?= {
										geographical_region = world_asia_china
									}
								}
								create_artifact_eight_fold_chest_effect = {
									OWNER = root
								}
							}
							10 = {
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									has_tgp_dlc_trigger = yes
									current_date > 1150.1.1 #Needs to be long past creation date for this to make sense
									any_artifact = {
										count < 1
										has_variable = military_classics
									}
									scope:location ?= {
										geographical_region = world_asia_china
									}
								}
								create_artifact_military_classics_effect = {
									OWNER = root
								}
							}
							10 = {
								modifier = {
									OR = {
										scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
										AND = {
											exists = scope:inspiration_owner.var:artifact_quality
											scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
										}
									}
									add = 5
								}
								trigger = {
									has_tgp_dlc_trigger = yes
									any_artifact = {
										count < 1
										has_variable = baekje_incense_burner
									}
									scope:location ?= {
										geographical_region = world_asia_korea
									}
								}
								create_artifact_pedestal_baekje_incense_burner_effect = { OWNER = root }
							}
						}
					}
				}

				10 = {
					modifier = {
						OR = {
							scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
							AND = {
								exists = scope:inspiration_owner.var:artifact_quality
								scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
							}
						}
						add = -5
					}
					trigger = { #A Weapon
						trigger_if = {
							limit = { exists = var:adventure_type }
							OR = {
								var:adventure_type = flag:epic_quest
								var:adventure_type = flag:free_reign
							}
						}
					}
					scope:owner = {
						create_artifact_weapon_effect = {
							OWNER = scope:artifact_origin
							CREATOR = scope:artifact_origin
							SET_WEAPON_TYPE = flag:no
						}
					}
					save_scope_value_as = { #We save the type here for tooltips in fund_inspiration.1051
						name = weapon_artifact
						value = yes
					}
				}

				5 = {
					modifier = {
						OR = {
							scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
							AND = {
								exists = scope:inspiration_owner.var:artifact_quality
								scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
							}
						}
						add = -2
					}
					trigger = { #An armor
						trigger_if = {
							limit = { exists = var:adventure_type }
							OR = {
								var:adventure_type = flag:epic_quest
								var:adventure_type = flag:free_reign
							}
						}
					}
					scope:owner = {
						create_artifact_armor_effect = {
							OWNER = scope:artifact_origin
							CREATOR = scope:artifact_origin
							SET_ARMOR_TYPE = flag:no
						}
					}
					save_scope_value_as = { #We save the type here for tooltips in fund_inspiration.1051
						name = armor_artifact
						value = yes
					}
				}
				5 = {
					modifier = {
						OR = {
							scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
							AND = {
								exists = scope:inspiration_owner.var:artifact_quality
								scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
							}
						}
						add = -2
					}
					trigger = { # Necklace
						trigger_if = {
							limit = { exists = var:adventure_type }
							OR = {
								var:adventure_type = flag:trinket
								var:adventure_type = flag:free_reign
							}
						}
					}
					scope:owner = {
						create_artifact_necklace_effect = {
							OWNER = scope:artifact_origin
							SMITH = scope:artifact_origin
						}
					}
					scope:newly_created_artifact = { save_scope_as = necklace }
					save_scope_value_as = { #We save the type here for tooltips in fund_inspiration.1051
						name = necklace_artifact
						value = yes
					}
				}

				5 = {
					modifier = {
						OR = {
							scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
							AND = {
								exists = scope:inspiration_owner.var:artifact_quality
								scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
							}
						}
						add = -2
					}
					trigger = {
						trigger_if = {
							limit = { exists = var:adventure_type }
							OR = {
								var:adventure_type = flag:trinket
								var:adventure_type = flag:free_reign
								var:adventure_type = flag:epic_quest
							}
						}
					}
					scope:owner = {
						create_artifact_regalia_effect = {
							OWNER = scope:artifact_origin
							SMITH = scope:artifact_origin
						}
					}
					scope:owner = {
						save_scope_value_as = { #We save the type here for tooltips in fund_inspiration.1051
							name = regalia_artifact
							value = yes
						}
					}
				}

				10 = {
					modifier = {
						OR = {
							scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
							AND = {
								exists = scope:inspiration_owner.var:artifact_quality
								scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
							}
						}
						add = -5
					}
					trigger = { #Skull
						trigger_if = {
							limit = { exists = var:adventure_type }
							OR = {
								var:adventure_type = flag:skull_or_hide
								var:adventure_type = flag:free_reign
							}
						}
					}
					scope:owner = {
						create_artifact_wall_skull_effect = {
							OWNER = scope:owner
							HUNTER = scope:adventurer
							LEGENDARY = no
							ANIMAL = flag:none
						}
					}
					save_scope_value_as = { #We save the type here for tooltips in fund_inspiration.1051
						name = skull
						value = yes
					}
				}
				30 = {
					modifier = {
						OR = {
							scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
							AND = {
								exists = scope:inspiration_owner.var:artifact_quality
								scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
							}
						}
						add = -5
					}
					trigger = { #Hide - big
						trigger_if = {
							limit = { exists = var:adventure_type }
							OR = {
								var:adventure_type = flag:skull_or_hide
								var:adventure_type = flag:free_reign
							}
						}
					}
					scope:owner = {
						create_artifact_animal_hide_effect = {
							OWNER = scope:owner
							HUNTER = scope:adventurer
							LEGENDARY = no
							ANIMAL = flag:none
						}
					}
				}
				10 = {
					modifier = {
						OR = {
							scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill
							AND = {
								exists = scope:inspiration_owner.var:artifact_quality
								scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices
							}
						}
						add = -5
					}
					trigger = { #Trinket, box small
						trigger_if = {
							limit = { exists = var:adventure_type }
							OR = {
								var:adventure_type = flag:trinket
								var:adventure_type = flag:free_reign
							}
						}
					}
					scope:owner = {
						create_artifact_box_small_effect = {
							OWNER = scope:owner
							CARPENTER = scope:inspiration_owner
						}
					}
					save_scope_value_as = { #We save the type here for tooltips in fund_inspiration.1051
						name = box
						value = yes
					}
				}
				10 = {
					modifier = {
						OR = {
							scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
							AND = {
								exists = scope:inspiration_owner.var:artifact_quality
								scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
							}
						}
						add = -5
					}
					trigger = { #Trinket, goblet
						trigger_if = {
							limit = { exists = var:adventure_type }
							OR = {
								var:adventure_type = flag:trinket
								var:adventure_type = flag:free_reign
							}
						}
					}
					scope:owner = {
						create_artifact_goblet_effect = {
							OWNER = scope:owner
							SMITH = scope:inspiration_owner
						}
					}
					save_scope_value_as = { #We save the type here for tooltips in fund_inspiration.1051
						name = goblet
						value = yes
					}
				}
				10 = {
					modifier = {
						OR = {
							scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
							AND = {
								exists = scope:inspiration_owner.var:artifact_quality
								scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
							}
						}
						add = -2
					}
					trigger = { #Tapestry
						trigger_if = {
							limit = { exists = var:adventure_type }
							OR = {
								var:adventure_type = flag:tapestry_or_fabric
								var:adventure_type = flag:free_reign
							}
						}
					}
					scope:owner = {
						create_artifact_tapestry_effect = {
							OWNER = scope:owner
							WEAVER = scope:inspiration_owner
						}
					}
					save_scope_value_as = { #We save the type here for tooltips in fund_inspiration.1051
						name = tapestry
						value = yes
					}
				}
				10 = {
					modifier = {
						OR = {
							scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill
							AND = {
								exists = scope:inspiration_owner.var:artifact_quality
								scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices
							}
						}
						add = -2
					}
					trigger = { #Persian Drinking Vessel (goblet)
						has_fp3_dlc_trigger = yes
						trigger_if = {
							limit = { exists = var:adventure_type }
							OR = {
								var:adventure_type = flag:trinket
								var:adventure_type = flag:free_reign
							}
						}
						scope:location = { geographical_region = world_middle_east_persia }
					}
					scope:owner = {
						create_artifact_persian_drinking_vessel_effect = {
							OWNER = scope:owner
							SMITH = scope:inspiration_owner
						}
					}
					save_scope_value_as = { #We save the type here for tooltips in fund_inspiration.1051
						name = goblet
						value = yes
					}
				}
			}
			if = {
				limit = {
					exists = scope:epic
					NOT = { exists = scope:task_contract_taker }
				}
				scope:epic = {
					add_artifact_history = {
						location = root.capital_province
						actor = scope:adventurer
						recipient = root
						type = given
					}
				}
			}
			else_if = {
				limit = {
					exists = scope:newly_created_artifact
					NOT = { exists = scope:task_contract_taker }
				}
				scope:newly_created_artifact = {
					add_artifact_history = {
						location = root.capital_province
						actor = scope:adventurer
						recipient = root
						type = given
					}
				}
			}
		}
	}
}

# UA_1_23_WORLD_EXPANSION_I_START
create_artifact_chola_nataraja_bronze_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_illustrious = yes
	create_artifact = {
		name = artifact_chola_nataraja_bronze_name
		description = artifact_chola_nataraja_bronze_description
		type = pedestal
		visuals = chola_nataraja_bronze
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_branch_hinduism_template
		history = {
			type = created_before_history
		}
		modifier = chola_nataraja_bronze_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = chola_nataraja_bronze
		set_variable = mar_acquisition_route_relic
		save_scope_as = epic
	}
}

create_artifact_pala_prajnaparamita_manuscript_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_famed = yes
	create_artifact = {
		name = artifact_pala_prajnaparamita_manuscript_name
		description = artifact_pala_prajnaparamita_manuscript_description
		type = book
		visuals = pala_prajnaparamita_manuscript
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_branch_buddhism_artifact_template
		history = {
			type = created_before_history
		}
		modifier = pala_prajnaparamita_manuscript_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = pala_prajnaparamita_manuscript
		set_variable = mar_acquisition_route_relic
		save_scope_as = epic
	}
}

create_artifact_sanjan_copper_plates_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_masterwork = yes
	create_artifact = {
		name = artifact_sanjan_copper_plates_name
		description = artifact_sanjan_copper_plates_description
		type = miscellaneous
		visuals = sanjan_copper_plates
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = sanjan_copper_plates_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = sanjan_copper_plates
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_samanid_epigraphic_bowl_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_masterwork = yes
	create_artifact = {
		name = artifact_samanid_epigraphic_bowl_name
		description = artifact_samanid_epigraphic_bowl_description
		type = pedestal
		visuals = samanid_epigraphic_bowl
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = samanid_epigraphic_bowl_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = samanid_epigraphic_bowl
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_isfahan_astrolabe_1102_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_illustrious = yes
	create_artifact = {
		name = artifact_isfahan_astrolabe_1102_name
		description = artifact_isfahan_astrolabe_1102_description
		type = pedestal
		visuals = isfahan_astrolabe_1102
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = isfahan_astrolabe_1102_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = isfahan_astrolabe_1102
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_arda_viraf_namag_codex_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_famed = yes
	create_artifact = {
		name = artifact_arda_viraf_namag_codex_name
		description = artifact_arda_viraf_namag_codex_description
		type = book
		visuals = arda_viraf_namag_codex
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_branch_zoroastr_template
		history = {
			type = created_before_history
		}
		modifier = arda_viraf_namag_codex_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = arda_viraf_namag_codex
		set_variable = mar_acquisition_route_relic
		save_scope_as = epic
	}
}

create_artifact_book_of_zambasta_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_famed = yes
	create_artifact = {
		name = artifact_book_of_zambasta_name
		description = artifact_book_of_zambasta_description
		type = book
		visuals = book_of_zambasta
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_branch_buddhism_artifact_template
		history = {
			type = created_before_history
		}
		modifier = book_of_zambasta_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = book_of_zambasta
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_nagyszentmiklos_golden_ewer_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_masterwork = yes
	create_artifact = {
		name = artifact_nagyszentmiklos_golden_ewer_name
		description = artifact_nagyszentmiklos_golden_ewer_description
		type = pedestal
		visuals = nagyszentmiklos_golden_ewer
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = nagyszentmiklos_golden_ewer_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = nagyszentmiklos_golden_ewer
		set_variable = mar_acquisition_route_archaeology
		save_scope_as = epic
	}
}

create_artifact_mongol_silver_paiza_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_famed = yes
	create_artifact = {
		name = artifact_mongol_silver_paiza_name
		description = artifact_mongol_silver_paiza_description
		type = miscellaneous
		visuals = mongol_silver_paiza
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = mongol_silver_paiza_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = mongol_silver_paiza
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_kedukan_bukit_inscription_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_famed = yes
	create_artifact = {
		name = artifact_kedukan_bukit_inscription_name
		description = artifact_kedukan_bukit_inscription_description
		type = pedestal
		visuals = kedukan_bukit_inscription
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = kedukan_bukit_inscription_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = kedukan_bukit_inscription
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_singhasari_prajnaparamita_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_illustrious = yes
	create_artifact = {
		name = artifact_singhasari_prajnaparamita_name
		description = artifact_singhasari_prajnaparamita_description
		type = pedestal
		visuals = singhasari_prajnaparamita
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_branch_buddhism_artifact_template
		history = {
			type = created_before_history
		}
		modifier = singhasari_prajnaparamita_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = singhasari_prajnaparamita
		set_variable = mar_acquisition_route_relic
		save_scope_as = epic
	}
}

create_artifact_dong_son_bronze_drum_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_masterwork = yes
	create_artifact = {
		name = artifact_dong_son_bronze_drum_name
		description = artifact_dong_son_bronze_drum_description
		type = pedestal
		visuals = dong_son_bronze_drum
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = dong_son_bronze_drum_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = dong_son_bronze_drum
		set_variable = mar_acquisition_route_archaeology
		save_scope_as = epic
	}
}

create_artifact_garima_gospels_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_illustrious = yes
	create_artifact = {
		name = artifact_garima_gospels_name
		description = artifact_garima_gospels_description
		type = book
		visuals = garima_gospels
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_christian_artifact_template
		history = {
			type = created_before_history
		}
		modifier = garima_gospels_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = garima_gospels
		set_variable = mar_acquisition_route_relic
		save_scope_as = epic
	}
}

create_artifact_ife_brass_head_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_famed = yes
	create_artifact = {
		name = artifact_ife_brass_head_name
		description = artifact_ife_brass_head_description
		type = pedestal
		visuals = ife_brass_head
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = ife_brass_head_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = ife_brass_head
		set_variable = mar_acquisition_route_archaeology
		save_scope_as = epic
	}
}

create_artifact_tellem_woven_textile_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_masterwork = yes
	create_artifact = {
		name = artifact_tellem_woven_textile_name
		description = artifact_tellem_woven_textile_description
		type = miscellaneous
		visuals = tellem_woven_textile
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = tellem_woven_textile_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = tellem_woven_textile
		set_variable = mar_acquisition_route_archaeology
		save_scope_as = epic
	}
}

# UA_1_23_WORLD_EXPANSION_I_END

# UA_1_24_WORLD_EXPANSION_II_START
create_artifact_harbaville_triptych_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_famed = yes
	create_artifact = {
		name = artifact_harbaville_triptych_name
		description = artifact_harbaville_triptych_description
		type = pedestal
		visuals = harbaville_triptych
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_christian_artifact_template
		history = {
			type = created_before_history
		}
		modifier = harbaville_triptych_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = harbaville_triptych
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_byzantine_deesis_reliquary_casket_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_illustrious = yes
	create_artifact = {
		name = artifact_byzantine_deesis_reliquary_casket_name
		description = artifact_byzantine_deesis_reliquary_casket_description
		type = pedestal
		visuals = byzantine_deesis_reliquary_casket
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_christian_artifact_template
		history = {
			type = created_before_history
		}
		modifier = byzantine_deesis_reliquary_casket_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = byzantine_deesis_reliquary_casket
		set_variable = mar_acquisition_route_relic
		save_scope_as = epic
	}
}

create_artifact_byzantine_warrior_casket_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_masterwork = yes
	create_artifact = {
		name = artifact_byzantine_warrior_casket_name
		description = artifact_byzantine_warrior_casket_description
		type = pedestal
		visuals = byzantine_warrior_casket
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = byzantine_warrior_casket_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = byzantine_warrior_casket
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_khakhuli_triptych_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_illustrious = yes
	create_artifact = {
		name = artifact_khakhuli_triptych_name
		description = artifact_khakhuli_triptych_description
		type = pedestal
		visuals = khakhuli_triptych
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_christian_artifact_template
		history = {
			type = created_before_history
		}
		modifier = khakhuli_triptych_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = khakhuli_triptych
		set_variable = mar_acquisition_route_relic
		save_scope_as = epic
	}
}

create_artifact_queen_mlke_gospel_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_illustrious = yes
	create_artifact = {
		name = artifact_queen_mlke_gospel_name
		description = artifact_queen_mlke_gospel_description
		type = book
		visuals = queen_mlke_gospel
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_christian_artifact_template
		history = {
			type = created_before_history
		}
		modifier = queen_mlke_gospel_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = queen_mlke_gospel
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_skevra_reliquary_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_famed = yes
	create_artifact = {
		name = artifact_skevra_reliquary_name
		description = artifact_skevra_reliquary_description
		type = pedestal
		visuals = skevra_reliquary
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_christian_artifact_template
		history = {
			type = created_before_history
		}
		modifier = skevra_reliquary_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = skevra_reliquary
		set_variable = mar_acquisition_route_relic
		save_scope_as = epic
	}
}

create_artifact_blacas_ewer_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_famed = yes
	create_artifact = {
		name = artifact_blacas_ewer_name
		description = artifact_blacas_ewer_description
		type = pedestal
		visuals = blacas_ewer
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = blacas_ewer_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = blacas_ewer
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_wasiti_maqamat_manuscript_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_illustrious = yes
	create_artifact = {
		name = artifact_wasiti_maqamat_manuscript_name
		description = artifact_wasiti_maqamat_manuscript_description
		type = book
		visuals = wasiti_maqamat_manuscript
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = wasiti_maqamat_manuscript_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = wasiti_maqamat_manuscript
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_saint_louis_baptistery_basin_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_illustrious = yes
	create_artifact = {
		name = artifact_saint_louis_baptistery_basin_name
		description = artifact_saint_louis_baptistery_basin_description
		type = pedestal
		visuals = saint_louis_baptistery_basin
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = saint_louis_baptistery_basin_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = saint_louis_baptistery_basin
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_leyre_casket_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_famed = yes
	create_artifact = {
		name = artifact_leyre_casket_name
		description = artifact_leyre_casket_description
		type = pedestal
		visuals = leyre_casket
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = leyre_casket_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = leyre_casket
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_pisa_griffin_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_illustrious = yes
	create_artifact = {
		name = artifact_pisa_griffin_name
		description = artifact_pisa_griffin_description
		type = pedestal
		visuals = pisa_griffin
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = pisa_griffin_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = pisa_griffin
		set_variable = mar_acquisition_route_archaeology
		save_scope_as = epic
	}
}

create_artifact_gazelle_vase_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_famed = yes
	create_artifact = {
		name = artifact_gazelle_vase_name
		description = artifact_gazelle_vase_description
		type = pedestal
		visuals = gazelle_vase
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = gazelle_vase_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = gazelle_vase
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_rasulid_astrolabe_1291_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_illustrious = yes
	create_artifact = {
		name = artifact_rasulid_astrolabe_1291_name
		description = artifact_rasulid_astrolabe_1291_description
		type = pedestal
		visuals = rasulid_astrolabe_1291
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = rasulid_astrolabe_1291_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = rasulid_astrolabe_1291
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}

create_artifact_ethiopian_lasta_liturgical_cross_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_famed = yes
	create_artifact = {
		name = artifact_ethiopian_lasta_liturgical_cross_name
		description = artifact_ethiopian_lasta_liturgical_cross_description
		type = pedestal
		visuals = ethiopian_lasta_liturgical_cross
		wealth = scope:wealth
		quality = scope:quality
		template = MAR_christian_artifact_template
		history = {
			type = created_before_history
		}
		modifier = ethiopian_lasta_liturgical_cross_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = ethiopian_lasta_liturgical_cross
		set_variable = mar_acquisition_route_relic
		save_scope_as = epic
	}
}

create_artifact_kilwa_sultan_coin_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_masterwork = yes
	create_artifact = {
		name = artifact_kilwa_sultan_coin_name
		description = artifact_kilwa_sultan_coin_description
		type = pedestal
		visuals = kilwa_sultan_coin
		wealth = scope:wealth
		quality = scope:quality
		template = general_unique_template
		history = {
			type = created_before_history
		}
		modifier = kilwa_sultan_coin_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = kilwa_sultan_coin
		set_variable = mar_acquisition_route_historical
		save_scope_as = epic
	}
}
# UA_1_24_WORLD_EXPANSION_II_END
