
ChristianRelic = {
	type = character

	random_valid = yes

	text = {
		trigger = {
			scope:christian_relic_name = flag:nail
		}
		localization_key = artifact_pedestal_reliquary_christian_nail
	}

	text = {
		trigger = {
			scope:christian_relic_name = flag:thorn
		}
		localization_key = artifact_pedestal_reliquary_christian_thorn
	}

	text = {
		trigger = {
			scope:christian_relic_name = flag:sandals
		}
		localization_key = artifact_pedestal_reliquary_christian_sandals
	}

	text = {
		trigger = {
			scope:christian_relic_name = flag:girdle
		}
		localization_key = artifact_pedestal_reliquary_christian_girdle
	}

	text = {
		trigger = {
			scope:christian_relic_name = flag:skull
		}
		localization_key = artifact_pedestal_reliquary_christian_skull
	}

	text = {
		trigger = {
			scope:christian_relic_name = flag:arm
		}
		localization_key = artifact_pedestal_reliquary_christian_arm
	}

	text = {
		trigger = {
			scope:christian_relic_name = flag:loincloth
		}
		localization_key = artifact_pedestal_reliquary_christian_loincloth
	}

	text = {
		trigger = {
			scope:christian_relic_name = flag:cross
		}
		localization_key = artifact_pedestal_reliquary_christian_cross
	}
	text = {
		trigger = {
			scope:christian_relic_name = flag:crown
		}
		localization_key = artifact_pedestal_crown_thorns
	}
	text = {
		trigger = {
			scope:christian_relic_name = flag:veronica
		}
		localization_key = artifact_pedestal_veil_veronica
	}
}

ChristianRelicName = {
	type = character

	text = {
		trigger = {
			scope:christian_relic_name = flag:nail
		}
		localization_key = artifact_pedestal_reliquary_christian_nail_name
	}

	text = {
		trigger = {
			scope:christian_relic_name = flag:thorn
		}
		localization_key = artifact_pedestal_reliquary_christian_thorn_name
	}

	text = {
		trigger = {
			scope:christian_relic_name = flag:sandals
		}
		localization_key = artifact_pedestal_reliquary_christian_sandals_name
	}

	text = {
		trigger = {
			scope:christian_relic_name = flag:girdle
		}
		localization_key = artifact_pedestal_reliquary_christian_girdle
	}

	text = {
		trigger = {
			scope:christian_relic_name = flag:skull
		}
		localization_key = artifact_pedestal_reliquary_christian_skull
	}

	text = {
		trigger = {
			scope:christian_relic_name = flag:arm
		}
		localization_key = artifact_pedestal_reliquary_christian_arm
	}

	text = {
		trigger = {
			scope:christian_relic_name = flag:loincloth
		}
		localization_key = artifact_pedestal_reliquary_christian_loincloth
	}

	text = {
		trigger = {
			scope:christian_relic_name = flag:cross
		}
		localization_key = artifact_pedestal_reliquary_christian_cross_name
	}
	text = {
		trigger = {
			scope:christian_relic_name = flag:crown
		}
		localization_key = artifact_pedestal_crown_thorns_name
	}
	text = {
		trigger = {
			scope:christian_relic_name = flag:veronica
		}
		localization_key = artifact_pedestal_veil_veronica_name
	}
}

IslamRelic = {
	type = character

	text = {
		trigger = {
			scope:islam_relic_name = flag:hair
		}
		localization_key =  artifact_pedestal_reliquary_islam_hair
	}

	text = {
		trigger = {
			scope:islam_relic_name = flag:cloak
		}
		localization_key = artifact_pedestal_reliquary_islam_cloak
	}

	text = {
		trigger = {
			scope:islam_relic_name = flag:hand
		}
		localization_key = artifact_pedestal_reliquary_islam_hand
	}

	text = {
		trigger = {
			scope:islam_relic_name = flag:keys
		}
		localization_key = artifact_pedestal_reliquary_islam_keys
	}

	text = {
		trigger = {
			scope:islam_relic_name = flag:tooth
		}
		localization_key = artifact_pedestal_reliquary_islam_tooth
	}

	text = {
		trigger = {
			scope:islam_relic_name = flag:seal
		}
		localization_key = artifact_pedestal_reliquary_islam_seal
	}

	text = {
		trigger = {
			scope:islam_relic_name = flag:banner
		}
		localization_key = artifact_pedestal_reliquary_islam_banner
	}
}

BuddhismRelic = {
	type = character

	text = {
		trigger = {
			scope:buddhism_relic_name = flag:tooth
		}
		localization_key = artifact_pedestal_reliquary_buddhism_tooth
	}

	text = {
		trigger = {
			scope:buddhism_relic_name = flag:bone
		}
		localization_key = artifact_pedestal_reliquary_buddhism_bone
	}

	text = {
		trigger = {
			scope:buddhism_relic_name = flag:robe
		}
		localization_key = artifact_pedestal_reliquary_buddhism_robe
	}

	text = {
		trigger = {
			scope:buddhism_relic_name = flag:bowl
		}
		localization_key = artifact_pedestal_reliquary_buddhism_bowl
	}

	text = {
		trigger = {
			scope:buddhism_relic_name = flag:tongue
		}
		localization_key = artifact_pedestal_reliquary_buddhism_tongue
	}

	text = {
		trigger = {
			scope:buddhism_relic_name = flag:hair
		}
		localization_key = artifact_pedestal_reliquary_buddhism_hair
	}

	text = {
		trigger = {
			scope:buddhism_relic_name = flag:sarira
		}
		localization_key = artifact_pedestal_reliquary_buddhism_sarira
	}
	text = {
		trigger = {
			scope:buddhism_relic_name = flag:bo
		}
		localization_key = artifact_pedestal_branch_bo
	}
}

BuddhismRelicName = {
	type = character

	text = {
		trigger = {
			scope:buddhism_relic_name = flag:tooth
		}
		localization_key = artifact_pedestal_reliquary_buddhism_tooth
	}

	text = {
		trigger = {
			scope:buddhism_relic_name = flag:bone
		}
		localization_key = artifact_pedestal_reliquary_buddhism_bone
	}

	text = {
		trigger = {
			scope:buddhism_relic_name = flag:robe
		}
		localization_key = artifact_pedestal_reliquary_buddhism_robe
	}

	text = {
		trigger = {
			scope:buddhism_relic_name = flag:bowl
		}
		localization_key = artifact_pedestal_reliquary_buddhism_bowl
	}

	text = {
		trigger = {
			scope:buddhism_relic_name = flag:tongue
		}
		localization_key = artifact_pedestal_reliquary_buddhism_tongue_name
	}

	text = {
		trigger = {
			scope:buddhism_relic_name = flag:hair
		}
		localization_key = artifact_pedestal_reliquary_buddhism_hair_name
	}

	text = {
		trigger = {
			scope:buddhism_relic_name = flag:sarira
		}
		localization_key = artifact_pedestal_reliquary_buddhism_sarira_name
	}
	text = {
		trigger = {
			scope:buddhism_relic_name = flag:bo
		}
		localization_key = artifact_pedestal_branch_bo_name
	}
}

JudaismRelicName = {
	type = character

	text = {
		trigger = {
			scope:judaism_relic_name = flag:menorah
		}
		localization_key = artifact_pedestal_menorah_name
	}
}

