#ID's used:
#790001-790035

##############################################################
#  		The Great Serb Migration                                                                                        #
##############################################################

country_event = {

	id = 790001
	
	trigger = {
		owns = 156		# Banat
		is_core = 156	# Banat
		NOT = { exists = SER }
		is_emperor = yes
		TUR = { 
			owns = 141
			is_core = 141
			controls = 141
		 }
		156 = {
			NOT = { has_province_flag = serb_culture_change }
		}
	}

	mean_time_to_happen = {
		months = 1200
		
		modifier = {
			factor = 1.1
			NOT = { innovative_narrowminded = -1 }
		}
		modifier = {
			factor = 1.1
			NOT = { innovative_narrowminded = -2 }
		}
		modifier = {
			factor = 1.1
			NOT = { innovative_narrowminded = -3 }
		}
		modifier = {
			factor = 1.1
			NOT = { innovative_narrowminded = -4 }
		}
		modifier = {
			factor = 0.9
			innovative_narrowminded = 2
		}
		modifier = {
			factor = 0.9
			innovative_narrowminded = 3
		}
		modifier = {
			factor = 0.9
			innovative_narrowminded = 4
		}
		modifier = {
			factor = 0.9
			innovative_narrowminded = 5
		}
		modifier = {
			factor = 0.9
			NOT = { idea = bill_of_rights }
		}
		modifier = {
			factor = 0.9
			NOT = { idea = humanist_tolerance }
		}
	}
	
	title = "EVTNAME790001" #	The Great Serb Migration
	desc = "EVTDESC790001"
	
	option = {
	name = "EVTOPTA790001" #	Good
		ai_chance = { factor = 100 }
		156 = {
			base_tax = +1
			change_manpower = +1
			citysize = +6000
			add_building = temple
			culture = serbian
			religion = orthodox
			set_province_flag = serb_culture_change
		}
		141 = {
			citysize = -5000
			change_manpower = -0.8
			base_tax = -1
		}
		148 = {
			citysize = -100
			change_manpower = -0.2
		}
		#SER = { add_core = 156 }
	}
}

##################################################  ############
#  		Serbs claim Macedonia
##################################################  ############

country_event = {

	id = 790002
	
	trigger = {
		tag = SER
		owns = 148		# Macedonia
		is_core = 148		# Macedonia

		148 = { NOT = { has_province_flag = serbian_culture } }
	}

	mean_time_to_happen = {
		months = 300
		
		modifier = {
			factor = 0.9
			NOT = { innovative_narrowminded = -1 }
		}
		modifier = {
			factor = 0.9
			NOT = { innovative_narrowminded = -2 }
		}
		modifier = {
			factor = 0.9
			NOT = { innovative_narrowminded = -3 }
		}
		modifier = {
			factor = 0.9
			NOT = { innovative_narrowminded = -4 }
		}
		modifier = {
			factor = 1.1
			innovative_narrowminded = 2
		}
		modifier = {
			factor = 1.1
			innovative_narrowminded = 3
		}
		modifier = {
			factor = 1.1
			innovative_narrowminded = 4
		}
		modifier = {
			factor = 1.1
			innovative_narrowminded = 5
		}
		modifier = {
			factor = 0.9
			idea = bill_of_rights
		}
		modifier = {
			factor = 0.9
			idea = humanist_tolerance
		}
	}
	
	title = "EVTNAME790002" #	Serbs claim Macedonia
	desc = "EVTDESC790002" #	Macedonia, or 'Old Serbia', is again in our hands. It is time for the national awakening of our people living there.
	
	option = {
		ai_chance = { factor = 100 }
	name = "EVTOPTA790002" #	Good!
		148 = {
			culture = serbian
			set_province_flag = serbian_culture
			clr_province_flag = bulgarian_culture
			clr_province_flag = greek_culture
		}
	}
}

##################################################  ############
#  		Bulgarians claim Macedonia
##################################################  ############

