defined_text = {
	name = GetThesisTopic
	text = {
		trigger = { has_country_flag = thesis_xcratic1 }
		localization_key = thesis_xcratic1
	}
	text = {
		trigger = { has_country_flag = thesis_xcratic2 }
		localization_key = thesis_xcratic2
	}
	text = {
		trigger = { has_country_flag = thesis_xcratic3 }
		localization_key = thesis_xcratic3
	}
	text = {
		trigger = { has_country_flag = thesis_xcratic4 }
		localization_key = thesis_xcratic4
	}
	text = {
		trigger = { has_country_flag = thesis_xcratic5 }
		localization_key = thesis_xcratic5
	}
	text = {
		trigger = { has_country_flag = thesis_xcratic6 }
		localization_key = thesis_xcratic6
	}
	text = {
		trigger = { has_country_flag = thesis_xcratic7 }
		localization_key = thesis_xcratic7
	}
	text = {
		trigger = { has_country_flag = thesis_xcratic8 }
		localization_key = thesis_xcratic8
	}
	text = {
		trigger = { has_country_flag = thesis_souls1 }
		localization_key = thesis_souls1
	}
	text = {
		trigger = { has_country_flag = thesis_souls2 }
		localization_key = thesis_souls2
	}
	text = {
		trigger = { has_country_flag = thesis_souls3 }
		localization_key = thesis_souls3
	}
	text = {
		trigger = { has_country_flag = thesis_souls4 }
		localization_key = thesis_souls4
	}
	text = {
		trigger = { has_country_flag = thesis_souls5 }
		localization_key = thesis_souls5
	}
	text = {
		trigger = { has_country_flag = thesis_souls6 }
		localization_key = thesis_souls6
	}
	text = {
		trigger = { has_country_flag = thesis_souls7 }
		localization_key = thesis_souls7
	}
	text = {
		trigger = { has_country_flag = thesis_souls8 }
		localization_key = thesis_souls8
	}
	text = {
		trigger = { has_country_flag = thesis_war1 }
		localization_key = thesis_war1
	}
	text = {
		trigger = { has_country_flag = thesis_war2 }
		localization_key = thesis_war2
	}
	text = {
		trigger = { has_country_flag = thesis_war3 }
		localization_key = thesis_war3
	}
	text = {
		trigger = { has_country_flag = thesis_war4 }
		localization_key = thesis_war4
	}
	text = {
		trigger = { has_country_flag = thesis_war5 }
		localization_key = thesis_war5
	}
	text = {
		trigger = { has_country_flag = thesis_war6 }
		localization_key = thesis_war6
	}
	text = {
		trigger = { has_country_flag = thesis_war7 }
		localization_key = thesis_war7
	}
	text = {
		trigger = { has_country_flag = thesis_war8 }
		localization_key = thesis_war8
	}
	text = {
		trigger = { has_country_flag = thesis_xenos1 }
		localization_key = thesis_xenos1
	}
	text = {
		trigger = { has_country_flag = thesis_xenos2 }
		localization_key = thesis_xenos2
	}
	text = {
		trigger = { has_country_flag = thesis_xenos3 }
		localization_key = thesis_xenos3
	}
	text = {
		trigger = { has_country_flag = thesis_xenos4 }
		localization_key = thesis_xenos4
	}
	text = {
		trigger = { has_country_flag = thesis_xenos5 }
		localization_key = thesis_xenos5
	}
	text = {
		trigger = { has_country_flag = thesis_xenos6 }
		localization_key = thesis_xenos6
	}
	text = {
		trigger = { has_country_flag = thesis_xenos7 }
		localization_key = thesis_xenos7
	}
	text = {
		trigger = { has_country_flag = thesis_xenos8 }
		localization_key = thesis_xenos8
	}
	text = {
		trigger = { has_country_flag = thesis_machine1 }
		localization_key = thesis_machine1
	}
	text = {
		trigger = { has_country_flag = thesis_machine2 }
		localization_key = thesis_machine2
	}
	text = {
		trigger = { has_country_flag = thesis_machine3 }
		localization_key = thesis_machine3
	}
	text = {
		trigger = { has_country_flag = thesis_machine4 }
		localization_key = thesis_machine4
	}
	text = {
		trigger = { has_country_flag = thesis_machine5 }
		localization_key = thesis_machine5
	}
	text = {
		trigger = { has_country_flag = thesis_hive1 }
		localization_key = thesis_hive1
	}
	text = {
		trigger = { has_country_flag = thesis_hive2 }
		localization_key = thesis_hive2
	}
	text = {
		trigger = { has_country_flag = thesis_hive3 }
		localization_key = thesis_hive3
	}
	text = {
		trigger = { has_country_flag = thesis_hive4 }
		localization_key = thesis_hive4
	}
	text = {
		trigger = { has_country_flag = thesis_hive5 }
		localization_key = thesis_hive5
	}
	text = {
		trigger = { has_country_flag = thesis_megacorp1 }
		localization_key = thesis_megacorp1
	}
	text = {
		trigger = { has_country_flag = thesis_megacorp2 }
		localization_key = thesis_megacorp2
	}
	text = {
		trigger = { has_country_flag = thesis_megacorp3 }
		localization_key = thesis_megacorp3
	}
	text = {
		trigger = { has_country_flag = thesis_megacorp4 }
		localization_key = thesis_megacorp4
	}
	text = {
		trigger = { has_country_flag = thesis_megacorp5 }
		localization_key = thesis_megacorp5
	}
}

