# Allows you to create your own dynamic keys to be called in localization.

# defined_text = {
# 	name = GetExampleText 					#The key to refer to in locs, e.g. [Root.GetExampleText]
# 	random = no								#If "random = no" is specified (default is "yes"), it will pick the entry with the highest weight (rather than weighted
# 											#random among valid entries). If several entries have the same weight (or none is specified), the first will be picked.
# 	text = {
# 		localization_key = text_something	#The loc key used if this text entry is picked.
# 		trigger = {							#Triggers that determine if this text entry can be picked.
# 		}
# 		weight = {							#Weight field to determine how likely this one is to be picked if multiple are possible.
# 			weight = 1 						#Works like weight fields everywhere, with modifiers etc. Weight is 1 if not specified.
# 			modifier = {
# 				factor = 2
# 			}
# 		}
# 	}
# 	text = { 								#You can specify as many text entries as you want
# 		localization_key = text_something_else
# 		trigger = {
# 		}
# 	}
# 	default = default_text 					#You can specify a default text, which is used in case the triggers of all entries fail.
# }


# You can also do this to use script values in loc:
# defined_text = {
# 	name = scripted_value_test
# 	value = value:desired_science_ships_system_mult
# }

defined_text = {
	name = EstChorniclerPhysicsName
	text = {
		trigger = {
			exists = owner
			owner = {
				OR = {
					is_gestalt = yes
					is_machine_empire = yes
				}
			}
		}
		localization_key = leader_trait_scientist_est_librarian_mathematics_GC
	}
	default = leader_trait_scientist_est_librarian_mathematics_default
}

defined_text = {
	name = EstChorniclerPhysicsDesc
	text = {
		trigger = {
			exists = owner
			owner = {
				OR = {
					is_gestalt = yes
					is_machine_empire = yes
				}
			}
		}
		localization_key = leader_trait_scientist_est_librarian_mathematics_GC_desc
	}
	default = leader_trait_scientist_est_librarian_mathematics_default_desc
}

defined_text = {
	name = EstChorniclerBioName
	text = {
		trigger = {
			exists = owner
			owner = {
				OR = {
					is_gestalt = yes
					is_machine_empire = yes
				}
			}
		}
		localization_key = leader_trait_scientist_est_librarian_taxonomy_GC
	}
	default = leader_trait_scientist_est_librarian_taxonomy_default
}

defined_text = {
	name = EstChorniclerBioDesc
	text = {
		trigger = {
			exists = owner
			owner = {
				OR = {
					is_gestalt = yes
					is_machine_empire = yes
				}
			}
		}
		localization_key = leader_trait_scientist_est_librarian_taxonomy_GC_desc
	}
	default = leader_trait_scientist_est_librarian_taxonomy_default_desc
}

defined_text = {
	name = EstChorniclerEngineerName
	text = {
		trigger = {
			exists = owner
			owner = {
				OR = {
					is_gestalt = yes
					is_machine_empire = yes
				}
			}
		}
		localization_key = leader_trait_scientist_est_librarian_mechanics_GC
	}
	default = leader_trait_scientist_est_librarian_mechanics_default
}

defined_text = {
	name = EstChorniclerEngineerDesc
	text = {
		trigger = {
			exists = owner
			owner = {
				OR = {
					is_gestalt = yes
					is_machine_empire = yes
				}
			}
		}
		localization_key = leader_trait_scientist_est_librarian_mechanics_GC_desc
	}
	default = leader_trait_scientist_est_librarian_mechanics_default_desc
}