# Superstitious Beliefs
defined_text = {
	name = GetCycleOfFortuneConceptEffects
	random = no
	text = {
		trigger = {
			is_gestalt = yes
		}
		localization_key = cycle_of_fortune_concept_effects_gestalt
	}
	default = cycle_of_fortune_concept_effects_individual
}

defined_text = {
	name = GetCycleOfFortuneDesc
	random = no
	text = {
		trigger = {
			is_gestalt = yes
		}
		localization_key = cycle_of_fortune_effects_gestalt
	}
	default = cycle_of_fortune_effects_individual
}

defined_text = {
	name = GetCycleOfOmensConceptEffects
	random = no
	text = {
		trigger = {
			is_gestalt = yes
		}
		localization_key = cycle_of_omens_concept_effects_gestalt
	}
	default = cycle_of_omens_concept_effects_individual
}

defined_text = {
	name = GetCycleOfOmensDesc
	random = no
	text = {
		trigger = {
			is_gestalt = yes
		}
		localization_key = cycle_of_omens_effects_gestalt
	}
	default = cycle_of_omens_effects_individual
}

defined_text = {
	name = GetCycleOfGrowthConceptEffects
	random = no
	text = {
		trigger = {
			country_uses_food = yes
		}
		localization_key = cycle_of_growth_concept_effects_food
	}
	default = cycle_of_growth_concept_effects_energy
}

defined_text = {
	name = GetCycleOfGrowthDesc
	random = no
	text = {
		trigger = {
			country_uses_food = yes
		}
		localization_key = cycle_of_growth_effects_food
	}
	default = cycle_of_growth_effects_energy
}

defined_text = {
	name = GetCycleOfKnowledgeConceptEffects
	random = no
	text = {
		trigger = {
			is_gestalt = yes
		}
		localization_key = cycle_of_knowledge_concept_effects_gestalt
	}
	default = cycle_of_knowledge_concept_effects_individual
}

defined_text = {
	name = GetCycleOfKnowledgeDesc
	random = no
	text = {
		trigger = {
			is_gestalt = yes
		}
		localization_key = cycle_of_knowledge_effects_gestalt
	}
	default = cycle_of_knowledge_effects_individual
}

# Cycles effects bonus values
defined_text = {
	name = GetCyclePositiveBonusEffectsValue
	value = value:cycle_positive_bonus_effects_value
}

defined_text = {
	name = GetCycleMidPositiveBonusEffectsValue
	value = value:cycle_mid_positive_bonus_effects_value
}

defined_text = {
	name = GetCycleNegativeBonusEffectsValue
	value = value:cycle_negative_bonus_effects_value
}

defined_text = {
	name = GetCycleMidNegativeBonusEffectsValue
	value = value:cycle_mid_negative_bonus_effects_value
}

# Experimental Testing Situation Research Category
defined_text = {
	name = GetExperimentalTestingCategory
	random = no
	text = {
		trigger = {
			has_situation_flag = situation_experimental_testing_physics
		}
		localization_key = PHYSICS
	}
	text = {
		trigger = {
			has_situation_flag = situation_experimental_testing_society
		}
		localization_key = SOCIETY
	}
	text = {
		trigger = {
			has_situation_flag = situation_experimental_testing_engineering
		}
		localization_key = ENGINEERING
	}
	default = situation_experimental_testing_unknown_cat
}

defined_text = {
	name = GetExperimentalTestingOutcome
	random = no
	text = {
		trigger = {
			OR = {
				has_situation_flag = situation_experimental_testing_physics
				has_situation_flag = situation_experimental_testing_society
				has_situation_flag = situation_experimental_testing_engineering
			}
		}
		localization_key = situation_experimental_testing_real_outcome
	}
	default = situation_experimental_testing_no_outcome
}

defined_text = {
	name = GetNbTestSubjects
	value = value:count_test_subjects
}

defined_text = {
	name = GetExperimentalTestingInsight
	value = value:experimental_testing_insight_gain_percentage
}

# Words
defined_text = {
	name = GetCitizenPlural
	text = {
		trigger = {
			is_machine_empire = yes
		}
		localization_key = units_key
	}
	text = {
		trigger = {
			is_hive_empire = yes
		}
		localization_key = drones_key
	}
	default = citizens_key
}

defined_text = {
	name = GetDissent
	text = {
		trigger = {
			is_gestalt = yes
		}
		localization_key = deviancy_key
	}
	default = dissent_key
}

defined_text = {
	name = GetDeathName
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = expiration_key
	}
	default = death_key
}

defined_text = {
	name = GetDeceasedAdj
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = expired_key
	}
	default = deceased_key
}

defined_text = {
	name = GetGeneticMutationName
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = molecular_restructuring_key
	}
	default = genetic_mutation_key
}

defined_text = {
	name = GetDistressName
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = functional_impairment_key
	}
	default = distress_key
}

defined_text = {
	name = GetPsychicAdj
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = neural_key
	}
	default = psychic_key
}

defined_text = {
	name = GetMedicalAdj
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = mechanical_key
	}
	default = medical_key
}

defined_text = {
	name = GetMedicalImplantName
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = neural_upgrade_key
	}
	default = medical_implant_key
}

defined_text = {
	name = GetImplantName
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = upgrade_key
	}
	default = implant_key
}

defined_text = {
	name = GetHorrifyingNightmarePlural
	text = {
		trigger = {
			OR = {
				founder_species_is_machine = yes
				is_gestalt = yes
			}
		}
		localization_key = corrupted_rest_states_key
	}
	default = horrifying_nightmares_key
}

defined_text = {
	name = GetSpeciesWord
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = kind_key
	}
	default = species_key
}

defined_text = {
	name = GetTelepathic
	text = {
		trigger = {
			is_gestalt = yes
		}
		localization_key = special_key
	}
	default = telepathic_key
}

defined_text = {
	name = GetHypnotic
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = algorithmic_key
	}
	default = hypnotic_key
}

defined_text = {
	name = GetSeeVerb
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = detect_key
	}
	default = see_key
}

defined_text = {
	name = GetSensation
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = irregularity_key
	}
	default = sensation_key
}

defined_text = {
	name = GetEthicsPluralCap
	text = {
		trigger = {
			is_gestalt = yes
		}
		localization_key = effect_plural_cap_key
	}
	default = ETHICS
}

# Test Subject
defined_text = {
	name = GetTestSubject
	random = no
	text = {
		trigger = {
			exists = owner
			owner = {
				is_gestalt = yes
			}
		}
		localization_key = job_test_subject_drone
	}
	default = job_test_subject
}

defined_text = {
	name = GetTestSubjectPlural
	random = no
	text = {
		trigger = {
			exists = owner
			owner = {
				is_gestalt = yes
			}
		}
		localization_key = job_test_subject_drone_plural
	}
	default = job_test_subject_plural
}

