country_event = {

	id = 31100

	trigger = {
		tag = TUR
		year = 1872
		owns = 865 #Canakkale, where Troy is located
		NOT = {
			year = 1875
		}	
	}
	
	fire_only_once = yes
 
	mean_time_to_happen =  {
		months = 5

		modifier = {
			factor = 0.75 #increase likelihood to happen
			year = 1873
		}

		modifier = {
			factor = 0.95 #increase likelihood to happen
			year = 1874
		}
	}

	title = "EVTNAME31100"
	desc = "EVTDESC31100"
	picture = "troy"

	option = {
		name = "EVTOPTA31100" 
		prestige = 15
	}
}

country_event = {
	id = 31101 #setup by GER33005
	trigger = {
		tag = TUR 
		war = no
		year = 1903
		owns = 926 #Baghdad
		is_vassal = no
		has_global_flag = BerlinBaghdadRail
		OR = {
			government = absolute_monarchy
			government = hms_government
			}
		NOT = {
			year = 1910
			alliance_with = ENG
			alliance_with = FRA
			alliance_with = RUS
			alliance_with = GER
			has_country_flag = BerlinBaghdadRail
		}
	}
	
	fire_only_once = yes
 
	mean_time_to_happen =  {
		months = 5

		modifier = {
			factor = 0.75 #increase likelihood to happen
			year = 1904
		}


		modifier = {
			factor = 0.95 #increase likelihood to happen
			year = 1908
		}
	}

	title = "EVTNAME33005"
	desc = "EVTDESC33005"
	picture = "bagdadrailway"

	option = {
		name = "EVTOPTA31101" 
		prestige = 10
		set_country_flag = BerlinBaghdadRail
		relation = { who = GER value = 100 }
		relation = { who = ENG value = -75 }
		relation = { who = RUS value = -75 }
	}
}

country_event = {
		
	id = 31102 # Flight to Ankara
	
	trigger = {
		tag = TUR
		NOT = { is_greater_power = yes }
		capital = 860
		NOT = { owns = 817 }
		NOT = { owns = 816 }
		NOT = { owns = 830 }
		owns = 876

	}

	mean_time_to_happen = {
		months = 1
	}

	title = "EVTNAME31102" #Flight from Istanbul
	desc = "EVTDESC31102" #Our position in Istanbul is no longer secure. We should move our government to a safer place.
	picture = "administration"
		
	option = {
		name = "EVTOPTA31102" #We have been ultimately driven from Europe...
		prestige = -10
		capital = 876
	}
}

#Oriental crisis - independence of Egypt
country_event = {

	id = 1031000
	title = "EVTNAME1031000"
	desc = "EVTDESC1031000"
	
	trigger = {
		tag = EGY
		year = 1837
		owns = 902
		NOT = { 
			has_global_flag = oriental_crisis
		}
	}

	   mean_time_to_happen = {
        months = 50
        modifier = {
            factor = 0.5
            TUR = { is_greater_power = no }
        }
        modifier = {
            factor = 0.5
            year = 1840
        }
        modifier = {
            factor = 0.5
            year = 1841
        }
        modifier = {
            factor = 0.5
            year = 1842
        }
        modifier = {
            factor = 0.25
            year = 1843
        }
    }
	
	option = {
		name = "EVTOPTA1031000"
		any_pop = {
			consciousness = 2
			militancy = 1
		}
		release_vassal = EGY

        TUR = { country_event =  103100 } }
}

