kha_et_missions_1 = {
	slot = 1
	generic = no
	ai = yes
	potential = {
		OR = {
			tag = KHA		#Mongolia
			tag = KMO		#Khamag Mongol
		}
		#started_in = 1125.1.1		#removed, since Khamag Mongol exists beforehand
		NOT = { started_in = 1300.1.1 }
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	kha_et_defeat_the_khitans_mission = {
		icon = mission_mongol_charge
		required_missions = { kha_et_unite_the_mongols_mission }
		position = 2
		provinces_to_highlight = {
			OR = {
				area = north_zungaria
				area = jetysuu_area
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			north_zungaria = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			jetysuu_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			country_event = {
				id = mmetr_KHA_mission_events.1
			}
		}
	}
	kha_et_decimate_khwarezmia_mission = {
		icon = mission_krums_nikephoros_skull_cup
		required_missions = { kha_et_defeat_the_khitans_mission }
		position = 3
		provinces_to_highlight = {
			OR = {
				area = khiva_area
				area = merv_area
				area = mashhad_area
				area = herat_area
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			OR = {
				NOT = { exists = KHW }
				overlord_of = KHW
			}
			khiva_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			merv_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			mashhad_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			herat_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			country_event = {
				id = mmetr_KHA_mission_events.2
			}
			tooltip = {
				add_prestige = 20
			}
			custom_tooltip = mmetr_KHA_mission_events.2.tt
		}
	}
	kha_et_dominate_iran_zamin_mission = {
		icon = mission_persianate_empire
		required_missions = { kha_et_decimate_khwarezmia_mission }
		position = 4
		provinces_to_highlight = {
			OR = {
				area = iraq_e_ajam_area
				area = isfahan_area
				area = farsistan_area
				area = persian_gulf_coast
				area = luristan_area
				area = khuzestan_area
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			iraq_e_ajam_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			isfahan_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			farsistan_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			persian_gulf_coast = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			luristan_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			khuzestan_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_army_tradition = 10
			country_event = {
				id = mmetr_KHA_mission_events.3
			}
			tooltip = {
				capital_scope = {
					add_base_tax = 1
					add_base_production = 1
				}
				define_advisor = {
					type = artist
					skill = 2
					culture = persian
					religion = sunni
					discount = yes
				}
			}
		}
	}
	kha_et_besiege_baghdad_mission = {
		icon = mission_crush_delhi
		required_missions = { kha_et_dominate_iran_zamin_mission }
		position = 5
		provinces_to_highlight = {
			province_id = 410		#Baghdad
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			owns_or_non_sovereign_subject_of = 410
			OR = {
				NOT = { exists = ABA }
				overlord_of = ABA
			}
		}
		effect = {
			add_dip_power = 75
			country_event = {
				id = mmetr_KHA_mission_events.4
			}
			tooltip = {
				410 = {
					add_province_modifier = {
						name = "me_kha_et_reconstruction_efforts"
						duration = 10950
					}
				}
			}
		}
	}
	kha_et_seize_syria_mission = {
		icon = mission_camel_cataphracts_prt_sas
		required_missions = { kha_et_besiege_baghdad_mission }
		position = 7
		provinces_to_highlight = {
			OR = {
				area = syria_area
				area = aleppo_area
			}
			NOT = { 
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			syria_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			aleppo_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			country_event = {
				id = mmetr_KHA_mission_events.5
			}
		}
	}
	kha_et_vanquish_the_egyptians_mission = {
		icon = mission_egyptian_mamluk_soldier
		required_missions = { kha_et_seize_syria_mission }
		position = 8
		provinces_to_highlight = {
			OR = {
				region = egypt_region
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			is_empty = no
			has_discovered = ROOT
		}
		trigger = {
			egypt_region = {
				type = all
				OR = {
					country_or_non_sovereign_subject_holds = ROOT
					is_empty = yes
				}
			}
		}
		effect = {
			add_horde_unity = 10
			country_event = {
				id = mmetr_KHA_mission_events.6
			}
		}
	}
	
	kha_et_hegemonize_the_rus_mission = {
		icon = mission_break_the_tatar_yoke
		required_missions = { kha_et_rule_the_pontic_steppe_mission }
		position = 10
		provinces_to_highlight = {
			OR = {
				area = moscow_area
				area = oka_area
				area = vladimir_area
				area = ryazan_area
				area = smolensk_area
			}
			NOT = {
				country_or_vassal_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			moscow_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			oka_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			vladimir_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			ryazan_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			smolensk_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
		}
		effect = {
			country_event = {
				id = mmetr_KHA_mission_events.15
			}
			tooltip = {
				russia_region = {
					limit = {
						country_or_vassal_holds = ROOT
					}
					add_province_modifier = {
						name = "me_kha_et_mongol_vassalage"
						duration = 10950
					}
				}
				if = {
					limit = {
						exists = NOV
					}
					add_casus_belli = {
						target = NOV
						type = cb_vassalize_mission
						months = 240
					}
				}
			}
		}
	}
	kha_et_ports_of_novgorod_mission = {
		icon = mission_novgorod_the_great
		required_missions = { kha_et_hegemonize_the_rus_mission }
		position = 11
		provinces_to_highlight = {
			OR = {
				area = novgorod_area
				province_id = 33	#Neva, port city of Novgorod with an estuary
			}
			NOT = {
				country_or_vassal_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			owns_or_subject_of = 33
			novgorod_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
		}
		effect = {
			define_advisor = {
				type = trader
				skill = 3
				culture = novgorodian
				religion = orthodox
			}
		}
	}
	kha_et_invasion_of_poland_mission = {
		icon = mission_conquer_5_states
		required_missions = { kha_et_ports_of_novgorod_mission }
		position = 12
		provinces_to_highlight = {
			region = poland_region
			NOT = {
				country_or_vassal_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			poland_region = {
				type = all
				country_or_vassal_holds = ROOT
			}
		}
		effect = {
			add_horde_unity = 15
			add_country_modifier = {
				name = "me_kha_et_the_plunder_of_europe"
				duration = 10950
			}
		}
	}
	kha_et_conquest_of_paris_mission = {
		icon = mission_the_french_menace
		required_missions = { kha_et_vanquish_the_emperor_mission }
		position = 14
		provinces_to_highlight = {
			area = ile_de_france_area
			NOT = {
				country_or_vassal_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			ile_de_france_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
		}
		effect = {
			add_horde_unity = 10
			france_region = {
				limit = {
					NOT = { country_or_vassal_holds = ROOT }
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	kha_et_universal_khan_mission = {
		icon = mission_mongol_throne
		required_missions = { kha_et_sack_the_eternal_city_mission kha_et_conquest_of_paris_mission }
		position = 16
		provinces_to_highlight = {
			OR = {
				continent = europe
				continent = asia
			}
			NOT = {
				country_or_vassal_holds = ROOT
			}
			is_empty = no
			has_discovered = ROOT
		}
		trigger = {
			europe = {
				type = all
				OR = {
					country_or_vassal_holds = ROOT
					is_empty = yes
				}
			}
			asia = {
				type = all
				OR = {
					country_or_vassal_holds = ROOT
					is_empty = yes
				}
			}
		}
		effect = {
			add_legitimacy_equivalent = 100
			add_prestige = 50
			add_adm_power = 100
			add_dip_power = 100
			add_mil_power = 100
			add_country_modifier = {
				name = "me_kha_et_universal_khan"
				duration = -1
			}
		}
	}
}

kha_et_missions_2 = {
	slot = 2
	generic = no
	ai = yes
	potential = {
		OR = {
			tag = KHA		#Mongolia
			tag = KMO		#Khamag Mongol
		}
		#started_in = 1125.1.1
		NOT = { started_in = 1300.1.1 }
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	kha_et_subjugate_turkic_hordes_mission = {
		icon = mission_non-western_cavalry_raid
		required_missions = { kha_et_unite_the_mongols_mission }
		position = 2
		provinces_to_highlight = {
			OR = {
				area = turpan_kumul_area
				area = tarim_basin_area		#North Altishahr
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			turpan_kumul_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			tarim_basin_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			country_event = {
				id = mmetr_KHA_mission_events.7
			}
			tooltip = {
				add_prestige = 10
				define_advisor = {
					type = statesman
					name = "Tata-tunga"
					skill = 2
					culture = uyghur
					religion = tengri_pagan_reformed
					discount = yes
				}
				if = {
					limit = {
						capital_scope = {
							NOT = { writing = 100 }
						}
					}
					capital_scope = {
						add_institution_embracement = {
							which = writing
							value = 100
						}
					}
				}
			}
		}
	}
	kha_et_cross_the_great_walls_mission = {
		icon = mission_great_wall
		required_missions = { kha_et_subjugate_turkic_hordes_mission kha_et_exterminate_the_tatars_mission }
		position = 3
		provinces_to_highlight = {
			OR = {
				area = inner_mongolia_area
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			inner_mongolia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			} 
		}
		effect = {
			add_prestige = 15
			add_horde_unity = 10
		}
	}
	kha_et_destroy_the_tanguts_mission = {
		icon = mission_mongol_heavy_cavalry
		required_missions = { kha_et_cross_the_great_walls_mission }
		position = 4
		provinces_to_highlight = {
			OR = {
				area = ordos_area
				owned_by = XIA
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			ordos_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			OR = {
				NOT = { exists = XIA }
				overlord_of = XIA
			}
		}
		effect = {
			add_horde_unity = 10
			country_event = {
				id = mmetr_KHA_mission_events.11
			}
		}
	}
	kha_et_conquest_of_delhi_mission = {
		icon = mission_camel_archers_vs_elephants
		required_missions = { kha_et_dominate_iran_zamin_mission }
		position = 5
		provinces_to_highlight = {
			province_id = 522		#Delhi
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			owns_or_non_sovereign_subject_of = 522
		}
		effect = {
			add_prestige = 20
			add_country_modifier = {
				name = "me_kha_et_indian_trade"
				duration = 10950
			}
		}
	}
	kha_et_khagan_of_rum_mission = {
		icon = mission_seljuk_rum_sultanate_banners
		required_missions = { kha_et_besiege_baghdad_mission }
		position = 6
		provinces_to_highlight = {
			OR = {
				region = anatolia_region
			}
			NOT = {
				country_or_vassal_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			anatolia_region = {
				type = all
				country_or_vassal_holds = ROOT
			}
		}
		effect = {
			add_horde_unity = 10
			country_event = {
				id = mmetr_KHA_mission_events.12
			}
		}
	}
	kha_et_city_of_the_worlds_desire_mission = {
		icon = the_latin_empire
		required_missions = { kha_et_khagan_of_rum_mission }
		position = 8
		provinces_to_highlight = {
			province_id = 151
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			owns_or_non_sovereign_subject_of = 151
		}
		effect = {
			add_prestige = 20
		}
	}
	
	kha_et_rule_the_pontic_steppe_mission = {
		icon = mission_cuman_kipchak_confederacy
		required_missions = {  }
		position = 9
		provinces_to_highlight = {
			OR = {
				area = azov_area
				area = lower_don_area
				area = zaporizhia_area
				area = yedisan_area
			}
			NOT = {
				country_or_vassal_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			azov_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			lower_don_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			zaporizhia_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			yedisan_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
		}
		effect = {
			add_horde_unity = 15
			crimea_area = {
				limit = {
					NOT = { country_or_non_sovereign_subject_holds = ROOT }
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	kha_et_annihilate_the_magyars_mission = {
		icon = mission_impaled_soldies
		required_missions = { kha_et_rule_the_pontic_steppe_mission }
		position = 11
		provinces_to_highlight = {
			OR = {
				area = alfold_area
				area = vojvodina_area
				area = transylvania_area
				area = southern_transylvania_area
				area = transdanubia_area
				area = slovakia_area
			}
			NOT = {
				country_or_vassal_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			alfold_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			vojvodina_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			transylvania_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			southern_transylvania_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			transdanubia_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			slovakia_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
		}
		effect = {
			add_horde_unity = 10
			add_country_modifier = {
				name = "me_kha_et_european_provinces"
				duration = -1
			}
		}
	}
	kha_et_besiege_vienna_mission = {
		icon = boh_humiliate_austria
		required_missions = { kha_et_annihilate_the_magyars_mission }
		position = 12
		provinces_to_highlight = {
			province_id = 134	#Vienna / Wien
			NOT = {
				country_or_vassal_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			owns_or_subject_of = 134
		}
		effect = {
			add_adm_power = 75
			add_country_modifier = {
				name = "me_kha_et_the_terror_of_europe"
				duration = 10950
			}
		}
	}
	kha_et_vanquish_the_emperor_mission = {
		icon = humiliate_austria
		required_missions = { kha_et_besiege_vienna_mission kha_et_invasion_of_poland_mission }
		position = 13
		provinces_to_highlight = {
			owner = {
				is_emperor = yes
			}
			has_discovered = ROOT
		}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = kha_et_vanquish_the_emperor_mission.tt
				NOT = {
					any_country = {
						is_emperor = yes
					}
				}
			}
		}
		effect = {
			country_event = {
				id = mmetr_KHA_mission_events.18
			}
			tooltip = {
				add_country_modifier = {
					name = "me_kha_et_destroyer_of_empires"
					duration = -1
				}
			}
		}
	}
	kha_et_sack_the_eternal_city_mission = {
		icon = answer_the_roman_question
		required_missions = { kha_et_vanquish_the_emperor_mission }
		position = 15
		provinces_to_highlight = {
			province_id = 118	#Roma
			NOT = {
				country_or_vassal_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			owns_or_subject_of = 118	#Roma
			OR = {
				NOT = { exists = PAP }
				overlord_of = PAP
			}
		}
		effect = {
			country_event = {
				id = mmetr_KHA_mission_events.17
			}
		}
	}
}

kha_et_missions_3 = {
	slot = 3
	generic = no
	ai = yes
	potential = {
		OR = {
			tag = KHA		#Mongolia
			tag = KMO		#Khamag Mongol
		}
		#started_in = 1125.1.1
		NOT = { started_in = 1300.1.1 }
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	kha_et_unite_the_mongols_mission = {
		icon = mission_mongol_allies_banner
		required_missions = {  }
		position = 1
		completed_by = 1206.1.1
		provinces_to_highlight = {
			OR = {
				area = uliastai_area
				area = central_mongolia_area
				area = outer_mongolia_area
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			uliastai_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			central_mongolia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			outer_mongolia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_horde_unity = 50
		}
	}
	kha_et_exterminate_the_tatars_mission = {
		icon = mission_jurchen_cavalrymen
		required_missions = { kha_et_unite_the_mongols_mission }
		position = 2
		completed_by = 1206.1.1
		provinces_to_highlight = {
			OR = {
				area = xilin_gol_area
				owned_by = TAT
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			xilin_gol_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			OR = {
				NOT = { exists = TAT }
				overlord_of = TAT
			}
		}
		effect = {
			add_horde_unity = 10
		}
	}
	kha_et_capture_zhongdu_mission = {
		icon = mission_chinese_fortress_siege
		required_missions = { kha_et_exterminate_the_tatars_mission }
		position = 4
		provinces_to_highlight = {
			province_id = 1816	#Beijing
			NOT = {
				owned_by = ROOT
				is_core = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			owns_core_province = 1816
		}
		effect = {
			country_event = {
				id = mmetr_KHA_mission_events.8
			}
			tooltip = {
				add_country_modifier = {
					name = "me_kha_et_taxation_policy"
					duration = 7300
				}
				define_advisor = {
					type = statesman
					name = "Yelü Chucai"
					skill = 3
					culture = khitan
					religion = confucianism		#Was a Confucian scholar
					discount = yes
				}
			}
		}
	}
	kha_et_invade_the_middle_kingdom_mission = {
		icon = mission_ancient_chinese_army_in_siege
		required_missions = { kha_et_capture_zhongdu_mission kha_et_destroy_the_tanguts_mission }
		position = 5
		provinces_to_highlight = {
			OR = {
				area = shanxi_area
				area = shaanxi_area
				area = hebei_area
				area = south_hebei_area
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			shanxi_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			shaanxi_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			hebei_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			south_hebei_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_horde_unity = 10
			add_prestige = 20
			add_adm_power = 75
		}
	}
	kha_et_the_celestial_throne_mission = {
		icon = mission_seize_the_dragon_throne
		required_missions = { kha_et_invade_the_middle_kingdom_mission kha_et_besiege_kaifeng_mission }
		position = 6
		provinces_to_highlight = {
			region = north_china_region
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			if = {
				limit = {
					has_dlc = "Mandate of Heaven"
				}
				OR = {
					is_emperor_of_china = yes
					NOT = {
						any_country = {
							is_emperor_of_china = yes
						}
					}
				}
			}
			north_china_region = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			if = {
				limit = {
					has_dlc = "Mandate of Heaven"
					is_emperor_of_china = yes
				}
				add_mandate_large_effect = yes		#adds 10 Mandate
			}
			else = {
				add_prestige = 20
				add_stability_or_adm_power = yes
			}
			add_adm_power = 100
			add_dip_power = 100
			add_mil_power = 100
		}
	}
	kha_et_march_into_tibet_mission = {
		icon = mission_tibetan_empire
		required_missions = { kha_et_the_celestial_throne_mission }
		position = 7
		provinces_to_highlight = {
			OR = {
				region = tibet_region
			}
			NOT = {
				OR = {
					is_empty = yes
					country_or_vassal_holds = ROOT
				}
			}
			has_discovered = ROOT
		}
		trigger = {
			tibet_region = {
				type = all
				OR = {
					is_empty = yes
					country_or_vassal_holds = ROOT
				}
			}
		}
		effect = {
			country_event = {
				id = mmetr_KHA_mission_events.9
			}
			tooltip = {
				tibet_region = {
					limit = {
						country_or_vassal_holds = ROOT
					}
					add_province_modifier = {
						name = "me_kha_et_sakya_lama_autonomy"
						duration = 10950
					}
				}
			}
		}
	}
	kha_et_research_gunpowder_mission = {
		icon = mission_asian_cannon
		required_missions = { kha_et_southern_campaign_mission }
		position = 8
		trigger = {
			natural_scientist = 3
		}
		effect = {
			add_country_modifier = {
				name = "me_kha_et_gunpowder_tactics"
				duration = 10950
			}
		}
	}
	kha_et_defeat_the_bulgarians_mission = {
		icon = mission_mongol_raze
		required_missions = { kha_et_rule_the_pontic_steppe_mission }
		position = 10
		provinces_to_highlight = {
			OR = {
				area = silistria_area
				area = bulgaria_area
				owned_by = BUL
			}
			NOT = {
				country_or_vassal_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			OR = {
				NOT = { exists = BUL }
				overlord_of = BUL
			}
			silistria_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			bulgaria_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
		}
		effect = {
			country_event = {
				id = mmetr_KHA_mission_events.16
			}
		}
	}
	
	kha_et_to_the_balkan_coast_mission = {
		icon = capture_adriatic_ports
		required_missions = { kha_et_defeat_the_bulgarians_mission }
		position = 11
		provinces_to_highlight = {
			OR = {
				area = east_adriatic_coast_area
				area = croatia_area
				area = bosnia_area
				area = serbia_area
				area = rascia_area
			}
			NOT = {
				country_or_vassal_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			east_adriatic_coast_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			croatia_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			bosnia_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			serbia_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			rascia_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
		}
		effect = {
			add_horde_unity = 10
			add_ruler_modifier = {
				name = "kha_et_khagan_of_many_seas"
				duration = -1
			}
		}
	}
	kha_et_establish_the_yam_mission = {
		icon = mission_conquer_malwa_bah
		required_missions = { kha_et_construct_qaraqorum_mission }
		position = 12
		trigger = {
			road = 10
			num_of_owned_provinces_with = {
				value = 10
				OR = {
					has_building = marketplace
					has_building = trade_post
				}
			}
		}
		effect = {
			country_event = {
				id = mmetr_KHA_mission_events.22
			}
			tooltip = {
				add_country_modifier = {
					name = "kha_et_yam"
					duration = -1
				}
				custom_tooltip = kha_et_establish_the_yam_mission.tt
				hidden_effect = {
					set_country_flag = mmetr_enable_burghers_estate_flag
				}
			}
		}
	}
	kha_et_appeal_to_the_ortogh_mission = {
		icon = mission_dominate_trade_in_bengal
		required_missions = { kha_et_establish_the_yam_mission }
		position = 14
		trigger = {
			num_of_estate_agendas_completed = {
				estate = estate_burghers
				value = 4
			}
		}
		effect = {
			add_country_modifier = {
				name = "kha_et_ortogh"
				duration = -1
			}
		}
	}
	kha_empire_of_tolerance_mission = {
		icon = mission_muslim_prayer
		required_missions = { kha_et_pax_mongolica_mission }
		position = 16
		trigger = {
			num_of_owned_provinces_with = {
				value = 10
				religion_group = christian
			}
			num_of_owned_provinces_with = {
				value = 10
				religion_group = muslim
			}
			num_of_owned_provinces_with = {
				value = 10
				religion_group = buddhic
			}
			num_of_owned_provinces_with = {
				value = 10
				religion_group = eastern
			}
			num_of_owned_provinces_with = {
				value = 10
				religion_group = dharmic
			}
		}
		effect = {
			add_country_modifier = {
				name = "kha_et_empire_of_tolerance"
				duration = -1
			}
		}
	}	
}

kha_et_missions_4 = {
	slot = 4
	generic = no
	ai = yes
	potential = {
		OR = {
			tag = KHA		#Mongolia
			tag = KMO		#Khamag Mongol
		}
		#started_in = 1125.1.1
		NOT = { started_in = 1300.1.1 }
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	kha_et_subjugate_the_forest_peoples_mission = {
		icon = mission_xianbei_desert_warriors
		required_missions = { kha_et_unite_the_mongols_mission }
		position = 2
		provinces_to_highlight = {
			OR = {
				area = tannu_uriankhai_area
				area = irkutsk_area
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			is_empty = no
			has_discovered = ROOT
		}
		trigger = {
			tannu_uriankhai_area = {
				type = all
				OR = {
					country_or_non_sovereign_subject_holds = ROOT
					is_empty = yes
				}
			}
			irkutsk_area = {
				type = all
				OR = {
					country_or_non_sovereign_subject_holds = ROOT
					is_empty = yes
				}
			}
		}
		effect = {
			add_yearly_manpower = 1
			add_country_modifier = {
				name = "me_kre_agricultural_colonies"
				duration = 10950
			}
		}
	}
	kha_et_besiege_kaifeng_mission = {
		icon = mission_mongolian_fortress_siege
		required_missions = { kha_et_capture_zhongdu_mission }
		position = 5
		provinces_to_highlight = {
			province_id = 688	#Kaifeng
			NOT = {
				owned_by = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			owns = 688
		}
		effect = {
			country_event = {
				id = mmetr_KHA_mission_events.10
			}
			tooltip = {
				add_years_of_income = 0.75
			}
		}
	}
	kha_et_a_proper_mongol_fleet_mission = {
		icon = mission_to_the_south_china_sea
		required_missions = { kha_et_subjugate_goryeo_mission }
		position = 6
		trigger = {
			navy_size = 30
		}
		effect = {
			add_navy_tradition = 15
		}
	}
	kha_et_southern_campaign_mission = {
		icon = mission_chinese_planning_war
		required_missions = { kha_et_the_celestial_throne_mission }
		position = 7
		provinces_to_highlight = {
			OR = {
				region = south_china_region
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			is_empty = no
			has_discovered = ROOT
		}
		trigger = {
			south_china_region = {
				type = all
				OR = {
					country_or_subject_holds = ROOT
					is_empty = yes
				}
			}
		}
		effect = {
			add_prestige = 30
			if = {
				limit = {
					has_dlc = "Mandate of Heaven"
					is_emperor_of_china = yes
				}
				add_mandate_large_effect = yes
			}
		}
	}
	kha_et_invasion_of_vietnam_mission = {
		icon = mission_mnd_dai_imperial_citadel
		required_missions = { kha_et_southern_campaign_mission }
		position = 9
		provinces_to_highlight = {
			OR = {
				area = red_river_delta_area
				area = vietnam_area
				area = champa_area
			}
			NOT = {
				country_or_vassal_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			red_river_delta_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			vietnam_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			champa_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
		}
		effect = {
			add_dip_power = 100
			add_country_modifier = {
				name = "me_kha_et_jungle_experts"
				duration = 10950
			}
		}
	}
	kha_et_set_sail_for_java_mission = {
		icon = mission_open_up_china
		required_missions = { kha_et_invasion_of_vietnam_mission }
		position = 10
		provinces_to_highlight = {
			OR = {
				area = central_java_area
				area = surabaya_area
				area = east_java_area
				area = west_java_area
				area = banten_area
			}
			NOT = {
				country_or_vassal_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			central_java_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			surabaya_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			east_java_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			west_java_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			banten_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
		}
		effect = {
			add_navy_tradition = 20
			create_admiral = { tradition = 40 }
		}
	}
	
	kha_et_construct_qaraqorum_mission = {
		icon = et_mission_forbidden_city
		required_missions = {  }
		position = 11
		provinces_to_highlight = {
			province_id = 4678	#Qaraqorum
			OR = {
				NOT = { owned_by = ROOT }
				NOT = { num_of_times_improved_by_owner = 3 }
				NOT = { num_of_buildings_in_province = 2 }
			}
			has_discovered = ROOT
		}
		trigger = {
			owns_core_province = 4678
			4678 = {
				num_of_times_improved_by_owner = 3
			}
			4678 = {
				num_of_buildings_in_province = 2
			}
			4678 = {
				OR = {
					has_building = temple
					has_building = cathedral
				}
			}
		}
		effect = {
			country_event = {
				id = mmetr_KHA_mission_events.19
			}
			tooltip = {
				4678 = {
					add_base_tax = 1
					add_province_modifier = {
						name = "me_kha_et_silver_tree_of_qaraqorum"
						duration = -1
					}
				}
			}
		}
	}
	kha_et_control_the_silk_road_mission = {
		icon = mission_chinese_market
		required_missions = { kha_et_construct_qaraqorum_mission }
		position = 13
		provinces_to_highlight = {
			OR = {
				province_id = 4233
				province_id = 707
				province_id = 454
			}
			NOT = {
				is_strongest_trade_power = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			4233 = { is_strongest_trade_power = ROOT }
			707 = { is_strongest_trade_power = ROOT }
			454 = { is_strongest_trade_power = ROOT }
			production_leader = {
				trade_goods = silk
			}
			silk = 8
		}
		effect = {
			add_country_modifier = {
				name = "silk_road_modifier"
				duration = 10950
			}
			add_mercantilism = 2
		}
	}
	kha_et_pax_mongolica_mission = {
		icon = mission_chinese_edict
		required_missions = { kha_et_appeal_to_the_ortogh_mission kha_et_control_the_silk_road_mission kha_et_mongol_meritocracy_mission }
		position = 15
		provinces_to_highlight = {
			OR = {
				region = mongolia_region
				region = north_china_region
				region = central_asia_region
				region = crimea_region
				region = persia_region
				region = khorasan_region
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			stability = 3
			NOT = { average_unrest = 3 }
			mongolia_region = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			north_china_region = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			central_asia_region = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			crimea_region = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			persia_region = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			khorasan_region = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_country_modifier = {
				name = "pax_mongolica"
				duration = -1
			}
		}
	}	
}

kha_et_missions_5 = {
	slot = 5
	generic = no
	ai = yes
	potential = {
		OR = {
			tag = KHA		#Mongolia
			tag = KMO		#Khamag Mongol
		}
		#started_in = 1125.1.1
		NOT = { started_in = 1300.1.1 }
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	kha_et_the_jurchen_homeland_mission = {
		icon = mission_jurchen_iron_pagoda
		required_missions = { kha_et_exterminate_the_tatars_mission }
		position = 3
		provinces_to_highlight = {
			OR = {
				area = jilin_area
				area = ningguta_area
				area = furdan_area
				area = central_jilin_area
				area = central_ilin_hala_area
			}
			NOT = {
				country_or_vassal_holds = ROOT
			}
			is_empty = no
			has_discovered = ROOT
		}
		trigger = {
			jilin_area = {
				type = all
				OR = {
					country_or_subject_holds = ROOT
					is_empty = yes
				}
			}
			ningguta_area = {
				type = all
				OR = {
					country_or_subject_holds = ROOT
					is_empty = yes
				}
			}
			furdan_area = {
				type = all
				OR = {
					country_or_subject_holds = ROOT
					is_empty = yes
				}
			}
			central_jilin_area = {
				type = all
				OR = {
					country_or_subject_holds = ROOT
					is_empty = yes
				}
			}
			central_ilin_hala_area = {
				type = all
				OR = {
					country_or_subject_holds = ROOT
					is_empty = yes
				}
			}
		}
		effect = {
			add_horde_unity = 10
			add_manpower = 1
		}
	}
	kha_et_subjugate_goryeo_mission = {
		icon = mission_korean_vs_jurchen_battle
		required_missions = { kha_et_the_jurchen_homeland_mission }
		position = 5
		provinces_to_highlight = {
			region = korea_region
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			korea_region = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			country_event = {
				id = mmetr_KHA_mission_events.13
			}
			tooltip = {
				add_country_modifier = {
					name = "me_kha_et_korean_warships"
					duration = 10950
				}
			}
		}
	}
	kha_et_defy_the_kamikaze_mission = {
		icon = mission_takeda_cavalry_charge
		required_missions = { kha_et_subjugate_goryeo_mission kha_et_the_celestial_throne_mission }
		position = 7
		provinces_to_highlight = {
			OR = {
				area = kyushu_area
				province_id = 4191	#Kamakura, capital of Minamoto shogunate
				province_id = 1020	#Kyoto
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			owns_or_non_sovereign_subject_of = 4191
			owns_or_non_sovereign_subject_of = 1020
			kyushu_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			country_event = {
				id = mmetr_KHA_mission_events.14
			}
			tooltip = {
				add_country_modifier = {
					name = "me_kha_et_khagan_of_the_seas"
					duration = 10950
				}
			}
		}
	}
	kha_et_conquest_of_dali_mission = {
		icon = mission_mnd_dai_control_the_army
		required_missions = { kha_et_southern_campaign_mission }
		position = 8
		provinces_to_highlight = {
			OR = {
				area = yun_gui_area
				area = yun_gui_borderland_area
				area = chuannan_area
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			yun_gui_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			yun_gui_borderland_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			chuannan_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_horde_unity = 10
			add_country_modifier = {
				name = "me_kha_et_chinese_indian_trade_routes"
				duration = 10950
			}
		}
	}
	kha_et_march_into_burma_mission = {
		icon = mission_conquer_lower_burma_ori
		required_missions = { kha_et_conquest_of_dali_mission }
		position = 10
		provinces_to_highlight = {
			OR = {
				area = kachin_area
				area = shan_hill_area
				area = chindwin_area
				area = upper_burma_area
				area = central_burma_area
				area = lower_burma_area
			}
			NOT = {
				country_or_vassal_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			kachin_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			shan_hill_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			chindwin_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			upper_burma_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			central_burma_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
			lower_burma_area = {
				type = all
				country_or_vassal_holds = ROOT
			}
		}
		effect = {
			add_country_modifier = {
				name = "me_kha_et_burmese_mandala"
				duration = 10950
			}
		}
	}
	kha_et_declare_the_yassa_mission = {
		icon = mission_kowtow
		required_missions = {  }
		position = 11
		trigger = {
			stability = 3
			monthly_adm = 10
		}
		effect = {
			country_event = {
				id = mmetr_KHA_mission_events.20
			}
			tooltip = {
				add_country_modifier = {
					name = "me_kha_et_great_yassa"
					duration = -1
				}
			}
		}
	}
	kha_et_reorganize_the_tribes_mission = {
		icon = mission_nomad_camp
		required_missions = { kha_et_declare_the_yassa_mission kha_et_construct_qaraqorum_mission }
		position = 12
		trigger = {
			horde_unity = 80
			num_of_estate_agendas_completed = {
				estate = estate_nomadic_tribes
				value = 4
			}
		}
		effect = {
			country_event = {
				id = mmetr_KHA_mission_events.21
			}
			tooltip = {
				add_country_modifier = {
					name = "me_kha_et_tumen_system"
					duration = -1
				}
			}
		}
	}
	kha_et_mongol_meritocracy_mission = {
		icon = mission_chinese_monarch_horseback
		required_missions = { kha_et_reorganize_the_tribes_mission }
		position = 14
		trigger = {
			has_commanding_three_star = yes
			has_skill_3_mil_advisor = yes	#new mod scripted trigger
		}
		effect = {
			add_prestige = 15
			add_horde_unity = 10
		}
	}
	kha_et_kin_of_the_great_khan_mission = {
		icon = mission_genghis_khan
		required_missions = { kha_et_mongol_meritocracy_mission }
		position = 16
		trigger = {
			has_heir = yes
			has_regency = no
			grown_by_states = 5
			calc_true_if = {
				all_subject_country = {
					dynasty = ROOT
				}
				amount = 3
			}
		}
		effect = {
			add_country_modifier = {
				name = "me_kha_et_extended_khaganate_dynasty"
				duration = -1
			}
		}
	}
	
}