# Test Subjects death percentage
defined_text = {
	name = GetTestSubjectsPredictedLoss
	value = value:test_subjects_predicted_loss
}

# Test Subjects death percentage situation detail
defined_text = {
	name = GetTestSubjectsPredictedLossSituationDetails
	random = no
	text = {
		trigger = {
			OR = {
				current_situation_approach = situation_experimental_testing_physics
				current_situation_approach = situation_experimental_testing_society
				current_situation_approach = situation_experimental_testing_engineering
			}
		}
		localization_key = situation_experimental_testing_test_subjects_loss_for_situation_details
	}
	default = situation_experimental_testing_test_subjects_loss_no_details
}

# Test Subjects death percentage situation
defined_text = {
	name = GetTestSubjectsPredictedLossSituation
	value = value:test_subjects_predicted_loss_situation
}

# Test Subjects death percentage councilors detail
defined_text = {
	name = GetTestSubjectsPredictedLossCouncilorsDetails
	random = no
	text = {
		trigger = {
			exists = owner
			owner = {
				OR = {
					has_councilor = { COUNCILOR = councilor_experimentation_overseer }
					has_councilor = { COUNCILOR = councilor_test_marketer }
				}
			}
			OR = {
				current_situation_approach = situation_experimental_testing_physics
				current_situation_approach = situation_experimental_testing_society
				current_situation_approach = situation_experimental_testing_engineering
			}
		}
		localization_key = situation_experimental_testing_test_subjects_loss_for_councilors_details
	}
	default = situation_experimental_testing_test_subjects_loss_no_details
}

# Test Subjects death percentage councilors
defined_text = {
	name = GetTestSubjectsPredictedLossCouncilors
	value = value:test_subjects_predicted_loss_councilors
}

# Superstitious Beliefs events
defined_text = {
	name = GetNewfoundFertilityTitle
	text = {
		trigger = {
			is_anglers_newfound_fertility = yes
		}
		localization_key = shroud.512.title_anglers
	}
	default = shroud.512.title_default
}

defined_text = {
	name = GetQuantumParticleStreamDiscoveredExtra
	text = {
		trigger = {
			has_first_contact_dlc = yes
		}
		localization_key = shroud.532.extra_first_contact
	}
	default = shroud.532.extra
}

defined_text = {
	name = GetSenseOfOptimismTitle
	text = {
		trigger = {
			is_gestalt = yes
		}
		localization_key = shroud.545.title_gestalt
	}
	default = shroud.545.title_default
}

defined_text = {
	name = GetNavalCollisionLeader
	text = {
		trigger = {
			exists = leader
		}
		localization_key = shroud.707.leader_name
	}
	default = shroud.707.default_name
}

# Open Shroud Rift decision
defined_text = {
	name = GetOpenShroudRiftCurrentUses
	value = value:get_shroud_rift_decision_uses
}

defined_text = {
	name = GetShroudRiftConsumeChance
	value = value:get_shroud_rift_consume_chance
}

# Chosen civic name
defined_text = {
	name = GetChosenCivicName
	random = no
	text = {
		trigger = { has_valid_civic = civic_chosen }
		localization_key = civic_chosen
	}
	text = {
		trigger = { has_valid_civic = civic_hive_chosen }
		localization_key = civic_hive_chosen
	}
	text = {
		trigger = { has_valid_civic = civic_machine_chosen }
		localization_key = civic_machine_chosen
	}
	text = {
		trigger = { has_valid_civic = civic_corporate_chosen }
		localization_key = civic_corporate_chosen
	}
	default = civic_chosen
}

defined_text = {
	name = GetChosenPatron
	random = no
	text = {
		trigger = { has_country_flag = the_eater_of_worlds_as_chosen_patron }
		localization_key = the_eater_of_worlds
	}
	text = {
		trigger = { has_country_flag = the_cradle_of_souls_as_chosen_patron }
		localization_key = the_cradle_of_souls
	}
	text = {
		trigger = { has_country_flag = the_instrument_of_desire_as_chosen_patron }
		localization_key = the_instrument_of_desire
	}
	text = {
		trigger = { has_country_flag = the_composer_of_strands_as_chosen_patron }
		localization_key = the_composer_of_strands
	}
	default = civic_chosen
}

defined_text = {
	name = GetTheChosenP2
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = shroud.5105.desc_p2_machine
	}
	default = shroud.5105.desc_p2
}

defined_text = {
	name = GetFeelLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_FEEL
	}
	default = ORGANIC_FEEL
}

defined_text = {
	name = GetFeelSenseLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_SENSE
	}
	default = ORGANIC_FEEL
}

defined_text = {
	name = GetMindLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_MIND
	}
	default = ORGANIC_MIND
}

defined_text = {
	name = GetSpiritsLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_SPIRITS
	}
	default = ORGANIC_SPIRITS
}

defined_text = {
	name = GetMindEyeLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_MIND_EYE
	}
	default = ORGANIC_MIND_EYE
}

defined_text = {
	name = GetMindPhysicalLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_MIND_PHYSICAL
	}
	default = ORGANIC_MIND_PHYSICAL
}

defined_text = {
	name = GetMindLogicLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_MIND_LOGIC
	}
	default = ORGANIC_MIND_LOGIC
}

defined_text = {
	name = GetMindPerceptionLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_MIND_PERCEPTION
	}
	default = ORGANIC_MIND_PERCEPTION
}

defined_text = {
	name = GetPsycheLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_PSYCHE
	}
	default = ORGANIC_PSYCHE
}

defined_text = {
	name = GetDrinkLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_DRINK
	}
	default = ORGANIC_DRINK
}

defined_text = {
	name = GetImbibeLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_IMBIBE
	}
	default = ORGANIC_IMBIBE
}

defined_text = {
	name = GetBodiesLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_BODIES
	}
	default = ORGANIC_BODIES
}

defined_text = {
	name = GetBredLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_BRED
	}
	default = ORGANIC_BRED
}

defined_text = {
	name = GetImmortalLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_IMMORTAL
	}
	default = ORGANIC_IMMORTAL
}

defined_text = {
	name = GetLifeActivityLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_LIFE_ACTIVITY
	}
	default = ORGANIC_LIFE
}

defined_text = {
	name = GetLifeExistenceLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_LIFE_EXISTENCE
	}
	default = ORGANIC_LIFE
}

defined_text = {
	name = GetLivingLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_LIVING
	}
	default = ORGANIC_LIVING
}

defined_text = {
	name = GetALongPeriodLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_A_LONG_PERIOD
	}
	default = ORGANIC_A_LONG_PERIOD
}

