# Event by Dark Knight
# Text by Henrik 'Doomdark' Fhraeus

#Restore Byzantium#
event = {
	id = 3874
	trigger = {
		owned = {
			province = 357 # Constantinople
			data = -1
		}
		religion = orthodox
		NOT = {
			exists = BYZ
		}
		atwar = no
	}
	random = no
	country = TRE
	name = "EVENTNAME3874"
	desc = "EVENTHIST3874"
	style = 1
	
	date = { day = 1 month = january year = 1419 }
	offset = 30
	deathdate = { day = 1 month = january year = 1821 }

	action_a = { #Move to Byzantium and Restore the Empire#
		name = "ACTIONNAME3874A"
		command = { type = capital which = 357 }
		command = { type = conversion which = 357 }
		command = { type = provinceculture which = 357 value = greek }
		command = { type = conversion which = -1 }
		command = { type = conversion which = -1 }
		command = { type = missionaries value = 3 }
		command = { type = diplomats value = 2 }
		command = { type = merchants value = 2 }
		command = { type = country which = BYZ }
	}
	action_b = { #Let Trebizond Remain the Capital of a New Empire#
		name = "ACTIONNAME3874B"
		command = { type = conversion which = 357 }
		command = { type = provinceculture which = 357 value = greek }
		command = { type = domestic which = CENTRALIZATION value = 2 } 
		command = { type = population which = 475 value = 30000 }
		command = { type = missionaries value = 3 }	
		command = { type = merchants value = 2 }
		command = { type = provincetax which = 475 value = 3 }
		command = { type = provincetax which = 357 value = -2 }
	}
}

#Commenus Claims to Byzantium#
event = {
	id = 15100
	random = no
	country = TRE
	name = "EVENTNAME15100"
	desc = "EVENTHIST15100"
	style = 1
	date = { day = 29 month = may year = 1457 }
	offset = 30

	action_a = {
		name = "ACTIONNAME15100A"
		command = { type = addcore which = 357 }
		command = { type = trigger which = 15004 }
	}
}

#The beginning of the Commeni Dynasty#
event = {
	id = 15101
	random = no
	country = TRE
	name = "EVENTNAME15101"
	desc = "EVENTHIST15101"
	style = 1
	date = { day = 29 month = may year = 1457 }
	offset = 30

	action_a = { 
		name = "ACTIONNAME15101A"
		command = { type = relation which = BYZ value = 200 }
		command = { type = stability value = 3 }
	}
}

#Victory of Demetrios#
event = {
	id = 15102
	random = no
	country = TRE
	name = "EVENTNAME15102"
	desc = "EVENTHIST15102"
	style = 1
	date = { day = 29 month = may year = 1457 }
	offset = 30

	action_a = { 
		name = "ACTIONNAME15102A"
		command = { type = relation which = BYZ value = -200 }
		command = { type = stability value = -2 }
	}
}

#Zoe Kommenos appoints Regency#
event = {
	id = 15103
	random = no
	country = TRE
	name = "EVENTNAME15103"
	desc = "EVENTHIST15103"
	style = 1

	date = { day = 1 month = january year = 1532 }
	offset = 30

	action_a = { #Long Live the Empress#
		name = "ACTIONNAME15103A"
		command = { type = domestic which = CENTRALIZATION value = -3 }
		command = { type = relation which = BYZ value = 100 }
		command = { type = stability value = 1 }
		command = { type = treasury value = 250 }
		command = { type = wakemonarch which = 04858 }
	}
}

#The end of the Kommenos#
event = {
	id = 15104
	random = no
	country = TRE
	name = "EVENTNAME15104"
	desc = "EVENTHIST15104"
	style = 1

	date = { day = 1 month = may year = 1562 }
	offset = 30

	action_a = { #Long live the Republic#
		name = "ACTIONNAME15104A"
		command = { type = domestic which = CENTRALIZATION value = 2 }
		command = { type = domestic which = INNOVATIVE value = 2 }
		command = { type = domestic which = MERCANTILISM value = -2 }
		command = { type = domestic which = SERFDOM value = -2 }
		command = { type = relation which = BYZ value = -150 }
		command = { type = relation which = VEN value = 150 }
		command = { type = relation which = GEN value = 150 }
		command = { type = wakemonarch which = 04859 }
	}
} 
