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

#Kazan Setup Event#
event = {

	id = 40059
	random = no
	country = KAZ
	name = "EVENTNAME40059"
	desc = "EVENTHIST40059"
	style = 1
	action_a = {
		name = "ACTIONNAME40059A"					
		command = { type = INF which = -2 value = 10000 }
		command = { type = CAV which = -2 value = 10000 }
		command = { type = relation which = STE value = -200 }
		command = { type = relation which = MOS value = -50 }
		command = { type = relation which = SUZ value = -50 }
		command = { type = breakvassal which = STE }
		}
}

#Bulgar ruler of Kazan deposed#
event = {
	id = 40061
	random = no
	country = KAZ
	trigger = { event = 40058 }
	name = "EVENTNAME40061"
	desc = "EVENTHIST40061"
	style = 1
	date = { day = 1 month = january year = 1435 }
	offset = 60
	deathdate = { day = 1 month = january year = 1445 }
	action_a = {
		name = "ACTIONNAME40098A"					
		command = { type = sleepmonarch which = 06855 }
		command = { type = wakemonarch which = 06840 }
		command = { type = wakeleader which = 06861 }
		}
}

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

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

	id = 95561
	trigger = {
		NOT = { exists = STE }
		owned = { province = 458 data = -1 } #Царицын#
		owned = { province = 454 data = -1 } #Уфа#
		owned = { province = 453 data = -1 } #Самара#
		owned = { province = 447 data = -1 } #Симбирск#
	 }
	random = no
	country = KAZ
	name = "EVENTNAME95561"
	desc = "EVENTHIST95561"
	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 = "ACTIONNAME93258A"
		command = { type = addcore which = 458 } #Царицын#
		command = { type = addcore which = 454 } #Уфа#
		command = { type = addcore which = 453 } #Самара#
		command = { type = addcore which = 455 } #Яик#
		command = { type = addcore which = 456 } #Оренбург#
		command = { type = addcore which = 459 } #Донские Казаки#
		command = { type = addcore which = 467 } #Калмыкия#
		command = { type = addcore which = 468 } #Северный Кавказ#
		command = { type = relation which = RUS value = -100 }
		command = { type = relation which = MOS value = -100 }
		command = { type = relation which = CRI value = -100 }
		command = { type = relation which = NOG value = -100 }
		command = { type = relation which = SIB value = -100 }
	}
	action_b = { #We have few problems, don't we?#
		name = "ACTIONNAME93258B"
		command = { type = relation which = RUS value = 100 }
		command = { type = relation which = MOS value = 100 }
		command = { type = relation which = CRI value = 100 }
		command = { type = relation which = NOG value = 100 }
		command = { type = relation which = SIB value = 100 }
	 }
}

##########################
#### Events by Sirius ####
#### EEP RUS Project #####
##########################

#Raids to Moscow and Vladimir# 
event = { 

	id = 95566 
	trigger = { 
			exists = MOS 
 	} 
	random = no 
	country = KAZ 
	name = "EVENTNAME95566" 
	desc = "EVENTHIST95566" 
	style = 1 

	date = { day = 15 month = september year = 1444 } 
	offset = 8 
	deathdate = { day = 15 month = april year = 1445 } 

	action_a = { 
		      name = "ACTIONNAME95566A"                
		      command = { type = INF which = -2 value = 5000 } 
		      command = { type = CAV which = -2 value = 4000 } 
		      command = { type = relation which = STE value = -50 } 
		      command = { type = relation which = MOS value = -100 } 
		      command = { type = casusbelli which = MOS value = 48 } 
		      command = { type = trigger which = 40005 } 
		      command = { type = treasury value = 200 } 
      } 
	action_b = { 
		      name = "ACTIONNAME95566B"               
		      command = { type = relation which = MOS value = 50 } 
		      command = { type = relation which = SUZ value = 25 } 
		      command = { type = sleepevent which = 40005 } 
      } 
} 

#Mahmudek's Reign# 
event = { 

	id = 95567
	trigger = { 
			atwar = no 
	} 
	random = no 
	country = KAZ 
	name = "EVENTNAME95567" 
	desc = "EVENTHIST95567" 
	style = 1 

	date = { day = 1 month = january year = 1450 } 
	offset = 150 
	deathdate = { day = 1 month = january year = 1466 } 

   	action_a = { 
      		name = "ACTIONNAME95567A" 
		      command = { type = stability value = 2 } 
		      command = { type = population which = -2 value = 1000 } 
		      command = { type = merchants value = 5 } 
		      command = { type = treasury value = 100 } 
		      command = { type = trade value = 200 } 
   } 
} 

#Moscow's protectorate over Kazan'# 
event = { 

	id = 95568
	trigger = { 
			exists = RUS 
	} 
	random = no 
	country = KAZ 
	name = "EVENTNAME95568" 
	desc = "EVENTHIST95568" 
	style = 1 
    
	date = { day = 9 month = july year = 1487 } 
	offset = 8 
	deathdate = { day = 23 month = june year = 1505 } #Восстание в Казани# 

	action_a = { 
		      name = "ACTIONNAME95568A" 
		      command = { type = stability value = -2 } 
		      command = { type = revoltrisk which = 60 value = 4 } 
		      command = { type = relation which = RUS value = 100 } 
		      command = { type = relation which = NOG value = -50 } 
		      command = { type = relation which = SIB value = -50 } 
		      command = { type = relation which = STE value = -50 } 
		      command = { type = trigger which = 40018 } 
	} 
} 