defined_text = {
	name = GetTranceLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_TRANCE
	}
	default = ORGANIC_TRANCE
}

defined_text = {
	name = GetLifeDeathLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_LIFE_AND_DEATH
	}
	default = ORGANIC_LIFE_AND_DEATH
}

defined_text = {
	name = GetReshapingRitualLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_RESHAPING_RITUAL
	}
	default = ORGANIC_RESHAPING_RITUAL
}

defined_text = {
	name = GetRitualToolLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_RITUAL_CODE
	}
	default = ORGANIC_RITUAL
}

defined_text = {
	name = GetRitualGoalLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_RITUAL_REPROGRAMMING
	}
	default = ORGANIC_RITUAL
}

defined_text = {
	name = GetJoyLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_JOY
	}
	default = ORGANIC_JOY
}

defined_text = {
	name = GetNeuralSystemLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_NEURAL
	}
	default = ORGANIC_NEURAL
}

defined_text = {
	name = GetAgingLoc
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_AGING
	}
	default = ORGANIC_AGING
}

defined_text = {
	name = GetIngestedLoc
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_INGESTED
	}
	default = ORGANIC_INGESTED
}

defined_text = {
	name = GetDrugLoc
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_DRUG
	}
	default = ORGANIC_DRUG
}

defined_txt = {
	name = GetPsychicNoun
	text = {
		trigger = {
			exists = owner
			owner = {
				is_robot_empire = no
				is_gestalt = yes
			}
		}
		localization_key = HIVE_PSYCHIC
	}
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_PSYCHIC
	}
	default = ORGANIC_PSYCHIC
}

defined_txt = {
	name = GetPsychicNounPlural
	text = {
		trigger = {
			exists = owner
			owner = {
				is_robot_empire = no
				is_gestalt = yes
			}
		}
		localization_key = HIVE_PSYCHIC_PLURAL
	}
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_PSYCHIC_PLURAL
	}
	default = ORGANIC_PSYCHIC_PLURAL
}

defined_text = {
	name = GetGovBehaviourLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		localization_key = GOV_BEHAVIOUR_GESTALT
	}
	default = GOV_BEHAVIOUR_DEFAULT
}

defined_text = {
	name = GetLeaderLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		localization_key = LEADER_GESTALT
	}
	default = LEADER_DEFAULT
}

defined_text = {
	name = GetFeltLoc
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = detected_key
	}
	default = felt_key
}

defined_text = {
	name = GetTelepath
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_TELEPATH
	}
	text = {
		trigger = {
			exists = owner
			owner = { is_hive_empire = yes }
		}
		localization_key = HIVE_TELEPATH
	}
	default = DEFAULT_TELEPATH
}

defined_text = {
	name = GetTelepathCap
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_TELEPATH_CAP
	}
	text = {
		trigger = {
			exists = owner
			owner = { is_hive_empire = yes }
		}
		localization_key = HIVE_TELEPATH_CAP
	}
	default = DEFAULT_TELEPATH_CAP
}

defined_text = {
	name = GetTelepathPlural
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_TELEPATH_PLURAL
	}
	text = {
		trigger = {
			exists = owner
			owner = { is_hive_empire = yes }
		}
		localization_key = HIVE_TELEPATH_PLURAL
	}
	default = DEFAULT_TELEPATH_PLURAL
}

defined_text = {
	name = GetTelepathPluralCap
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = MACHINE_TELEPATH_PLURAL_CAP
	}
	text = {
		trigger = {
			exists = owner
			owner = { is_hive_empire = yes }
		}
		localization_key = HIVE_TELEPATH_PLURAL_CAP
	}
	default = DEFAULT_TELEPATH_PLURAL_CAP
}

defined_text = {
	name = GetBoonPsiLink
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = boon.psi.link.machine
	}
	text = {
		trigger = {
			exists = owner
			owner = { is_hive_empire = yes }
		}
		localization_key = boon.psi.link.hive
	}
	default = boon.psi.link.organic_non_gestalt
}

defined_text = {
	name = GetCursePsiLink
	random = no
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = curse.psi.link.machine
	}
	default = curse.psi.link.organic
}

defined_text = {
	name = GetTranscendedAuthority
	random = no
	text = {
		trigger = {
			is_scope_valid = yes
			is_democratic_authority = yes
		}
		localization_key = "['authority:auth_democratic:auth_shroud_democratic_transcendent']"
	}
	text = {
		trigger = {
			is_scope_valid = yes
			is_oligarchic_authority = yes
		}
		localization_key = "['authority:auth_oligarchic:auth_shroud_oligarchic_transcendent']"
	}
	text = {
		trigger = {
			is_scope_valid = yes
			is_dictatorial_authority = yes
		}
		localization_key = "['authority:auth_dictatorial:auth_shroud_dictatorial_transcendent']"
	}
	text = {
		trigger = {
			is_scope_valid = yes
			is_imperial_authority = yes
		}
		localization_key = "['authority:auth_imperial:auth_shroud_imperial_transcendent']"
	}
	text = {
		trigger = {
			is_scope_valid = yes
			is_megacorp = yes
		}
		localization_key = "['authority:auth_corporate:auth_shroud_corporate_transcendent']"
	}
	text = {
		trigger = {
			is_scope_valid = yes
			is_hive_empire = yes
		}
		localization_key = "['authority:auth_hive_mind:auth_shroud_hive_transcendent']"
	}
	text = {
		trigger = {
			is_scope_valid = yes
			is_machine_empire = yes
		}
		localization_key = "['authority:auth_machine_intelligence:auth_shroud_machine_transcendent']"
	}
	default = "['authority:auth_democratic:auth_shroud_democratic_transcendent']"
}

defined_text = {
	name = GetCorporealAuthority
	random = no
	text = {
		trigger = {
			is_scope_valid = yes
			is_democratic_authority = yes
		}
		localization_key = "['authority:auth_democratic:auth_shroud_democratic_corporeal']"
	}
	text = {
		trigger = {
			is_scope_valid = yes
			is_oligarchic_authority = yes
		}
		localization_key = "['authority:auth_oligarchic:auth_shroud_oligarchic_corporeal']"
	}
	text = {
		trigger = {
			is_scope_valid = yes
			is_dictatorial_authority = yes
		}
		localization_key = "['authority:auth_dictatorial:auth_shroud_dictatorial_corporeal']"
	}
	text = {
		trigger = {
			is_scope_valid = yes
			is_imperial_authority = yes
		}
		localization_key = "['authority:auth_imperial:auth_shroud_imperial_corporeal']"
	}
	text = {
		trigger = {
			is_scope_valid = yes
			is_megacorp = yes
		}
		localization_key = "['authority:auth_corporate:auth_shroud_corporate_corporeal']"
	}
	text = {
		trigger = {
			is_scope_valid = yes
			is_hive_empire = yes
		}
		localization_key = "['authority:auth_hive_mind:auth_shroud_hive_corporeal']"
	}
	text = {
		trigger = {
			is_scope_valid = yes
			is_machine_empire = yes
		}
		localization_key = "['authority:auth_machine_intelligence:auth_shroud_machine_corporeal']"
	}
	default = "['authority:auth_democratic:auth_shroud_democratic_corporeal']"
}