country_event = {

	id = 790003
	
	trigger = {
		tag = BUL
		owns = 148		# Macedonia
		is_core = 148

		148 = { NOT = { has_province_flag = bulgarian_culture } }
	}

	mean_time_to_happen = {
		months = 300
		
		modifier = {
			factor = 0.9
			NOT = { innovative_narrowminded = -1 }
		}
		modifier = {
			factor = 0.9
			NOT = { innovative_narrowminded = -2 }
		}
		modifier = {
			factor = 0.9
			NOT = { innovative_narrowminded = -3 }
		}
		modifier = {
			factor = 0.9
			NOT = { innovative_narrowminded = -4 }
		}
		modifier = {
			factor = 1.1
			innovative_narrowminded = 2
		}
		modifier = {
			factor = 1.1
			innovative_narrowminded = 3
		}
		modifier = {
			factor = 1.1
			innovative_narrowminded = 4
		}
		modifier = {
			factor = 1.1
			innovative_narrowminded = 5
		}
		modifier = {
			factor = 0.9
			idea = bill_of_rights
		}
		modifier = {
			factor = 0.9
			idea = humanist_tolerance
		}
	}
	
	title = "EVTNAME790003" #	Bulgaians claim Macedonia
	desc = "EVTDESC790003" #	Finaly,the province of Macedonia is again a part of our nation,as it was during the reigns of our Khans and Tzarz. It is time for the national awakening of our people living there.
	
	option = {
	name = "EVTOPTA790003" #	Good!
		ai_chance = { factor = 100 }
		148 = {
			culture = bulgarian
			set_province_flag = bulgarian_culture
			clr_province_flag = serbian_culture
			clr_province_flag = greek_culture
		}
	}
}

##################################################  ############
#  		Greeks claim Macedonia
##################################################  ############

country_event = {

	id = 790004
	
	trigger = {
		tag = GRE
		owns = 148		# Macedonia
		is_core = 148

		148 = { NOT = { has_province_flag = greek_culture } }
	}

	mean_time_to_happen = {
		months = 300
		
		modifier = {
			factor = 0.9
			NOT = { innovative_narrowminded = -1 }
		}
		modifier = {
			factor = 0.9
			NOT = { innovative_narrowminded = -2 }
		}
		modifier = {
			factor = 0.9
			NOT = { innovative_narrowminded = -3 }
		}
		modifier = {
			factor = 0.9
			NOT = { innovative_narrowminded = -4 }
		}
		modifier = {
			factor = 1.1
			innovative_narrowminded = 2
		}
		modifier = {
			factor = 1.1
			innovative_narrowminded = 3
		}
		modifier = {
			factor = 1.1
			innovative_narrowminded = 4
		}
		modifier = {
			factor = 1.1
			innovative_narrowminded = 5
		}
		modifier = {
			factor = 0.9
			idea = bill_of_rights
		}
		modifier = {
			factor = 0.9
			idea = humanist_tolerance
		}
	}
	
	title = "EVTNAME790004" #	Greeks claim Macedonia
	desc = "EVTDESC790004" #	From Alexandar the Great, and until the fall of Byzantium, Macedonia was always a part of a Greek realm. Now it rests safe in our hands and it is time for the national awakening of our people living there.
	
	option = {
	name = "EVTOPTA790004" #	Good!
		ai_chance = { factor = 100 }
		148 = {
			culture = greek
			set_province_flag = greek_culture
			clr_province_flag = serbian_culture
			clr_province_flag = bulgarian_culture
		}
	}
}

#############################
# 	Uskok raids		         #
#############################

country_event = {

	id = 790010
	trigger = {
		tag = VEN
		has_country_flag = player_controlled
		TUR = {
			owns = 131		# Croatia
			owns = 136		# Dalmatia
		}
		NOT = { has_country_flag = uskok_raids }
		treasury = 30
		spies = 1
	}
	
	mean_time_to_happen = {
		months = 200

		modifier = {
			factor = 0.9
			NOT = { relation = { who = TUR value = 1 } }
		}
		modifier = {
			factor = 0.9
			NOT = { relation = { who = TUR value = -49 } }
		}
		modifier = {
			factor = 0.9
			NOT = { relation = { who = TUR value = -99 } }
		}
		modifier = {
			factor = 0.9
			NOT = { relation = { who = TUR value = -149 } }
		}
		modifier = {
			factor = 0.9
			NOT = { relation = { who = TUR value = -199 } }
		}
		modifier = {
			factor = 0.8
			idea = espionage
		}
		modifier = {
			factor = 0.5
			TUR = { has_country_flag = Ottoman_decline }
		}
	}
	
	title = "EVTNAME790010" #	Finance Uskok raids
	desc = "EVTDESC790010" #	Serbs and Croats that have fled from their homes because of Ottoman occupation are more than willing to get their revenge on the foul Turks.Do you want to help them?
	
	option = {
	name = "EVTOPTA790010" #	Finance them
		ai_chance = { factor = 45 }
		131 = {
			add_province_modifier = {
				name = "foreign_support_for_rebels"
				duration = 360
			}
			#add_province_modifier = { 
			#		name = "uskok_raids"
			#		duration = 365
			#}
			patriot_rebels = 1
		}
		136 = {
			#add_province_modifier = { 
			#		name = "uskok_raids"
			#		duration = 365
			#}
			add_province_modifier = {
				name = "foreign_support_for_rebels"
				duration = 360
			}
			patriot_rebels = 1
		}
		treasury = -15
		spies = -1
		THIS = { add_casus_belli = TUR }
		set_country_flag = uskok_raids
	}

	option = {
	name = "EVTOPTB790010" #	Hire them
		ai_chance = { factor = 35 }
		treasury = -25
		infantry = 112
		infantry = 112
		infantry = 112

	}
	option = {
	name = "EVTOPTC790010" #	Let them handle it by themselfs
		ai_chance = { factor = 20 }
		TUR = { relation = { who = THIS value = 10 } }
	}
}

