namespace = MT_precursor_events

# Vultaum Tech
country_event = {
	id = MT_precursor_events.7
	hide_window = yes
	
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = vultaum_intro }
		NOT = { has_country_flag = vultaum_research_started }
	}

	immediate = {
		enable_special_project = {
			name = "VULTAUM_SECRETS"
			location = capital_scope
			owner = ROOT
		}

		hidden_effect = {
			set_country_flag = vultaum_research_started
			country_event = { id = ancrel.10040 }
		}
	}
}

# Irassian Tech
country_event = {
	id = MT_precursor_events.8
	hide_window = yes
	
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = irassian_intro }
		NOT = { has_country_flag = irassian_research_started }
	}

	immediate = {
		enable_special_project = {
			name = "IRASSIAN_SECRETS"
			location = capital_scope
			owner = ROOT
		}

		hidden_effect = {
			set_country_flag = irassian_research_started
			country_event = { id = ancrel.10040 }
		}
	}
}

# First League Tech
country_event = {
	id = MT_precursor_events.9
	hide_window = yes
	
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = first_league_intro }
		NOT = { has_country_flag = league_research_started }
	}

	immediate = {
		enable_special_project = {
			name = "LEAGUE_SECRETS"
			location = capital_scope
			owner = ROOT
		}

		hidden_effect = {
			set_country_flag = league_research_started
			country_event = { id = ancrel.10040 }
		}
	}
}

# Yuht Tech
country_event = {
	id = MT_precursor_events.10
	hide_window = yes
	
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = yuht_intro }
		NOT = { has_country_flag = yuht_research_started }
	}

	immediate = {
		enable_special_project = {
			name = "YUHT_SECRETS"
			location = capital_scope
			owner = ROOT
		}

		hidden_effect = {
			set_country_flag = yuht_research_started
			country_event = { id = ancrel.10040 }
		}
	}
}

# Cybrex Tech
country_event = {
	id = MT_precursor_events.11
	hide_window = yes
	
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = cybrex_intro }
		NOT = { has_country_flag = cybrex_research_started }
	}

	immediate = {
		enable_special_project = {
			name = "CYBREX_SECRETS"
			location = capital_scope
			owner = ROOT
		}

		hidden_effect = {
			set_country_flag = cybrex_research_started
			country_event = { id = ancrel.10040 }
		}
	}
}

# Zroni Tech
country_event = {
	id = MT_precursor_events.12
	hide_window = yes
	
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = zroni_intro }
		NOT = { has_country_flag = zroni_research_started }
		has_ancrel = yes
	}

	immediate = {
		enable_special_project = {
			name = "ZRONI_SECRETS"
			location = capital_scope
			owner = ROOT
		}

		hidden_effect = {
			set_country_flag = zroni_research_started
			country_event = { id = ancrel.10040 }
		}
	}
}

# Baol Tech
country_event = {
	id = MT_precursor_events.13
	hide_window = yes
	
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = baol_intro }
		NOT = { has_country_flag = baol_research_started }
		has_ancrel = yes
	}

	immediate = {
		enable_special_project = {
			name = "BAOL_SECRETS"
			location = capital_scope
			owner = ROOT
		}

		hidden_effect = {
			set_country_flag = baol_research_started
			country_event = { id = ancrel.10040 }
		}
	}
}

# Inetian Tech
#country_event = {
#	id = MT_precursor_events.14
#	hide_window = yes
#	
#	is_triggered_only = yes
#
#	trigger = {
#		NOT = { has_country_flag = zroni_intro }
#		NOT = { has_country_flag = zroni_research_started }
#	}
#
#	immediate = {
#		enable_special_project = {
#			name = "ZRONI_SECRETS"
#			location = capital_scope
#			owner = ROOT
#		}
#
#		hidden_effect = {
#			set_country_flag = zroni_research_started
#			country_event = { id = ancrel.10040 }
#		}
#	}
#}
#
## Baol Tech
#country_event = {
#	id = MT_precursor_events.15
#	hide_window = yes
#	
#	is_triggered_only = yes
#
#	trigger = {
#		NOT = { has_country_flag = baol_intro }
#		NOT = { has_country_flag = baol_research_started }
#	}
#
#	immediate = {
#		enable_special_project = {
#			name = "BAOL_SECRETS"
#			location = capital_scope
#			owner = ROOT
#		}
#
#		hidden_effect = {
#			set_country_flag = baol_research_started
#			country_event = { id = ancrel.10040 }
#		}
#	}
#}