#########################
#### 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 = 460 data = -1 } #Уфа#
		owned = { province = 453 data = -1 } #Самара#
		owned = { province = 455 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 = 460 } #Уфа#
		command = { type = addcore which = 453 } #Самара#
		command = { type = addcore which = 455 } #Яик#
		command = { type = addcore which = 456 } #Оренбург#
		command = { type = addcore which = 1438 } #Донские Казаки#
		command = { type = addcore which = 457 } #Калмыкия#
		command = { type = addcore which = 465 } 
command = { type = addcore which = 1468 } 
command = { type = addcore which = 1461 } 
		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 }
		
	}
	action_b = { #We have few problems, don't we?#
		name = "ACTIONNAME93258B"
		command = { type = relation which = RUS value = 50 }
		command = { type = relation which = MOS value = 50 }
		command = { type = relation which = CRI value = 100 }
		command = { type = relation which = NOG 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 } 
	} 
} 

#
#
#

event = {

	id = 298181
	trigger = {

           owned = { province = 447 data = -1 } 
	   owned = { province = 452 data = -1 } 
 
        ai = yes
		
      
	}
	random = no
	country = RUS
	name = "Мордва и чуваши принимают русское подданство"
	desc = ""
	style = 1

	date = { day = 1 month = january year = 1546 }
	offset = 100
	deathdate = { day = 30 month = december year = 1548 }

	action_a ={
		name = "ACTIONNAME40064A"
                command = { type = trigger which = 200181 }

	}
}

event = {
	id =  200181
	random = no
	country = KAZ
	name = "Бегство чувашей и марийцев"
	desc = "В 1546 году народы Чувашей и мариецев, населявших правый берег Волги, добровольно присоеденились к России, спасаясь от религиозного, феодального и социального гнета казанских феодалов-мусульман.(AR)"
	style = 3

	action_a = { 
		name = "пусть бегут, неверные собаки!"
	        command = { type = stability value = -3 }
		command = { type = secedeprovince which = RUS value = 1422 }
                command = { type = secedeprovince which = RUS value = 454 }
                 command = { type = secedeprovince which = RUS value = 1459 }
	}
	action_b = { 
		name = "покарать бутновщиков"
command = { type = revolt which = 1422 }
command = { type = revolt which = 454 }
command = { type = revolt which = 1422 }
command = { type = revolt which = 454 }
command = { type = revolt which = 1422 }
command = { type = revolt which = 454 }
command = { type = revolt which = 1422 }
command = { type = revolt which = 454 }
command = { type = revolt which = 1422 }
command = { type = revolt which = 454 }
command = { type = revolt which = 1459 }
command = { type = revolt which = 1459 }
command = { type = stability value = -6 }
		
	 }
}

#
# казань - центр работорговли! Идея и исполнение - Рау А.
#

event = {
id = 200246
trigger = {  

owned = { province = 446  data = -1 }

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

	action_a ={			
		name = "Соседей в рабство!"
                command = { type = provincetax  which = 446 value = 8 }  
                command = { type = treasury value = 100 }
command = {type = trade value = 1000 }
command = {type = land value = 1000 }
                command = { type = population which = 446 value = 5000 }
 command = { type = CAV which = 446 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 = SUZ value = -150 }
command = { type = relation which = RYA value = -150 }
command = { type = relation which = YOR 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 = SUZ value = 150 }
command = { type = relation which = RYA value = 150 }
command = { type = relation which = YOR value = 150 }
command = { type = sleepevent which = 200247 }
	}
}

event = {
id = 200247
province = 446
trigger = {  

event = 200246
owned = { province = 446  data = -1 }
NOT = {  owned = { province = 446  data = KAZ }  }   
                            
    }

        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 = 446 value = -8 }  
                command = { type = population which = 446 value = -5000 }  
	}

}