#cepan Mali
country_event = {
	id = 790011
	trigger = {
		OR = {
			AND = {
				tag = MON
				regency = yes
			}
			AND = {
				owns = 138		#Zeta
				NOT = { exists = MON }
			}
		}
		has_country_flag = player_controlled
		NOT = { year = 1795 }
		REB = { NOT = { has_country_flag = scepan_mali } }
		year = 1745
	}
	mean_time_to_happen = {
		months = 12
		modifier = {
			factor = 0.5
			RUS = { regency = yes }
		}
		modifier = {
			factor = 5
			RUS = { regency = no }
		}						
	}
	title = "EVTNAME790011" #	cepan Mali
	desc = "EVTDESC790011"

	option = {
	name = "EVTOPTA790011" #	Continue
		ai_chance = { factor = 100 }
		country_event = 799011
		REB = { set_country_flag = scepan_mali }
	}
}

#cepan Mali
country_event = {
	id = 799011

	is_triggered_only = yes

	title = "EVTNAME799011" #	cepan Mali
	desc = "EVTDESC7900111"

	option = {
	name = "EVTOPTA799011" #	A false ruler
		ai_chance = { factor = 90 }
		prestige = -0.1
		138 = { pretender_rebels = 1 }
		REB = { set_country_flag = scepan_mali1 }
	}
	option = {
	name = "EVTOPTB799011" #	Let him rule, who cares really...
		ai_chance = { factor = 10 }
		stability = -1
		TUR = { casus_belli = THIS }
		REB = { set_country_flag = scepan_mali1 }
	}
}

#Fist printed cyrillic book
country_event = {
	id = 790012
	trigger = {
		OR = {
			tag = MON
			AND = {
				owns = 138		#Zeta
				NOT = { exists = MON }
			}
		}
		NOT = { year = 1495 }
		REB = { NOT = { has_country_flag = cyrillic_book } }
		year = 1493
	}
	mean_time_to_happen = {
		months = 6
	}
	title = "EVTNAME790012" #	Fist printed cyrillic book
	desc = "EVTDESC790012"

	option = {
	name = "EVTOPTA790012" #	Holy books
		ai_chance = { factor = 95 }
		innovative_narrowminded = -1
		production_tech = +75
		REB = { set_country_flag = cyrillic_book }
	}
	option = {
	name = "EVTOPTB790012" #	Burn that machine!
		ai_chance = { factor = 5 }
		innovative_narrowminded = 1
		prestige = -0.05
		REB = { set_country_flag = cyrillic_book }
	}
}

#Filip Vinjic
country_event = {
	id = 790013
	trigger = {
		OR = {
			tag = SER
			AND = {
				tag = TUR
				owns = 141		#Serbia
				NOT = { exists = SER }
			}
		}
		REB = { NOT = { has_country_flag = filip_visnjic } }
		year = 1800
	}
	mean_time_to_happen = {
		months = 48
		modifier = {
			factor = 0.5
			AND = {
				NOT = { accepted_culture = serbian }
				NOT = { primary_culture = serbian }
			}
		}
		modifier = {
			factor = 2
			AND = {
				accepted_culture = serbian
				NOT = { primary_culture = serbian }
			}
		}
	}
	title = "EVTNAME790013" #	Filip Vinjic
	desc = "EVTDESC790013"

	option = {
	name = "EVTOPTA790013" #	A great poet
		ai_chance = { factor = 100 }
		government_tech = +75
		REB = { set_country_flag = filip_visnjic }
	}
}