JudaismRelic = {
	type = character

	text = {
		trigger = {
			scope:judaism_relic_name = flag:menorah
		}
		localization_key = artifact_pedestal_menorah_description
	}
}

RandomSaint = { # Used for statue artifact
	type = character

	random_valid = yes

	text = {
		localization_key = artifact_statue_religious_jesus
	}

	text = {
		localization_key = artifact_statue_religious_mary
	}

	text = {
		trigger = {
			OR = {
				faith = faith:catholic
				faith = faith:orthodox
				faith = faith:nestorian
			}
		}
		localization_key = west_christian_fertility_god_name
	}

	text = {
		trigger = {
			OR = {
				faith = faith:catholic
				faith = faith:orthodox
				faith = faith:nestorian
			}
		}
		localization_key = west_christian_wealth_god_name
	}

	text = {
		trigger = {
			OR = {
				faith = faith:catholic
				faith = faith:orthodox
				faith = faith:nestorian
			}
		}
		localization_key = west_christian_household_god_name
	}

	text = {
		trigger = {
			OR = {
				faith = faith:catholic
				faith = faith:orthodox
				faith = faith:nestorian
			}
		}
		localization_key = west_christian_knowledge_god_name
	}

	text = {
		trigger = {
			OR = {
				faith = faith:catholic
				faith = faith:orthodox
				faith = faith:nestorian
			}
		}
		localization_key = west_christian_war_god_name
	}

	text = {
		trigger = {
			OR = {
				faith = faith:catholic
				faith = faith:orthodox
				faith = faith:nestorian
			}
		}
		localization_key = west_christian_water_god_name
	}

	text = {
		trigger = {
			OR = {
				faith = faith:coptic
				faith = faith:armenian_apostolic
			}
		}
		localization_key = east_christian_fertility_god_name
	}

	text = {
		trigger = {
			OR = {
				faith = faith:coptic
				faith = faith:armenian_apostolic
			}
		}
		localization_key = east_christian_wealth_god_name
	}

	text = {
		trigger = {
			OR = {
				faith = faith:coptic
				faith = faith:armenian_apostolic
			}
		}
		localization_key = east_christian_household_god_name
	}

	text = {
		trigger = {
			OR = {
				faith = faith:coptic
				faith = faith:armenian_apostolic
			}
		}
		localization_key = east_christian_knowledge_god_name
	}

	text = {
		trigger = {
			OR = {
				faith = faith:coptic
				faith = faith:armenian_apostolic
			}
		}
		localization_key = east_christian_war_god_name
	}

	text = {
		trigger = {
			faith = faith:insular_celtic
		}
		localization_key = insular_celtic_fertility_god_name
	}

	text = {
		trigger = {
			faith = faith:insular_celtic
		}
		localization_key = insular_celtic_wealth_god_name
	}

	text = {
		trigger = {
			faith = faith:insular_celtic
		}
		localization_key = insular_celtic_household_god_name
	}

	text = {
		trigger = {
			faith = faith:insular_celtic
		}
		localization_key = insular_celtic_knowledge_god_name
	}

	text = {
		trigger = {
			faith = faith:insular_celtic
		}
		localization_key = insular_celtic_war_god_name
	}

	text = {
		trigger = {
			faith = faith:insular_celtic
		}
		localization_key = insular_celtic_water_god_name
	}
}

RandomSaintName = { # Used for other artifacts
	type = character

	random_valid = yes

	text = {
		trigger = {
			OR = {
				faith = faith:catholic
				faith = faith:orthodox
				faith = faith:nestorian
			}
		}
		localization_key = west_christian_fertility_god_name
	}

	text = {
		trigger = {
			OR = {
				faith = faith:catholic
				faith = faith:orthodox
				faith = faith:nestorian
			}
		}
		localization_key = west_christian_wealth_god_name
	}

	text = {
		trigger = {
			OR = {
				faith = faith:catholic
				faith = faith:orthodox
				faith = faith:nestorian
			}
		}
		localization_key = west_christian_household_god_name
	}

	text = {
		trigger = {
			OR = {
				faith = faith:catholic
				faith = faith:orthodox
				faith = faith:nestorian
			}
		}
		localization_key = west_christian_knowledge_god_name
	}

	text = {
		trigger = {
			OR = {
				faith = faith:catholic
				faith = faith:orthodox
				faith = faith:nestorian
			}
		}
		localization_key = west_christian_war_god_name
	}

	text = {
		trigger = {
			OR = {
				faith = faith:catholic
				faith = faith:orthodox
				faith = faith:nestorian
			}
		}
		localization_key = west_christian_water_god_name
	}

	text = {
		trigger = {
			OR = {
				faith = faith:coptic
				faith = faith:armenian_apostolic
			}
		}
		localization_key = east_christian_fertility_god_name
	}

	text = {
		trigger = {
			OR = {
				faith = faith:coptic
				faith = faith:armenian_apostolic
			}
		}
		localization_key = east_christian_wealth_god_name
	}

	text = {
		trigger = {
			OR = {
				faith = faith:coptic
				faith = faith:armenian_apostolic
			}
		}
		localization_key = east_christian_household_god_name
	}

	text = {
		trigger = {
			OR = {
				faith = faith:coptic
				faith = faith:armenian_apostolic
			}
		}
		localization_key = east_christian_knowledge_god_name
	}

	text = {
		trigger = {
			OR = {
				faith = faith:coptic
				faith = faith:armenian_apostolic
			}
		}
		localization_key = east_christian_war_god_name
	}

	text = {
		trigger = {
			faith = faith:insular_celtic
		}
		localization_key = insular_celtic_fertility_god_name
	}

	text = {
		trigger = {
			faith = faith:insular_celtic
		}
		localization_key = insular_celtic_wealth_god_name
	}

	text = {
		trigger = {
			faith = faith:insular_celtic
		}
		localization_key = insular_celtic_household_god_name
	}

	text = {
		trigger = {
			faith = faith:insular_celtic
		}
		localization_key = insular_celtic_knowledge_god_name
	}

	text = {
		trigger = {
			faith = faith:insular_celtic
		}
		localization_key = insular_celtic_war_god_name
	}

	text = {
		trigger = {
			faith = faith:insular_celtic
		}
		localization_key = insular_celtic_water_god_name
	}
}

