###############
#Georgia events
###############
#Civil War
event = {

id = 175004
trigger = { NOT = {  domestic = { type = centralization value = 8 } } }

random = no
country = GEO 
name = "Bagrat VI's uprising"
desc = "In 1458 Bagrat VI, eristav (stateholder) of Imereti rose against Giorgi VIII, marking the end of a centralized Georgian state. "
style = 1
date = { day = 1 month = january year = 1458 } 
offset = 12
deathdate = { day = 1 month = january year = 1463 }

action_a ={ 
name = "OK"
command = { type = stability value = -4 }
command = { type = revolt which = -1 }
command = { type = revolt which = -1 }
command = { type = revolt which = -1 }
command = { type = revoltrisk which = 20 value = 5 }
command = { type = domestic which = CENTRALIZATION value = -1 }
}
}

#The Split
event = {

id = 175005
trigger = { event = 175004 }
random = no
country = GEO 
name = "Battle at Parvani"
desc = "As the civil war between Imereti and Kartli-Kakheti was raging, a noble, Kvarkvark Jakel met king Giorgi VIII's armies in the Battle at Parvani, defeated him, and took him captive. Bagrat VI of Imereti used this opportunity to take Kartli. As the nobles were not interested in any centralization of Georgia, Giorgi soon was released, and was accepted as a leader of Kakheti, but could not even think of trying to regain the throne of a united Georgia. In the meantime, Bagrat, having proclaimed himself as the king of Imereti-Kartli, had barely any supporters in the later, permanently resided in Imereti and beared the title only by word, while in fact, Konstantin II was the true ruler of Kartli."
style = 1
date = { day = 1 month = march year = 1464 }
offset = 12
deathdate = { day = 1 month = january year = 1466 }

action_a ={
name = "Stay loyal to Giorgi"
command = { type = stability value = -2 }
command = { type = domestic which = INNOVATIVE value = -1 }
command = { type = domestic which = CENTRALIZATION value = 2 }
command = { type = removecore which = 473 }
command = { type = removecore which = 469 }
command = { type = country which = U16 }
command = { type = capital which = 1742 } #Kakheti
command = { type = independence which = SEL }
command = { type = secedeprovince which = SEL value = 473 }
command = { type = secedeprovince which = SEL value = 469 }
command = { type = revolt which = 470 }
command = { type = revolt which = 1058 }
command = { type = revolt which = 473 }
command = { type = revolt which = 469 }
command = { type = trigger which = 399000 } #SEL independence event
}
action_b ={	
name = "Bagrat VI. is the new king"
command = { type = stability value = -2 }
command = { type = domestic which = INNOVATIVE value = 1 }
command = { type = domestic which = CENTRALIZATION value = -2 }
command = { type = removecore which = 470 } # KAheti
command = { type = removecore which = 1058 } 
command = { type = country which = SEL }
command = { type = independence which = U16 }
command = { type = secedeprovince which = U16 value = 1743 }
command = { type = secedeprovince which = U16 value = 1058 }
command = { type = revolt which = 470 }
command = { type = revolt which = 1058 }
command = { type = revolt which = 473 }
command = { type = revolt which = 469 }
command = { type = trigger which = 349000 } #U16 independence event
command = { type = sleepevent which = 400000 } #Abkhazian realignment events
command = { type = sleepevent which = 400001 }
}
}

#Split if they don't have Imereti
event = {

id = 175006
trigger = { 
not = { 
event = 175005
owned = { province = 469 data = -1 } #Georgia-Imereti
} }
random = no
country = GEO
name = "Our grip on royal title is waning"
desc = "As one by one, our posessions are being taken by various enemies, our realm is reduced to the small kingdom of Kakheti in eastern Georgia, so that we can't bear the title of georgian kings any longer."
style = 1
date = { day = 1 month = january year = 1460 }
offset = 120
deathdate = { day = 1 month = january year = 1600 } 

action_a = {
name = "So fades our glory"
command = { type = vp value = -20 }
command = { type = removecore which = 473 }
command = { type = removecore which = 469 }
command = { type = country which = U16 }
}
}