#Vuk Grgurevic
#Easter egg ;)
country_event = {
	id = 790014
	trigger = {
		tag = HUN
		TUR = { owns = 141 }	#Serbia
		NOT = { year = 1485 }
		NOT = { has_country_flag = zmaj_ognjeni_vuk }
		year = 1475
	}
	mean_time_to_happen = {
		months = 48
		modifier = {
			factor = 0.66
			war_with = TUR
		}
	}
	title = "EVTNAME790014" #	Vuk Grgurevic
	desc = "EVTDESC790014"

	option = {
	name = "EVTOPTA790014" #	Take him in our service
		ai_chance = { factor = 80 }
		treasury = -20
		define_general = {
				name = " "
				shock = 4
				fire = 1
				siege = 1
				manuever = 3
		}
		set_country_flag = zmaj_ognjeni_vuk
	}

	option = {
	name = "EVTOPTB790014" #	We don't need him
		ai_chance = { factor = 20 }
		TUR = { relation = { who = THIS value = 15 } }
		set_country_flag = zmaj_ognjeni_vuk
	}
}

#Emperor Jovan Nenad
country_event = {
	id = 790015
	trigger = {
		OR = {
			tag = HUN
			tag = TRA
		}
		owns = 156		#Banat
		NOT = { stability = 1 }
		NOT = { year = 1520 }
		NOT = { has_country_flag = jovan_nenad }
		year = 1500
	}
	mean_time_to_happen = {
		months = 144
		modifier = {
			factor = 0.8
			NOT = { stability = 0 }
		}
		modifier = {
			factor = 0.8
			NOT = { stability = -1 }
		}
		modifier = {
			factor = 0.8
			NOT = { stability = -2 }
		}
	}
	title = "EVTNAME790015" #	Emperor Jovan Nenad
	desc = "EVTDESC790015"

	option = {
	name = "EVTOPTA790015" #	Damn!
		ai_chance = { factor = 100 }
		156 = { nationalist_rebels = 1 }
		156 = { change_controller = REB }
		set_country_flag = jovan_nenad
	}
}

#Vuk Karadic publishes the first Serbian dictionary
country_event = {
	id = 790016
	trigger = {
		OR = {
			tag = SER
			AND = {
				owns = 141		#Serbia
				NOT = { exists = SER }
			}
		}
		REB = { NOT = { has_country_flag = vuk_karadzic } }
		year = 1818
	}
	mean_time_to_happen = {
		months = 3
	}
	title = "EVTNAME790016" #	Vuk Karadic publishes the first Serbian dictionary
	desc = "EVTDESC790016"

	option = {
	name = "EVTOPTA790016" #	Continue
		ai_chance = { factor = 100 }
		country_event = 799016
		REB = { set_country_flag = vuk_karadzic }
	}
}

#Vuk Karadic publishes the first Serbian dictionary
country_event = {
	id = 799016

	is_triggered_only = yes

	title = "EVTNAME799016" #	Vuk Karadic publishes the first Serbian dictionary
	desc = "EVTDESC7900161"

	option = {
	name = "EVTOPTA799016" #	Write as you speak and read as it is written
		ai_chance = { factor = 100 }
		government_tech = +75
		REB = { set_country_flag = vuk_karadzic1 }
	}
}

#Banat rebelion
country_event = {
	id = 790017
	trigger = {
		tag = TUR
		NOT = { year = 1594 }
		owns = 156		#Banat
		controls = 156
		NOT = { has_country_flag = banat_rebelion }
		year = 1593
	}
	mean_time_to_happen = {
		months = 6
	}
	title = "EVTNAME790017" #	Banat rebellion
	desc = "EVTDESC790017"

	option = {
	name = "EVTOPTA790017" #	Send forces immediately!
		ai_chance = { factor = 100 }
		156 = { change_controller = REB }
		156 = { nationalist_rebels = 1 }
		set_country_flag = banat_rebelion
	}
}

#Burning the remains
country_event = {
	id = 790018
	trigger = {
		tag = TUR
		NOT = { year = 1597 }
		owns = 156		#Banat
		owns = 141		#Serbia
		controls = 141
		has_country_flag = banat_rebelion
		year = 1594
	}
	mean_time_to_happen = {
		months = 6
	}
	title = "EVTNAME790018" #	Burning the remains of St. Sava
	desc = "EVTDESC790018"

	option = {
	name = "EVTOPTA790018" #	Let the bones burn!
		ai_chance = { factor = 100 }
		156 = { citysize = -1000 }
		badboy = +2
		clr_country_flag = banat_rebelion
	}
}