# Boon/Curse bestowed title
defined_text = {
	name = GetShroudBestowment
	random = no
	text = {
		trigger = { has_country_flag = shroud_bestowed_boon }
		localization_key = boon.bestowed
	}
	text = {
		trigger = { has_country_flag = shroud_bestowed_curse }
		localization_key = curse.bestowed
	}
	default = none.bestowed
}

# First Contacts
defined_text = {
	name = GetPatronInsert
	random = no
	text = {
		trigger = {
			has_country_flag = shroud_first_contact_the_eater_of_worlds
			is_robot_empire = yes
		}
		localization_key = shroud.first_contact_insert.eater.machine
	}
	text = {
		trigger = {
			has_country_flag = shroud_first_contact_the_eater_of_worlds
			is_robot_empire = no
		}
		localization_key = shroud.first_contact_insert.eater.default
	}
	text = {
		trigger = {
			has_country_flag = shroud_first_contact_the_cradle_of_souls
			is_robot_empire = yes
		}
		localization_key = shroud.first_contact_insert.cradle.machine
	}
	text = {
		trigger = {
			has_country_flag = shroud_first_contact_the_cradle_of_souls
			is_robot_empire = no
		}
		localization_key = shroud.first_contact_insert.cradle.default
	}
	text = {
		trigger = {
			has_country_flag = shroud_first_contact_the_composer_of_strands
		}
		localization_key = shroud.first_contact_insert.composer
	}
	text = {
		trigger = {
			has_country_flag = shroud_first_contact_the_instrument_of_desire
		}
		localization_key = shroud.first_contact_insert.instrument
	}
	default = BLANK_STRING
}

# Breach the Shroud Events
defined_text = {
	name = GetThoughtTransmissionIntro
	text = {
		trigger = {
			is_gestalt = yes
		}
		localization_key = shroud.2300.intro_gestalt
	}
	text = {
		trigger = {
			is_gestalt = no
		}
		localization_key = shroud.2300.intro
	}
	default = shroud.2300.intro
}

defined_text = {
	name = GetThoughtTransmissionOutro
	text = {
		trigger = {
			is_homicidal = yes
		}
		localization_key = shroud.2300.desc.outro_homicidal
	}
	text = {
		trigger = {
			is_homicidal = no
		}
		localization_key = shroud.2300.desc.outro
	}
	default = shroud.2300.desc.outro
}

defined_text = {
	name = GetPhantomPresenceExtra
	text = {
		trigger = {
			is_spiritualist = yes
		}
		localization_key = shroud.2305.extra_spiritualist
	}
	text = {
		trigger = {
			is_spiritualist = no
		}
		localization_key = shroud.2305.extra
	}
	default = shroud.2305.extra
}

defined_text = {
	name = GetShroudParasitesEnding
	text = {
		trigger = {
			founder_species_is_biological = yes
		}
		localization_key = shroud.2310.ending_biological
	}
	text = {
		trigger = {
			founder_species_is_lithoid = yes
		}
		localization_key = shroud.2310.ending_lithoid
	}
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = shroud.2310.ending_machine
	}
	default = shroud.2310.ending_biological
}

defined_text = {
	name = GetPsionicDoublingExtra
	text = {
		trigger = {
			is_gestalt = yes
		}
		localization_key = shroud.2320.extra_default
	}
	text = {
		trigger = {
			is_gestalt = no
			founder_species_is_organic = yes
		}
		localization_key = shroud.2320.extra_organic
	}
	text = {
		trigger = {
			is_gestalt = no
			founder_species_is_machine = yes
		}
		localization_key = shroud.2320.extra_machine
	}
	default = shroud.2320.extra_default
}

defined_text = { # Country scope
	name = GetSpeciesBrain
	text = {
		trigger = {
			founder_species_is_robotic = yes
		}
		localization_key = species_processor
	}
	text = {
		trigger = {
			OR = {
				founder_species_is_lithoid = yes
				founder_species_is_toxoid = yes
				founder_species_is_fungoid = yes
				founder_species_is_plantoid = yes
			}
		}
		localization_key = species_organ
	}
	default = species_brain
}

defined_text = { # Country scope
	name = GetSpeciesBrainPlural
	text = {
		trigger = {
			founder_species_is_robotic = yes
		}
		localization_key = species_processors
	}
	text = {
		trigger = {
			OR = {
				founder_species_is_lithoid = yes
				founder_species_is_toxoid = yes
				founder_species_is_fungoid = yes
				founder_species_is_plantoid = yes
			}
		}
		localization_key = species_organs
	}
	default = species_brains
}

defined_text = {
	name = GetTelekineticEthicsExtra
	text = {
		trigger = {
			is_gestalt = yes
		}
		localization_key = shroud.2415.extra_gestalt
	}
	text = {
		trigger = {
			is_gestalt = no
		}
		localization_key = shroud.2415.extra
	}
	default = shroud.2415.extra
}

defined_text = { # Country scope
	name = GetAcuteMigrainePlural
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = neuroprocessor_disturbances_key
	}
	text = {
		trigger = {
			founder_species_is_organic = yes
		}
		localization_key = acute_migraines_key
	}
	default = acute_migraines_key
}

defined_text = { # Country scope
	name = GetAGrowingPainExtra
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = shroud.2420.extra_machine
	}
	default = shroud.2420.extra_default
}

defined_text = { # Country scope
	name = GetPsionicUndergroundIntro
	text = {
		trigger = {
			is_gestalt = yes
		}
		localization_key = shroud.2425.intro_gestalt
	}
	text = {
		trigger = {
			is_gestalt = no
		}
		localization_key = shroud.2425.intro
	}
	default = shroud.2425.intro
}

defined_text = { # Country scope
	name = GetPsionicUndergroundExtra
	text = {
		trigger = {
			is_gestalt = yes
		}
		localization_key = shroud.2425.extra_gestalt
	}
	text = {
		trigger = {
			is_gestalt = no
		}
		localization_key = shroud.2425.extra
	}
	default = shroud.2425.extra
}

