# Event by Dark Knight
# Text by Henrik 'Doomdark' Fеhraeus

#Restore Byzantium#
event = {
	id = 3874
	trigger = {
		owned = {
			province = 1953 # 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 = 1953 }
		command = { type = conversion which = 1953 }
		command = { type = provinceculture which = 1953 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 = 1953 }
		command = { type = provinceculture which = 1953 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 = 1953 value = -2 }
	}
}

#########
#By MKJ##
#########

#Fall of Constantinople, the Trebizond reaction#
event = {
	id = 89015
	trigger = {
		event = 3353
    }
	random = no
	country = TRE
	name = "EVENTNAME89015"
	desc = "EVENTHIST89015"
	style = 1
	date = { day = 1 month = january year = 1419 }
	offset = 0
	deathdate = { day = 1 month = january year = 1491 }
	
	action_a = { #
		name = "ACTIONNAME89015A"
		command = { type = relation which = TUR value = -200 } 
		command = { type = add_countryculture which = slavonic } 
		command = { type = addcore which = 1953 } 
		command = { type = addcore which = 357 } 
		command = { type = addcore which = 1416 } 
		command = { type = addcore which = 359 } 
		command = { type = addcore which = 360 } # Morea
		command = { type = addcore which = 1956 } 
		command = { type = addcore which = 1955 } 
		command = { type = addcore which = 479 } # Ionia
		command = { type = addcore which = 480 } # Crete
		command = { type = addcore which = 481 } # Rhodos
		command = { type = addcore which = 358 } # Corfu
		command = { type = addcore which = 477 }
                command = { type = addcore which = 1954 }  
	}

	action_b = { #
		name = "ACTIONNAME89015B"
		command = { type = relation which = TUR value = 100 }
		command = { type = sleepevent which = 89039 }
	}
}

event = { 
	id = 89039
	trigger = {
		exists = TUR
		event = 89015
	}
	random = no 
	country = TRE 
	name = "EVENTNAME89039" 
	desc = "EVENTHIST89039" 
	style = 1 
	date = { day = 1 month = april year = 1419 } 
	offset = 1000 
	deathdate = { day = 1 month = april year = 1820 } 

	action_a = { 
		name = "ACTIONNAME89039A" 
		command = { type = stability value = 1 } 
		command = { type = war which = TUR } 
		command = { type = relation which = AKK value = 100 } 
		command = { type = alliance which = AKK }  
		command = { type = dynastic which = AKK } 
		command = { type = relation which = GEO value = 100 } 
		command = { type = alliance which = GEO }  
		command = { type = dynastic which = GEO } 
		command = { type = relation which = DUL value = 100 } 
		command = { type = alliance which = DUL }  
		command = { type = dynastic which = DUL } 
	} 

	action_b = { 
		name = "ACTIONNAME89039B" 
		command = { type = relation which = TUR value = 100 } 
	} 
}

#########
#By V/M##
#########

#The pinnacle of the Trebizond Empire# 
event = { 
	id = 95300
	random = no 
	country = TRE 
	name = "EVENTNAME95300" 
	desc = "EVENTHIST95300" 

	style = 1 
	date = { month = october year = 1419 } 
	offset = 1900 
	deathdate = { month = may year = 1461 } 

	action_a = { 
		name = "ACTIONNAME95300A" 
		command = { type = domestic which = mercantilism value = -1 } 
		command = { type = relation which = VEN value = 50 } 
		command = { type = relation which = GEN value = 50 } 
		command = { type = cash value = 200 } 
		command = { type = trade value = 500 } 
		command = { type = infra value = 700 } 
		command = { type = merchants value = 1 } 
	} 
	action_b = { 
		name = "ACTIONNAME95300B" 
		command = { type = domestic which = quality value = 1 } 
		command = { type = cash value = 100 } 
		command = { type = land value = 500 } 
		command = { type = naval value = 500 } 
		command = { type = manpower value = 2 } 
	} 
} 

event = {
	id = 200236
	trigger ={
		NOT = { owned = { province = 475 data = TRE } }	
     NOT = { exists = BYZ }
    	}
	random = no
	province = 475
	name = "Гос-ва Трапезунд больше нет"
	desc = "После потери Трапезундом независимости его значение в качестве торгового центра потеряло смысл. Генуэзские и веницианские купцы оставили город..."
	style = 1
	date = { day = 1 month = january year = 1419 }
	offset = 900
	deathdate = { day = 1 month = january year = 1820 }
	
	action_a ={ 
		name = "Это факт..."
		command = { type = removecot which = 475 }   
		command = { type = conversion which = 475 }
                command = { type = conversion which = 474 }

	}	
}