###########################
###   Khorasan Events   ###
#####    by Crook     #####
###########################
#####EEP RUS EXPANSION#####
####     by Dmitriy   #####
###########################

event = {
      id = 62000
      random = no
	country = U01
	trigger = { exists = UZB
		exists = MOG
		exists = PER }
      name = "EVENTNAME62000"
      desc = "EVENTHIST62000"
      style = 2
      date = { day = 1 month = january year = 1507 }
      offset = 1000
      deathdate = { day = 26 month = june year = 1539 }

      action_a = {
            name = "ACTIONNAME62000A"
		command = { type = secedeprovince which = UZB value = 523 }
		command = { type = secedeprovince which = UZB value = 524 }
		command = { type = secedeprovince which = UZB value = 522 }
		command = { type = secedeprovince which = UZB value = 1532 }
		command = { type = secedeprovince which = UZB value = 1533 }
		command = { type = secedeprovince which = UZB value = 1594 }
		command = { type = trigger which = 62001 }
		}
      action_b = {
            name = "ACTIONNAME62000B"
		command = { type = secedeprovince which = UZB value = 523 }
		command = { type = secedeprovince which = UZB value = 524 }
		command = { type = secedeprovince which = UZB value = 522 }
		command = { type = secedeprovince which = UZB value = 1532 }
		command = { type = secedeprovince which = UZB value = 1533 }
		command = { type = secedeprovince which = UZB value = 1594 }
		command = { type = trigger which = 62002 }
		}
      action_c = {
            name = "ACTIONNAME62000C"
		command = { type = trigger which = 62003 }
		}
      action_d = {
            name = "ACTIONNAME62000D"
		command = { type = stability value = -3 }
		command = { type = cav which = -2 value = 6000 }
		command = { type = treasury value = -50 }
		}
	}

event = {
	id = 62008
	random = no
	country = U01
	name = "EVENTNAME62008"
	desc = "EVENTHIST62008"
	style = 4
	trigger = { NOT = { exists = AFG } }

	date = { day = 1 month = january year = 1700 }
	offset = 30
	deathdate = { day = 29 month = december year = 1820 }
	action_a = {
		name = "ACTIONNAME62008A"
		command = { type = country which = AFG }
		command = { type = vp value = 50 }
		command = { type = stability value = 1 }
		command = { type = add_countryculture which = afghani }
		command = { type = remove_countryculture which = turkish }
		command = { type = provinceculture which = 1531 value = afghani }
		}
	action_b = {
		name = "ACTIONNAME62008B"
		command = { type = stability value = -1 }
		command = { type = vp value = -50 }
		command = { type = domestic which = centralization value = -5 }
		command = { type = domestic which = aristocracy value = -2 }
		command = { type = domestic which = quality value = -2 }
		}
	}

event = {
      id = 62009
      random = no
	country = U01
	trigger = { exists = U01 }
      name = "EVENTNAME62009"
      desc = "EVENTHIST62009"
      style = 1
	date = { day = 1 month = january year = 1447 }
	deathdate = { day = 1 month = january year = 1540 }

      action_a = {
            name = "ACTIONNAME62009A"
		command = { type = inf which = -1 value = 10000 }
		command = { type = cav which = -3 value = 10000 }
		command = { type = stability value = 1 }
		}
}

event = { 	
	id = 95768
	random = no
	country = u01
	trigger = { 
		owned = { province = 526 data = -1 }
		owned = { province = 1530 data = -1 }
		owned = { province = 1532 data = -1 }
		owned = { province = 523 data = -1 }
		owned = { province = 524 data = -1 }
		owned = { province = 1528 data = -1 }
		owned = { province = 1531 data = -1 }
		owned = { province = 525 data = -1 }
		owned = { province = 528 data = -1 }
		owned = { province = 527 data = -1 }
		owned = { province = 1529 data = -1 }
		atwar = no
		religion = sunni		
		stability = 3 	
		event = 95765
		}
	name = "EVENTNAME95768" 	
	desc = "EVENTHIST95768" 	
	style = 3  	
	date = { day = 1 month = january year = 1601 } 	
	offset = 30 	
	deathdate = { day = 29 month = december year = 1819 }  	

	action_a = { 		
		name = "ACTIONNAME95768A" 		
		command = { type = stability value = -3 }
		command = { type = revoltrisk which = 120 value = 6 }
		command = { type = DIP which = -4 value = 120 }
		command = { type = ADM which = -5 value = 120 }
		command = { type = MIL which = -2 value = 120 }
		command = { type = desertion which = -2 value = 5000 }
		command = { type = desertion which = -1 value = 10000 }
		command = { type = desertion which = -1 value = 2900 }
		command = { type = population which = 525 value = -3000 }
		command = { type = population which = 528 value = -3000 }
		command = { type = population which = 527 value = -3000 }
		command = { type = population which = 1529 value = -3000 }
		command = { type = domestic which = centralization value = 3 }
		command = { type = domestic which = innovative value = -2 }
		command = { type = domestic which = serfdom value = 2 }
		command = { type = conversion which = -1 }
		command = { type = vp value = 100 }
		command = { type = relation which = TIM value = 100 }
		command = { type = relation which = UZB value = 100 }
		command = { type = relation which = MAM value = -200 } 	
	}
	action_b = {
		name = "ACTIONNAME95768B"
		command = { type = stability value = -5 }
		command = { type = revoltrisk which = 120 value = 4 }
		command = { type = DIP which = -2 value = 120 }
		command = { type = ADM which = -2 value = 120 }
		command = { type = MIL which = 3 value = 120 }
		command = { type = desertion which = -2 value = 5000 }
		command = { type = desertion which = -1 value = 7500 }
		command = { type = population which = 1532 value = -6500 }
		command = { type = population which = -1 value = -4700 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = domestic which = serfdom value = 2 }
		command = { type = religion which = shiite }
		command = { type = provincereligion which = 1532 value = shiite }
		command = { type = relation which = TIM value = -300 }
		command = { type = relation which = UZB value = -300 }
		command = { type = relation which = TUR value = -200 }
		command = { type = relation which = MAM value = 100 }
	}
	action_c = {
		name = "ACTIONNAME95768C"
		command = { type = stability value = -2 }
		command = { type = revoltrisk which = 72 value = 8 }
		command = { type = DIP which = -1 value = 72 }
		command = { type = ADM which = -3 value = 72 }
		command = { type = MIL which = -5 value = 72 }
		command = { type = desertion which = -2 value = 8000 }
		command = { type = desertion which = -1 value = 10000 }
		command = { type = desertion which = -1 value = 10000 }
		command = { type = manpower value = -50 }
		command = { type = heretic which = -1 }
		command = { type = heretic which = -1 }
		command = { type = population which = -2 value = -2500 }
		command = { type = domestic which = centralization value = -5 }
		command = { type = domestic which = innovative value = 1 }
		command = { type = domestic which = serfdom value = -2 }
		command = { type = add_countryculture which = uzbehk }
		command = { type = vp value = -100 }
		command = { type = relation which = TIM value = -100 }
		command = { type = relation which = UZB value = -50 }
		command = { type = relation which = MAM value = -50 }
	}
}