#Mehmed Pasha Sokolovic
country_event = {
	id = 790019
	trigger = {
		tag = TUR
		NOT = { year = 1556 }
		owns = 139		#Hum
		NOT = { has_country_flag = mehmed_pasha }
		year = 1543
	}
	mean_time_to_happen = {
		months = 90
		modifier = {
			factor = 0.5
			advisor = statesman
		}
		modifier = {
			factor = 1.5
			NOT = { advisor = statesman }
		}
	}
	title = "EVTNAME790019" #	Sokollu Mehmet Pasa
	desc = "EVTDESC790019"

	option = {
	name = "EVTOPTA790019" #	A trully Grand Vizier!
		ai_chance = { factor = 100 }
		random_owned = { 
			limit = { owner = { stability = 3 } }
			owner = { prestige = 0.10 }
			}
		random_owned = { 
			limit = { owner = { NOT = { stability = 3 } } }
			owner = { stability = 1 prestige = 0.05 }
			}
	}
}

#Sokollu Mehmet Pasa - Patrijarsija
country_event = {
	id = 790020
	trigger = {
		tag = TUR
		NOT = { year = 1558 }
		owns = 141		#Serbia
		controls = 141
		has_country_flag = mehmed_pasha
		141 = { NOT = { has_building = temple } }
		NOT = { has_country_flag = patriarchate_of_pec }
		year = 1557
	}
	mean_time_to_happen = {
		months = 6
	}
	title = "EVTNAME790020" #	Renewal of Serbian Patriarchy
	desc = "EVTDESC790020" #	EVNTDSC790020

	option = {
	name = "EVTOPTA790020" #	Rebuild the church
		ai_chance = { factor = 70 }
		141 = { add_building = temple }
		treasury = -20
		set_country_flag = patriarchate_of_pec
	}
	option = {
	name = "EVTOPTB790020" #	Use this to fortify the province
		ai_chance = { factor = 30 }
		141 = { add_building = fort2 }
		treasury = -20
		set_country_flag = patriarchate_of_pec
	}
}

#Sokollu Mehmet Pasa - Visegrad bridge
country_event = {
	id = 790021
	trigger = {
		tag = TUR
		NOT = { year = 1575 }
		owns = 141		#Serbia
		owns = 139		#Hum
		controls = 141
		controls = 141
		has_country_flag = mehmed_pasha
		year = 1566
	}
	mean_time_to_happen = {
		months = 60
	}
	title = "EVTNAME790021" #	Visegrad bridge
	desc = "EVTDESC790021"

	option = {
	name = "EVTOPTA790021" #	Continue
		ai_chance = { factor = 100 }
		country_event = 799021
		clr_country_flag = mehmed_pasha
		clr_country_flag = patriarchate_of_pec
		set_country_flag = drina_bridge
	}
}

#Sokollu Mehmet Pasa - Visegrad bridge
country_event = {
	id = 799021

	is_triggered_only = yes

	title = "EVTNAME799021" #	Visegrad bridge
	desc = "EVTDESC7900211"

	option = {
	name = "EVTOPTA799021" #	Build the bridge
		ai_chance = { factor = 75 }
		treasury = -25
		139 = { base_tax = +1 }
		set_country_flag = drina_bridge
		clr_country_flag = mehmed_pasha
		clr_country_flag = patriarchate_of_pec
	}
	option = {
	name = "EVTOPTB799021" #	Forget it
		ai_chance = { factor = 25 }
		139 = { change_manpower = -1 }
		set_country_flag = drina_bridge
		clr_country_flag = mehmed_pasha
		clr_country_flag = patriarchate_of_pec
	}
}

#Devsirme
province_event = {
	id = 790022
	trigger = {
		owner = { tag = TUR }
		religion = orthodox
		NOT = { year = 1569 }	
	}
	mean_time_to_happen = {
		years = 100
		modifier = {
			factor = 0.95
			TUR = { war_exhaustion = 3 }
		}
		modifier = {
			factor = 0.95
			TUR = { war_exhaustion = 4 }
		}
		modifier = {
			factor = 0.95
			TUR = { war_exhaustion = 5 }
		}
		modifier = {
			factor = 0.95
			TUR = { war_exhaustion = 6 }
		}
		modifier = {
			factor = 0.95
			TUR = { war_exhaustion = 7 }
		}
	}
	title = "EVTNAME790022" #	Devshirmei in $PROVINCENAME$
	desc = "EVTDESC790022"

	option = {
	name = "EVTOPTA790022" #	Take them
		ai_chance = { factor = 85 }
		citysize = -300
		TUR = { manpower = 1 }
		TUR = { badboy = +0.25 }
	}
	option = {
	name = "EVTOPTB790022" #	Leave the alone this time
		ai_chance = { factor = 15 }
		citysize = +150
	}
}