defined_text = {
	name = GetHegemonyEthos
	text = {
		trigger = { has_country_flag = hegemony_ethos_militarist }
		localization_key = ethic_militarist
	}
	text = {
		trigger = { has_country_flag = hegemony_ethos_pacifist }
		localization_key = ethic_pacifist
	}
	text = {
		trigger = { has_country_flag = hegemony_ethos_xenophobe }
		localization_key = ethic_xenophobe
	}
	text = {
		trigger = { has_country_flag = hegemony_ethos_xenophile }
		localization_key = ethic_xenophile
	}
	text = {
		trigger = { has_country_flag = hegemony_ethos_materialist }
		localization_key = ethic_materialist
	}
	text = {
		trigger = { has_country_flag = hegemony_ethos_spiritualist }
		localization_key = ethic_spiritualist
	}
	text = {
		trigger = { has_country_flag = hegemony_ethos_egalitarian }
		localization_key = ethic_egalitarian
	}
	text = {
		trigger = { has_country_flag = hegemony_ethos_authoritarian }
		localization_key = ethic_authoritarian
	}
}

defined_text = {
	name = GetGoldenRuleDebrief
	# Authoritarian
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_authoritarian = yes
				}
				federation = {
					has_federation_flag = winner_decision_invest
				}
			}
		}
		localization_key = golden_rule_debrief_authoritarian_invest
	}
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_authoritarian = yes
				}
				federation = {
					has_federation_flag = winner_decision_distribute
				}
			}
		}
		localization_key = golden_rule_debrief_authoritarian_distribute
	}
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_authoritarian = yes
				}
				federation = {
					has_federation_flag = winner_decision_appropriate
				}
			}
		}
		localization_key = golden_rule_debrief_authoritarian_appropriate
	}
	# Egalitarian
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_egalitarian = yes
				}
				federation = {
					has_federation_flag = winner_decision_invest
				}
			}
		}
		localization_key = golden_rule_debrief_egalitarian_invest
	}
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_egalitarian = yes
				}
				federation = {
					has_federation_flag = winner_decision_distribute
				}
			}
		}
		localization_key = golden_rule_debrief_egalitarian_distribute
	}
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_egalitarian = yes
				}
				federation = {
					has_federation_flag = winner_decision_appropriate
				}
			}
		}
		localization_key = golden_rule_debrief_egalitarian_appropriate
	}
	# Materialist
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_materialist = yes
				}
				federation = {
					has_federation_flag = winner_decision_invest
				}
			}
		}
		localization_key = golden_rule_debrief_materialist_invest
	}
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_materialist = yes
				}
				federation = {
					has_federation_flag = winner_decision_distribute
				}
			}
		}
		localization_key = golden_rule_debrief_materialist_distribute
	}
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_materialist = yes
				}
				federation = {
					has_federation_flag = winner_decision_appropriate
				}
			}
		}
		localization_key = golden_rule_debrief_materialist_appropriate
	}
	# Spiritualist
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_spiritualist = yes
				}
				federation = {
					has_federation_flag = winner_decision_invest
				}
			}
		}
		localization_key = golden_rule_debrief_spiritualist_invest
	}
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_spiritualist = yes
				}
				federation = {
					has_federation_flag = winner_decision_distribute
				}
			}
		}
		localization_key = golden_rule_debrief_spiritualist_distribute
	}
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_spiritualist = yes
				}
				federation = {
					has_federation_flag = winner_decision_appropriate
				}
			}
		}
		localization_key = golden_rule_debrief_spiritualist_appropriate
	}
	# Militarist
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_militarist = yes
				}
				federation = {
					has_federation_flag = winner_decision_invest
				}
			}
		}
		localization_key = golden_rule_debrief_militarist_invest
	}
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_militarist = yes
				}
				federation = {
					has_federation_flag = winner_decision_distribute
				}
			}
		}
		localization_key = golden_rule_debrief_militarist_distribute
	}
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_militarist = yes
				}
				federation = {
					has_federation_flag = winner_decision_appropriate
				}
			}
		}
		localization_key = golden_rule_debrief_militarist_appropriate
	}
	# Pacifist
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_pacifist = yes
				}
				federation = {
					has_federation_flag = winner_decision_invest
				}
			}
		}
		localization_key = golden_rule_debrief_pacifist_invest
	}
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_pacifist = yes
				}
				federation = {
					has_federation_flag = winner_decision_distribute
				}
			}
		}
		localization_key = golden_rule_debrief_pacifist_distribute
	}
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_pacifist = yes
				}
				federation = {
					has_federation_flag = winner_decision_appropriate
				}
			}
		}
		localization_key = golden_rule_debrief_pacifist_appropriate
	}
	# Xenophile
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_xenophile = yes
				}
				federation = {
					has_federation_flag = winner_decision_invest
				}
			}
		}
		localization_key = golden_rule_debrief_xenophile_invest
	}
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_xenophile = yes
				}
				federation = {
					has_federation_flag = winner_decision_distribute
				}
			}
		}
		localization_key = golden_rule_debrief_xenophile_distribute
	}
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_xenophile = yes
				}
				federation = {
					has_federation_flag = winner_decision_appropriate
				}
			}
		}
		localization_key = golden_rule_debrief_xenophile_appropriate
	}
	# Xenophobe
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_xenophobe = yes
				}
				federation = {
					has_federation_flag = winner_decision_invest
				}
			}
		}
		localization_key = golden_rule_debrief_xenophobe_invest
	}
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_xenophobe = yes
				}
				federation = {
					has_federation_flag = winner_decision_distribute
				}
			}
		}
		localization_key = golden_rule_debrief_xenophobe_distribute
	}
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_xenophobe = yes
				}
				federation = {
					has_federation_flag = winner_decision_appropriate
				}
			}
		}
		localization_key = golden_rule_debrief_xenophobe_appropriate
	}
	# Hive Mind
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_hive_empire = yes
				}
				federation = {
					has_federation_flag = winner_decision_invest
				}
			}
		}
		localization_key = golden_rule_debrief_hive_mind_invest
	}
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_hive_empire = yes
				}
				federation = {
					has_federation_flag = winner_decision_distribute
				}
			}
		}
		localization_key = golden_rule_debrief_hive_mind_distribute
	}
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_hive_empire = yes
				}
				federation = {
					has_federation_flag = winner_decision_appropriate
				}
			}
		}
		localization_key = golden_rule_debrief_hive_mind_appropriate
	}
	# Machine Intelligence
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_machine_empire = yes
				}
				federation = {
					has_federation_flag = winner_decision_invest
				}
			}
		}
		localization_key = golden_rule_debrief_machine_invest
	}
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_machine_empire = yes
				}
				federation = {
					has_federation_flag = winner_decision_distribute
				}
			}
		}
		localization_key = golden_rule_debrief_machine_distribute
	}
	text = {
		trigger = {
			AND = {
				event_target:federation_bidding_winner = {
					is_machine_empire = yes
				}
				federation = {
					has_federation_flag = winner_decision_appropriate
				}
			}
		}
		localization_key = golden_rule_debrief_machine_appropriate
	}
}