RandomSaintNamePossessive = {
	type = character

	random_valid = yes

	text = {
		trigger = {
			OR = {
				faith = faith:catholic
				faith = faith:orthodox
				faith = faith:nestorian
			}
		}
		localization_key = west_christian_fertility_god_name_possessive
	}

	text = {
		trigger = {
			OR = {
				faith = faith:catholic
				faith = faith:orthodox
				faith = faith:nestorian
			}
		}
		localization_key = west_christian_wealth_god_name_possessive
	}

	text = {
		trigger = {
			OR = {
				faith = faith:catholic
				faith = faith:orthodox
				faith = faith:nestorian
			}
		}
		localization_key = west_christian_household_god_name_possessive
	}

	text = {
		trigger = {
			OR = {
				faith = faith:catholic
				faith = faith:orthodox
				faith = faith:nestorian
			}
		}
		localization_key = west_christian_knowledge_god_name_possessive
	}

	text = {
		trigger = {
			OR = {
				faith = faith:catholic
				faith = faith:orthodox
				faith = faith:nestorian
			}
		}
		localization_key = west_christian_war_god_name_possessive
	}

	text = {
		trigger = {
			OR = {
				faith = faith:catholic
				faith = faith:orthodox
				faith = faith:nestorian
			}
		}
		localization_key = west_christian_water_god_name_possessive
	}

	text = {
		trigger = {
			OR = {
				faith = faith:coptic
				faith = faith:armenian_apostolic
			}
		}
		localization_key = east_christian_fertility_god_name_possessive
	}

	text = {
		trigger = {
			OR = {
				faith = faith:coptic
				faith = faith:armenian_apostolic
			}
		}
		localization_key = east_christian_wealth_god_name_possessive
	}

	text = {
		trigger = {
			OR = {
				faith = faith:coptic
				faith = faith:armenian_apostolic
			}
		}
		localization_key = east_christian_household_god_name_possessive
	}

	text = {
		trigger = {
			OR = {
				faith = faith:coptic
				faith = faith:armenian_apostolic
			}
		}
		localization_key = east_christian_knowledge_god_name_possessive
	}

	text = {
		trigger = {
			OR = {
				faith = faith:coptic
				faith = faith:armenian_apostolic
			}
		}
		localization_key = east_christian_war_god_name_possessive
	}

	text = {
		trigger = {
			faith = faith:insular_celtic
		}
		localization_key = insular_celtic_fertility_god_name_possessive
	}

	text = {
		trigger = {
			faith = faith:insular_celtic
		}
		localization_key = insular_celtic_wealth_god_name_possessive
	}

	text = {
		trigger = {
			faith = faith:insular_celtic
		}
		localization_key = insular_celtic_household_god_name_possessive
	}

	text = {
		trigger = {
			faith = faith:insular_celtic
		}
		localization_key = insular_celtic_knowledge_god_name_possessive
	}

	text = {
		trigger = {
			faith = faith:insular_celtic
		}
		localization_key = insular_celtic_war_god_name_possessive
	}

	text = {
		trigger = {
			faith = faith:insular_celtic
		}
		localization_key = insular_celtic_water_god_name_possessive
	}
}

PredeterminedSaintName = { # Used for icons and any future artifacts that uses the decoration_saint artifact feature 
	type = character

	random_valid = yes

	text = {
		trigger = { var:saint ?= flag:brigid }
		localization_key = west_christian_fertility_god_name
	}

	text = {
		trigger = { var:saint ?= flag:matthew }
		localization_key = west_christian_wealth_god_name
	}

	text = {
		trigger = { var:saint ?= flag:joseph }
		localization_key = west_christian_household_god_name
	}

	text = {
		trigger = { var:saint ?= flag:catherine }
		localization_key = west_christian_knowledge_god_name
	}

	text = {
		trigger = { var:saint ?= flag:george }
		localization_key = west_christian_war_god_name
	}

	text = {
		trigger = { var:saint ?= flag:nicholas }
		localization_key = west_christian_water_god_name
	}

	text = {
		trigger = { var:saint ?= flag:marina }
		localization_key = east_christian_fertility_god_name
	}

	text = {
		trigger = { var:saint ?= flag:matthew }
		localization_key = east_christian_wealth_god_name
	}

	text = {
		trigger = { var:saint ?= flag:joseph }
		localization_key = east_christian_household_god_name
	}

	text = {
		trigger = { var:saint ?= flag:mark }
		localization_key = east_christian_knowledge_god_name
	}

	text = {
		trigger = { var:saint ?= flag:maurice }
		localization_key = east_christian_war_god_name
	}
	text = {
		trigger = {
			var:saint ?= flag:fallback
			religion = religion:christianity_religion
		}
		localization_key = west_christian_fallback_god_name
	}
	text = {
		trigger = {
			var:saint ?= flag:fallback
			religion != religion:christianity_religion
		}
		localization_key = generic_religious_figure_fallback_name
		fallback = yes
	}
}

MuhammadSword = {
	type = character

	random_valid = yes

	text = {
		trigger = {
			scope:muhammad_sword_name = flag:aladb
		}
		localization_key = artifact_wall_sword_muhammad_aladb
	}

	text = {
		trigger = {
			scope:muhammad_sword_name = flag:almathur
		}
		localization_key = artifact_wall_sword_muhammad_almathur
	}

	text = {
		trigger = {
			scope:muhammad_sword_name = flag:arrasub
		}
		localization_key = artifact_wall_sword_muhammad_arrasub
	}

	text = {
		trigger = {
			scope:muhammad_sword_name = flag:albattar
		}
		localization_key = artifact_wall_sword_muhammad_albattar
	}

	text = {
		trigger = {
			scope:muhammad_sword_name = flag:haft
		}
		localization_key = artifact_wall_sword_muhammad_haft
	}

	text = {
		trigger = {
			scope:muhammad_sword_name = flag:qali
		}
		localization_key = artifact_wall_sword_muhammad_qali
	}

	text = {
		trigger = {
			scope:muhammad_sword_name = flag:dhu
		}
		localization_key = artifact_wall_sword_muhammad_dhu
	}

	text = {
		trigger = {
			scope:muhammad_sword_name = flag:mikhdham
		}
		localization_key = artifact_wall_sword_muhammad_mikhdham
	}

	text = {
		trigger = {
			scope:muhammad_sword_name = flag:alqadib
		}
		localization_key = artifact_wall_sword_muhammad_alqadib
	}
}

BranchTree = {
	type = character

	random_valid = yes

	text = {
		trigger = {
			scope:branch_name = flag:haoma
		}
		localization_key = artifact_pedestal_branch_haoma
	}

	text = {
		trigger = {
			scope:branch_name = flag:cypress
		}
		localization_key = artifact_pedestal_branch_cypress
	}

	text = {
		trigger = {
			scope:branch_name = flag:thor
		}
		localization_key = artifact_pedestal_branch_thor
	}

	text = {
		trigger = {
			scope:branch_name = flag:uppsala
		}
		localization_key = artifact_pedestal_branch_uppsala
	}

	text = {
		trigger = {
			scope:branch_name = flag:alatyr
		}
		localization_key = artifact_pedestal_branch_alatyr
	}

	text = {
		trigger = {
			scope:branch_name = flag:somb
		}
		localization_key = artifact_pedestal_branch_somb
	}

	text = {
		trigger = {
			scope:branch_name = flag:kalpavriksha
		}
		localization_key = artifact_pedestal_branch_kalpavriksha
	}

	text = {
		trigger = {
			scope:branch_name = flag:general
		}
		localization_key = artifact_pedestal_branch_general
	}
}

GetFarRegion = {
	type = character

	random_valid = yes

	text = {
		trigger = {
			NOT = {
				any_county_in_region = {
					region = world_tibet
					this = scope:owner.capital_county 
				}
			}
		}
		localization_key = artifact_book_topic_travels_china
	}

	text = {
		trigger = {
			NOR = {
				any_county_in_region = {
					region = world_africa_west
					this = scope:owner.capital_county 	
				}
				any_county_in_region = {
					region = world_africa_east
					this = scope:owner.capital_county
				}
			}
		}
		localization_key = artifact_book_topic_travels_africa
	}

	text = {
		trigger = {
			NOT = {
				any_county_in_region = {
					region = world_india
					this = scope:owner.capital_county 
				}
			}
		}
		localization_key = artifact_book_topic_travels_india
	}

	text = {
		trigger = {
			NOT = {
				any_county_in_region = {
					region = world_steppe
					this = scope:owner.capital_county 
				}
			}
		}
		localization_key = artifact_book_topic_travels_steppe
	}
}

