########################
#### Event by Crook ####
########################

#Crimean Cessation#
event = {

	id = 40063
	random = no
	trigger = { exists = CRI }
	country = CRI
	name = "EVENTNAME40063"
	desc = "EVENTHIST40063"
	style = 1
	date = { day = 1 month = january year = 1435 }
	deathdate = { day = 1 month = january year = 1820 }
	action_a = {
		name = "ACTIONNAME40063A"					
		command = { type = CAV which = -1 value = 15000 }
command = { type = CAV which = -2 value = 15000 }
		command = { type = relation which = STE value = -300 }
		command = { type = relation which = MOS value = -50 }
		command = { type = relation which = NOG value = 50 }
                command = { type = addcore which = 463 } 
                command = { type = addcore which = 466 } 
                command = { type = addcore which = 296 } 
                command = { type = addcore which = 464 } 
                command = { type = addcore which = 462 } 
                command = { type = addcore which = 1460 } 
                command = { type = addcore which = 459 } 
                command = { type = addcore which = 465 }
                command = { type = addcore which = 459 } 
                command = { type = addcore which = 461 }  
command = { type = addcore which = 468 } 
                command = { type = addcore which = 1461 } 
		}
}

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

#Muscovites annex Kazan'#
event = {

	id = 95557
	trigger = { 
			NOT = { exists = KAZ }
			OR = { 
				owned = { province = 446 data = RUS }
				owned = { province = 446 data = MOS }
		        }
	}
	random = no
	country = CRI
	name = "EVENTNAME95557"
	desc = "EVENTHIST95557"
	style = 2
	offset = 30

	action_a = { #Kill the infidels!#
		name = "ACTIONNAME95557A"
		command = { type = casusbelli which = MOS value = 24 }
		command = { type = casusbelli which = RUS value = 24 }
	}
	action_b = { #Let's reconcile with Moscow#
		name = "ACTIONNAME95557B"
		command = { type = relation which = RUS value = 100 }
		command = { type = relation which = MOS value = 100 }
	}
}


#We are righteous successors to Golden Horde#
event = {

	id = 95562
	trigger = {
			NOT = { exists = STE }
			owned = { province = 460 data = -1 } 
			owned = { province = 458 data = -1 } 
			owned = { province = 453 data = -1 } 
			
	}
	random = no
	country = CRI
	name = "EVENTNAME95562"
	desc = "EVENTHIST95562"
	style = 1

	date = { day = 1 month = january year = 1506 }
	offset = 30
	deathdate = { day = 30 month = december year = 1819 }

	action_a = { #We are righteous successors!#
		name = "ACTIONNAME95562A" 
		command = { type = addcore which = 458 } 
		command = { type = addcore which = 460 } 
		command = { type = addcore which = 453 } 
		command = { type = addcore which = 455 } 
		command = { type = addcore which = 1438 } 
command = { type = addcore which = 1459 } 
		command = { type = relation which = RUS value = -100 }
		command = { type = relation which = MOS value = -100 }
		command = { type = relation which = AST value = -150 }
		command = { type = relation which = NOG value = -100 }
		command = { type = relation which = LIT value = -100 }
	}
	action_b = { #We have few problems, don't we?#
		name = "ACTIONNAME95562B" 
		command = { type = relation which = RUS value = 50 }
		command = { type = relation which = MOS value = 50 }
		command = { type = relation which = AST value = 100 }
		command = { type = relation which = NOG value = 100 }
		command = { type = relation which = LIT value = 50 }
	 }
}



#Annexation of Crimea#
event = {

	id = 95565
	trigger = { 
				owned = { province = 464 data = RUS } # Кафа 
				owned = { province = 1435 data = RUS } # Азов 
			NOT = { 
				exists = CRI 
			} 
	} 
	random = no 
	country = TUR 
	name = "EVENTNAME95565" 
	desc = "EVENTHIST95565" 
	style = 4 

	date = { day = 1 month = april year = 1540 } 
	offset = 100 
	deathdate = { day = 1 month = january year = 1820 } 

	action_a = { #The coasts of Black see# 
			name = "ACTIONNAME95565A" 
			command = { type = stability value = 1 } 
			command = { type = casusbelli which = RUS value = 72 } # For 6 years approx. #
			command = { type = war which = RUS }
			command = { type = INF which = -2 value = 30000 }
			command = { type = CAV which = -2 value = 15000 }
			command = { type = ART which = -2 value = 20 }
                        command = { type = warships which = -2 value = 6 }
                        command = { type = transports which = -2 value = 10 }
			command = { type = addcore which = 463 } 
			command = { type = addcore which = 464 } 
			command = { type = addcore which = 465 } 
command = { type = addcore which = 468 } 
			command = { type = population which = -1 value = 2000 } 
			command = { type = population which = -1 value = 2000 } 
			command = { type = population which = -1 value = 2000 } 
			command = { type = population which = -2 value = 2000 } 
	} 
} 