event = {
	id = 95766
	trigger = {
		owned = { province = 1532 data = -1 }
		control = { province = 1532 data = -1 }
		}
	random = no
	country = U01
	name = "EVENTNAME95766" #Chimera Corrections#
	desc = "EVENTHIST95766"
	style = 2

	date = { day = 1 month = march year = 1577 } #Годы правления Абдул-Шаха Второго#
	offset = 30
	deathdate = { day = 30 month = december year = 1598 }

	action_a = {
		name = "ACTIONNAME95766A"
		command = { type = stability value = -1 }
		command = { type = revolt which = 1532 }
		command = { type = provinceculture which = 1532 value = afghani }
		command = { type = revoltrisk which = 252 value = 4 }
		command = { type = population which = 1532 value = -4500 }
		command = { type = provincetax which = 1532 value = -2 }
		command = { type = vp value = 150 }
		command = { type = domestic which = centralization value = 1 }
	}
	action_b = {
		name = "ACTIONNAME95766B" 
		command = { type = stability value = -3 }
		command = { type = revoltrisk which = 252 value = 1 }
		command = { type = treasury value = -250 }
		command = { type = DIP which = 3 value = 18 }
		command = { type = domestic which = centralization value = -2 }
		command = { type = domestic which = innovative value = 1 }
		command = { type = domestic which = serfdom value = -1 }
		command = { type = desertion which = -1 value = 5000 }
	}
}

###Idea by Crook###
event = {
	id = 95767
	trigger = {
		atwar = no
		religion = sunni
		owned = { province = 1528 data = -1 }
		NOT = { exists = AFG }
	}
	random = no
	country = U01
	name = "EVENTNAME95767"
	desc = "EVENTHIST95767"
	style = 4

	date = { day = 1 month = january year = 1747 }
	offset = 30
	deathdate = { day = 29 month = december year = 1818 }

      action_a = {
            name = "ACTIONNAME95767A"
		command = { type = country which = AFG }
		command = { type = vp value = 150 }
		command = { type = stability value = 1 }
		command = { type = provinceculture which = 1531 value = afghani }
		command = { type = domestic which = centralization value = 1 }
		}
      action_b = {
            name = "ACTIONNAME95767B"
		command = { type = stability value = 6 }
		command = { type = vp value = -50 }
		command = { type = domestic which = aristocracy value = -2 }
		command = { type = domestic which = quality value = -2 }
		}
	}

event = { 	
	id = 95765 	
	trigger = { 		
		owned = { province = 526 data = -1 } 		
		owned = { province = 1530 data = -1 } 		
		owned = { province = 1532 data = -1 } 		
		owned = { province = 523 data = -1 } 		
		owned = { province = 524 data = -1 } 		
		owned = { province = 1528 data = -1 } 		
		owned = { province = 1531 data = -1 } 		
		atwar = no 		
		stability = 3 	
		} 	
	random = no 	
	country = u01 	
	name = "EVENTNAME95765" 	
	desc = "EVENTHIST95765" 	
	style = 3  	
	date = { day = 1 month = january year = 1601 } 	
	offset = 30 	
	deathdate = { day = 29 month = december year = 1819 }  	

	action_a = { 		
		name = "ACTIONNAME95765A" 		
		command = { type = addcore which = 525 } 		
		command = { type = addcore which = 528 } 		
		command = { type = addcore which = 527 } 		
		command = { type = addcore which = 1529 } 		
		command = { type = infra value = 5000 } 		
		command = { type = manpower value = 25 } 		
		command = { type = MIL which = 2 value = 60 } 		
		command = { type = domestic which = centralization value = -1 } 		
		command = { type = relation which = TIM value = -150 } 		
		command = { type = relation which = UZB value = -50 } 		
		command = { type = INF which = -2 value = 8000 } 		
		command = { type = CAV which = -2 value = 2500 } 		
		command = { type = gainbuilding which = -2 value = barrack } 		
		command = { type = revoltrisk which = 60 value = 2 } 	
	} 
}