RulerSkill = {
	type = character

	random_valid = yes

	text = {
		trigger = {
			prowess >= 15
		}

		localization_key = artifact_sculpture_warrior
	}
	text = {
		localization_key = artifact_sculpture_ruler
	}
}

# Book

ArtifactBookDescType = {
	type = artifact

	text = { #This desc is only for subjects related to actions tied to a title in the game
		trigger = {
			OR = {
				has_artifact_feature = book_topic_unification
				has_artifact_feature = book_topic_creation
				has_artifact_feature = book_topic_restoration
			}
		}
		localization_key = artifact_book_title_based_desc
	}

	text = { #These books needs a subject-introduction to the topic and have no freestanding loc string for the topic - version 1
		trigger = {
			artifact_book_topic_preface_trigger = yes
		}
		localization_key = artifact_book_other_desc_1
	}

	text = { #These books needs a subject-introduction to the topic and have no freestanding loc string for the topic - version 2
		trigger = {
			artifact_book_topic_preface_trigger = yes
		}
		localization_key = artifact_book_other_desc_2
	}

	text = { #These books needs a subject-introduction to the topic and have no freestanding loc string for the topic - version 3
		trigger = {
			artifact_book_topic_preface_trigger = yes
		}
		localization_key = artifact_book_other_desc_3
	}

	text = { #These books needs a subject-introduction to the topic and have no freestanding loc string for the topic - version 4
		trigger = {
			artifact_book_topic_preface_trigger = yes
		}
		localization_key = artifact_book_other_desc_4
	}

	text = { #These books needs a subject-introduction to the topic and have no freestanding loc string for the topic - version 5
		trigger = {
			artifact_book_topic_preface_trigger = yes
		}
		weight_multiplier = {
			base = 0.1
		}
		localization_key = artifact_book_other_desc_5
	}

	text = { #These books work on their own and have freestanding strings for the topic
		trigger = {
			artifact_book_topic_preface_trigger = no
		}
		fallback = yes
		localization_key = artifact_book_no_preface_desc
	}
}

# We use this custom loc key in the inspiration tooltip and in events
ArtifactBookSubject = {
	type = character

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:subject
					scope:subject = flag:martial
				}
				AND = {
					exists = var:book_subject
					var:book_subject = flag:martial
				}
			}
		}
		localization_key = feature_book_subject_martial
	}

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:subject
					scope:subject = flag:diplomacy
				}
				AND = {
					exists = var:book_subject
					var:book_subject = flag:diplomacy
				}
			}
		}
		localization_key = feature_book_subject_diplomacy
	}

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:subject
					scope:subject = flag:learning
				}
				AND = {
					exists = var:book_subject
					var:book_subject = flag:learning
				}
			}
		}
		localization_key = feature_book_subject_learning
	}

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:subject
					scope:subject = flag:stewardship
				}
				AND = {
					exists = var:book_subject
					var:book_subject = flag:stewardship
				}
			}
		}
		localization_key = feature_book_subject_stewardship
	}

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:subject
					scope:subject = flag:intrigue
				}
				AND = {
					exists = var:book_subject
					var:book_subject = flag:intrigue
				}
			}
		}
		localization_key = feature_book_subject_intrigue
	}

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:subject
					scope:subject = flag:medicine
				}
				AND = {
					exists = var:book_subject
					var:book_subject = flag:medicine
				}
			}
		}
		localization_key = feature_book_subject_medicine
	}

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:subject
					scope:subject = flag:reveler
				}
				AND = {
					exists = var:book_subject
					var:book_subject = flag:reveler
				}
			}
		}
		localization_key = feature_book_subject_reveler
	}

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:subject
					scope:subject = flag:blademaster
				}
				AND = {
					exists = var:book_subject
					var:book_subject = flag:blademaster
				}
			}
		}
		localization_key = feature_book_subject_blademaster
	}

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:subject
					scope:subject = flag:hunter
				}
				AND = {
					exists = var:book_subject
					var:book_subject = flag:hunter
				}
			}
		}
		localization_key = feature_book_subject_hunter
	}

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:subject
					scope:subject = flag:mystic
				}
				AND = {
					exists = var:book_subject
					var:book_subject = flag:mystic
				}
			}
		}
		localization_key = feature_book_subject_mystic
	}

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:subject
					scope:subject = flag:herbalist
				}
				AND = {
					exists = var:book_subject
					var:book_subject = flag:herbalist
				}
			}
		}
		localization_key = feature_book_subject_herbalist
	}

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:subject
					scope:subject = flag:cannibal
				}
				AND = {
					exists = var:book_subject
					var:book_subject = flag:cannibal
				}
			}
		}
		localization_key = feature_book_subject_cannibal
	}

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:subject
					scope:subject = flag:torturer
				}
				AND = {
					exists = var:book_subject
					var:book_subject = flag:torturer
				}
			}
		}
		localization_key = feature_book_subject_torturer
	}

	text = { # this one is used only until the inspiration is funded
		trigger = {
			exists = var:book_subject
			var:book_subject = flag:witch
			inspiration = { NOT = { exists = inspiration_sponsor } }
		}
		localization_key = feature_book_subject_witch_not_funded
	}

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:subject
					scope:subject = flag:witch
				}
				AND = {
					exists = var:book_subject
					var:book_subject = flag:witch
				}
			}
		}
		localization_key = feature_book_subject_witch_tooltip
	}

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:subject
					scope:subject = flag:deviant
				}
				AND = {
					exists = var:book_subject
					var:book_subject = flag:deviant
				}
			}
		}
		localization_key = feature_book_subject_deviant
	}

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:subject
					scope:subject = flag:lunatic
				}
				AND = {
					exists = var:book_subject
					var:book_subject = flag:lunatic
				}
			}
		}
		localization_key = feature_book_subject_lunatic
	}

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:subject
					scope:subject = flag:empire
				}
				AND = {
					exists = var:book_subject
					var:book_subject = flag:empire
				}
			}
		}
		localization_key = feature_book_subject_empire
	}

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:subject
					scope:subject = flag:kingdom
				}
				AND = {
					exists = var:book_subject
					var:book_subject = flag:kingdom
				}
			}
		}
		localization_key = feature_book_subject_kingdom
	}

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:subject
					scope:subject = flag:dynasty
				}
				AND = {
					exists = var:book_subject
					var:book_subject = flag:dynasty
				}
			}
		}
		localization_key = feature_book_subject_dynasty
	}

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:subject
					scope:subject = flag:relationship
				}
				AND = {
					exists = var:book_subject
					var:book_subject = flag:relationship
				}
			}
		}
		localization_key = feature_book_subject_relationship
	}

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:subject
					scope:subject = flag:mystical_animal
				}
				AND = {
					exists = var:book_subject
					var:book_subject = flag:mystical_animal
				}
			}
		}
		localization_key = feature_book_subject_mystical_animal
	}

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:subject
					scope:subject = flag:animals
				}
				AND = {
					exists = var:book_subject
					var:book_subject = flag:animals
				}
			}
		}
		localization_key = feature_book_subject_animals
	}

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:subject
					scope:subject = flag:childhood
				}
				AND = {
					exists = var:book_subject
					var:book_subject = flag:childhood
				}
			}
		}
		localization_key = feature_book_subject_childhood
	}

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:subject
					scope:subject = flag:alchemy
				}
				AND = {
					exists = var:book_subject
					var:book_subject = flag:alchemy
				}
			}
		}
		localization_key = feature_book_subject_alchemy
	}

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:subject
					scope:subject = flag:family_epic
				}
				AND = {
					exists = var:book_subject
					var:book_subject = flag:family_epic
				}
			}
		}
		localization_key = feature_book_subject_family_epic
	}

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:subject
					scope:subject = flag:family_epic_great
				}
				AND = {
					exists = var:book_subject
					var:book_subject = flag:family_epic_great
				}
			}
		}
		localization_key = feature_book_subject_family_epic_great
	}
}