#Oriental crisis
country_event = {

	id = 103100
	title = "EVTNAME103100"
	desc = "EVTDESC103100"
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA103100"
		any_pop = {
			consciousness = 2
			militancy = 1
		}
		release_vassal = EGY

        casus_belli = {
            target = EGY
            type = make_puppet
            months = 12
        }
		war = {
			target = EGY
			attacker_goal = {
				casus_belli = make_puppet
			}
			
			defender_goal = {
				casus_belli = status_quo
			}
		}
		set_global_flag = oriental_crisis
	}
	
	option = {
		name = "EVTOPTB103100"
		realease_puppet = EGY
		any_pop = {
			consciousness = 2
			militancy = 1
		}
		release_vassal = EGY
		change_tag_no_core_switch = EGY
		TUR = {
			war = {
				target = EGY
				attacker_goal = {
					casus_belli = make_puppet
				}
				defender_goal = {
					casus_belli = status_quo
				}
			}
		}
		set_global_flag = oriental_crisis
	}
}
country_event = {
		
	id = 311020 
	
	trigger = {
		tag = TUR
		NOT = { is_greater_power = yes }
		OR = {
		government = democracy
		government = proletarian_dictatorship }

	}

	mean_time_to_happen = {
		months = 1
	}

	fire_only_once = yes

	title = "EVTNAME311020" #Flight from Istanbul
	desc = "EVTDESC311020" #Our position in Istanbul is no longer secure. We should move our government to a safer place.
	picture = "administration"
		
	option = {
		name = "EVTOPTA311020" #We have been ultimately driven from Europe...
		prestige = -10
        	TUR_788 = { remove_core = TUR }
        	TUR_810 = { remove_core = TUR }
        	TUR_803 = { remove_core = TUR }
        	MON_2582 = { remove_core = TUR }
        	TUR_853 = { remove_core = TUR }
        	TUR_832 = { remove_core = TUR }
		TUR_808 = { remove_core = TUR }
		TUR_806 = { remove_core = TUR }
		TUR_832 = { remove_core = TUR }
		TUR_819 = { remove_core = TUR }
		TUR_805 = { remove_core = TUR }
		EGY_897 = { remove_core = TUR }
		EGY_903 = { remove_core = TUR }
		EGY_915 = { remove_core = TUR }
		EGY_921 = { remove_core = TUR }
		EGY_910 = { remove_core = TUR }
		TUR_923 = { remove_core = TUR }
		TUR_931 = { remove_core = TUR }
		TUR_935 = { remove_core = TUR }
		675 = { remove_core = TUR }
		674 = { remove_core = TUR }
		818 = { remove_core = TUR }
	}
}
#Epirus revolution
country_event = {

	id = 113010
	title = "EVTNAME113010"
	desc = "EVTDESC113010"
	picture = "revolutionnn"
	major = yes
	
	trigger = {
		tag = TUR
		year = 1854
		NOT = { 
			has_global_flag = epirus_revolution_has_happened
		}
		owns = 853
	}

	
	option = {
		name = "EVTOPTA113010"
		any_pop = {
			consciousness = -2
			militancy = 2
		}
		any_owned = {
			limit = {
				is_core = EPI
			}
			secede_province = EPI
		}
		EPI = {
			capital = 853
			leadership = 80
		}
		war = {
			target = EPI
			attacker_goal = {
				casus_belli = civil_war
			}
			
			defender_goal = {
				casus_belli = status_quo
			}
		}
		set_global_flag = epirus_revolution_has_happened
	}
	
	option = {
		name = "EVTOPTB113010"
		any_pop = {
			consciousness = -2
			militancy = 2
		}
		any_owned = {
			limit = {
				is_core = EPI
			}
			secede_province = EPI
		}
		EPI = {
			capital = 853
			leadership = 80
		}

		set_global_flag = epirus_revolution_has_happened			
		change_tag_no_core_switch = EPI
		TUR = {
			war = {
				target = EPI
				attacker_goal = {
					casus_belli = civil_war
				}
				defender_goal = {
					casus_belli = status_quo
				}
			}
		}
	}
}
#Albanian revolution
country_event = {

	id = 113011
	title = "EVTNAME113011"
	desc = "EVTDESC113011"
	picture = "revolutionnn"
	major = yes
	
	trigger = {
		tag = TUR
		year = 1847
		NOT = { 
			has_global_flag = albanian_revolution_has_happened
		}
		owns = 849
	}

	
	option = {
		name = "EVTOPTA113011"
		any_pop = {
			consciousness = -2
			militancy = 2
		}
		any_owned = {
			limit = {
				is_core = ALB
			}
			secede_province = ALB
		}
		ALB = {
			capital = 849
			leadership = 80
		}
		war = {
			target = ALB
			attacker_goal = {
				casus_belli = civil_war
			}
			
			defender_goal = {
				casus_belli = status_quo
			}
		}
		set_global_flag = albanian_revolution_has_happened
	}
	
	option = {
		name = "EVTOPTB113011"
		any_pop = {
			consciousness = -2
			militancy = 2
		}
		any_owned = {
			limit = {
				is_core = ALB
			}
			secede_province = ALB
		}
		ALB = {
			capital = 849
			leadership = 80
		}

		set_global_flag = albanian_revolution_has_happened			
		change_tag_no_core_switch = ALB
		TUR = {
			war = {
				target = ALB
				attacker_goal = {
					casus_belli = civil_war
				}
				defender_goal = {
					casus_belli = status_quo
				}
			}
		}
	}
}
#Wallachian revolution
country_event = {

	id = 4330111
	title = "Wallachian revolution"
	desc = "The Russian imposed legislation of regulamentul Organic was the starting point of this revolution. With so many voices within the principality calling for more autonomy, we have to stop them."
	picture = "revolutionnn"
	major = yes
	
	trigger = {
		tag = WAL
		year = 1848
		WAL = { vassal_of = TUR }
	}
	
	fire_only_once = yes
	
	mean_time_to_happen = { months = 2 }

	
	option = {
		name = "Do nothing."
		any_pop = {
			consciousness = 2
			militancy = 2
		}
	}
	option = {
		name = "Reform our government and ask the Turkish."
		TUR = { release_vassal = WAL }
		prestige = 20
		any_pop = {
			consciousness = -2
			militancy = -2
		}
		government = democracy
		political_reform = universal_weighted_voting
		political_reform = non_secret_ballots
		TUR = { country_event = 1330111 }
	}
}
country_event = {

	id = 1330111
	title = "Wallachian revolution"
	desc = "The Russian imposed legislation of regulamentul Organic was the starting point of this revolution. With so many voices within the principality calling for more autonomy, we have to stop them."
	picture = "revolutionnn"
	major = yes
	
	is_triggered_only = yes
	
	fire_only_once = yes
		
	option = {
		name = "Fight the Wallachians"
		release_vassal = WAL
		any_pop = {
			consciousness = -2
			militancy = 2
		}
		WAL = { government = democracy }
		war = {
			target = WAL
			attacker_goal = {
				casus_belli = make_puppet
			}
			
			defender_goal = {
				casus_belli = status_quo
			}
		}
		TUR = { badboy = -10 }
	}
}
#kurdish revolt
country_event = {

	id = 133011
	title = "Kurdish revolution"
	desc = "With the constant inmigration to Kurdish lands due to their better quality of life, we have to do everything in our hands to disband their existence."
	picture = "revolutionnn"
	
	trigger = {
		tag = TUR
		year = 1847
		KUR = { vassal_of = THIS }
	}
	
	fire_only_once = yes
	
	mean_time_to_happen = { months = 2 }

	
	option = {
		name = "Fight the Kurdish"
		release_vassal = KUR
		any_pop = {
			consciousness = 2
			militancy = 2
		}
		diplomatic_influence = {
			who = KUR
			value = -400
		} 
		KUR = { government = democracy }
		war = {
			target = KUR
			attacker_goal = {
				casus_belli = kurdish_independence
			}
		}
	}
}
#kurdish revolt
country_event = {

	id = 2743000
	title = "The Ottomans won"
	desc = ""
	picture = "revolutionnn"
	
	is_triggered_only = yes
	
	fire_only_once = yes
	
	mean_time_to_happen = { months = 2 }

	
	option = {
		name = "There's no other option"
		release_vassal = KUR
		1109 = { secede_province = PER }
		1110 = { secede_province = PER }
		1111 = { secede_province = PER }
		1118 = { secede_province = PER }
		890 = { secede_province = TUR }
		891 = { secede_province = TUR }
		892  = { secede_province = TUR }
		924  = { secede_province = TUR }
		925  = { secede_province = TUR }
		885  = { secede_province = TUR }
		893  = { secede_province = TUR }
	}
}
#The Cretan question
country_event = {

	id = 773010
	title = "The Cretan question"
	desc = "The Greek people in Crete claim they deserve autonomy under our rule."
	picture = "revolutionnn"
	
	trigger = {
		tag = TUR
		year = 1865
		NOT = { 
			OR = { has_country_flag = no_autonomy
			has_country_flag = autonomy }
		}
		owns = 847
	}
	
	mean_time_to_happen = { days = 15 }
	
	option = {
		name = "We should let them lead their fate."
		set_country_flag = autonomy
		badboy = -7
		any_owned = {
			limit = {
				is_core = CRE
			}
			secede_province = CRE
		}
		create_vassal = CRE
		847 = {
			secede_province = CRE
		}
		CRE = {
			capital = 847
			leadership = 80
		}
	}
	
	option = {
		name = "Don't give them autonomy."
		set_country_flag = no_autonomy
	}
}
#First cretan revolt
country_event = {

	id = 773011
	title = "Great Cretan revolt"
	desc = "Several petitions for more rights have been ignored by the sultan, so the Cretan people must try to achieve them."
	picture = "revolutionnn"
	
	trigger = {
		tag = TUR
		year = 1866
			has_country_flag = no_autonomy
		NOT = { 
			has_country_flag = first_cretan_revolution_has_happened
		}
		owns = 847
	}
	
	mean_time_to_happen = { days = 15 }
	
	fire_only_once = yes
	option = {
		name = "Crush the revolt."
		any_pop = {
			consciousness = -2
			militancy = 2
		}
		any_owned = {
			limit = {
				is_core = CRE
			}
			secede_province = CRE
		}
		CRE = {
			capital = 847
			leadership = 80
		}
		war = {
			target = CRE
			attacker_goal = {
				casus_belli = civil_war
			}
			
			defender_goal = {
				casus_belli = status_quo
			}
		}
		set_country_flag = first_cretan_revolution_has_happened
	}
	
	option = {
		name = "Crush the Turks."
		any_pop = {
			consciousness = -2
			militancy = 2
		}
		any_owned = {
			limit = {
				is_core = CRE
			}
			secede_province = CRE
		}
		CRE = {
			capital = 847
			leadership = 80
		}
		war = {
			target = CRE
			attacker_goal = {
				casus_belli = civil_war
			}
			
			defender_goal = {
				casus_belli = status_quo
			}
		}
		set_country_flag = first_cretan_revolution_has_happened
		change_tag_no_core_switch = CRE
	}
}