defined_text = { # Country scope
	name = GetPsionicUndergroundEnd
	text = {
		trigger = {
			is_gestalt = yes
			founder_species_is_robotic = yes
		}
		localization_key = shroud.2425.end_gestalt_machine
	}
	text = {
		trigger = {
			is_gestalt = yes
			founder_species_is_organic = yes
		}
		localization_key = shroud.2425.end_gestalt_organic
	}
	text = {
		trigger = {
			is_gestalt = no
		}
		localization_key = shroud.2425.end
	}
	default = shroud.2425.end
}

defined_text = {
	name = GetShroudfallExtra
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = shroud.2502.extra_machine
	}
	text = {
		trigger = {
			is_hive_empire = yes
			is_homicidal = yes
		}
		localization_key = shroud.2502.extra_homicidal_hive
	}
	text = {
		trigger = {
			is_hive_empire = no
			founder_species_is_organic = yes
		}
		localization_key = shroud.2502.extra_default
	}
	default = shroud.2502.extra_default
}

defined_text = {
	name = GetOutOfControlExtra
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = shroud.2505.extra_machine
	}
	text = {
		trigger = {
			founder_species_is_organic = yes
		}
		localization_key = shroud.2505.extra_default
	}
	default = shroud.2505.extra_default
}

defined_text = {
	name = GetOutOfControlPsyche
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = shroud.2505.psyche_machine
	}
	text = {
		trigger = {
			founder_species_is_organic = yes
		}
		localization_key = shroud.2505.psyche_default
	}
	default = shroud.2505.psyche_default
}

defined_text = {
	name = GetNeuralOverloadExtra
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = shroud.2510.extra_machine
	}
	text = {
		trigger = {
			founder_species_is_organic = yes
		}
		localization_key = shroud.2510.extra_default
	}
	default = shroud.2510.extra_default
}

defined_text = {
	name = GetNeuralOverloadIntro
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = shroud.2510.intro_machine
	}
	text = {
		trigger = {
			founder_species_is_organic = yes
		}
		localization_key = shroud.2510.intro_default
	}
	default = shroud.2510.intro_default
}

defined_text = {
	name = GetNightmaresName
	text = {
		trigger = {
			owner = {
				founder_species_is_organic = yes
				is_gestalt = no
			}
		}
		localization_key = shroud.2515.name_organic_non_gestalt
	}
	text = {
		trigger = {
			owner = {
				OR = {
					founder_species_is_organic = no
					is_gestalt = yes
				}
			}
		}
		localization_key = shroud.2515.name_others
	}
	default = shroud.2515.name_organic_non_gestalt
}

defined_text = {
	name = GetNightmaresExtra
	text = {
		trigger = {
			is_individual_machine = yes
		}
		localization_key = shroud.2515.extra_machine
	}
	text = {
		trigger = {
			is_gestalt = yes
		}
		localization_key = shroud.2515.extra_gestalt
	}
	text = {
		trigger = {
			founder_species_is_organic = yes
			is_gestalt = no
		}
		localization_key = shroud.2515.extra_default
	}
	default = shroud.2515.extra_default
}

defined_text = {
	name = GetNightmaresEnding
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = shroud.2515.end_machine
	}
	text = {
		trigger = {
			founder_species_is_organic = yes
		}
		localization_key = shroud.2515.end_organic
	}
	default = shroud.2515.end_organic
}

defined_text = {
	name = GetMindOverMatterEnding
	text = {
		trigger = {
			has_ascension_perk = ap_become_the_crisis
			OR = {
				has_crisis_level = crisis_level_4
				has_crisis_level = crisis_level_5
			}
		}
		localization_key = shroud.2750.desc_p3_crisis_4_5
	}
	text = {
		trigger = {
			OR = {
				has_origin = origin_shroudwalker_apprentice
				has_origin = origin_shroud_forged
			}
		}
		localization_key = shroud.2750.desc_p3_origins
	}
	default = shroud.2750.desc_p3_default
}

defined_text = {
	name = GetShroudBreachedExtra
	text = {
		trigger = {
			has_origin = origin_shroud_forged
		}
		localization_key = shroud.2800.desc_extra
	}
	text = {
		trigger = {
			is_chosen_empire = yes
		}
		localization_key = shroud.2800.desc_extra_chosen
	}
	default = BLANK_STRING
}

defined_text = {
	name = GetMatterInFluxExtra
	text = {
		trigger = {
			is_gestalt = yes
		}
		localization_key = shroud.2400.desc_gestalt
	}
	default = shroud.2400.desc_default
}

defined_text = {
	name = GetEaterEmergesExtra
	text = {
		trigger = {
			is_pacifist = yes
		}
		localization_key = shroud.4005.desc_extra_pacifist
	}
	text = {
		trigger = {
			is_pacifist = no
			is_robot_empire = yes
		}
		localization_key = shroud.4005.desc_extra_robot
	}
	default = shroud.4005.desc_extra_organic
}

defined_text = {
	name = GetEaterEmergesEnding
	text = {
		trigger = {
			is_pacifist = yes
		}
		localization_key = shroud.4005.desc_outro_pacifist
	}
	text = {
		trigger = {
			is_pacifist = no
			is_robot_empire = yes
		}
		localization_key = shroud.4005.desc_outro_robot
	}
	default = shroud.4005.desc_outro_organic
}

defined_text = {
	name = GetEaterEmergesOptionA
	text = {
		trigger = {
			is_pacifist = yes
		}
		localization_key = shroud.4005.a.pacifist
	}
	default = shroud.4005.a.non_pacifist
}

defined_text = {
	name = GetCradleEmergesEnding
	text = {
		trigger = {
			is_homicidal = yes
		}
		localization_key = shroud.4015.desc_outro_homicidal
	}
	text = {
		trigger = {
			is_homicidal = no
			is_robot_empire = yes
		}
		localization_key = shroud.4015.desc_outro_robot
	}
	default = shroud.4015.desc_outro_organic
}

defined_text = {
	name = GetEaterCovenantProposedEvent
	text = {
		trigger = {
			is_pacifist = yes
		}
		localization_key = shroud.4500.desc.pacifist
	}
	default = shroud.4500.desc.non_pacifist
}

defined_text = {
	name = GetEaterCovenantFormedDesc
	text = {
		trigger = {
			is_pacifist = yes
		}
		localization_key = shroud.4505.desc_2_pacifist
	}
	text = {
		trigger = {
			is_gestalt = yes
		}
		localization_key = shroud.4505.desc_2_gestalt
	}
	text = {
		trigger = {
			is_pacifist = no
			is_gestalt = no
			is_robot_empire = yes
		}
		localization_key = shroud.4505.desc_2_machine_non_gestalt
	}
	default = shroud.4505.desc_2_organic_non_gestalt
}

defined_text = {
	name = GetCradleCovenantProposedDesc
	text = {
		trigger = {
			is_homicidal = yes
		}
		localization_key = shroud.4600.desc_homicidal
	}
	default = shroud.4600.desc_non_homicidal
}

