country_event = {

	id = 9000200

	trigger = {
		NOT = { exists = LAT }
		NOT = { has_country_flag = latinempire_nation_declined }
		OR = {
		tag = ath
		tag = kni
		tag = cor
		tag = nax
		# any others? Italian and french minors maybe.
		# or make a second event for factions with deus vult.
		# you will have to be a power to take this from the ottomans
		# so maybe I should create an event to move ottoman capital when they are under distress
		}
		
		owns = 151			#thrace
		war = no
	}
	
	mean_time_to_happen = {
	
		months = 200
		modifier = {
			factor = 0.5
			idea = deus_vult
		}
		modifier = {
			factor = 0.9
			NOT = {	centralization_decentralization = -1 }
		}
		modifier = {
			factor = 0.9
			NOT = {	centralization_decentralization = -2 }
		}
		modifier = {
			factor = 0.9
			NOT = {	centralization_decentralization = -3 }
		}
		modifier = {
			factor = 1.1
			centralization_decentralization = 2
		}
		modifier = {
			factor = 1.1
			centralization_decentralization = 3
		}
		modifier = {
			factor = 1.1
			centralization_decentralization = 4
		}		
		modifier = {
			factor = 0.8
			idea = bureaucracy
		}
	}
	
	title = "The Latin Empire"
	desc = "We have finally captured Constantinople. Should we try to build an empire around this city?"
	
	option = {
		name = "Let us create a Latin Empire."
		ai_chance = { factor = 75 }
		LAT = {
			add_core = 151
		}			
		capital = 151
		centralization_decentralization = -2
		merchants = 1
		random_owned = {
			base_tax = 1
		}
		prestige = 0.05
		government = byzantine_empire
		#primary_culture = greek
		change_tag = LAT
		set_country_flag = constantinople_capital
		set_country_flag = greek_nation_declined
		
		
	}

	option = {
		name = "This is unrealistic."
		ai_chance = { factor = 25 }
		set_country_flag = latinempire_nation_declined
		random_owned = {
			base_tax = -1
		}
	}
}
# after converting the population to the proper religion and greeks return the ruling class starts to mingle
# with the greek population and converts to their culture. This changes the primary culture of the empire
# to greek.
country_event = {

	id = 9000201

	trigger = {
		tag = LAT
		capital = 151
		not = { primary_culture = greek }
		OR = {
			capital_scope = { 
						religion = orthodox
						religion = protestant
						religion = reformed
						religion = catholic
					}
		}

		mean_time_to_happen = {

		months = 300
		
		modifier = {
			factor = 0.5
			idea = humanist_tolerance
			}
		}
	}
	title = "Cultural assimilation"
	desc = "Our ruling class has been showing tendencies towards greek culture."

	option = { 
		name = "Our nobles should conform."
		ai_chance = { factor = 100 }
		stability = 1
		#aristocracy_plutocracy = -1  should nobles lose power?
		primary_culture = greek #In ID if your culture = greek the city converts on its own after a while.
		#capital_scope = { Constantinople converting to greek is already convered in ID.
		#			culture = greek
		#			base_tax = 1
		#		}
	}
	option = {
		name = "The nobles must not conform!"
		ai_chance = { factor = 0 }
		stability = -2
		#capital_scope = {
		#			culture = greek
		#			base_tax = 1
		#		}
		}
}

#If latins convert to greek culture they are technically no longer "latin" however only catholics, protestatnts, and reformed,
#can create this empire. They can only turn greek if they first convert constantinople. If the province isn't orthodox the
#ID event to convert your religion to orthodox will not fire as it is your religion.

country_event = {

	id = 9000202

	trigger = {
		NOT = { exists = LAT }
		NOT = { has_country_flag = latinempire_nation_declined }
		
		tag = gre
		not = { religion = orthodox }
		not = { religion = eastern_rite_christian }
		
		# any others? Italian and french minors maybe.
		# or make a second event for factions with deus vult.
		# you will have to be a power to take this from the ottomans
		# so maybe I should create an event to move ottoman capital when they are under distress
		
		
		owns = 151			#thrace
		war = no
	}
	
	mean_time_to_happen = {
	
		months = 200
		modifier = {
			factor = 0.5
			idea = deus_vult
		}
		modifier = {
			factor = 0.9
			NOT = {	centralization_decentralization = -1 }
		}
		modifier = {
			factor = 0.9
			NOT = {	centralization_decentralization = -2 }
		}
		modifier = {
			factor = 0.9
			NOT = {	centralization_decentralization = -3 }
		}
		modifier = {
			factor = 1.1
			centralization_decentralization = 2
		}
		modifier = {
			factor = 1.1
			centralization_decentralization = 3
		}
		modifier = {
			factor = 1.1
			centralization_decentralization = 4
		}		
		modifier = {
			factor = 0.8
			idea = bureaucracy
		}
	}
	
	title = "The Latin Empire"
	desc = "We have finally captured Constantinople. Should we try to build an empire around this city?"
	
	option = {
		name = "Let us create a Latin Empire."
		ai_chance = { factor = 75 }
		LAT = {
			add_core = 151
		}			
		capital = 151
		centralization_decentralization = -2
		merchants = 1
		random_owned = {
			base_tax = 1
		}
		prestige = 0.05
		#primary_culture = greek
		change_tag = LAT
		set_country_flag = constantinople_capital
		set_country_flag = greek_nation_declined
		government = byzantine_empire
		
	}

	option = {
		name = "This is unrealistic."
		ai_chance = { factor = 25 }
		set_country_flag = latinempire_nation_declined
		random_owned = {
			base_tax = -1
		}
	}
}