########################
###   EEP RUS EVENTS ###
#    by Panzerkreuzer  # 		
########################

#Turkey or Greater Horde?...#
event = { 

	id = 95587
	random = no 
	country = CRI 
	name = "EVENTNAME95587" 
	desc = "EVENTHIST95587" 
	style = 1 

	date = { day = 1 month = january year = 1475 } #Chimera#
	offset = 100 
	deathdate = { day = 1 month = january year = 1479 } #Chimera#

	action_a = { 
			name = "ACTIONNAME95587A"  
			command = { type = relation which = TUR value = 100 } 
			command = { type = relation which = STE value = -100 } 
			command = { type = casusbelli which = STE value = 240 } 
	} 
	action_b = { 
			name = "ACTIONNAME95587B" 
			command = { type = relation which = TUR value = -100 } 
			command = { type = relation which = STE value = 100 } 
			command = { type = stability value = -2 } 
			command = { type = sleepevent which = 95588 } #Союз Крым. Ханства и Москвы# 
	} 
} 

#Muscovy-Crimean Treaty# 
event = { 

	id = 95588 
	trigger = { 
			war = { country = CRI country = STE } 
	} 
	random = no 
	country = MOS 
	name = "EVENTNAME95588" 
	desc = "EVENTHIST95588" 
	style = 1 

	date = { day = 1 month = january year = 1466 } 
	offset = 50
	deathdate = { day = 1 month = january year = 1480 } 

	action_a = { 
			name = "ACTIONNAME95588A"
			command = { type = relation which = CRI value = 50 } 
			command = { type = relation which = STE value = -100 } 
			command = { type = trigger which = 95589 }
			command = { type = alliance which = CRI } 
			command = { type = war which = STE } 
                        command = { type = treasury value = -100 }
	} 
	action_b = { 
			name = "ACTIONNAME95588B" 
			command = { type = treasury value = -50 } 
	} 
} 


#Muscovy-Crimean Treaty# 
event = { 

	id = 95589
	random = no 
	country = CRI 
	name = "EVENTNAME95588" 
	desc = "EVENTHIST95588" 
	style = 1

	action_a = { 
			name = "ACTIONNAME95589A"
			command = { type = relation which = MOS value = 100 } 
			command = { type = relation which = STE value = -100 } 
			command = { type = diplomats value = 2 } 
                        command = { type = treasury value = 100 }
	} 
	action_b = { 
			name = "ACTIONNAME95589B"
			command = { type = relation which = MOS value = -100 } 
	} 
} 

# Reforms of Sahib I #
event = { 

	id = 95590 
	random = no 
	country = CRI 
	name = "EVENTNAME95590" 
	desc = "EVENTHIST95590" 
	style = 2 

	date = { day = 1 month = january year = 1532 } 
	offset = 60 
	deathdate = { day = 1 month = january year = 1552 } 

	action_a = { 
			name = "ACTIONNAME95590A" 
			command = { type = domestic which = aristocracy value = 1 } 
			command = { type = domestic which = quality value = 1 } 
			command = { type = fortress which = 463 value = 1 } #ров через Перекопский перешеек# 
			command = { type = treasury value = -100 } 
	} 
} 

event = {
	id = 152060

	trigger = {  
		OR = {
			AND = {
				neighbour = RUS
				exists = TUR
			}
			AND = {
				neighbour = TUR
				OR = {
					exists = RUS
					exists = MOS
				}
			}
		}
	}

	random = no
	country = CRI
	name = "Crimean Khanate seeks Ottoman support"
	desc = "While Russia managed to overtake the other Khanates of the European steppe in the 16th century, the Khanate of Crimea lasted well into the 1700s.  A major reason for this longevity was the support of the Ottoman Empire."
	date = { day = 1 month = january year = 1500 }
	offset = 500
	deathdate = { day = 1 month = january year = 1700 }

	action_a ={			
		name = "Offer our vassalage to the Ottomans"
		command = { type = stability value = 1 }
		command = { type = diplomats value = -1 }
		command = { type = relation which = TUR value = 50 }
		command = { type = trigger which = 301050 }
	}
	action_b ={			
		name = "We can stand on our own"
		command = { type = stability value = -1 }
	}
}