#Kazan' riot# 
event = { 
	
	id = 95569
	trigger = { 
			exists = RUS 
	} 
	random = no 
	country = KAZ 
	name = "EVENTNAME95569" 
	desc = "EVENTHIST95569" 
 	style = 2 
    
	date = { day = 24 month = june year = 1505 } 
	offset = 8 
	deathdate = { day = 1 month = march year = 1507 } 

	action_a = { 
		      name = "ACTIONNAME95569A" 
		      command = { type = stability value = -2 } 
		      command = { type = relation which = NOG value = 50 } 
		      command = { type = relation which = SIB value = 50 } 
		      command = { type = relation which = STE value = 50 } 
		      command = { type = relation which = RUS value = -50 } 
	} 
} 

#Crimean expedition to Kazan'# 
event = { 

      id = 95570
      trigger = { 
			exists = RUS 
			exists = CRI 
    	} 
	random = no 
	country = KAZ 
	name = "EVENTNAME95570" 
	desc = "EVENTHIST95570" 
	style = 2 
    
	date = { day = 1 month = march year = 1520 } 
	offset = 30 
	deathdate = { day = 1 month = march year = 1549 } 

	action_a = { 
		      name = "ACTIONNAME95570A"
		      command = { type = stability value = -1 } 
		      command = { type = relation which = CRI value = 100 } 
		      command = { type = relation which = TUR value = 100 } 
		      command = { type = relation which = RUS value = -100 } 
		      command = { type = domestic which = aristocracy value = 1 } 
		      command = { type = dynastic which = CRI } 
		      command = { type = CAV which = -2 value = 10000 } 
		      command = { type = casusbelli which = RUS value = 336 } #28 лет# 
		      command = { type = trigger which = 95571 } #Крымская военная экспедиция в Казань - CRI# 
	} 
} 

#Crimean expedition to Kazan'# 
event = { 

	id = 95571               
	trigger = {
			event = 95570
	}
	random = no 
	country = CRI 
	name = "EVENTNAME95571" 
	desc = "EVENTHIST95570" 
	style = 2
    
	date = { day = 1 month = march year = 1521 } 
	offset = 60 
	deathdate = { day = 1 month = march year = 1531 } 

	action_a = { 
		      name = "ACTIONNAME95571A" 
		      command = { type = relation which = RUS value = -100 } 
		      command = { type = vassal which = KAZ } 
	} 
} 



#Coup d'etat 1531# 
event = { 

	id = 95572 
	trigger = { 
			exists = KAZ 
	          NOT = { 
	            war = { country = KAZ country = RUS } 
		    } 
      } 
 	random = no 
	country = RUS 
	name = "EVENTNAME95572" 
	desc = "EVENTHIST95572" 
	style = 2 
    
	date = { day = 1 month = december year = 1530 } 
	offset = 30 
	deathdate = { day = 1 month = march year = 1532 } 

	action_a = { 
		      name = "ACTIONNAME95572A"  
		      command = { type = treasury value = -100 } 
		      command = { type = trigger which = 95573 } 
	} 
	action_b = { 
		      name = "ACTIONNAME95572B" 
		      command = { type = CAV which = -2 value = 5000 } 
		      command = { type = sleepevent which = 95574 }  
	} 
} 

#Coup d'etat 1531# 
event = { 

	id = 95573    
	trigger = {
			event = 95572
	}           
	random = no 
	country = KAZ 
	name = "EVENTNAME95573" 
	desc = "EVENTHIST95572" 
	style = 2 
    
	action_a = { 
		      name = "ACTIONNAME95573A" 
		      command = { type = sleepmonarch which = 06850 } #Сафа-Гирей# 
		      command = { type = wakemonarch which = 06851 } #Джан-Али# 
		      command = { type = breakvassal  which = CRI } 
		      command = { type = stability value = -3 } 
		      command = { type = revoltrisk which = 24 value = 4 } 
		      command = { type = relation which = RUS value = 200 } 
	} 
} 

#Restoration# 

event = { 
	
	id = 95574                
	random = no 
	country = KAZ 
	name = "EVENTNAME95574" 
	desc = "EVENTHIST95574" 
	style = 2 
    
	date = { day = 25 month = september year = 1534 } 
	offset = 7 

	action_a = { 
		      name = "ACTIONNAME95574A" 
		      command = { type = sleepmonarch which = 06851 } #Джан-Али# 
		      command = { type = wakemonarch which = 06852 } #Сафа-Гирей# 
		      command = { type = stability value = 1 } 
		      command = { type = CAV which = -2 value = 5000 } 
		      command = { type = relation which = RUS value = -200 } 
	} 
} 
