######Serbia Major Events######
#  By Demetrios and Havard    #
#                             #
#  altered a bit by Doomdark  #
#                             #
###############################

# The Council of Florence and the Union of the Churches
event = { 
	id = 3837
	
	# Triggered by BYZ 3833
	
	random = no
	country = SER
	name = "EVENTNAME3837"
	desc = "EVENTHIST3837"
	style = 1 
	
	action_a ={ #Gain CB on Ottomans#
		name = "ACTIONNAME3837A"
		command = { type = casusbelli which = TUR value = 60 }
	}
}

#Events from AoN modified by Hive

#The Serbian Armed Forces#
event = { 
	id = 15082
	trigger = { 
		vassal = { country = TUR country = SER }
		}
	random = no
	country = SER
	date = { year = 1823 }
	offset = 30
	deathdate = { year = 1830 }
	name = "The Serbian Armed Forces"
	desc = "Serbia was from 1815 a principality within the Ottoman Empire. This was the result of a treaty signed between Serbia and the Ottoman Empire after the Serbs had rebelled in 1804 and 1815. The Ottomans feared Russian intervention on behalf of their Slavic brethren (Pan-Slavism), and Serbia was eager to gain some autonomy. The treaty did not give the Serbs the right to have their own army, but this was evaded by Milos Obrenovic, who became recognised as hereditary prince in 1829. Milos started slowly but firmly to establish a Serbian army, which in the beginning consisted mainly of palace guards and police. By 1830, he could openly recruit soldiers."
	style = 5
	action_a = {
			name = "Openly defy the treaty"
			command = { type = flagname which = "1830" }
			command = { type = gainbuilding which = -2 value = barrack }
			command = { type = provincemanpower which = -2 value = 4 }
			command = { type = provincemanpower which = -1 value = 1 }
			command = { type = relation which = TUR value = -200 }
	}
	action_b = {
			name = "Secretly defy the treaty"
			command = { type = flagname which = "1830" }
			command = { type = provincemanpower which = -2 value = 3 }
			command = { type = relation which = TUR value = -50 }
	}
	action_c = {
			name = "Obey the treaty"
			command = { type = stability value = 1 }
			command = { type = relation which = TUR value = 50 }
	}
}

event = {
	id = 643283
	trigger = {
	OR = {
		control = { province = 1954 data = REB }
		NOT = { control = { province = 1954 data = SER }    }
		}
                                        }
	random = no
	country = SER
	name = "Nikephoros II Orsini"
	desc = "Nikephoros took over the region in Spring 1356, and advanced on Epirus. He chased out Dušan's brother Simeon Uroš (who had married Nikephoros' sister Thomais) from Arta and asserted his control over the cities of the region."
	style = 2

	date = { day = 1 month = january year = 1356 }
	offset = 30
        deathdate = { day = 1 month = january year = 1366 }

	action_a ={
		name = "No!"
		command = { type = independence which = TOX }
		command = { type = secedeprovince   which = TOX value = 1956 }
		command = { type = stability value = -1 }
		command = { type = trigger which = 643284 }
	}
}


event = {
	id = 8795200
	trigger = {
	OR = {
		owned = {
			province = 358
			data = -1
		}
		owned = {
			province = 363
			data = -1
		}
	}
	}
	random = no
	country = SER
	name = "The crowning of Stefan Dusan"
	desc = "In 1346 Stefan Dusan was crowned, in Skopje, Tsar and autocrat of Serbs and Greeks."
	style = 4

	date = { day = 16 month = april year = 1346 }
	offset = 30
	deathdate = { day = 20 month = december year = 1355 }

	action_a = {
		name = "Let us crown Stefan Dusan Emporer"
		command = { type = flagname which = _Empire }
		command = { type = stability value = 1 }
	}
}

event = {
	id = 8795201
	trigger = {
	NOT = {
	OR = {
		owned = {
			province = 358
			data = -1
		}
		owned = {
			province = 363
			data = -1
		}
	}
	}
	}
	random = no
	country = SER
	name = "The fall of the Serbian Empire"
	desc = "Now we just have to defend the last serbian state!"
	style = 4

	date = { day = 1 month = june year = 1389 }
	offset = 30
	deathdate = { day = 1 month = june year = 1418 }

	action_a = {
		name = "Damn."
		command = { type = flagname which = "" }
		command = { type = stability value = -1 }
	}
}

event = {

	id = 98874109
	random = no
	country = SER
	name = "New National Ensign"
	desc = "Now that sounds good"
	style = 4

	date = { day = 1 month = january year = 1882 }
	offset = 360
	deathdate = { day = 1 month = january year = 1883 }

	action_a ={
		name = "Great"
		command = { type = flagname which = "1882" }
	}
}