defined_text = {
	name = GetCradleCovenantFormedDesc
	text = {
		trigger = {
			is_homicidal = yes
		}
		localization_key = shroud.4605.desc_outro_homicidal
	}
	text = {
		trigger = {
			is_homicidal = no
			is_gestalt = yes
		}
		localization_key = shroud.4605.desc_outro_gestalt
	}
	default = shroud.4605.desc_outro_non_gestalt
}

defined_text = {
	name = GetCradleCovenantFormedOption
	text = {
		trigger = {
			is_homicidal = yes
		}
		localization_key = shroud.4605.opt.a.homicidal
	}
	text = {
		trigger = {
			is_homicidal = no
			is_gestalt = yes
		}
		localization_key = shroud.4605.opt.a.gestalt
	}
	default = shroud.4605.opt.a.default
}

# Current Patron Covenant localization
defined_text = {
	name = GetCovenantPatronColor
	random = no
	text = {
		trigger = {
			has_covenant = the_eater_of_worlds
		}
		localization_key = the_eater_of_worlds_color_article
	}
	text = {
		trigger = {
			has_covenant = the_cradle_of_souls
		}
		localization_key = the_cradle_of_souls_color_article
	}
	text = {
		trigger = {
			has_covenant = the_instrument_of_desire
		}
		localization_key = the_instrument_of_desire_color_article
	}
	text = {
		trigger = {
			has_covenant = the_composer_of_strands
		}
		localization_key = the_composer_of_strands_color_article
	}
	default = BLANK_STRING
}

# Betrayed Patron localization
defined_text = {
	name = GetBetrayedPatronColour
	random = no
	text = {
		trigger = {
			has_country_flag = the_eater_of_worlds_betrayal
		}
		localization_key = the_eater_of_worlds_color_article
	}
	text = {
		trigger = {
			has_country_flag = the_cradle_of_souls_betrayal
		}
		localization_key = the_cradle_of_souls_color_article
	}
	text = {
		trigger = {
			has_country_flag = the_instrument_of_desire_betrayal
		}
		localization_key = the_instrument_of_desire_color_article
	}
	text = {
		trigger = {
			has_country_flag = the_composer_of_strands_betrayal
		}
		localization_key = the_composer_of_strands_color_article
	}
	default = BLANK_STRING
}

defined_text = {
	name = GetChosenName
	text = {
		trigger = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		localization_key = leader_trait_chosen_gestalt
	}
	default = leader_trait_chosen_default
}

defined_text = {
	name = GetChosenDesc
	text = {
		trigger = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		localization_key = leader_trait_chosen_gestalt_desc
	}
	default = leader_trait_chosen_default_desc
}

defined_text = {
	name = GetPositiveRivalAdj
	text = {
		trigger = {
			is_hostile_towards_aura = {
				PSIONIC_OWNER = fromfrom
			}
		}
		localization_key = NEGATIVE
	}
	default = POSITIVE
}

defined_text = {
	name = GetBenevolentRivalAdj
	text = {
		trigger = {
			is_hostile_towards_aura = {
				PSIONIC_OWNER = fromfrom
			}
		}
		localization_key = MALEVOLENT
	}
	default = BENEVOLENT
}

defined_text = {
	name = GetLessThanRivalAdj
	text = {
		trigger = {
			is_hostile_towards_aura = {
				PSIONIC_OWNER = fromfrom
			}
		}
		localization_key = LESS_THAN_DASH
	}
	default = BLANK_STRING
}

defined_text = {
	name = GetLamentations
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = lamentations_machine
	}
	default = lamentations_organic
}

defined_text = {
	name = GetSorrow
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = SORROW_MACHINE
	}
	default = SORROW_DEFAULT
}

defined_text = {
	name = GetRejuvenate
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = REJUVENATE_MACHINE
	}
	default = REJUVENATE_DEFAULT
}

defined_text = {
	name = GetMentalUpgrade
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = MENTAL_UPGRADE_MACHINE
	}
	default = MENTAL_UPGRADE_ORGANIC
}

defined_text = {
	name = GetMedicalFacility
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = CLINIC_MACHINE
	}
	default = CLINIC_ORGANIC
}

defined_text = {
	name = GetMedicalFacilityShortPlural
	text = {
		trigger = {
			founder_species_is_machine = yes
		}
		localization_key = CLINIC_SHORT_PLURAL_MACHINE
	}
	default = CLINIC_SHORT_PLURAL_ORGANIC
}

defined_text = {
	name = GetHiveEntity
	text = {
		trigger = { is_machine_empire = yes }
		localization_key = getnetworkname_machine
	}
	default = pc_hive_adj
}

defined_text = {
	name = GetMentalAdj
	text = {
		trigger = { is_machine_empire = yes }
		localization_key = mental_adj_machine
	}
	default = mental_adj_organic
}

defined_text = {
	name = GetSpeciesBodyPlural
	text = {
		trigger = { is_machine_empire = yes }
		localization_key = machine_body_plural
	}
	default = organic_body_plural
}

# civic_twisted_experimenters
defined_text = {
	name = GetExperimentalEngineer
	text = {
		trigger = { owner = { is_hive_empire = yes } }
		localization_key = job_experiment_engineer_drone
	}
	default = job_experiment_engineer
}

defined_text = {
	name = GetExperimentalEngineerPlural
	text = {
		trigger = { owner = { is_hive_empire = yes } }
		localization_key = job_experiment_engineer_drone_plural
	}
	default = job_experiment_engineer_plural
}

defined_text = {
	name = GetExperimentersWeWillLearn
	random = yes
	text = {
		weight = 1
		localization_key = experimenters_we_will_learn_1
	}
	text = {
		weight = 1
		localization_key = experimenters_we_will_learn_2
	}
	text = {
		weight = 1
		localization_key = experimenters_we_will_learn_3
	}
}

defined_text = {
	name = GetExperimentersTragicLesson
	random = yes
	text = {
		weight = 1
		localization_key = experimenters_tragic_lesson_1
	}
	text = {
		weight = 1
		localization_key = experimenters_tragic_lesson_2
	}
	text = {
		weight = 1
		localization_key = experimenters_tragic_lesson_3
	}
}

defined_text = {
	name = GetExperimentersEmergingCrime
	random = yes
	text = {
		weight = 1
		localization_key = experimenters_ermerging_crime_1
	}
	text = {
		weight = 1
		localization_key = experimenters_ermerging_crime_2
	}
	text = {
		weight = 1
		localization_key = experimenters_ermerging_crime_3
	}
	text = {
		weight = 1
		localization_key = experimenters_ermerging_crime_4
	}
}