#Devsirme
province_event = {
	id = 790023
	trigger = {
		owner = { tag = TUR }
		religion = orthodox
		NOT = { year = 1648 }
		year = 1569
	}
	mean_time_to_happen = {
		years = 200
		modifier = {
			factor = 0.95
			TUR = { war_exhaustion = 3 }
		}
		modifier = {
			factor = 0.95
			TUR = { war_exhaustion = 4 }
		}
		modifier = {
			factor = 0.95
			TUR = { war_exhaustion = 5 }
		}
		modifier = {
			factor = 0.95
			TUR = { war_exhaustion = 6 }
		}
		modifier = {
			factor = 0.95
			TUR = { war_exhaustion = 7 }
		}
	}
	title = "EVTNAME790023" #	Devshirmei in $PROVINCENAME$
	desc = "EVTDESC790022"

	option = {
	name = "EVTOPTA790023" #	Take them
		ai_chance = { factor = 85 }
		citysize = -300
		TUR = { manpower = 1 }
		TUR = { badboy = +0.25 }
	}
	option = {
	name = "EVTOPTB790023" #	Leave the alone this time
		ai_chance = { factor = 15 }
		citysize = +150
	}
}

##############################################################
#  		Serbian Uprisings Sequence                                                                                      #
##############################################################

#Uprising against the dahias
country_event = {
	id = 790024
	trigger = {
		tag = TUR
		owns = 141		#Serbia
		NOT = { year = 1804 }
		NOT = { has_country_flag = dahia_uprising }
		year = 1799
	}
	mean_time_to_happen = {
		months = 24
	}
	title = "EVTNAME790024" #	Uprising against the dahias
	desc = "EVTDESC790024"

	option = {
	name = "EVTOPTA790024" #	This will not come out good
		ai_chance = { factor = 100 }
		badboy = +0.5
		set_country_flag = dahia_uprising
	}
}
#Massacre of Serbian knights
country_event = {
	id = 790025
	trigger = {
		tag = TUR
		owns = 141		#Serbia
		NOT = { year = 1805 }
		has_country_flag = dahia_uprising
		NOT = { has_country_flag = beheading_of_knights }
		year = 1804
	}
	mean_time_to_happen = {
		months = 2
	}
	title = "EVTNAME790025" #	Massacre of Serbian knights
	desc = "EVTDESC790025"

	option = {
	name = "EVTOPTA790025" #	Behead them
		ai_chance = { factor = 95 }
		badboy = +0.5
		prestige = +0.025
		set_country_flag = beheading_of_knights
		clr_country_flag = dahia_uprising
	}
	option = {
	name = "EVTOPTB790025" #	I'm not sure that's a good idea
		ai_chance = { factor = 5 }
		stability = -2
		set_country_flag = beheading_of_knights
		clr_country_flag = dahia_uprising
	}
}

#Serbs seek help in Russia
country_event = {
	id = 790026
	trigger = {
		tag = RUS
		TUR = { has_country_flag = dahia_uprising }
		NOT = { has_country_flag = serbian_uprising_arms }
		NOT = { has_country_flag = serbian_uprising_both }
		NOT = { has_country_flag = serbian_uprising_nothing }
	}
	mean_time_to_happen = {
		months = 6
	}
	title = "EVTNAME790026" #	Serbs seek help agains Ottomans
	desc = "EVTDESC790026" #	A delegation of Serb leaders arrived today, asking of us to aid them in ther upcoming uprising agains the Ottoman Empire. This may provide as a good chance to destabilize the Turks, and make them lose their grip over Balkans...

	option = {
	name = "EVTOPTA790026" #	Send them arms
		ai_chance = { factor = 40 }
		treasury = -25
		set_country_flag = serbian_uprising_arms
	}
	option = {
	name = "EVTOPTB790026" #	Send them both arms and men
		ai_chance = { factor = 40 }
		treasury = -25
		manpower = -1
		set_country_flag = serbian_uprising_both
	}
	option = {
	name = "EVTOPTC790026" #	Give them nothing but empty words
		ai_chance = { factor = 20 }
		prestige = -0.025
		set_country_flag = serbian_uprising_nothing
	}
}