defined_text = {
	name = GetEcumenicalCouncilDebate
	random = yes
	text = { localization_key = GetEcumenicalCouncilDebateText1 }
	text = { localization_key = GetEcumenicalCouncilDebateText2 }
	text = { localization_key = GetEcumenicalCouncilDebateText3 }
	text = { localization_key = GetEcumenicalCouncilDebateText4 }
	text = { localization_key = GetEcumenicalCouncilDebateText5 }
	text = { localization_key = GetEcumenicalCouncilDebateText6 }
	text = { localization_key = GetEcumenicalCouncilDebateText7 }
	text = { localization_key = GetEcumenicalCouncilDebateText8 }
	text = { localization_key = GetEcumenicalCouncilDebateText9 }
	text = { localization_key = GetEcumenicalCouncilDebateText10 }
	text = { localization_key = GetEcumenicalCouncilDebateText11 }
	text = { localization_key = GetEcumenicalCouncilDebateText12 }
	text = { localization_key = GetEcumenicalCouncilDebateText13 }
	text = { localization_key = GetEcumenicalCouncilDebateText14 }
	text = { localization_key = GetEcumenicalCouncilDebateText15 }
	text = { localization_key = GetEcumenicalCouncilDebateText16 }
}

defined_text = {
	name = GetSpeciesShavings
	text = {
		trigger = { is_species_class = HUM }
		localization_key = shavings_hum
	}
	text = {
		trigger = { is_species_class = MAM }
		localization_key = shavings_mam
	}
	text = {
		trigger = { is_species_class = REP }
		localization_key = shavings_rep
	}
	text = {
		trigger = { is_species_class = AVI }
		localization_key = shavings_avi
	}
	text = {
		trigger = { is_species_class = ART }
		localization_key = shavings_art
	}
	text = {
		trigger = { is_species_class = MOL }
		localization_key = shavings_mol
	}
	text = {
		trigger = { is_species_class = FUN }
		localization_key = shavings_fun
	}
	text = {
		trigger = {
			OR = {
				is_species_class = LITHOID
				AND = {
					is_species_class = NECROID
					species_portrait = season_10_portrait
				}
			}
		}
		localization_key = shavings_lithoid
	}
	text = {
		trigger = {
			is_species_class = NECROID
			NOT = {
				species_portrait = season_10_portrait
			}
		}
		localization_key = shavings_necroid
	}
	text = {
		trigger = { is_species_class = AQUATIC}
		localization_key = shavings_aquatic
	}
	text = {
		trigger = { is_species_class = PLANT }
		localization_key = shavings_plant
	}
	text = {
		trigger = { is_species_class = TOX }
		localization_key = shavings_tox
	}
	default = shavings_hum
}
