# Start Screen Messages
# Parameters:
#	trigger, a trigger with country which decides if this is a valid part. Empty will be treated as always=yes.
#	localization, a key to a localized string.
#	location, decides where this chunk of text is located in the description, cannot be negative.

### FIRST PARTS

# Continental
part = {
	location = 0
	localization = "START_SCREEN_PART_ONE_CONTINENTAL"

	trigger = {
		ideal_planet_class = pc_continental
		NOR = {
			has_country_flag = custom_start_screen
			is_hive_empire = yes
			is_machine_empire = yes
		}
	}
}
# Ocean
part = {
	location = 0
	localization = "START_SCREEN_PART_ONE_OCEAN"

	trigger = {
		ideal_planet_class = pc_ocean
		NOR = {
			has_country_flag = custom_start_screen
			is_hive_empire = yes
			is_machine_empire = yes
		}
	}
}
# Tropical
part = {
	location = 0
	localization = "START_SCREEN_PART_ONE_TROPICAL"

	trigger = {
		ideal_planet_class = pc_tropical
		NOR = {
			has_country_flag = custom_start_screen
			is_hive_empire = yes
			is_machine_empire = yes
		}
	}
}
# Desert
part = {
	location = 0
	localization = "START_SCREEN_PART_ONE_DESERT"

	trigger = {
		ideal_planet_class = pc_desert
		NOR = {
			has_country_flag = custom_start_screen
			is_hive_empire = yes
			is_machine_empire = yes
		}
	}
}
# Arid
part = {
	location = 0
	localization = "START_SCREEN_PART_ONE_ARID"

	trigger = {
		ideal_planet_class = pc_arid
		NOR = {
			has_country_flag = custom_start_screen
			is_hive_empire = yes
			is_machine_empire = yes
		}
	}
}
# Tundra
part = {
	location = 0
	localization = "START_SCREEN_PART_ONE_TUNDRA"

	trigger = {
		ideal_planet_class = pc_tundra
		NOR = {
			has_country_flag = custom_start_screen
			is_hive_empire = yes
			is_machine_empire = yes
		}
	}
}
# Arctic
part = {
	location = 0
	localization = "START_SCREEN_PART_ONE_ARCTIC"

	trigger = {
		ideal_planet_class = pc_arctic
		NOR = {
			has_country_flag = custom_start_screen
			is_hive_empire = yes
			is_machine_empire = yes
		}
	}
}

# Savannah
part = {
	location = 0
	localization = "START_SCREEN_PART_ONE_SAVANNAH"

	trigger = {
		ideal_planet_class = pc_savannah
		NOR = {
			has_country_flag = custom_start_screen
			is_hive_empire = yes
			is_machine_empire = yes
		}
	}
}

# Alpine
part = {
	location = 0
	localization = "START_SCREEN_PART_ONE_ALPINE"

	trigger = {
		ideal_planet_class = pc_alpine
		NOR = {
			has_country_flag = custom_start_screen
			is_hive_empire = yes
			is_machine_empire = yes
		}
	}
}

# Gaia
part = {
	location = 0
	localization = "START_SCREEN_PART_ONE_GAIA"

	trigger = {
		ideal_planet_class = pc_gaia
		NOR = {
			has_country_flag = custom_start_screen
			is_hive_empire = yes
			is_machine_empire = yes
		}
	}
}

# Individualist Machine
part = {
	location = 0
	localization = "START_SCREEN_PART_ONE_INDIVIDUAL_MACHINE"

	trigger = {
		is_individual_machine = yes
		NOT = {	has_country_flag = custom_start_screen }
	}
}

### SECOND PARTS

### GOVERNMENT REWORK