# These custom loc keys are used in the desc for the artifact itself
ArtifactArticleBookContentQuality  = {
	type = character

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:book_content_quality
					scope:book_content_quality >= 80
				}
				AND = {
					exists = var:book_content_quality
					var:book_content_quality >= 80
				}
			}
		}
		localization_key = artifact_book_content_quality_excellent_article
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:book_content_quality
					scope:book_content_quality >= 60
					scope:book_content_quality < 80

				}
				AND = {
					exists = var:book_content_quality
					var:book_content_quality >= 60
					var:book_content_quality < 80
				}
			}
		}
		localization_key = artifact_book_content_quality_deep_article
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:book_content_quality
					scope:book_content_quality >= 40
					scope:book_content_quality < 60

				}
				AND = {
					exists = var:book_content_quality
					var:book_content_quality >= 40
					var:book_content_quality < 60
				}
			}
		}
		localization_key = artifact_book_content_quality_insightful_article
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:book_content_quality
					scope:book_content_quality >= 25
					scope:book_content_quality < 40

				}
				AND = {
					exists = var:book_content_quality
					var:book_content_quality >= 25
					var:book_content_quality < 40
				}
			}
		}
		localization_key = artifact_book_content_quality_adequate_article
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:book_content_quality
					scope:book_content_quality < 25
				}
				AND = {
					exists = var:book_content_quality
					var:book_content_quality < 25
				}
			}
		}
		localization_key = artifact_book_content_quality_modest_article
		fallback = yes
	}
}

ArtifactBookContentQuality  = {
	type = character

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:book_content_quality
					scope:book_content_quality >= 80
				}
				AND = {
					exists = var:book_content_quality
					var:book_content_quality >= 80
				}
			}
		}
		localization_key = artifact_book_content_quality_excellent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:book_content_quality
					scope:book_content_quality >= 60
					scope:book_content_quality < 80

				}
				AND = {
					exists = var:book_content_quality
					var:book_content_quality >= 60
					var:book_content_quality < 80
				}
			}
		}
		localization_key = artifact_book_content_quality_deep
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:book_content_quality
					scope:book_content_quality >= 40
					scope:book_content_quality < 60

				}
				AND = {
					exists = var:book_content_quality
					var:book_content_quality >= 40
					var:book_content_quality < 60
				}
			}
		}
		localization_key = artifact_book_content_quality_insightful
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:book_content_quality
					scope:book_content_quality >= 25
					scope:book_content_quality < 40

				}
				AND = {
					exists = var:book_content_quality
					var:book_content_quality >= 25
					var:book_content_quality < 40
				}
			}
		}
		localization_key = artifact_book_content_quality_adequate
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:book_content_quality
					scope:book_content_quality < 25
				}
				AND = {
					exists = var:book_content_quality
					var:book_content_quality < 25
				}
			}
		}
		localization_key = artifact_book_content_quality_modest
		fallback = yes
	}
}

ArtifactAdverbBookContentQuality  = {
	type = character

	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:book_content_quality
					scope:book_content_quality >= 80
				}
				AND = {
					exists = var:book_content_quality
					var:book_content_quality >= 80
				}
			}
		}
		localization_key = artifact_book_content_quality_excellent_adverb
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:book_content_quality
					scope:book_content_quality >= 60
					scope:book_content_quality < 80

				}
				AND = {
					exists = var:book_content_quality
					var:book_content_quality >= 60
					var:book_content_quality < 80
				}
			}
		}
		localization_key = artifact_book_content_quality_deep_adverb
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:book_content_quality
					scope:book_content_quality >= 40
					scope:book_content_quality < 60

				}
				AND = {
					exists = var:book_content_quality
					var:book_content_quality >= 40
					var:book_content_quality < 60
				}
			}
		}
		localization_key = artifact_book_content_quality_insightful_adverb
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:book_content_quality
					scope:book_content_quality >= 25
					scope:book_content_quality < 40

				}
				AND = {
					exists = var:book_content_quality
					var:book_content_quality >= 25
					var:book_content_quality < 40
				}
			}
		}
		localization_key = artifact_book_content_quality_adequate_adverb
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = scope:book_content_quality
					scope:book_content_quality < 25
				}
				AND = {
					exists = var:book_content_quality
					var:book_content_quality < 25
				}
			}
		}
		localization_key = artifact_book_content_quality_modest_adverb
		fallback = yes
	}
}

# ANIMAL