event = {
id = 175101
random = no
country = GEO 
name = "First Georgian newspaper"
desc = "Sakartvelos gazeti, 'Gazette of Georgia', was the first newspaper printed in the Georgian language. Printed in 1819 when all three kingdoms of Georgia were finally subjugated by the Russian Empire, it brought the light of the modern industrial world into Georgia. For the coming two centuries the fate of Georgia would be merged with that of Russia, but despite everything, Georgian culture proved itself strong enough to survive in the multicultural empire and stay as it was, an exception in the annals of history."

date = { day = 1 month = january year = 1816} 
offset = 5
deathdate = { day = 1 month = january year = 1819 }
style = 5

action_a ={ 
name = "OK"
command = { type = domestic which = INNOVATIVE value = 1 }
command = { type = infra value = 1000 }
}
} 




########################################
### 		EEP RUS EVENTS	     ###
#by Al Komnin & ABukhar & Panzerkreuzer# 		
########################################

#Georgian Inheritance# 
event = { 

	id = 93300 
	trigger = { 
			exists = RUS 
			exists = TUR 
			exists = PER 
			atwar = no 
			AND = {
				owned = { province = 465 data = RUS } 
				owned = { province = 1438 data = RUS } 
				} 
	} 
	random = no 
	country = GEO 
	name = "EVENTNAME93300" 
	desc = "EVENTHIST93300" 
	style = 5 

	date = { day = 1 month = january year = 1801 } 
	offset = 1460 
	deathdate = { day = 1 month = december year = 1805 } 

	action_a = { #Станем частью российской империи# 
			name = "ACTIONNAME93300A" 
			command = { type = trigger which = 93301 } 
	} 
	action_b = { #Пусть российский император будет нашим князем# 
			name = "ACTIONNAME93300B" 
			command = { type = trigger which = 93302 } 
			command = { type = dynastic which = RUS } 
			command = { type = alliance which = RUS } 
			command = { type = stability value = 3 } 
	} 
	action_c = { #Мы защитим себя сами# 
			name = "ACTIONNAME93300C" 
			command = { type = trigger which = 93303 } 
			command = { type = stability value = -3 } 
			command = { type = revolt which = -1 } 
command = { type = revolt which = -1 } 
command = { type = revolt which = -1 } 
command = { type = revolt which = -1 } 
command = { type = revolt which = -1 } 
	} 
} 

#Georgian Inheritance# 
event = { 

	id = 93301 #Triggered by GEO93300# 
	random = no 
	country = RUS 
	name = "EVENTNAME93300" 
	desc = "EVENTHIST93301" 
	style = 5 

	action_a = { #Присоединим Грузию# 
			name = "ACTIONNAME93301A" 
			command = { type = inherit which = GEO } 
			command = { type = stability value = 2 } 
			command = { type = addcore which = 469 } 
			command = { type = addcore which = 470 } 
command = { type = addcore which = 1058 } 
			command = { type = addcore which = 473 }
			command = { type = DIP which = 3 value = 36 } 
	} 
} 

#Georgian Inheritance# 
event = { 

	id = 93302 #Triggered by GEO93300# 
	random = no 
	country = RUS 
	name = "EVENTNAME93300" 
	desc = "EVENTHIST93301" 
	style = 5 

	action_a = { #Защитим их# 
			name = "ACTIONNAME4002A" 
			command = { type = vassal which = GEO } 
			command = { type = stability value = 1 } 
			command = { type = relation which = GEO value = 50 } 
			command = { type = DIP which = 1 value = 36 } 
	} 
} 

#Georgian Inheritance# 
event = { 

	id = 93303 #Triggered by GEO93300# 
	random = no 
	country = RUS 
	name = "EVENTNAME93300" 
	desc = "EVENTHIST93303" 
	style = 5 

	action_a = { #Пусть воюют# 
			name = "ACTIONNAME93303A" 
			command = { type = relation which = GEO value = -100 } 
			command = { type = DIP which = -3 value = 36 } 
	} 
}