#Serbs seek help in Austria
country_event = {
	id = 790027
	trigger = {
		tag = HAB
		TUR = { has_country_flag = dahia_uprising }
		NOT = { has_country_flag = serbian_uprising_arms }
		NOT = { has_country_flag = serbian_uprising_both }
		NOT = { has_country_flag = serbian_uprising_nothing }
	}
	mean_time_to_happen = {
		months = 12
	}
	title = "EVTNAME790027" #	Serbs seek help agains Ottomans
	desc = "EVTDESC790027" #	A delegation of Serb leaders arrived today, asking of us to aid them in ther upcoming uprising agains the Ottoman Empire. This may provide as a good chance to destabilize the Turks, and make them lose their grip over Balkans...

	option = {
	name = "EVTOPTA790027" #	Send them arms
		ai_chance = { factor = 45 }
		treasury = -25
		set_country_flag = serbian_uprising_arms
	}
	option = {
	name = "EVTOPTB790027" #	Send them both arms and men
		ai_chance = { factor = 15 }
		treasury = -25
		manpower = -1
		set_country_flag = serbian_uprising_both
	}
	option = {
	name = "EVTOPTC790027" #	Give them nothing but empty words
		ai_chance = { factor = 40 }
		prestige = -0.025
		set_country_flag = serbian_uprising_nothing
	}
}

#Serbs seek help in France
country_event = {
	id = 790028
	trigger = {
		OR = {
			tag = FRA
			tag = RFR
		}
		TUR = { has_country_flag = dahia_uprising }
		NOT = { has_country_flag = serbian_uprising_arms }
		NOT = { has_country_flag = serbian_uprising_both }
		NOT = { has_country_flag = serbian_uprising_nothing }
	}
	mean_time_to_happen = {
		months = 18
	}
	title = "EVTNAME790028" #	Serbs seek help agains Ottomans
	desc = "EVTDESC790028" #	A delegation of Serb leaders arrived today, asking of us to aid them in ther upcoming uprising agains the Ottoman Empire. This may provide as a good chance to destabilize the Turks, and make them lose their grip over Balkans...

	option = {
	name = "EVTOPTA790028" #	Send them arms
		ai_chance = { factor = 20 }
		treasury = -25
		set_country_flag = serbian_uprising_arms
	}
	option = {
	name = "EVTOPTB790028" #	Send them both arms and men
		ai_chance = { factor = 20 }
		treasury = -25
		manpower = -1
		set_country_flag = serbian_uprising_both
	}
	option = {
	name = "EVTOPTC790028" #	Send them out of my chamber
		ai_chance = { factor = 60 }
		prestige = -0.025
		set_country_flag = serbian_uprising_nothing
	}
}

#First Serbian Uprising
country_event = {
	id = 790029
	trigger = {
		tag = TUR
		NOT = { year = 1814 }
		has_country_flag = beheading_of_knights
		NOT = { has_country_flag = first_serbian_uprising }
		year = 1804
	}
	mean_time_to_happen = {
		months = 12
		modifier = {
			factor = 1.5
			stability = 2
		}
		modifier = {
			factor = 1.5
			stability = 3
		}
	}
	title = "EVTNAME790029" #	First Serbian Uprising
	desc = "EVTDESC790029"

	option = {
	name = "EVTOPTA790029" #	Damn!
		ai_chance = { factor = 100 }
		141 = { patriot_rebels = 1 }
		141 = { remove_building = fort3 }
		141 = { remove_building = fort2 }
		stability = -1
		set_country_flag = first_serbian_uprising
	}
}

#Decade of independance
country_event = {
	id = 790030
	trigger = {
		tag = TUR
		TUR = { has_country_flag = first_serbian_uprising }
		NOT = { has_country_flag = succesfull_uprising }
		141 = { controller = { tag = REB } }
		141 = { NOT = { infantry_in_province = 1 } }
	}
	mean_time_to_happen = {
		months = 1
	}
	title = "EVTNAME790030" #	Belgrade is lost!
	desc = "EVTDESC790030"

	option = {
	name = "EVTOPTA790030" #	We must recapture it!
		ai_chance = { factor = 100 }
		141 = { change_controller = TUR }
		141 = { secede_province = SER }
		141 = { change_controller = SER }
		any_country = {
			limit = {
				tag = SER
				RUS = { has_country_flag = serbian_uprising_arms }
			}
			artillery = 141
		}
		any_country = {
			limit = {
				tag = SER
				RUS = { has_country_flag = serbian_uprising_both }
			}
			artillery = 141
			cavalry = 141
		}
		any_country = {
			limit = {
				tag = SER
				HAB = { has_country_flag = serbian_uprising_arms }
			}
			artillery = 141
		}
		any_country = {
			limit = {
				tag = SER
				HAB = { has_country_flag = serbian_uprising_both }
			}
			artillery = 141
			infantry = 141
		}
		any_country = {
			limit = {
				tag = SER
				OR = {
					FRA = { has_country_flag = serbian_uprising_arms }
					RFR = { has_country_flag = serbian_uprising_arms }
				}
			}
			artillery = 141
		}
		any_country = {
			limit = {
				tag = SER
				OR = {
					FRA = { has_country_flag = serbian_uprising_both }
					RFR = { has_country_flag = serbian_uprising_both }
				}
			}
			artillery = 141
			infantry = 141
		}
		SER = { infantry = 141 }
		SER = { infantry = 141 }
		SER = { infantry = 141 }
		SER = { infantry = 141 }
		SER = { infantry = 141 }
		SER = { infantry = 141 }
		SER = { infantry = 141 }
		SER = { artillery = 141 }	#Captured a lot of Turkish canons in the siege of Belgrade
		SER = { cavalry = 141 }
		SER = { cavalry = 141 }
		SER = {
			define_general = {
				name = "Karadjordje Petrovic"
				shock = 4
				fire = 5
				siege = 6
				manuever = 4
			}
		}
		141 = { add_building = fort2 }
		141 = { add_building = fort3 }
		war = SER
		set_country_flag = succesfull_uprising
		clr_country_flag = beheading_of_knights
	}
}