# Used in the title of the artifact
ArtifactAnimalType = {
	type = artifact

	text = {
		trigger = { has_artifact_feature = animal_hide_type_cat }
		localization_key = animal_type_cat
	}

	text = {
		trigger = { has_artifact_feature = animal_hide_type_dog }
		localization_key = animal_type_dog
	}

	text = {
		trigger = { has_artifact_feature = animal_hide_type_fox }
		localization_key = animal_type_fox
	}

	text = {
		trigger = { has_artifact_feature = animal_hide_type_hare }
		localization_key = animal_type_hare
	}

	text = {
		trigger = {
			OR = {
				has_artifact_feature = animal_skull_type_wolf
				has_artifact_feature = animal_hide_type_wolf
			}
		}
		localization_key = animal_type_wolf
	}

	text = {
		trigger = {
			OR = {
				has_artifact_feature = animal_skull_type_hyena
				has_artifact_feature = animal_hide_type_hyena
			}
		}
		localization_key = animal_type_hyena
	}

	text = {
		trigger = {
			OR = {
				has_artifact_feature = animal_skull_type_lynx
				has_artifact_feature = animal_hide_type_lynx
			}
		}
		localization_key = animal_type_lynx
	}

	text = { # Stag - Fallow
		trigger = {
			OR = {
				has_artifact_feature = animal_skull_type_stag
				has_artifact_feature = animal_hide_type_stag
			}
			var:animal_type ?= flag:stag
		}
		localization_key = animal_type_stag
	}

	text = { # Reindeer
		trigger = {
			OR = {
				has_artifact_feature = animal_skull_type_stag
				has_artifact_feature = animal_hide_type_stag
			}
			var:animal_type ?= flag:reindeer
		}
		localization_key = animal_type_reindeer
	}

	text = { # Hart - Red
		trigger = {
			OR = {
				has_artifact_feature = animal_skull_type_hart
				has_artifact_feature = animal_hide_type_hart
			}
		}
		localization_key = animal_type_hart
	}

	text = { # Elk - Moose
		trigger = {
			OR = {
				has_artifact_feature = animal_skull_type_elk
				has_artifact_feature = animal_hide_type_elk
			}
		}
		localization_key = animal_type_elk
	}

	text = { # Antelope
		trigger = {
			OR = {
				has_artifact_feature = animal_skull_type_antelope
				has_artifact_feature = animal_hide_type_antelope
			}
			var:animal_type ?= flag:antelope
		}
		localization_key = animal_type_antelope
	}

	text = { # Saiga
		trigger = {
			OR = {
				has_artifact_feature = animal_skull_type_antelope
				has_artifact_feature = animal_hide_type_antelope
			}
			var:animal_type ?= flag:saiga
		}
		localization_key = animal_type_saiga
	}

	text = { # Gazelle
		trigger = {
			OR = {
				has_artifact_feature = animal_skull_type_gazelle
				has_artifact_feature = animal_hide_type_gazelle
			}
		}
		localization_key = animal_type_gazelle
	}

	text = { # Roe
		trigger = {
			OR = {
				has_artifact_feature = animal_skull_type_roe
				has_artifact_feature = animal_hide_type_roe
			}
		}
		localization_key = animal_type_roe
	}

	text = {
		trigger = { has_artifact_feature = animal_skull_type_horse }
		localization_key = animal_type_horse
	}

	text = {
		trigger = {
			OR = {
				has_artifact_feature = animal_skull_type_rabbit
				has_artifact_feature = animal_hide_type_rabbit
			}
		}
		localization_key = animal_type_rabbit
	}

	text = {
		trigger = {
			OR = {
				has_artifact_feature = animal_skull_type_boar
				has_artifact_feature = animal_hide_type_boar
			}
		}
		localization_key = animal_type_boar
	}

	text = {
		trigger = {
			OR = {
				has_artifact_feature = animal_skull_type_lion
				has_artifact_feature = animal_hide_type_lion
			}
		}
		localization_key = animal_type_lion
	}

	text = {
		trigger = {
			OR = {
				has_artifact_feature = animal_skull_type_tiger
				has_artifact_feature = animal_hide_type_tiger
			}
		}
		localization_key = animal_type_tiger
	}

	text = {
		trigger = {
			OR = {
				has_artifact_feature = animal_skull_type_leopard
				has_artifact_feature = animal_hide_type_leopard
			}
		}
		localization_key = animal_type_leopard
	}

	text = {
		trigger = {
			OR = {
				has_artifact_feature = animal_skull_type_bear
				has_artifact_feature = animal_hide_type_bear
			}
		}
		localization_key = animal_type_bear
	}

	text = {
		trigger = {
			OR = {
				has_artifact_feature = animal_skull_type_aurochs
				has_artifact_feature = animal_hide_type_aurochs
			}
		}
		localization_key = animal_type_aurochs
	}

	text = {
		trigger = {
			OR = {
				has_artifact_feature = animal_skull_type_bison
				has_artifact_feature = animal_hide_type_bison
			}
		}
		localization_key = animal_type_bison
	}

	text = {
		trigger = {
			OR = {
				has_artifact_feature = animal_skull_type_unicorn
				has_artifact_feature = animal_hide_type_unicorn
			}
		}
		localization_key = animal_type_unicorn
	}

	text = {
		trigger = { has_artifact_feature = animal_hide_type_dragon }
		localization_key = animal_type_dragon
	}
}

ArtifactAnimalAdjective = {
	type = artifact
	random_valid = yes
	text = {
		trigger = {
			hunt_animal_type_small_trigger = { VAR = var:animal_type }
		}
		localization_key = artifact_animal_adjective_great
	}
	text = {
		trigger = {
			NOT = {
				hunt_animal_type_small_trigger = { VAR = var:animal_type }
			}
		}
		localization_key = artifact_animal_adjective_mighty
	}
	text = {
		trigger = {
			NOT = {
				hunt_animal_type_herbivore_trigger = { VAR = var:animal_type }
			}
		}
		localization_key = artifact_animal_man_eating
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { exists = var:legendary }
				var:animal_type ?= flag:leopard
			}
			trigger_else = {
				OR = {
					var:animal_type ?= flag:bear
					var:animal_type ?= flag:boar
				}
			}
		}
		localization_key = artifact_animal_black
	}
	text = {
		trigger = {
			exists = var:legendary
			NOT = { var:animal_type ?= flag:leopard }
		}
		localization_key = artifact_animal_white
	}
	text = {
		trigger = {
			NOT = {
				hunt_animal_type_herbivore_trigger = { VAR = var:animal_type }
			}
		}
		localization_key = artifact_animal_cursed
	}
	text = {
		trigger = {
			NOT = {
				hunt_animal_type_herbivore_trigger = { VAR = var:animal_type }
			}
		}
		localization_key = artifact_animal_feral
	}
	text = {
		trigger = {
			NOT = {
				hunt_animal_type_herbivore_trigger = { VAR = var:animal_type }
			}
		}
		localization_key = artifact_animal_terrifying
	}
	text = {
		trigger = {
			NOT = {
				hunt_animal_type_herbivore_trigger = { VAR = var:animal_type }
			}
		}
		localization_key = artifact_animal_fearsome
	}
	text = {
		trigger = {
			NOT = {
				hunt_animal_type_herbivore_trigger = { VAR = var:animal_type }
			}
		}
		localization_key = artifact_animal_notorious
	}
	text = {
		trigger = {
			NOT = {
				hunt_animal_type_herbivore_trigger = { VAR = var:animal_type }
			}
		}
		localization_key = artifact_animal_stalking
	}
	text = {
		trigger = { exists = var:legendary }
		localization_key = artifact_animal_fabled
	}
	text = {
		trigger = { exists = var:legendary }
		localization_key = artifact_animal_elusive
	}
	text = {
		trigger = { exists = var:legendary }
		localization_key = artifact_animal_ancient
	}
	text = {
		trigger = {
			NOT = {
				hunt_animal_type_small_trigger = { VAR = var:animal_type }
			}
		}
		localization_key = artifact_animal_renowned
	}
	text = {
		localization_key = artifact_animal_wild
	}
	text = {
		trigger = {
			NOT = {
				hunt_animal_type_herbivore_trigger = { VAR = var:animal_type }
			}
		}
		localization_key = artifact_animal_beastly
	}
}

ArtifactSmallHideAcquisitionMethod = {
	type = artifact

	text = { # If it's a cat or a dog you probably preserved a loved pet
		trigger = {
			OR = {
				has_artifact_feature = animal_hide_type_cat
				has_artifact_feature = animal_hide_type_dog
			}
		}
		localization_key = artifact_small_hide_acquisition_pet
	}

	text = { # Otherwise it was hunted
		trigger = {
			NOR = {
				has_artifact_feature = animal_hide_type_cat
				has_artifact_feature = animal_hide_type_dog
			}
		}
		localization_key = artifact_small_hide_acquisition_hunt
	}
}

