﻿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
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = dices_of_fate
		set_dices_of_fate_effect = yes
		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
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = ashes_of_buddha
		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
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = skofnung
		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_illustrious = 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
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = rollons_horn
		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_illustrious = 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
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = ragnar_trousers
		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
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = book_of_kells
		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
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = voynich
		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_illustrious = 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
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = labyrinth
		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_illustrious = 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_hinduism_template
		history = {
			type = created_before_history
		}
		modifier = dharmachakra_modifier
		save_scope_as = newly_created_artifact
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = dharmachakra
		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
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = yggdrasil_bark
		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_illustrious = 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
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = ver_helmet
		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_illustrious = 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
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = agamemnon
		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_illustrious = 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
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = aurelian_mask
		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_illustrious = 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
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = frankish_annals
		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_illustrious = 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
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = kakungu_mask
		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_illustrious = yes
	# Create the artifact
	create_artifact = {	
		name = artifact_thorns_name
		description = artifact_thorns_description
		type = helmet
		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
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = thorns
		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_illustrious = 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
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = laurels
		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_illustrious = 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
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = alfred_jewel
		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_illustrious = 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
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = book_of_durrow
		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_illustrious = 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
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = caracalla_cameo
		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_illustrious = 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
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = dilmun_seal
		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
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = junius_bassus
		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
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = pyxis
		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_illustrious = 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
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = sasanian_bowl
		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_illustrious = 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
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = tara_brooch
		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
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = liber_cogni
		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_illustrious = 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 = MAR_demonic_template
		history = {
			type = created_before_history
		}
		modifier = aeolipile_modifier
		save_scope_as = newly_created_artifact
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = aeolipile
		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_famed = 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 = MAR_b_blue
		history = {
			type = created_before_history
		}
		modifier = b_blue_modifier
		save_scope_as = newly_created_artifact
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = b_blue
		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_famed = 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 = MAR_b_green
		history = {
			type = created_before_history
		}
		modifier = b_green_modifier
		save_scope_as = newly_created_artifact
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = b_green
		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_famed = 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 = MAR_b_red
		history = {
			type = created_before_history
		}
		modifier = b_red_modifier
		save_scope_as = newly_created_artifact
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = b_red
		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_famed = 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 = MAR_b_white
		history = {
			type = created_before_history
		}
		modifier = b_white_modifier
		save_scope_as = newly_created_artifact
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = b_white
		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_famed = 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 = MAR_b_purple
		history = {
			type = created_before_history
		}
		modifier = b_purple_modifier
		save_scope_as = newly_created_artifact
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = b_purple
		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_famed = 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 = MAR_b_yellow
		history = {
			type = created_before_history
		}
		modifier = b_yellow_modifier
		save_scope_as = newly_created_artifact
	}

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

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
				gender = scope:adventurer
				dynasty = none
				save_scope_as = artifact_origin #Fictional maker of artifact
			}

			random_list = {
				40 = {
					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 = {
							20 = { #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 }
											}
											10 = {
												create_artifact_pedestal_cross_effect = { OWNER = 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_burma
													geographical_region = world_himalaya
												}
											}
										}
										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
												}
											}
										}
										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
															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 < 3
														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
										}
									}
								}
							}
							8 = { #Ashes of Buddha
								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 = voynich	
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_tibet
											geographical_region = world_india
											geographical_region = world_burma
										}
									}
								}
								create_artifact_voynich_effect = { OWNER = root }
							}
							8 = { #Voynich Manuscript
								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 = ashes_of_buddha
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_south
										}
									}
									current_date > 1150.1.1
								}
								create_artifact_ashes_of_buddha_effect = { OWNER = root }
							}
							8 = { #Dharmachakra
								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 = dharmachakra
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_tibet
											geographical_region = world_india
											geographical_region = world_burma
										}
									}
								}
								create_artifact_dharmachakra_effect = { OWNER = root }
							}
							8 = { #Skofnung
								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 = skofnung
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_north
											geographical_region = world_europe_west_britannia
											geographical_region = world_europe_west_germania
										}
									}
								}
								create_artifact_skofnung_effect = { OWNER = root }
							}
							8 = { #Roland's Horn
								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 = rollons_horn
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_west
											geographical_region = world_europe_north
											geographical_region = world_europe_south
										}
									}
								}
								create_artifact_rollons_horn_effect = { OWNER = root }
							}
							8 = { #Ragnar Trousers
								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 = ragnar_trousers
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_north
											geographical_region = world_europe_west_britannia
											geographical_region = world_europe_west_germania
										}
									}
								}
								create_artifact_ragnar_trousers_effect = { OWNER = root }
							}
							8 = { #Book of Kells
								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 = book_of_kells
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe
										}
									}
								}
								create_artifact_book_of_kells_effect = { OWNER = root }
							}
							12 = { #Labyrinth
								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 = labyrinth
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_north
											geographical_region = world_europe_west_britannia
										}
									}
								}
								create_artifact_labyrinth_effect = { OWNER = root }
							}
							10 = { #Yggdrasil
								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 = yggdrasil_bark
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_north
											geographical_region = world_europe_west_britannia
										}
									}
								}
								create_artifact_yggdrasil_bark_effect = { OWNER = root }
							}
							8 = { #Vercingetorix Helmet
								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 = ver_helmet
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_north
											geographical_region = world_europe_west
											geographical_region = world_europe_south
										}
									}
								}
								create_artifact_ver_helmet_effect = { OWNER = root }
							}
							10 = { #Mask of Agamemnon
								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 = agamemnon
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_south
											geographical_region = world_europe_south_east
											geographical_region = world_europe_west
										}
									}
								}
								create_artifact_agamemnon_effect = { OWNER = root }
							}
							4 = { #Mask of Aurelian
								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 = aurelian_mask
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_south
											geographical_region = world_europe_south_east
										}
									}
								}
								create_artifact_aurelian_mask_effect = { OWNER = root }
							}
							12 = { #Annales Laurissenses maiores
								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 = frankish_annals
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_south
											geographical_region = world_europe_west
										}
									}
								}
								create_artifact_frankish_annals_effect = { OWNER = root }
							}
							10 = { #Kakungu Mask
								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 = kakungu_mask
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_africa
										}
									}
								}
								create_artifact_kakungu_mask_effect = { OWNER = root }
							}
							10 = { #Branch of The Crown of Thorns
								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 = thorns
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_africa
										}
									}
								}
								create_artifact_thorns_effect = { OWNER = root }
							}
							8 = { #Laurels of Marble
								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 = laurels
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_south
											geographical_region = world_europe_west
										}
									}
								}
								create_artifact_laurels_effect = { OWNER = root }
							}
							8 = { #Alfred Jewel
								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 = alfred_jewel
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_north
											geographical_region = world_europe_west
										}
									}
								}
								create_artifact_alfred_jewel_effect = { OWNER = root }
							}
							16 = { #Book of Durrow
								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 = book_of_durrow
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_north
										}
									}
								}
								create_artifact_book_of_durrow_effect = { OWNER = root }
							}
							12 = { #Caracalla Cameo Urn
								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 = caracalla_cameo
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_south_italy
											geographical_region = world_europe_south
										}
									}
								}
								create_artifact_caracalla_cameo_effect = { OWNER = root }
							}
							10 = { #Dilmun Seal
								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 = dilmun_seal
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_india
											geographical_region = world_himalaya
										}
									}
								}
								create_artifact_dilmun_seal_effect = { OWNER = root }
							}
							16 = { #Sarcophagus of Junius Bassus
								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 = junius_bassus
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_south_italy
										}
									}
								}
								create_artifact_junius_bassus_effect = { OWNER = root }
							}
							10 = { #Pyxis of al-Mughira
								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 = pyxis
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_south
											geographical_region = world_africa_north
										}
									}
								}
								create_artifact_pyxis_effect = { OWNER = root }
							}
							8 = { #Sasanian bowl
								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 = sasanian_bowl
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_middle_east
											geographical_region = world_mesopotamia
										}
									}
								}
								create_artifact_sasanian_bowl_effect = { OWNER = root }
							}
							12 = { #Tara Brooch
								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 = tara_brooch
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_north
										}
									}
								}
								create_artifact_tara_brooch_effect = { OWNER = root }
							}
							16 = { #Aeolipile
								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 = aeolipile
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_south
										}
									}
								}
								create_artifact_aeolipile_effect = { OWNER = root }
							}
							6 = { #blue
								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 = b_blue
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_south
										}
									}
								}
								create_artifact_blue_effect = { OWNER = root }
							}
							6 = { #green
								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 = b_green
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_south
										}
									}
								}
								create_artifact_green_effect = { OWNER = root }
							}
							6 = { #red
								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 = b_red
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_south
										}
									}
								}
								create_artifact_red_effect = { OWNER = root }
							}
							6 = { #purple
								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 = b_purple
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_south
										}
									}
								}
								create_artifact_purple_effect = { OWNER = root }
							}
							6 = { #white
								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 = b_white
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_south
										}
									}
								}
								create_artifact_white_effect = { OWNER = root }
							}
							6 = { #yellow
								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 = b_yellow
										}
									}
									scope:location ?= {
										OR = {
											geographical_region = world_europe_south
										}
									}
								}
								create_artifact_yellow_effect = { OWNER = root }
							}
							5 = { #dice of fate
								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 = {
									scope:location ?= {
										OR = {
											geographical_region = world_europe
											geographical_region = world_africa
											geographical_region = world_middle_east
											geographical_region = world_india
											geographical_region = world_himalaya
										}
									}
								}
								create_artifact_dices_of_fate_effect = { OWNER = root }
							}
							1 = { #Liber cognitionis occultae
								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 = liber_cogni
										}
									}
								}
								create_artifact_liber_cogni_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_persian_empire
											#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 = {
								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_persian_empire
											#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_persian_empire
											#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
									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 < 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
										}
									}
								}
								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
										}
									}
								}
								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
										}
									}
								}
								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
										}
									}
								}
								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 = {
									any_artifact = {
										count < 15
										has_variable = chinese_caligraphy
									}
									scope:location ?= {
										OR = {
											geographical_region = world_india
											geographical_region = world_burma
											geographical_region = world_tibet
										}
									}
								}
								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 = {
									any_artifact = {
										count < 15
										has_variable = ruyi
									}
									scope:location ?= {
										OR = {
											geographical_region = world_india
											geographical_region = world_burma
											geographical_region = world_tibet
										}
									}
								}
								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 }
							}
							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 = {
					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
					}
				}
			}
			if = {
				limit = { exists = scope:epic }
				scope:epic = {
					add_artifact_history = {
						location = root.capital_province
						actor = scope:adventurer
						recipient = root
						type = given
					}
				}
			}
			else_if = {
				limit = { exists = scope:newly_created_artifact }
				scope:newly_created_artifact = {
					add_artifact_history = {
						location = root.capital_province
						actor = scope:adventurer
						recipient = root
						type = given
					}
				}
			}
		}
	}
}