event = {
	id = 301050
	random = no
	country = TUR
	name = "Crimean Khanate seeks Ottoman support"
	desc = "While Russia managed to overtake the other Khanates of the European steppe in the 16th century, the Khanate of Crimea lasted well into the 1700s.  A major reason for this longevity was the support of the Ottoman Empire."

	action_a ={			
		name = "We accept them as our allies and vassals"
		command = { type = vassal  which = CRI } 
		command = { type = alliance  which = CRI } 
		command = { type = relation which = CRI value = 50 }
	}
	action_b ={			
		name = "Avoid northern entanglements"
		command = { type = vp value = -50 }
	}
}

#
# AR events
#


event = {

    id = 201289
    trigger = { 

        NOT = {    owned = { province = 463 data = CRI } 
                   owned = { province = 463 data = TUR }
                   owned = { province = 463 data = KAZ }
                   owned = { province = 463 data = AST }
                   owned = { province = 463 data = STE }
                   owned = { province = 463 data = NOG }
owned = { province = 463 data = PER }
                   owned = { province = 463 data = U04 }
                   owned = { province = 463 data = AKK }
                    
            }
		
    }
    random = no
    province = 463
    name = "Завоевание Крыма"
    desc = " После завоевания Крыма сила коварных кочевников была сокрушена навсегда!"
    style = 2
    date = { day = 1 month = january year = 1550 } 
    offset = 3000
    deathdate = { day = 1 month = january year = 1820 } 

    action_a = {
        name = "Набегов больше не будет!!"
command = { type = provincemanpower which = 463 value = -3 }  
command = { type = population which = 463 value = -4000 } 
command = { type = stability value = 1 }
command = { type = losebuilding which = 463 value = barrack }
command = { type = losemanufactory which = 463 }
    }
}

event = {
id = 45313
trigger = {  

owned = { province = 463  data = -1 }

                               
    }
	country = CRI
        random = no
	name = "Крым - центр работорговли"
	desc = "Важнейшим источником дохода крымских ханов были не торговля и налоги, а продажа в рабство пленников взятых во время набегов в украинских, русских и польских землях.По этой причине хищный крым был вечным врагом указанных народов, а уничтожение гнездовья налётчиков важнейшей задачей правителей сопредельных государств!"
        style = 1
	date = { day = 1 month = january year = 1430 }
	offset = 30
	deathdate = { day = 1 month = january year = 1820 }

	action_a ={			
		name = "Соседей в рабство!"
                command = { type = provincetax  which = 463 value = 8 }  
                command = { type = treasury value = 100 }
command = {type = trade value = 1000 }
command = {type = land value = 1000 }
                command = { type = population which = 463 value = 5000 }
 command = { type = CAV which = 463 value = 12000 }
command = {type = stability value = -2 }
command = { type = relation which = MOS value = -150 }
command = { type = relation which = RUS value = -150 }
command = { type = relation which = POL value = -150 }
command = { type = relation which = LIT value = -150 }
command = { type = relation which = UKR value = -150 }
                
	}
        action_b ={	
		name = "Будем жить мирно!"
command = {type = stability value = 3 }
		command = {type = infra value = 1000 }
	        command = { type = relation which = MOS value = 150 }
command = { type = relation which = RUS value = 150 }
command = { type = relation which = POL value = 150 }
command = { type = relation which = LIT value = 150 }
command = { type = relation which = UKR value = 150 }
command = { type = sleepevent which = 45314 }
	}
}

event = {
id = 45314
province = 463
trigger = {  

event = 45313
owned = { province = 463  data = -1 }
NOT = {  owned = { province = 463  data = CRI }  }   
                            
    }

        random = no
	name = "Закат работорговли в Крыму"
	desc = "После потерей Крымом независимости она потеряла прежний статус центра работорговли."
        style = 1
	date = { day = 1 month = january year = 1430 }
	offset = 300
	deathdate = { day = 1 month = january year = 1820 }

	action_a ={			
		name = "Это факт..."
                command = { type = provincetax  which = 463 value = -8 }  
                command = { type = population which = 463 value = -5000 }  
	}

}