RandomDivinity = {
	type = character

	random_valid = yes

	text = {
		localization_key = artifact_sculpture_religious_highgod
	}
	text = {
		localization_key = artifact_sculpture_religious_health
	}
	text = {
		localization_key = artifact_sculpture_religious_fertility
	}
	text = {
		localization_key = artifact_sculpture_religious_wealth
	}
	text = {
		localization_key = artifact_sculpture_religious_war
	}
	text = {
		localization_key = artifact_sculpture_religious_knowledge
	}
}


# ALCHEMY

ArtifactElixirTypeDesc = {
	type = artifact

	random_valid = yes

	text = {
		trigger = {
			has_artifact_feature = elixir_youth
		}
		localization_key = feature_elixir_youth_desc
	}
	text = {
		trigger = {
			has_artifact_feature = elixir_immortality
		}
		localization_key = feature_elixir_immortality_desc
	}
}


# FLOWER

ArtifactFlowerSpecies = {
	type = character

	text = {
		trigger = {
			exists = scope:flower_species
			scope:flower_species = flag:flower_type_aster
		}
		localization_key = flower_type_aster
	}
	text = {
		trigger = {
			exists = scope:flower_species
			scope:flower_species = flag:flower_type_orchid
		}
		localization_key = flower_type_orchid
	}
	text = {
		trigger = {
			exists = scope:flower_species
			scope:flower_species = flag:flower_type_rose
		}
		localization_key = flower_type_rose
	}
	text = {
		trigger = {
			exists = scope:flower_species
			scope:flower_species = flag:flower_type_poppy
		}
		localization_key = flower_type_poppy
	}
	text = {
		trigger = {
			exists = scope:flower_species
			scope:flower_species = flag:flower_type_tulip
		}
		localization_key = flower_type_tulip
	}
	text = {
		trigger = {
			exists = scope:flower_species
			scope:flower_species = flag:flower_type_crocus
		}
		localization_key = flower_type_crocus
	}
	text = {
		trigger = {
			exists = scope:flower_species
			scope:flower_species = flag:flower_type_narcissus
		}
		localization_key = flower_type_narcissus
	}
	text = {
		trigger = {
			exists = scope:flower_species
			scope:flower_species = flag:flower_type_snapdragon
		}
		localization_key = flower_type_snapdragon
	}
	text = {
		trigger = {
			exists = scope:flower_species
			scope:flower_species = flag:flower_type_carnation
		}
		localization_key = flower_type_carnation
	}
	text = {
		trigger = {
			exists = scope:flower_species
			scope:flower_species = flag:flower_type_foxglove
		}
		localization_key = flower_type_foxglove
	}
	text = {
		trigger = {
			exists = scope:flower_species
			scope:flower_species = flag:flower_type_iris
		}
		localization_key = flower_type_iris
	}
	text = {
		trigger = {
			exists = scope:flower_species
			scope:flower_species = flag:flower_type_geranium
		}
		localization_key = flower_type_geranium
	}
	text = {
		trigger = {
			exists = scope:flower_species
			scope:flower_species = flag:flower_type_lily
		}
		localization_key = flower_type_lily
	}
	text = {
		trigger = {
			exists = scope:flower_species
			scope:flower_species = flag:flower_type_lavender
		}
		localization_key = flower_type_lavender
	}
	text = {
		trigger = {
			exists = scope:flower_species
			scope:flower_species = flag:flower_type_peony
		}
		localization_key = flower_type_peony
	}
	text = {
		trigger = {
			exists = scope:flower_species
			scope:flower_species = flag:flower_type_violet
		}
		localization_key = flower_type_violet
	}
	text = {
		trigger = {
			exists = scope:flower_species
			scope:flower_species = flag:flower_type_delphinium
		}
		localization_key = flower_type_delphinium
	}
	text = {
		trigger = {
			exists = scope:flower_species
			scope:flower_species = flag:flower_type_jasmine
		}
		localization_key = flower_type_jasmine
	}
	text = {
		trigger = {
			exists = scope:flower_species
			scope:flower_species = flag:flower_type_chrysanthemum
		}
		localization_key = flower_type_chrysanthemum
	}
	text = {
		trigger = {
			exists = scope:flower_species
			scope:flower_species = flag:flower_type_lotus
		}
		localization_key = flower_type_lotus
	}
	text = {
		trigger = {
			exists = scope:flower_species
			scope:flower_species = flag:flower_type_lotus
		}
		localization_key = flower_type_lotus
	}
	text = {
		trigger = {
			exists = scope:flower_species
			scope:flower_species = flag:flower_type_gardenia
		}
		localization_key = flower_type_gardenia
	}
	text = {
		trigger = {
			exists = scope:flower_species
			scope:flower_species = flag:flower_type_hibiscus
		}
		localization_key = flower_type_hibiscus
	}
}

ArtifactFlowerSpeciesPlural = {
	parent = ArtifactFlowerSpecies
	suffix = "_plural"
}

ArtifactVariableFlowerSpecies = {
	type = artifact

	text = {
		trigger = {
			exists = var:flower_species
			var:flower_species = flag:flower_type_aster
		}
		localization_key = flower_type_aster
	}
	text = {
		trigger = {
			exists = var:flower_species
			var:flower_species = flag:flower_type_orchid
		}
		localization_key = flower_type_orchid
	}
	text = {
		trigger = {
			exists = var:flower_species
			var:flower_species = flag:flower_type_rose
		}
		localization_key = flower_type_rose
	}
	text = {
		trigger = {
			exists = var:flower_species
			var:flower_species = flag:flower_type_poppy
		}
		localization_key = flower_type_poppy
	}
	text = {
		trigger = {
			exists = var:flower_species
			var:flower_species = flag:flower_type_tulip
		}
		localization_key = flower_type_tulip
	}
	text = {
		trigger = {
			exists = var:flower_species
			var:flower_species = flag:flower_type_crocus
		}
		localization_key = flower_type_crocus
	}
	text = {
		trigger = {
			exists = var:flower_species
			var:flower_species = flag:flower_type_narcissus
		}
		localization_key = flower_type_narcissus
	}
	text = {
		trigger = {
			exists = var:flower_species
			var:flower_species = flag:flower_type_snapdragon
		}
		localization_key = flower_type_snapdragon
	}
	text = {
		trigger = {
			exists = var:flower_species
			var:flower_species = flag:flower_type_carnation
		}
		localization_key = flower_type_carnation
	}
	text = {
		trigger = {
			exists = var:flower_species
			var:flower_species = flag:flower_type_foxglove
		}
		localization_key = flower_type_foxglove
	}
	text = {
		trigger = {
			exists = var:flower_species
			var:flower_species = flag:flower_type_iris
		}
		localization_key = flower_type_iris
	}
	text = {
		trigger = {
			exists = var:flower_species
			var:flower_species = flag:flower_type_geranium
		}
		localization_key = flower_type_geranium
	}
	text = {
		trigger = {
			exists = var:flower_species
			var:flower_species = flag:flower_type_lily
		}
		localization_key = flower_type_lily
	}
	text = {
		trigger = {
			exists = var:flower_species
			var:flower_species = flag:flower_type_lavender
		}
		localization_key = flower_type_lavender
	}
	text = {
		trigger = {
			exists = var:flower_species
			var:flower_species = flag:flower_type_peony
		}
		localization_key = flower_type_peony
	}
	text = {
		trigger = {
			exists = var:flower_species
			var:flower_species = flag:flower_type_violet
		}
		localization_key = flower_type_violet
	}
	text = {
		trigger = {
			exists = var:flower_species
			var:flower_species = flag:flower_type_delphinium
		}
		localization_key = flower_type_delphinium
	}
	text = {
		trigger = {
			exists = var:flower_species
			var:flower_species = flag:flower_type_jasmine
		}
		localization_key = flower_type_jasmine
	}
	text = {
		trigger = {
			exists = var:flower_species
			var:flower_species = flag:flower_type_chrysanthemum
		}
		localization_key = flower_type_chrysanthemum
	}
	text = {
		trigger = {
			exists = var:flower_species
			var:flower_species = flag:flower_type_lotus
		}
		localization_key = flower_type_lotus
	}
	text = {
		trigger = {
			exists = var:flower_species
			var:flower_species = flag:flower_type_lotus
		}
		localization_key = flower_type_lotus
	}
	text = {
		trigger = {
			exists = var:flower_species
			var:flower_species = flag:flower_type_gardenia
		}
		localization_key = flower_type_gardenia
	}
	text = {
		trigger = {
			exists = var:flower_species
			var:flower_species = flag:flower_type_hibiscus
		}
		localization_key = flower_type_hibiscus
	}
}