#Second cretan revolt
country_event = {

	id = 773012
	title = "Cretan revolt"
	desc = "Cretan people demand more autonomy under our rule."
	picture = "revolutionnn"
	
	trigger = {
		tag = TUR
		year = 1897
			has_country_flag = no_autonomy
		NOT = { 
			has_country_flag = second_cretan_revolution_has_happened
		}
		owns = 847
	}
	
	mean_time_to_happen = { days = 20 }
	
	fire_only_once = yes
	option = {
		name = "Crush the revolt."
		any_pop = {
			consciousness = -2
			militancy = 2
		}
		any_owned = {
			limit = {
				is_core = CRE
			}
			secede_province = CRE
		}
		CRE = {
			capital = 847
			leadership = 80
		}
		war = {
			target = CRE
			attacker_goal = {
				casus_belli = civil_war
			}
			
			defender_goal = {
				casus_belli = status_quo
			}
		}
		set_country_flag = second_cretan_revolution_has_happened
	}
	
	option = {
		name = "Crush the Turks."
		any_pop = {
			consciousness = -2
			militancy = 2
		}
		any_owned = {
			limit = {
				is_core = CRE
			}
			secede_province = CRE
		}
		CRE = {
			capital = 847
			leadership = 80
		}
		war = {
			target = CRE
			attacker_goal = {
				casus_belli = civil_war
			}
			
			defender_goal = {
				casus_belli = status_quo
			}
		}
		set_country_flag = second_cretan_revolution_has_happened
		change_tag_no_core_switch = CRE
	}
}

#Intervention from the GPS
country_event = {

	id = 773013
	title = "Great Power intervention"
	desc = "They demand we stop this war against the Crete people."
	picture = "revolutionnn"
	
	trigger = {
		tag = TUR
		year = 1897
			has_country_flag = no_autonomy
			has_country_flag = second_cretan_revolution_has_happened
		exists = CRE
		war_with = CRE
	}
	
	mean_time_to_happen = { months = 1 }
	
	fire_only_once = yes
	
	option = {
		name = "Crush the revolt."
		ENG = { diplomatic_influence = {
			who = CRE
			value = 400
		} }
		FRA = { diplomatic_influence = {
			who = CRE
			value = 400
		} }
		RUS = { diplomatic_influence = {
			who = CRE
			value = 400
		} }
		AUS = { diplomatic_influence = {
			who = CRE
			value = 400
		} }
		KUK = { diplomatic_influence = {
			who = CRE
			value = 400
		} }
		set_country_flag = problems_for_crete
	}
	
	option = {
		name = "Stop this revolt."
		end_war = CRE
		set_country_flag = second_cretan_revolution_successful
		CRE = { all_core = { remove_core = TUR } }
	}
}