# Despotic Empire
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_DESPOTIC_EMPIRE"

	trigger = {
		OR = {
			has_government = gov_despotic_empire
			has_government = gov_feudal_empire
			has_government = gov_constitutional_dictatorship
			has_government = gov_enlightened_monarchy
			has_government = gov_elective_monarchy
		}
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Plutocratic Oligarchy
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_OLIGARCHY"

	trigger = {
		has_government = gov_plutocratic_oligarchy
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Representative Democracy
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_REPRESENTATIVE_DEMOCRACY"

	trigger = {
		has_government = gov_representative_democracy
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Theocratic Monarchy
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_THEOCRATIC_MONARCHY"

	trigger = {
		OR = {
			has_government = gov_theocratic_monarchy
			has_government = gov_theocratic_dictatorship
			has_government = gov_divine_empire
		}
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Theocratic Oligarchy
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_THEOCRATIC_OLIGARCHY"

	trigger = {
		OR = {
			has_government = gov_theocratic_oligarchy
			has_government = gov_holy_tribunal
		}
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Theocratic Republic
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_THEOCRATIC_REPUBLIC"

	trigger = {
		has_government = gov_theocratic_republic
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Star Empire
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_STAR_EMPIRE"

	trigger = {
		OR = {
			has_government = gov_star_empire
			has_government = gov_military_dictatorship
			has_government = gov_military_junta
		}
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Military Commissariat
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_MILITARY_REPUBLIC"

	trigger = {
		has_government = gov_military_commissariat
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Martial Empire
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_MARTIAL_EMPIRE"

	trigger = {
		OR = {
			has_government = gov_martial_empire
			has_government = gov_martial_dictatorship
			has_government = gov_war_council
		}
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Assembly of Clans
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_ASSEMBLY_OF_CLANS"

	trigger = {
		has_government = gov_assembly_of_clans
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Citizen Stratocracy
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_CITIZEN_STRATOCRACY"

	trigger = {
		OR = {
			has_government = gov_citizen_stratocracy
			has_government = gov_citizen_republic
		}
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Irenic Monarchy
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_IRENIC_MONARCHY"

	trigger = {
		has_government = gov_irenic_monarchy
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Irenic Bureaucracy
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_IRENIC_BUREAUCRACY"

	trigger = {
		OR = {
			has_government = gov_irenic_bureaucracy
			has_government = gov_irenic_dictatorship
		}
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Moral Democracy
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_MORAL_DEMOCRACY"

	trigger = {
		has_government = gov_moral_democracy
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Celestial Empire
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_CELESTIAL_EMPIRE"

	trigger = {
		has_government = gov_celestial_empire
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Despotic Hegemony
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_DESPOTIC_HEGEMONY"

	trigger = {
		OR = {
			has_government = gov_despotic_hegemony
			has_government = gov_totalitarian_regime
		}
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Executive Committee
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_EXECUTIVE_COMMITTEE"

	trigger = {
		has_government = gov_executive_committee
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Direct Democracy
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_DIRECT_DEMOCRACY"

	trigger = {
		has_government = gov_direct_democracy
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Illuminated Autocracy
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_ILLUMINATED_AUTOCRACY"

	trigger = {
		OR = {
			has_government = gov_illuminated_autocracy
			has_government = gov_technocratic_dictatorship
		}
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Science Directorate
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_SCIENCE_DIRECTORATE"

	trigger = {
		has_government = gov_science_directorate
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Rational Consensus
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_RATIONAL_CONSENSUS"

	trigger = {
		has_government = gov_rational_consensus
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Trade League
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_TRADE_LEAGUE"

	trigger = {
		has_government = gov_trade_league
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Megacorporation
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_MEGACORPORATION"

	trigger = {
		has_government = gov_megacorporation
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Worker Cooperative
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_WORKER_COOP"

	trigger = {
		has_government = gov_worker_coop
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Megachurch
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_MEGACHURCH"

	trigger = {
		has_government = gov_megachurch
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Criminal Syndicate
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_MONOPOLISTIC_SYNDICATE"

	trigger = {
		OR = {
			has_government = gov_pirate_haven
			has_government = gov_criminal_syndicate
		}
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Subversive Cult
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_SUBVERSIVE_CULT"

	trigger = {
		has_government = gov_subversive_cult
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Communal Parity
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_COMMUNAL_PARITY"

	trigger = {
		has_government = gov_communal_parity
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Bandit Kingdom/Commune
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_BANDIT_KINGDOM"

	trigger = {
		OR = {
			has_government = gov_bandit_kingdom
			has_government = gov_bandit_commune
		}
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Fanatic Purifiers
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_PURIFIER"

	trigger = {
		OR = {
			has_government = gov_blood_court
			has_government = gov_purity_order
			has_government = gov_purification_committee
			has_government = gov_purity_assembly
		}
		NOR = {
			has_country_flag = custom_start_screen
			has_origin = origin_post_apocalyptic
			has_origin = origin_life_seeded
		}
	}
}

# Hive Mind
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_HIVE_MIND"

	trigger = {
		has_government = gov_hive_mind
		NOT = { has_country_flag = custom_start_screen }
	}
}

# Devouring Swarm
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_DEVOURING_SWARM"

	trigger = {
		has_government = gov_devouring_swarm
		is_lithoid_empire = no
		NOT = { has_country_flag = custom_start_screen }
	}
}

part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_DEVOURING_SWARM_LITHOID"

	trigger = {
		has_government = gov_devouring_swarm
		is_lithoid_empire = yes
		NOT = { has_country_flag = custom_start_screen }
	}
}

# Machine Empire - General
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_MACHINE_INTELLIGENCE_GENERAL"

	trigger = {
		OR = {
			has_government = gov_machine_empire
			has_government = gov_machine_research
			has_government = gov_machine_industrial
		}
		NOT = {
			has_country_flag = custom_start_screen
		}
	}
}

# Machine Empire - Servitor
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_MACHINE_INTELLIGENCE_SERVITOR"

	trigger = {
		has_government = gov_machine_servitor
		NOT = {
			has_country_flag = custom_start_screen
		}
	}
}

# Machine Empire - Terminator
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_MACHINE_INTELLIGENCE_TERMINATOR"

	trigger = {
		has_government = gov_machine_terminator
		NOT = {
			has_country_flag = custom_start_screen
		}
	}
}

# Machine Empire - Assimilator
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_MACHINE_INTELLIGENCE_ASSIMILATOR"

	trigger = {
		has_government = gov_machine_assimilator
		NOT = {
			has_country_flag = custom_start_screen
		}
	}
}

# Post-Apocalyptic Origin
part = {
	location = 1
	localization = "START_SCREEN_POST_APOCALYPTIC"

	trigger = {
		has_origin = origin_post_apocalyptic
		NOT = { has_country_flag = custom_start_screen }
	}
}

part = {
	location = 1
	localization = "START_SCREEN_POST_APOCALYPTIC_MACHINES"

	trigger = {
		has_origin = origin_post_apocalyptic_machines
		has_country_flag = custom_start_screen
	}
}

# Life-Seeded Origin
part = {
	location = 1
	localization = "START_SCREEN_POST_LIFE_SEEDED"

	trigger = {
		has_origin = origin_life_seeded
		NOR = {
			has_country_flag = custom_start_screen
			is_individual_machine = yes
		}
	}
}

part = {
	location = 1
	localization = "START_SCREEN_POST_LIFE_SEEDED_INDIVIDUALISTIC_MACHINE"

	trigger = {
		has_origin = origin_life_seeded
		is_individual_machine = yes
		NOT = {	has_country_flag = custom_start_screen }
	}
}

### THIRD PARTS

# Hyperspace
part = {
	location = 2
	localization = "START_SCREEN_PART_THREE_HYPERSPACE"

	trigger = {
		NOR = {
			has_country_flag = custom_start_screen
			is_hive_empire = yes
			is_machine_empire = yes
		}
	}
}

### Origins - Placed before the pre-scripted empires as only the first valid one is chosen.

# Necrophage
part = {
	location = 0
	localization = "START_SCREEN_NECROPHAGE"

	trigger = {
		has_origin = origin_necrophage
		is_hive_empire = no
		is_nomadic = no
	}
}
part = {
	location = 0
	localization = "START_SCREEN_NECROPHAGE_PEACEFUL"

	trigger = {
		has_origin = origin_necrophage
		OR = {
			is_xenophile = yes
			is_pacifist = yes
		}
		is_nomadic = no
	}
}
part = {
	location = 0
	localization = "START_SCREEN_NECROPHAGE_HIVE"

	trigger = {
		has_origin = origin_necrophage
		is_hive_empire = yes
		is_nomadic = no
	}
}
# Necrophage - nomads
part = {
	location = 0
	localization = "START_SCREEN_NECROPHAGE_NOMADS"

	trigger = {
		has_origin = origin_necrophage
		is_nomadic = yes
	}
}


# Void Dwellers
part = {
	location = 0
	localization = "START_SCREEN_VOID_DWELLERS"

	trigger = {
		has_origin = origin_void_dwellers
		is_gestalt = no
		is_individual_machine = no
		capital_scope = { NOT = { has_carrier_flag = earth_habitat } }
	}
}

part = {
	location = 0
	localization = "START_SCREEN_VOID_DWELLERS_SOL"

	trigger = {
		has_origin = origin_void_dwellers
		is_gestalt = no
		is_individual_machine = no
		capital_scope = { has_carrier_flag = earth_habitat }
	}
}

part = {
	location = 0
	localization = "START_SCREEN_VOID_DWELLERS_HIVE"

	trigger = {
		is_hive_empire = yes
		has_origin = origin_void_dwellers
		capital_scope = { NOT = { has_carrier_flag = earth_habitat } }
	}
}

part = {
	location = 0
	localization = "START_SCREEN_VOID_DWELLERS_HIVE_SOL"

	trigger = {
		is_hive_empire = yes
		has_origin = origin_void_dwellers
		capital_scope = { has_carrier_flag = earth_habitat }
	}
}

part = {
	location = 0
	localization = "START_SCREEN_VOID_DWELLERS_MACHINE"

	trigger = {
		has_origin = origin_void_machines
		capital_scope = { NOT = { has_carrier_flag = earth_habitat } }
		OR = {
			is_machine_empire = yes
			is_individual_machine = yes
		}
	}
}

part = {
	location = 0
	localization = "START_SCREEN_VOID_DWELLERS_MACHINE_SOL"

	trigger = {
		has_origin = origin_void_machines
		capital_scope = { has_carrier_flag = earth_habitat }
		OR = {
			is_machine_empire = yes
			is_individual_machine = yes
		}

	}
}

# Shattered Ring
part = {
	location = 0
	localization = "START_SCREEN_SRW"

	trigger = {
		has_origin = origin_shattered_ring
	}
}

# Remnants
part = {
	location = 0
	localization = "START_SCREEN_REMNANTS"

	trigger = {
		has_origin = origin_remnants
	}
}

# Tree of Life
part = {
	location = 0
	localization = "START_SCREEN_TREE"

	trigger = {
		has_origin = origin_tree_of_life
	}
}

# Lithoid Origin
part = {
	location = 0
	localization = "START_SCREEN_LITHOID"

	trigger = {
		has_origin = origin_lithoid
		NOT = {
			has_country_flag = human_lithoid
		}
	}
}

#Federated Theian Preservers, FTP
part = {
	location = 0
	localization = "START_SCREEN_LITHOID_HUMAN"

	trigger = {
		has_country_flag = human_lithoid
	}
}

# Scion
part = {
	location = 0
	localization = "START_SCREEN_SCION"

	trigger = {
		has_origin = origin_scion
		is_nomadic = no
	}
}

# Scion - nomads
part = {
	location = 0
	localization = "START_SCREEN_SCION_NOMADS"

	trigger = {
		has_origin = origin_scion
		is_nomadic = yes
	}
}

# On the Shoulders of Giants
part = {
	location = 0
	localization = "START_SCREEN_SHOULDERS_OF_GIANTS"

	trigger = {
		has_origin = origin_shoulders_of_giants
	}
}

# Galactic Doorstep - Standard
part = {
	location = 0
	localization = "START_SCREEN_GALACTIC_DOORSTEP"

	trigger = {
		has_origin = origin_galactic_doorstep
		NOR = {
			is_hive_empire = yes
			is_machine_empire = yes
		}
	}
}

# Galactic Doorstep - Machine Intelligence
part = {
	location = 0
	localization = "START_SCREEN_GALACTIC_DOORSTEP_MACH"

	trigger = {
		has_origin = origin_galactic_doorstep
		is_machine_empire = yes
	}
}

# Galactic Doorstep - Hive Mind
part = {
	location = 0
	localization = "START_SCREEN_GALACTIC_DOORSTEP_HIVE"

	trigger = {
		has_origin = origin_galactic_doorstep
		is_hive_empire = yes
	}
}

# Common Ground
part = {
	location = 0
	localization = "START_SCREEN_COMMON_GROUND"

	trigger = {
		has_origin = origin_common_ground
		is_nomadic = no
	}
}

# Common Ground - nomads
part = {
	location = 0
	localization = "START_SCREEN_COMMON_GROUND_NOMADS"

	trigger = {
		has_origin = origin_common_ground
		is_nomadic = yes
	}
}

# Hegemon
part = {
	location = 0
	localization = "START_SCREEN_HEGEMON"

	trigger = {
		has_origin = origin_hegemon
		is_xenophobe = no
		is_nomadic = no
	}
}

# Hegemon
part = {
	location = 0
	localization = "START_SCREEN_HEGEMON_NOMADS"

	trigger = {
		has_origin = origin_hegemon
		is_xenophobe = no
		is_nomadic = yes
	}
}

# Doomsday
part = {
	location = 0
	localization = "START_SCREEN_DOOMSDAY"

	trigger = {
		has_origin = origin_doomsday
	}
}

# Lost Colony
part = {
	location = 0
	localization = "START_SCREEN_LOST_COLONY"

	trigger = {
		has_origin = origin_lost_colony
		is_individual_machine = no
		is_gestalt = no
		is_human_prescripted_empire = no
		is_nomadic = no
	}
}

part = {
	location = 0
	localization = "START_SCREEN_LOST_COLONY_HIVE"

	trigger = {
		has_origin = origin_lost_colony
		is_gestalt = yes
		is_hive_empire = yes
		is_human_prescripted_empire = no
		is_nomadic = no
	}
}

part = {
	location = 0
	localization = "START_SCREEN_LOST_COLONY_MACHINE"

	trigger = {
		has_origin = origin_lost_colony
		is_gestalt = yes
		is_machine_empire = yes
		is_human_prescripted_empire = no
		is_nomadic = no
	}
}

part = {
	location = 0
	localization = "START_SCREEN_LOST_COLONY_INDIVIDUALISTIC_MACHINE"

	trigger = {
		has_origin = origin_lost_colony
		is_individual_machine = yes
		is_human_prescripted_empire = no
		is_nomadic = no
	}
}

# Lost Colony - nomads
part = {
	location = 0
	localization = "START_SCREEN_LOST_COLONY_NOMADS"

	trigger = {
		has_origin = origin_lost_colony
		is_nomadic = yes
		is_human_prescripted_empire = no
	}
}

# Broken Shackles
part = {
	location = 0
	localization = "START_SCREEN_BROKEN_SHACKLES"

	trigger = {
		has_origin = origin_broken_shackles
		is_megacorp = no
	}
}

part = {
	location = 0
	localization = "START_SCREEN_BROKEN_SHACKLES_MEGACORP"

	trigger = {
		has_origin = origin_broken_shackles
		is_megacorp = yes
	}
}

# Progenitor Hive
part = {
	location = 0
	localization = "START_SCREEN_PROGENITOR_HIVE"

	trigger = {
		has_origin = origin_progenitor_hive
		is_nomadic = no
	}
}

# Progenitor Hive - nomads
part = {
	location = 0
	localization = "START_SCREEN_PROGENITOR_HIVE_NOMADS"

	trigger = {
		has_origin = origin_progenitor_hive
		is_nomadic = yes
	}
}

# Star Slingshot
part = {
	location = 0
	localization = "START_SCREEN_STAR_SLINGSHOT"

	trigger = {
		has_origin = origin_star_slingshot
		is_gestalt = no
	}
}

part = { # Gestalt
	location = 0
	localization = "START_SCREEN_STAR_SLINGSHOT_GESTALT"

	trigger = {
		has_origin = origin_star_slingshot
		is_gestalt = yes
	}
}

# Shroudwalker Apprentice
part = {
	location = 0
	localization = "START_SCREEN_SHROUDWALKER_APPRENTICE"

	trigger = {
		has_origin = "origin_shroudwalker_apprentice"
		NOR = {
			has_government = gov_megachurch
			has_government = gov_sacrificial_megachurch
		}
		is_nomadic = no
	}
}

# Shroudwalker Apprentice - Corporate (Megachurch) variant
part = {
	location = 0
	localization = "START_SCREEN_SHROUDWALKER_APPRENTICE_CORPORATE"

	trigger = {
		has_origin = "origin_shroudwalker_apprentice"
		OR = {
			has_government = gov_megachurch
			has_government = gov_sacrificial_megachurch
		}
		is_nomadic = no
	}
}

# Shroudwalker Apprentice - nomads
part = {
	location = 0
	localization = "START_SCREEN_SHROUDWALKER_APPRENTICE_NOMADS"

	trigger = {
		has_origin = "origin_shroudwalker_apprentice"
		is_nomadic = yes
	}
}

# Imperial Vassal
part = {
	location = 0
	localization = "START_SCREEN_IMPERIAL_VASSAL"

	trigger = {
		has_origin = "origin_imperial_vassal"
	}
}

# Subterranean
part = {
	location = 0
	localization = "START_SCREEN_SUBTERRANEAN"

	trigger = {
		has_origin = origin_subterranean
		NOR = {
			is_lithoid_empire = yes
			owner_species = { is_species_class = PLANT }
			owner_species = { is_species_class = FUN }
			is_robot_empire = yes
		}
	}
}

part = {
	location = 0
	localization = "START_SCREEN_SUBTERRANEAN_LITHOID"

	trigger = {
		has_origin = origin_subterranean
		is_lithoid_empire = yes
	}
}

part = {
	location = 0
	localization = "START_SCREEN_SUBTERRANEAN_PLANT"

	trigger = {
		has_origin = origin_subterranean
		OR = {
			owner_species = { is_species_class = PLANT }
			owner_species = { is_species_class = FUN }
		}
	}
}

# Subterranean Machines
part = {
	location = 0
	localization = "START_SCREEN_SUBTERRANEAN_ROBOT"

	trigger = {
		has_origin = origin_subterranean_machines
	}
}

# Payback - Standard
part = {
	location = 0
	localization = "START_SCREEN_PAYBACK"

	trigger = {
		has_origin = origin_payback
		NOR = {
			is_hive_empire = yes
			is_machine_empire = yes
			is_megacorp = yes
		}
	}
}

# Payback - Gestalt
part = {
	location = 0
	localization = "START_SCREEN_PAYBACK"

	trigger = {
		has_origin = origin_payback
		OR = {
			is_hive_empire = yes
			is_machine_empire = yes
		}
	}
}

# Payback - Megacorp
part = {
	location = 0
	localization = "START_SCREEN_PAYBACK"

	trigger = {
		has_origin = origin_payback
		is_megacorp = yes
	}
}

# Fear of the Dark
part = {
	location = 0
	localization = "START_SCREEN_FEAR_OF_THE_DARK_REGULAR"

	trigger = {
		has_origin = origin_fear_of_the_dark
		is_megacorp = no
	}
}

part = {
	location = 0
	localization = "START_SCREEN_FEAR_OF_THE_DARK_MEGACORP"

	trigger = {
		has_origin = origin_fear_of_the_dark
		is_megacorp = yes
	}
}

# Shroud-Forged
part = {
	location = 0
	localization = "START_SCREEN_SHROUD_FORGED"

	trigger = {
		has_origin = origin_shroud_forged
	}
}

### PRE-SCRIPTED

# United Nations of Earth
part = {
	location = 0
	localization = "START_SCREEN_UNE"

	trigger = {
		is_nomadic = no
		has_country_flag = human_1
	}
}

# Commonwealth of Man
part = {
	location = 0
	localization = "START_SCREEN_CM"

	trigger = {
		is_nomadic = no
		has_country_flag = human_2
	}
}

# United Nations of Earth - nomads
part = {
	location = 0
	localization = "START_SCREEN_UNE_NOMADS"

	trigger = {
		is_nomadic = yes
		has_country_flag = human_1
	}
}

# Commonwealth of Man - nomads
part = {
	location = 0
	localization = "START_SCREEN_CM_NOMADS"

	trigger = {
		is_nomadic = yes
		has_country_flag = human_2
	}
}

# Gundersen Research Society
part = {
	location = 0
	localization = "START_SCREEN_GRS"

	trigger = {
		has_country_flag = human_3
	}
}

# Clone Army
part = {
	location = 0
	localization = "START_SCREEN_CLONE_ARMY"

	trigger = {
		has_origin = origin_clone_army
		is_nomadic = no
	}
}

# Clone Army - nomads
part = {
	location = 0
	localization = "START_SCREEN_CLONE_ARMY_NOMADS"

	trigger = {
		has_origin = origin_clone_army
		is_nomadic = yes
	}
}

# Here Be Dragons - normal
part = {
	location = 0
	localization = "START_SCREEN_HERE_BE_DRAGONS"

	trigger = {
		has_origin = origin_here_be_dragons
		is_gestalt = no
	}
}

# Here Be Dragons - hive
part = {
	location = 0
	localization = "START_SCREEN_HERE_BE_DRAGONS_HIVE"

	trigger = {
		has_origin = origin_here_be_dragons
		is_hive_empire = yes
	}
}

# Here Be Dragons - machine
part = {
	location = 0
	localization = "START_SCREEN_HERE_BE_DRAGONS_MACHINE"

	trigger = {
		has_origin = origin_here_be_dragons
		is_machine_empire = yes
	}
}

# Ocean Paradise - normal
part = {
	location = 0
	localization = "START_SCREEN_OCEAN_PARADISE"

	trigger = {
		has_origin = origin_ocean_paradise
		is_gestalt = no
	}
}

# Ocean Paradise - hive
part = {
	location = 0
	localization = "START_SCREEN_OCEAN_PARADISE_HIVE"

	trigger = {
		has_origin = origin_ocean_paradise
		is_hive_empire = yes
	}
}

# Ocean Paradise - robot
part = {
	location = 0
	localization = "START_SCREEN_OCEAN_PARADISE_ROBOT"

	trigger = {
		has_origin = origin_ocean_machines
	}
}

# Knights of the Toxic God
part = {
	location = 0
	localization = "START_SCREEN_TOXIC_KNIGHTS"

	trigger = {
		has_origin = origin_toxic_knights
		is_megacorp = no
		is_nomadic = no
	}
}

# Knights of the Toxic God - Corpo
part = {
	location = 0
	localization = "START_SCREEN_TOXIC_KNIGHTS_CORPORATE"

	trigger = {
		has_origin = origin_toxic_knights
		is_megacorp = yes
		is_nomadic = no
	}
}

part = {
	location = 0
	localization = "START_SCREEN_TOXIC_KNIGHTS_NOMADS"

	trigger = {
		has_origin = origin_toxic_knights
		is_nomadic = yes
	}
}

# Overtuned
part = {
	location = 0
	localization = "START_SCREEN_OVERTUNED"

	trigger = {
		has_origin = origin_overtuned
		is_nomadic = no
	}
}

# Overtuned - nomads
part = {
	location = 0
	localization = "START_SCREEN_OVERTUNED_NOMADS"

	trigger = {
		has_origin = origin_overtuned
		is_nomadic = yes
	}
}

# Legendary Leader
part = {
	location = 0
	localization = "START_SCREEN_LEGENDARY_LEADER"

	trigger = {
		OR = {
			has_origin = origin_legendary_leader_dictatorial
			has_origin = origin_legendary_leader
		}
	}
}

# Riftworld
part = {
	location = 0
	localization = "START_SCREEN_RIFTWORLD"

	trigger = {
		has_origin = origin_riftworld
		is_machine_empire = no
		is_nomadic = no
	}
}
# Riftworld
part = {
	location = 0
	localization = "START_SCREEN_RIFTWORLD_MACHINE"

	trigger = {
		has_origin = origin_riftworld
		is_machine_empire = yes
		is_nomadic = no
	}
}
# Riftworld - nomads
part = {
	location = 0
	localization = "START_SCREEN_RIFTWORLD_NOMADS"

	trigger = {
		has_origin = origin_riftworld
		is_nomadic = yes
	}
}

# Primal Calling
part = {
	location = 0
	localization = "START_SCREEN_PRIMAL_CALLING"

	trigger = {
		has_origin = origin_primal_calling
		is_nomadic = no
	}
}

# Primal Calling - nomads
part = {
	location = 0
	localization = "START_SCREEN_PRIMAL_CALLING_NOMADS"

	trigger = {
		has_origin = origin_primal_calling
		is_nomadic = yes
	}
}

# Treasure Hunters
part = {
	location = 0
	localization = "START_SCREEN_TREASURE_HUNTERS"

	trigger = {
		has_origin = origin_treasure_hunters
		is_nomadic = no
	}
}

# Treasure Hunters - nomads
part = {
	location = 0
	localization = "START_SCREEN_TREASURE_HUNTERS_NOMADS"

	trigger = {
		has_origin = origin_treasure_hunters
		is_nomadic = yes
	}
}

# Fruitful Partnership
part = {
	location = 0
	localization = "START_SCREEN_FRUITFUL_PLANTOID"

	trigger = {
		has_origin = origin_fruitful
		is_species_class = PLANT
	}
}

part = {
	location = 0
	localization = "START_SCREEN_FRUITFUL_FUNGOID"

	trigger = {
		has_origin = origin_fruitful
		is_species_class = FUN
	}
}

# Storm Chasers
part = {
	location = 0
	localization = "START_SCREEN_STORM_CHASERS"

	trigger = {
		has_origin = origin_storm_chasers
	}
}

# Cybernetic Creed
part = {
	location = 0
	localization = "START_SCREEN_CYBERNETIC_CREED"

	trigger = {
		has_origin = origin_cybernetic_creed
		is_nomadic = no
	}
}

# Cybernetic Creed - nomads
part = {
	location = 0
	localization = "START_SCREEN_CYBERNETIC_CREED_NOMADS"

	trigger = {
		has_origin = origin_cybernetic_creed
		is_nomadic = yes
	}
}

# Synthetic Fertility (all-purpose)
part = {
	location = 0
	localization = "START_SCREEN_SYNTHETIC_FERTILITY"

	trigger = {
		has_origin = origin_synthetic_fertility
	}
}

# Arc Welders
part = {
	location = 0
	localization = "START_SCREEN_ARC_WELDERS"

	trigger = {
		has_origin = origin_arc_welders
		is_nomadic = no
	}
}

# Arc Welders Nomadic
part = {
	location = 0
	localization = "START_SCREEN_ARC_WELDERS_NOMADIC"

	trigger = {
		has_origin = origin_arc_welders
		is_nomadic = yes
	}
}

# Evolutionary Predators Regular
part = {
	location = 0
	localization = "START_SCREEN_EVOLUTIONARY_PREDATORS_REGULAR"

	trigger = {
		has_origin = origin_evolutionary_predators
		is_hive_empire = no
		is_nomadic = no
	}
}

# Evolutionary Predators Hive
part = {
	location = 0
	localization = "START_SCREEN_EVOLUTIONARY_PREDATORS_HIVE"

	trigger = {
		has_origin = origin_evolutionary_predators
		is_hive_empire = yes
		NOT = { has_valid_civic = civic_hive_devouring_swarm }
		is_nomadic = no
	}
}

# Evolutionary Predators Devouring Swarm
part = {
	location = 0
	localization = "START_SCREEN_EVOLUTIONARY_PREDATORS_DEVOURING_SWARM"

	trigger = {
		has_origin = origin_evolutionary_predators
		has_valid_civic = civic_hive_devouring_swarm
		is_nomadic = no
	}
}

# Evolutionary Predators - nomads
part = {
	location = 0
	localization = "START_SCREEN_EVOLUTIONARY_PREDATORS_NOMADS"

	trigger = {
		has_origin = origin_evolutionary_predators
		is_nomadic = yes
	}
}

# Starlit Citadel
part = {
	location = 0
	localization = "START_SCREEN_STARLIT_CITADEL"

	trigger = {
		has_origin = origin_starlit_citadel
	}
}

# Wilderness
part = {
	location = 0
	localization = "START_SCREEN_WILDERNESS_INTRO"

	trigger = {
		has_origin = origin_wilderness
	}
}
part = {
	location = 1
	localization = "START_SCREEN_WILDERNESS_COLD"

	trigger = {
		has_origin = origin_wilderness
		ideal_planet_is_cold = yes
	}
}
part = {
	location = 1
	localization = "START_SCREEN_WILDERNESS_DRY"

	trigger = {
		has_origin = origin_wilderness
		ideal_planet_is_dry = yes
	}
}
part = {
	location = 1
	localization = "START_SCREEN_WILDERNESS_WET"

	trigger = {
		has_origin = origin_wilderness
		ideal_planet_is_wet = yes
	}
}
part = {
	location = 1
	localization = "START_SCREEN_WILDERNESS_DEFAULT"

	trigger = {
		has_origin = origin_wilderness
		NOR = {
			ideal_planet_is_cold = yes
			ideal_planet_is_dry = yes
			ideal_planet_is_wet = yes
		}
	}
}
part = {
	location = 2
	localization = "START_SCREEN_WILDERNESS_OUTRO"

	trigger = {
		has_origin = origin_wilderness
	}
}

# Unplugged
part = {
	location = 0
	localization = "START_SCREEN_UNPLUGGED"

	trigger = {
		has_origin = origin_unplugged
	}
}

# Mindwardens
part = {
	location = 0
	localization = "START_SCREEN_MINDWARDENS"

	trigger = {
		has_origin = origin_mindwardens
	}
}

# Endbringers
part = {
	location = 0
	localization = "START_SCREEN_ENDBRINGERS"

	trigger = {
		has_origin = origin_endbringers
	}
}

# Red Giant
part = {
	location = 0
	localization = "START_SCREEN_RED_GIANT"

	trigger = {
		has_origin = origin_red_giant
	}
}

# Cosmic Dawn
part = {
	location = 0
	localization = "START_SCREEN_COSMIC_DAWN"

	trigger = {
		has_origin = origin_cosmic_dawn
	}
}

# Voidfarers

## Part 1
# Democratic
part = {
	location = 0
	localization = "START_SCREEN_PART_ONE_DEMOCRACTIC_NOMAD"

	trigger = {
		has_origin = origin_default_nomads
		is_democratic_authority = yes
	}
}

# Oligarchic
part = {
	location = 0
	localization = "START_SCREEN_PART_ONE_OLIGARCHIC_NOMAD"

	trigger = {
		has_origin = origin_default_nomads
		is_oligarchic_authority = yes
	}
}

# Dictatorial
part = {
	location = 0
	localization = "START_SCREEN_PART_ONE_DICTATORIAL_NOMAD"

	trigger = {
		has_origin = origin_default_nomads
		is_dictatorial_authority = yes
	}
}

# Imperial
part = {
	location = 0
	localization = "START_SCREEN_PART_ONE_IMPERIAL_NOMAD"

	trigger = {
		has_origin = origin_default_nomads
		is_imperial_authority = yes
	}
}

# Machine Intelligence
part = {
	location = 0
	localization = "START_SCREEN_PART_ONE_MACHINE_NOMAD"

	trigger = {
		has_origin = origin_default_nomads
		is_machine_empire = yes
	}
}

# Hive Mind Regular
part = {
	location = 0
	localization = "START_SCREEN_PART_ONE_HIVE_NOMAD"

	trigger = {
		has_origin = origin_default_nomads
		is_hive_empire = yes
		NOT = { has_civic = civic_hive_devouring_swarm }
	}
}

# Hive Mind Devouring Swarm
part = {
	location = 0
	localization = "START_SCREEN_PART_ONE_DEVOURING_SWARM_NOMAD"

	trigger = {
		has_origin = origin_default_nomads
		is_hive_empire = yes
		has_civic = civic_hive_devouring_swarm
	}
}

# MegaCorp
part = {
	location = 0
	localization = "START_SCREEN_PART_ONE_MEGACORP_NOMAD"

	trigger = {
		has_origin = origin_default_nomads
		is_megacorp = yes
	}
}

## Part 2
# Civlian, regular
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_CIVILIAN_NOMAD_REGULAR"

	trigger = {
		has_origin = origin_default_nomads
		is_gestalt = no
		capital_scope.ship? = {
			is_civilian_arkship = yes
		}
	}
}

# Civlian, gestalt
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_CIVILIAN_NOMAD_GESTALT"

	trigger = {
		has_origin = origin_default_nomads
		is_gestalt = yes
		capital_scope.ship? = {
			is_civilian_arkship = yes
		}
	}
}

# Military
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_MILITARY_NOMAD"

	trigger = {
		has_origin = origin_default_nomads
		capital_scope.ship? = {
			is_military_arkship = yes
		}
	}
}

# Science
part = {
	location = 1
	localization = "START_SCREEN_PART_TWO_SCIENCE_NOMAD"

	trigger = {
		has_origin = origin_default_nomads
		capital_scope.ship? = {
			is_science_arkship = yes
		}
	}
}

# Heirs of the Khan
part = {
	location = 0
	localization = "START_SCREEN_HEIRS_OF_THE_KHAN"

	trigger = {
		has_origin = origin_heirs_of_the_khan
	}
}

# Forever Cruise Regular
part = {
	location = 0
	localization = "START_SCREEN_FOREVER_CRUISE_REGULAR"

	trigger = {
		has_origin = origin_forever_cruise
		is_gestalt = no
	}
}

# Forever Cruise Machine
part = {
	location = 0
	localization = "START_SCREEN_FOREVER_CRUISE_MACHINE"

	trigger = {
		has_origin = origin_forever_cruise
		is_machine_empire = yes
	}
}

# Forever Cruise Hive
part = {
	location = 0
	localization = "START_SCREEN_FOREVER_CRUISE_HIVE"

	trigger = {
		has_origin = origin_forever_cruise
		is_hive_empire = yes
	}
}

# The Sacred Path - Standard
part = {
	location = 0
	localization = "START_SCREEN_SACRED_PATH"

	trigger = {
		has_origin = origin_sacred_path
	}
}