RandomSaintBone = {
	type = character

	random_valid = yes

	text = { localization_key = bone_type_knuckle }

	text = { localization_key = bone_type_shin }

	text = { localization_key = bone_type_kneecap }

	text = { localization_key = bone_type_femur }

	text = { localization_key = bone_type_clavicle }

	text = { localization_key = bone_type_rib }

	text = { localization_key = bone_type_vertebra }

	text = { localization_key = bone_type_jaw }

	text = { localization_key = bone_type_toe }

	text = { localization_key = bone_type_scapula }

	text = { localization_key = bone_type_finger }

	text = { localization_key = bone_type_thumb }

	text = { localization_key = bone_type_hip }

	text = { localization_key = bone_type_humerus }

	text = { localization_key = bone_type_tibia }

	text = { localization_key = bone_type_ankle }	
}

RandomWeaponTitle1 = {	#artifact.4010 - expanding a weapon's name through battles won
	type = artifact

	random_valid = yes

	text = { localization_key = artifact_title_valor }

	text = { localization_key = artifact_title_virtue }

	text = { localization_key = artifact_title_pain }

	text = { localization_key = artifact_title_judgement }
}

RandomWeaponTitle2 = {	#artifact.4010 - expanding a weapon's name through battles won
	type = artifact

	random_valid = yes

	text = { localization_key = artifact_title_merciless }

	text = { localization_key = artifact_title_brutal }

	text = { localization_key = artifact_title_victorious }

	text = { localization_key = artifact_title_famed }
}

RandomWeaponTitle3 = {	#artifact.4010 - expanding a weapon's name through battles won
	type = artifact

	random_valid = yes

	text = { localization_key = artifact_title_lion }

	text = { localization_key = artifact_title_dragon }

	text = { localization_key = artifact_title_raven }

	text = { localization_key = artifact_title_hero }
}

RandomWeaponTitle4 = {	#artifact.4010 - expanding a weapon's name through battles won
	type = artifact

	random_valid = yes

	text = { localization_key = artifact_title_legendary }

	text = { localization_key = artifact_title_miraculous }

	text = { localization_key = artifact_title_mythical }

	text = { localization_key = artifact_title_fabled }
}

RandomArmorTitle1 = {	#artifact.4020 - expanding an armor's name through battles won
	type = artifact

	random_valid = yes

	text = { localization_key = artifact_title_impenetrable }

	text = { localization_key = artifact_title_secure }

	text = { localization_key = artifact_title_solid }

	text = { localization_key = artifact_title_shiny }
}

RandomArmorTitle2 = {	#artifact.4020 - expanding an armor's name through battles won
	type = artifact

	random_valid = yes

	text = { localization_key = artifact_title_patience }

	text = { localization_key = artifact_title_grace }

	text = { localization_key = artifact_title_mercy }

	text = { localization_key = artifact_title_strength }
}

RandomArmorTitle3 = {	#artifact.4020 - expanding an armor's name through battles won
	type = artifact

	random_valid = yes

	text = { localization_key = artifact_title_legendary }

	text = { localization_key = artifact_title_miraculous }

	text = { localization_key = artifact_title_invincible }

	text = { localization_key = artifact_title_glorious }
}

RandomArmorTitle4 = {	#artifact.4020 - expanding an armor's name through battles won
	type = artifact

	random_valid = yes

	text = { localization_key = artifact_title_sun }

	text = { localization_key = artifact_title_hero }

	text = { localization_key = artifact_title_immortal }

	text = { localization_key = artifact_title_brave }
}

RandomDuelTitle1 = {	#artifact.4080 - expanding a weapon's name through duels won
	type = artifact

	random_valid = yes

	text = { localization_key = artifact_title_quick }

	text = { localization_key = artifact_title_darting }

	text = { localization_key = artifact_title_flashing }

	text = { localization_key = artifact_title_flickering }
}

RandomDuelTitle2 = {	#artifact.4080 - expanding a weapon's name through duels won
	type = artifact

	random_valid = yes

	text = { localization_key = artifact_title_shades }

	text = { localization_key = artifact_title_lightning }

	text = { localization_key = artifact_title_thunder }

	text = { localization_key = artifact_title_stream }
}

RandomDuelTitle3 = {	#artifact.4080 - expanding a weapon's name through duels won
	type = artifact

	random_valid = yes

	text = { localization_key = artifact_title_implacable }

	text = { localization_key = artifact_title_heroic }

	text = { localization_key = artifact_title_amazing }

	text = { localization_key = artifact_title_fearsome }
}

RandomDuelTitle4 = {	#artifact.4080 - expanding a weapon's name through duels won
	type = artifact

	random_valid = yes

	text = { localization_key = artifact_title_snakes }

	text = { localization_key = artifact_title_themerciless }

	text = { localization_key = artifact_title_glory }

	text = { localization_key = artifact_title_immortal }
}

EpistleReciever = { #For Muhammads Letters
	type = artifact
	random_valid = yes
	text = {
		localization_key = epistle_syria
	}
	text = {
		localization_key = epistle_arabia
	}
	text = {
		localization_key = epistle_persia
	}
	text = {
		localization_key = epistle_byzantium
	}
	text = {
		localization_key = epistle_bahrain
	}
}

RandomIconTopic = {
	type = character

	random_valid = yes

	text = {
		localization_key = theotokos
	}

	text = {
		localization_key = ladder_heaven
	}

	text = {
		localization_key = pantokrator
	}

	text = {
		localization_key = annunciation
	}

	text = {
		localization_key = saint_peter
	}

	text = {
		localization_key = saint_paul
	}

	text = {
		localization_key = saint_theodore
	}

	text = {
		localization_key = saint_basil
	}

	text = {
		localization_key = moses
	}

	text = {
		localization_key = archangel_michael
	}

	text = {
		localization_key = crucifixion
	}
}
