oghuz_seljuk_missions_1 = {
	slot = 1
	generic = no
	ai = yes
	
	potential = {
		OR = {
			tag = OGH
			#tag = SEL
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	oghuz_supremacy_ogh = {
		icon = mission_break_the_tatar_yoke
		required_missions = {  }
		position = 1
		
		provinces_to_highlight = {
			OR = {
				area = kazakhstan_area
				area = nogai_area
				province_id = 439
				province_id = 443
				province_id = 1970
				province_id = 2370
				province_id = 2352
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
				439 = { 
					OR = {
						is_empty = yes
						country_or_non_sovereign_subject_holds = ROOT
					}
				}
				443 = { 
					OR = {
						is_empty = yes
						country_or_non_sovereign_subject_holds = ROOT
					}
				}
				1970 = { country_or_non_sovereign_subject_holds = ROOT }
				2370 = { 
					OR = {
						is_empty = yes
						country_or_non_sovereign_subject_holds = ROOT
					}
				}
				2352 = { country_or_non_sovereign_subject_holds = ROOT }
				kazakhstan_area = {
					type = all
					country_or_non_sovereign_subject_holds = ROOT
				}
				nogai_area = {
					type = all
					country_or_non_sovereign_subject_holds = ROOT
				}
		}
		effect = {
			astrakhan_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			lower_yik_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			dagestan_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			if = {
				limit = {
					2370 = {
						is_empty = yes
					}
				}
				2370 = {
					create_colony = 200
					add_permanent_province_modifier = {
						name = ogh_turkic_colony_et
						duration = -1
					}
					change_religion = ROOT
					change_culture = ROOT
				}
			}
			if = {
				limit = {
					443 = {
						is_empty = yes
					}
				}
				443 = {
					create_colony = 200
					add_permanent_province_modifier = {
						name = ogh_turkic_colony_et
						duration = -1
					}
					change_religion = ROOT
					change_culture = ROOT
				}
			}
			if = {
				limit = {
					439 = {
						is_empty = yes
					}
				}
				439 = {
					create_colony = 200
					add_permanent_province_modifier = {
						name = ogh_turkic_colony_et
						duration = -1
					}
					change_religion = ROOT
					change_culture = ROOT
				}
			} 
			if = {
				limit = {
					owns_core_province = 1970
				}
				1970 = {
					if = {
						limit = { tag = OGH }
						move_capital_effect = yes
					}
					add_base_tax = 1
					add_base_production = 1
					add_base_manpower = 1
				}
			}
			add_country_modifier = {
				name = ogh_colonial_management_et
					duration = 5475
			}
		}
	}
	pontic_steppe_ogh = {
		icon = mission_non-western_cavalry_raid
		required_missions = { oghuz_supremacy_ogh }
		position = 2
		
		provinces_to_highlight = {
			OR = {
				area = astrakhan_area
				area = lower_yik_area
				area = dagestan_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			astrakhan_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			lower_yik_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			dagestan_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			tambov_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			saratov_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			lower_don_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			azov_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			zaporizhia_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			circassia_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			add_horde_unity = 15
			add_legitimacy = 10
		}
	}
	resist_the_rus_ogh = {
		icon = mission_sovereign_principality
		required_missions = { pontic_steppe_ogh }
		position = 3
		
		provinces_to_highlight = {
			OR = {
				area = circassia_area
				area = zaporizhia_area
				area = azov_area
				area = lower_don_area
				area = saratov_area
				area = tambov_area
			}
			NOT = { owned_by = ROOT }
		}
		trigger = {
			circassia_area = {
				type = all
				owned_by = ROOT
			}
			zaporizhia_area = {
				type = all
				owned_by = ROOT
			}
			azov_area = {
				type = all
				owned_by = ROOT
			}
			lower_don_area = {
				type = all
				owned_by = ROOT
			}
			saratov_area = {
				type = all
				OR = {
					owned_by = ROOT
					is_empty = yes
				}
			}
			tambov_area = {
				type = all
				OR = {
					owned_by = ROOT
					is_empty = yes
				}
			}
		}
		effect = {
			add_country_modifier = {
				name = normadic_realm_et
				duration = -1
			}
			add_prestige = 50
		}
	}
	invade_byzantium_ogh = {
		icon = mission_city_of_the_world's_desire
		required_missions = { the_persian_domain_ogh }
		position = 5
		
		provinces_to_highlight = {
			OR = {
				area = erzurum_area
				area = samtskhe_area
				area = north_kurdistan_area
				area = armenia_area
				province_id = 151
			}
			NOT = { controlled_by = ROOT }
		}
		trigger = {
			151 = { controlled_by = ROOT }
			erzurum_area = {
				type = all
				controlled_by = ROOT
			}
			samtskhe_area = {
				type = all
				controlled_by = ROOT
			}
			north_kurdistan_area = {
				type = all
				controlled_by = ROOT
			}
			armenia_area = {
				type = all
				controlled_by = ROOT
			}
		}
		effect = {
			anatolia_region = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			add_adm_power = 100
		}
	}
	consolidate_anatolia_ogh = {
		icon = mission_cope_with_refugees
		required_missions = { invade_byzantium_ogh  }
		position = 6
		
		provinces_to_highlight = {
			region = anatolia_region
		}
		trigger = {
			num_of_owned_provinces_with = {
				value = 10
				region = anatolia_region
				religion = ROOT
			}
			num_of_owned_provinces_with = {
				value = 5
				region = anatolia_region
				culture_group = oghuz
			}
		}
		effect = {
			macedonia_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			central_greece_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			northern_greece_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			silistria_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			morea_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			aegean_archipelago_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			bulgaria_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			thrace_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			add_country_modifier = {
				name = growing_territory_et
				duration = -1
			}
		}
	}
}
oghuz_seljuk_missions_2 = {
	slot = 2
	generic = no
	ai = yes
	
	potential = {
		OR = {
			#tag = SEL
			tag = OGH
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes

	mighty_seljuq_army_ogh = {
		icon = mission_levantine_restoration
		required_missions = { into_quhistan_ogh }
		position = 3
				
		trigger = {
			legitimacy = 80
			army_size = 45
			NOT = { war_exhaustion = 1 }
		}
		effect = {
			tabriz_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			luristan_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			khuzestan_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			basra_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			persian_gulf_coast = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			shahrizor_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			farsistan_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			iraq_arabi_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			add_prestige = 10
		}
	}
	the_persian_domain_ogh = {
		icon = mission_unite_home_region
		required_missions = { mighty_seljuq_army_ogh }
		position = 4
				
		provinces_to_highlight = {
			OR = {
				region = persia_region
				area = basra_area
				area = iraq_arabi_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			persia_region = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			basra_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			iraq_arabi_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			syria_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			aleppo_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			north_kurdistan_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			al_jazira_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			imereti_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			syrian_desert_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			samtskhe_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			armenia_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			shirvan_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			151 = { add_permanent_claim = ROOT }
			361 = { add_permanent_claim = ROOT }
			add_country_modifier = {
				name = fkn_expansionist_ambition
				duration = 18250
			}
		}
	}
	great_seljuk_fatimid_war_ogh = {
		icon = mission_reconquer_ceuta
		required_missions = { the_persian_domain_ogh }
		position = 5
		
		provinces_to_highlight = {
			OR = {
				province_id = 361
			}
			NOT = { controlled_by = ROOT }
		}
		trigger = {
			361 = { controlled_by = ROOT }
		}
		effect = {
			egypt_region = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			trans_jordan_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			palestine_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			tabuk_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			add_country_modifier = {
				name = emi_victorious_army
				duration = 7300
			}
		}
	}
	rule_over_egypt_ogh = {
		icon = mission_egyptian_mamluk_soldier
		required_missions = { great_seljuk_fatimid_war_ogh  }
		position = 6
		
		provinces_to_highlight = {
			OR = {
				region = egypt_region
				area = palestine_area
				area = tabuk_area
				area = trans_jordan_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			palestine_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			trans_jordan_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			tabuk_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			egypt_region = {
				type = all
				OR = {
					is_empty = yes
					country_or_non_sovereign_subject_holds = ROOT
				}
			}
		}
		effect = {
			barbary_coast_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			sicily_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			western_sicily_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			kabylia_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			tunisia_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			djerba_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			tripolitania_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			add_country_modifier = {
				name = might_of_the_middle_east_et
				duration = -1
			}
		}
	}
}
oghuz_seljuk_missions_3 = {
	slot = 3
	generic = no
	ai = yes
	
	potential = {
		OR = {
			#tag = SEL
			tag = OGH
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	rise_of_the_seljuqs_ogh = {
		icon = mission_have_two_subjects
		required_missions = {  }
		position = 1
		
		provinces_to_highlight = {
			OR = {
				area = mashhad_area
				area = merv_area
				province_id = 437
				province_id = 4336
				province_id = 4325
			}
			NOT = { owned_by = ROOT }
		}
		trigger = {
			is_subject = no
			is_at_war = no
			mashhad_area = {
				type = all
				owned_by = ROOT
			}
			merv_area = {
				type = all
				owned_by = ROOT
			}
			437 = { owned_by = ROOT }
			4336 = { owned_by = ROOT }
			4325 = { owned_by = ROOT }
		}
		effect = {
			if = {
				limit = {
					NOT = { exists = SEL }
				}
				country_event = {
					id = flavor_sel.3
				}
			}
			azerbaijan_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			tabarestan_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			birjand_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			isfahan_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			iraq_e_ajam_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			4326 = {
					add_base_tax = 1
					add_base_production = 2
					add_base_manpower = 2
				}
			if = {
				limit = {
					438 = {
						is_empty = yes
					}
				}
				438 = {
					create_colony = 200
					add_permanent_province_modifier = {
						name = ogh_turkic_colony_et
						duration = -1
					}
					change_religion = ROOT
					change_culture = ROOT
				}
			} 
			if = {
				limit = {
					2349 = {
						is_empty = yes
					}
				}
				2349 = {
					create_colony = 200
					add_permanent_province_modifier = {
						name = ogh_turkic_colony_et
						duration = -1
					}
					change_religion = ROOT
					change_culture = ROOT
				}
			}
		}
	}
	into_quhistan_ogh = {
		icon = mission_persian_soldiers
		required_missions = { rise_of_the_seljuqs_ogh }
		position = 2
		
		provinces_to_highlight = {
			OR = {
				area = isfahan_area
				area = birjand_area
				area = azerbaijan_area
				area = tabarestan_area
				area = iraq_e_ajam_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			isfahan_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			birjand_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			azerbaijan_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			tabarestan_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			iraq_e_ajam_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			pirate_coast_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			oman_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			mascat_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			kerman_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			mogostan_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			add_prestige = 25
			add_accepted_culture = persian
			add_accepted_culture = khorasani
			add_country_modifier = {
				name = friend_of_the_stranger_et
				duration = -1
			}
		}
	}
	secure_the_hormuz_strait_ogh = {
		icon = mission_trade_with_cathay
		required_missions = { into_quhistan_ogh }
		position = 4
		
		provinces_to_highlight = {
			OR = {
				area = kerman_area
				area = mogostan_area
				area = pirate_coast_area
				area = oman_area
				area = mascat_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			kerman_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			mogostan_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			azerbaijan_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			pirate_coast_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			oman_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			mascat_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			upper_yemen_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			yemen_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			tihama_al_yemen_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			hadramut_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			dhofar_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			mahra_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			1334 = {
				add_trade_modifier = {
					who = root
					duration = 7300
					power = 20
					key = hsa_lubeck_ascendant
				}
			}
		}
	}
	control_south_arabia_ogh = {
		icon = mission_portuguese_oman
		required_missions = { secure_the_hormuz_strait_ogh }
		position = 5
		
		provinces_to_highlight = {
			OR = {
				area = upper_yemen_area
				area = yemen_area
				area = hadramut_area
				area = dhofar_area
				area = tihama_al_yemen_area
				area = mahra_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			tihama_al_yemen_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			upper_yemen_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			yemen_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			hadramut_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			dhofar_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			mahra_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			medina_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			mecca_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			asir_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			add_country_modifier = {
				name = ara_ship_trade_modifier
				duration = 7300
			}
		}
	}
	frees_hejaz_ogh = {
		icon = mission_mosque
		required_missions = { control_south_arabia_ogh }
		position = 6
		
		provinces_to_highlight = {
			OR = {
				area = medina_area
				area = mecca_area
				area = asir_area
				area = tihama_al_yemen_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			medina_area = {
				type = all
				owned_by = ROOT
				religion = ROOT
			}
			mecca_area = {
				type = all
				owned_by = ROOT
				religion = ROOT
			}
			asir_area = {
				type = all
				owned_by = ROOT
				religion = ROOT
			}
		}
		effect = {
			add_stability = 1
			add_prestige = 50
		}
	}
}
oghuz_seljuk_missions_4 = {
	slot = 4
	generic = no
	ai = yes
	
	potential = {
		OR = {
			tag = OGH
			#tag = SEL
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes

	sack_ghazni_ogh = {
		icon = mission_tear_down_spanish_strongholds
		required_missions = { rise_of_the_seljuqs_ogh }
		position = 2
		
		provinces_to_highlight = {
			province_id = 448
		}
		trigger = {
			448 = { controlled_by = ROOT }
		}
		effect = {
			sistan_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			ghor_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			kabulistan_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			herat_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			450 = { add_permanent_claim = ROOT }
			2228 = { add_permanent_claim = ROOT }
			2227 = { add_permanent_claim = ROOT }
			4343 = { add_permanent_claim = ROOT }
			add_treasury = 500
		}
	}
	conquer_khorasan_ogh = {
		icon = mission_protect_granada
		required_missions = { sack_ghazni_ogh }
		position = 3
		
		provinces_to_highlight = {
			OR = {
				province_id = 450
				province_id = 2228
				province_id = 2227
				province_id = 4343
				area = herat_area
				area = kabulistan_area
				area = ghor_area
				area = sistan_area
			}
			NOT = { owned_by = ROOT }
		}
		trigger = {
			herat_area = {
				type = all
				owned_by = ROOT
			}
			kabulistan_area = {
				type = all
				owned_by = ROOT
			}
			ghor_area = {
				type = all
				owned_by = ROOT
			}
			sistan_area = {
				type = all
				owned_by = ROOT
			}
			450 = { owned_by = ROOT }
			2228 = { owned_by = ROOT }
			2227 = { owned_by = ROOT }
			4343 = { owned_by = ROOT }
		}
		effect = {
			makran_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			kalat_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			sindh_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			northern_sindh_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			saurashtra_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			ahmedabad_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			patan_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			marwar_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			add_prestige = 15
		}
	}
	push_up_to_gurjaratra_ogh = {
		icon = mission_conquer_gujarat_dlh
		required_missions = { conquer_khorasan_ogh establish_the_nizamiyyah_ogh }
		position = 4
		
		provinces_to_highlight = {
			OR = {
				area = marwar_area
				area = patan_area
				area = ahmedabad_area
				area = saurashtra_area
				area = northern_sindh_area
				area = sindh_area
				area = kalat_area
				area = makran_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			marwar_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			patan_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			ahmedabad_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			saurashtra_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			northern_sindh_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			sindh_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			kalat_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			makran_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_country_modifier = {
				name = mug_gujarat_mod
				duration = -1
			}
		}
	}
}
oghuz_seljuk_missions_5 = {
	slot = 5
	generic = no
	ai = yes
	
	potential = {
		OR = {
			tag = OGH
			#tag = SEL
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	khwarazmian_independence_ogh = {
		icon = mission_central_asian_city
		required_missions = {  }
		position = 1
		
		provinces_to_highlight = {
			OR = {
				province_id = 440
				province_id = 441
				province_id = 1973
				province_id = 2362
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			if = {
				limit = { 
					exists = KHW
				}
				KHW = {
					has_opinion = {
						who = ROOT
						value = 100
					}
					OR = {
						is_subject = no
						is_subject_of = ROOT
					}
				}
			}
			else = {
				441 = { 
					country_or_non_sovereign_subject_holds = ROOT 
					province_has_center_of_trade_of_level = 2
				}
				441 = { country_or_non_sovereign_subject_holds = ROOT }
				1973 = { country_or_non_sovereign_subject_holds = ROOT }
				2362 = { country_or_non_sovereign_subject_holds = ROOT }
			}
		}
		effect = {
			transoxiana_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			arys_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			ferghana_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			455 = { add_permanent_claim = ROOT }
			2363 = { add_permanent_claim = ROOT }
			add_prestige = 10
		}
	}
	break_the_kara_khanids_ogh = {
		icon = mission_establish_the_black_guard
		required_missions = { khwarazmian_independence_ogh }
		position = 2
		
		provinces_to_highlight = {
			OR = {
				area = transoxiana_area
				area = arys_area
				area = ferghana_area
				province_id = 455
				province_id = 2363
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			455 = { country_or_non_sovereign_subject_holds = ROOT }
			2363 = { country_or_non_sovereign_subject_holds = ROOT }
			transoxiana_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			arys_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			ferghana_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_mil_power = 100
			north_zungaria = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			zungaria_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			jetysuu_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			kashgaria_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
		}
	}
	establish_the_nizamiyyah_ogh = {
		icon = mission_pacify_the_berbers
		required_missions = {  }
		position = 3
		
		provinces_to_highlight = {
			OR = {
				province_id = 410
				province_id = 426
				province_id = 429
				province_id = 446
				province_id = 450
				province_id = 4326
			}
		}
		trigger = {
			410 = {
				has_building = temple
				development = 20
				is_core = ROOT
			}
			426 = {
				has_building = temple
				development = 20
				is_core = ROOT
			}
			429 = {
				has_building = temple
				development = 20
				is_core = ROOT
			}
			446 = {
				has_building = temple
				development = 15
				is_core = ROOT
			}
			450 = {
				has_building = temple
				development = 15
				is_core = ROOT
			}
			4326 = {
				has_building = temple
				development = 10
				is_core = ROOT
			}
		}
		effect = {
			add_country_modifier = {
				name = well_educated_leadership_et
				duration = 18250
			}
		}
	}
	pragmatic_overlord_ogh = {
		icon = mission_unite_the_deccan
		required_missions = { establish_the_nizamiyyah_ogh }
		position = 4
		
		trigger = {
			
			calc_true_if = {
				all_subject_country = {
					has_opinion = {
						who = ROOT
						value = 190
					}
					NOT = { liberty_desire = 5 }
				}
				amount = 3
			}
		}
		effect = {
			add_country_modifier = {
				name = man_of_diplomacy_et 
				duration = -1
			}
		}
	}
}