defined_text = {
	name = GetPsionicTraitDesc
	text = {
		trigger = { owner = { is_hive_empire = yes } }
		localization_key = trait_hive_psionic_desc
	}
	default = trait_default_psionic_desc
}

# Turn into enclave
defined_text = {
	name = GetEnclaveName
	text = {
		trigger = {
			has_origin = origin_mindwardens
		}
		localization_key = ENCLAVE_MINDWARDEN
	}
	default = ENCLAVE_DEFAULT
}
defined_text = {
	name = GetEnclavePlural
	text = {
		trigger = {
			has_origin = origin_mindwardens
		}
		localization_key = ENCLAVE_MINDWARDEN_PLURAL
	}
	default = ENCLAVE_PLURAL
}
defined_text = {
	name = GetEnclaveFleetName
	text = {
		trigger = {
			has_origin = origin_mindwardens
		}
		localization_key = ENCLAVE_FLEET_MINDWARDEN
	}
	default = ENCLAVE_FLEET_NAME
}
defined_text = {
	name = GetEnclaveFleetPlural
	text = {
		trigger = {
			has_origin = origin_mindwardens
		}
		localization_key = ENCLAVE_FLEET_MINDWARDEN_PLURAL
	}
	default = ENCLAVE_FLEET_PLURAL
}

defined_text = {
	name = GetKronenFlesh
	text = {
		trigger = { is_machine_empire = yes }
		localization_key = cyber_creed_flesh_machine
	}
	default = cyber_creed_flesh_default
}

defined_text = {
	name = GetKronenSkin
	text = {
		trigger = { is_machine_empire = yes }
		localization_key = SKIN_ABSTRACT
	}
	default = SKIN_DEF
}

defined_text = {
	name = GetShroudForgedConvertedPopsCount
	value = this.capital_scope.value:shroud_forged_drone_conversion_quantity
}

defined_text = {
	name = GetEndbringersDelveCount
	value = value:endbringers_delve_count
}

defined_text = {
	name = GetCradleCovenantUpkeepMult
	value = value:cradle_covenant_upkeep_mult_loc
}

defined_text = {
	name = GetDimensionalCollapseEdictGain
	random = no
	text = {
		trigger = {
			has_astral_planes_dlc = yes
		}
		localization_key = shroud.4145.dimensional_collapse
	}
	default = BLANK_STRING
}

defined_text = {
	name = GetAuraHyperlaneRange
	value = value:psionic_aura_hyperlane_range|OWNER|owner|
}

defined_text = {
	name = GetEaterColor
	text = {
		trigger = {
			has_patron_relation = {
				patron = the_eater_of_worlds
				contact = in_progress
			}
		}
		localization_key = the_eater_of_worlds_code
	}
	text = {
		trigger = {
			has_patron_relation = {
				patron = the_eater_of_worlds
				contact = completed
			}
		}
		localization_key = the_eater_of_worlds_color_article
	}
	default = UNDISCOVERED_PATRON_ARTICLE
}

defined_text = {
	name = GetCradleColor
	text = {
		trigger = {
			has_patron_relation = {
				patron = the_cradle_of_souls
				contact = in_progress
			}
		}
		localization_key = the_cradle_of_souls_code
	}
	text = {
		trigger = {
			has_patron_relation = {
				patron = the_cradle_of_souls
				contact = completed
			}
		}
		localization_key = the_cradle_of_souls_color_article
	}
	default = UNDISCOVERED_PATRON_ARTICLE
}

defined_text = {
	name = GetComposerColor
	text = {
		trigger = {
			has_patron_relation = {
				patron = the_composer_of_strands
				contact = in_progress
			}
		}
		localization_key = the_composer_of_strands_code
	}
	text = {
		trigger = {
			has_patron_relation = {
				patron = the_composer_of_strands
				contact = completed
			}
		}
		localization_key = the_composer_of_strands_color_article
	}
	default = UNDISCOVERED_PATRON_ARTICLE
}

defined_text = {
	name = GetInstrumentColor
	text = {
		trigger = {
			has_patron_relation = {
				patron = the_instrument_of_desire
				contact = in_progress
			}
		}
		localization_key = the_instrument_of_desire_code
	}
	text = {
		trigger = {
			has_patron_relation = {
				patron = the_instrument_of_desire
				contact = completed
			}
		}
		localization_key = the_instrument_of_desire_color_article
	}
	default = UNDISCOVERED_PATRON_ARTICLE
}

defined_text = {
	name = GetInstrumentColor
	text = {
		trigger = {
			has_patron_relation = {
				patron = the_instrument_of_desire
				contact = in_progress
			}
		}
		localization_key = the_instrument_of_desire_code
	}
	text = {
		trigger = {
			has_patron_relation = {
				patron = the_instrument_of_desire
				contact = completed
			}
		}
		localization_key = the_instrument_of_desire_color_article
	}
	default = UNDISCOVERED_PATRON_ARTICLE
}

defined_text = {
	name = GetWhisperersColor
	text = {
		trigger = {
			has_patron_relation = {
				patron = whisperers_in_the_void
				contact = in_progress
			}
		}
		localization_key = whisperers_in_the_void_code
	}
	text = {
		trigger = {
			has_patron_relation = {
				patron = whisperers_in_the_void
				contact = completed
			}
		}
		localization_key = whisperers_in_the_void_color_article
	}
	default = UNDISCOVERED_PATRON_ARTICLE
}

defined_text = {
	name = GetEndCycleGalaxySystemsLeft
	value = value:num_end_cycle_galaxy_systems_left
}

defined_text = {
	name = GetCradleCovenantTelepathEffect
	text = {
		trigger = {
			is_gestalt = yes
		}
		localization_key = covenant_cradle_telepath_gestalt_tt
	}
	default = covenant_cradle_telepath_default_tt
}

defined_text = {
	name = GetComposerCovenantTelepathEffect
	text = {
		trigger = {
			is_robot_empire = yes
		}
		localization_key = covenant_composer_telepath_gestalt_tt
	}
	default = covenant_composer_telepath_default_tt
}

defined_text = {
	name = GetMercenaryLoc
	random = no
	text = {
		trigger = {
			has_country_flag = mindwarden_diplomacy
		}
		localization_key = MINDWARDEN
	}
	default = MERCENARY
}

defined_text = {
	name = GetCycleName
	random = no
	text = {
		trigger = {
			has_cycle_of_omens = yes
		}
		localization_key = cycle_of_omens
	}
	text = {
		trigger = {
			has_cycle_of_fortune = yes
		}
		localization_key = cycle_of_fortune
	}
	text = {
		trigger = {
			has_cycle_of_growth = yes
		}
		localization_key = cycle_of_growth
	}
	text = {
		trigger = {
			has_cycle_of_prosperity = yes
		}
		localization_key = cycle_of_prosperity
	}
	text = {
		trigger = {
			has_cycle_of_conflict = yes
		}
		localization_key = cycle_of_conflict
	}
	text = {
		trigger = {
			has_cycle_of_harmony = yes
		}
		localization_key = cycle_of_harmony
	}
	text = {
		trigger = {
			has_cycle_of_knowledge = yes
		}
		localization_key = cycle_of_knowledge
	}
}