#Reintegration of Serbia
country_event = {
	id = 790031
	trigger = {
		tag = TUR
		NOT = { year = 1814 }
		war_with = SER
		controls = 141	#Serbia
		has_country_flag = succesfull_uprising
	}
	mean_time_to_happen = {
		days = 1
	}
	title = "EVTNAME790031" #	Serbia is recovered
	desc = "EVTDESC790031" #	In 1813, Ottoman Empire used the lack of foreign (mostly Russian) support for the Serbian uprising to take Serbia back into its hands.
	option = {
	name = "EVTOPTA790031" #	Finally
		ai_chance = { factor = 100 }
		inherit = SER
		badboy = +2
		clr_country_flag = first_serbian_uprising
		clr_country_flag = succesfull_uprising
		set_country_flag = skull_tower
		set_country_flag = first_uprising_done
	}
}

#Skull Tower
country_event = {
	id = 790032
	trigger = {
		tag = TUR
		has_country_flag = skull_tower
	}
	mean_time_to_happen = {
		months = 1
	}
	title = "EVTNAME790032" #	Skull Tower
	desc = "EVTDESC790032"

	option = {
	name = "EVTOPTA790032" #	Skulls and bones
		ai_chance = { factor = 100 }
		badboy = +2
		prestige = -0.025
		clr_country_flag = skull_tower
	}
}

#The Second Serbian Uprising
country_event = {
	id = 790033
	trigger = {
		tag = TUR
		owns = 141		#Serbia
		has_country_flag = first_uprising_done
		year = 1815
	}
	mean_time_to_happen = {
		months = 6
	}
	title = "EVTNAME790033" #	Second Serbian Uprising
	desc = "EVTDESC790033"

	option = {
	name = "EVTOPTA790033" #	Them again?
		ai_chance = { factor = 100 }
		141 = { patriot_rebels = 2 }
		clr_country_flag = first_uprising_done
		set_country_flag = second_uprising
	}
}

#Acknowledgment of Serbia
country_event = {
	id = 790034
	trigger = {
		tag = TUR
		141 = { controller = { tag = REB } }
		141 = { NOT = { infantry_in_province = 1 } }
		has_country_flag = second_uprising
	}
	mean_time_to_happen = {
		months = 1
	}
	title = "EVTNAME790034" #	Acknowledgment of Serbia
	desc = "EVTDESC790034"

	option = {
	name = "EVTOPTA790034" #	Give them authonomy
		ai_chance = { factor = 100 }
		141 = { change_controller = TUR }
		release = SER
		141 = { change_controller = SER }
		SER = { prestige = +0.05 }
		clr_country_flag = second_uprising
	}
}

###########End of sequence

#Lek Dukagjini
country_event = {
	id = 790035
	trigger = {
		tag = ALB
		NOT = { year = 1481 }
		regency = no
		ADM = 6
		NOT = { has_country_flag = leke_dukagjini }
	}
	mean_time_to_happen = {
		months = 36
	}
	title = "EVTNAME790035" #	Lek Dukagjini
	desc = "EVTDESC790035"

	option = {
	name = "EVTOPTA790035" #	Codify the Kanuni
		ai_chance = { factor = 100 }
		government_tech = +75
		set_country_flag = leke_dukagjini
	}
}