defined_text = {
	name = GetCycleAttitude
	random = no
	text = {
		trigger = {
			has_cycle_of_omens = yes
		}
		localization_key = comet_attitude_negative
	}
	text = {
		trigger = {
			has_cycle_of_omens = no
		}
		localization_key = comet_attitude_positive
	}
}

defined_text = {
	name = GetCradleCovenantTooltip
	text = {
		trigger = {
			always = yes
		}
		localization_key = covenant_cradle_bonus_tt
	}
	default = covenant_cradle_no_bonus_tt
}

defined_text = {
	name = GetMinorPatronInstrumentCradleIntro
	text = {
		trigger = {
			has_patron_relation = {
				patron = the_instrument_of_desire
				contact = completed
			}
			has_patron_relation = {
				patron = the_cradle_of_souls
				contact = completed
			}
		}
		localization_key = minor_patron_instrument_cradle_intro
	}
	default = minor_patron_default_intro
}

defined_text = {
	name = GetMinorPatronCradleComposerIntro
	text = {
		trigger = {
			has_patron_relation = {
				patron = the_cradle_of_souls
				contact = completed
			}
			has_patron_relation = {
				patron = the_composer_of_strands
				contact = completed
			}
		}
		localization_key = minor_patron_cradle_composer_intro
	}
	default = minor_patron_default_intro
}

defined_text = {
	name = GetMinorPatronComposerEaterIntro
	text = {
		trigger = {
			has_patron_relation = {
				patron = the_composer_of_strands
				contact = completed
			}
			has_patron_relation = {
				patron = the_eater_of_worlds
				contact = completed
			}
		}
		localization_key = minor_patron_composer_eater_intro
	}
	default = minor_patron_default_intro
}

defined_text = {
	name = GetMinorPatronEaterInstrumentIntro
	text = {
		trigger = {
			has_patron_relation = {
				patron = the_eater_of_worlds
				contact = completed
			}
			has_patron_relation = {
				patron = the_instrument_of_desire
				contact = completed
			}
		}
		localization_key = minor_patron_eater_instrument_intro
	}
	default = minor_patron_default_intro
}

defined_text = {
	name = GetEaterOfWorldsDoomIntensity
	value = value:eater_doom_intensity
}

defined_text = {
	name = GetEaterOfWorldsShipClasses
	text = {
		trigger = {
			check_variable_arithmetic = {
				which = eater_fleet_intensity
				add = 3
				value >= 12
			}
		}
		localization_key = EaterOfWorldsShipClasses_Battleships
	}

	text = {
		trigger = {
			check_variable_arithmetic = {
				which = eater_fleet_intensity
				add = 3
				value < 12
			}
			check_variable_arithmetic = {
				which = eater_fleet_intensity
				add = 3
				value >= 6
			}
		}
		localization_key = EaterOfWorldsShipClasses_Cruisers
	}

	text = {
		trigger = {
			check_variable_arithmetic = {
				which = eater_fleet_intensity
				add = 3
				value < 6
			}
		}
		localization_key = EaterOfWorldsShipClasses_Escorts
	}
}

defined_text = {
	name = GetPsionicAssimilationEffectShroud
	text = {
		trigger = {
			has_shroud_dlc = yes
			is_hive_empire = yes
		}
		localization_key = tr_psionics_psionic_assimilation_desc_hive_mind
	}
	text = {
		trigger = {
			has_shroud_dlc = yes
			is_individual_machine = yes
			NOT = { has_civic = civic_machine_assimilator }
		}
		localization_key = tr_psionics_psionic_assimilation_desc_indiv_machine
	}
	text = {
		trigger = {
			has_shroud_dlc = yes
			is_machine_empire = yes
			NOT = { has_civic = civic_machine_assimilator }
		}
		localization_key = tr_psionics_psionic_assimilation_desc_gestalt_machine
	}
	text = {
		trigger = {
			has_shroud_dlc = yes
			has_civic = civic_machine_assimilator
		}
		localization_key = tr_psionics_psionic_assimilation_desc_driven_assimilators
	}
	text = {
		trigger = {
			has_shroud_dlc = yes
			is_hive_empire = no
			is_individual_machine = no
			is_gestalt = no
		}
		localization_key = tr_psionics_psionic_assimilation_desc_indiv_organic
	}
	default = BLANK_STRING
}

defined_text = {
	name = GetFractalizationValue
	value = value:fractalization_accord_effect_value
}

defined_text = {
	name = GetZroDeficitShroudEffect
	random = no
	text = {
		trigger = {
			has_shroud_dlc = yes
		}
		localization_key = sr_zro_deficit_shroud
	}
	default = sr_zro_deficit_utopia
}

defined_text = {
	name = GetCradleSurgeTrustLine
	text = {
		trigger = { check_variable = { which = souls_surge_empires value > 0 } }
		localization_key = cradle_surge_trust_line
	}
	default = cradle_surge_empty_line
}
defined_text = {
	name = GetCradleSurgeFavorLine
	text = {
		trigger = { check_variable = { which = souls_surge_favors value > 0 } }
		localization_key = cradle_surge_favor_line
	}
	default = cradle_surge_empty_line
}
defined_text = {
	name = GetCradleSurgeSubjectLine
	text = {
		trigger = { check_variable = { which = souls_surge_subjects value > 0 } }
		localization_key = cradle_surge_subject_line
	}
	default = cradle_surge_empty_line
}
defined_text = {
	name = GetCradleSurgeCohesionLine
	text = {
		trigger = { check_variable = { which = souls_surge_cohesion value > 0 } }
		localization_key = cradle_surge_cohesion_line
	}
	default = cradle_surge_empty_line
}
defined_text = {
	name = GetCradleSurgeColonyLine
	text = {
		trigger = { check_variable = { which = souls_surge_colonies value > 0 } }
		localization_key = cradle_surge_colony_line
	}
	default = cradle_surge_empty_line
}

defined_text = {
	name = GetCradleSurgeEmpiresValue
	value = value:souls_surge_empires_value
}
defined_text = {
	name = GetCradleSurgeFavorsValue
	value = value:souls_surge_favors_value
}
defined_text = {
	name = GetCradleSurgeSubjectsValue
	value = value:souls_surge_subjects_value
}
defined_text = {
	name = GetCradleSurgeColoniesValue
	value = value:souls_surge_colonies_value
}
