event = {
	id = 115022
	trigger = {
		exists = CHI 
	}
	random = no
	country = U39
	name = " Threaten Ming Empire"
	desc = "Altan Khan used his military strength to threaten Ming Dynasty China, laying siege to Beijing in 1550. The Chinese emperor was forced to grant special trading rights to the khanate which further strengthened it economically"
	style = 2

        date = { day = 1 month = january year = 1550 }
        offset = 30
        deathdate = { day = 1 month = january year = 1560 }
	
	action_a = {
		name = "Trade with Ming"
		command = { type = stability value = 1 }
		command = { type = merchants value = 6 }
		command = { type = trade value = 1000 }
		command = { type = cash value = 300 }
                command = { type = trigger   which = 115023 }
		}
}

event = {
        id = 115023 
        random = no
        country = CHI
        name = "Threaten Ming Empire"
        desc = "Altan Khan used his military strength to threaten Ming Dynasty China, laying siege to Beijing in 1550. The Chinese emperor was forced to grant special trading rights to the khanate which further strengthened it economically."
        action_a ={ 
               name = "grant them special trading rights"
               command = { type = relation which = U39 value = -50 }
	       command = { type = cash value = -300 }
        }
}

event = {
	id = 115026
	trigger = {
		ai = yes 
	}
	random = no
	country = U39
	name = " The Erdene Zuu"
	desc = "In 1585 Abadai Khan of the Khalkha built a Tibetan Buddhist monastery called Erdene Zuu (Erdeni Juu) in old city Karakorum. Various construction materials were taken from the ruin to build this monastery."
	style = 2

        date = { day = 1 month = january year = 1585 }
        offset = 30
        deathdate = { day = 1 month = january year = 1600 }
	
	action_a = {
		name = "Build it!"
		command = { type = stability value = -1 }
                command = { type = gainbuilding   which = -1 value =  cityrights }
                command = { type = infra value = 300 }
		command = { type = cash value = -100 }
		}
        action_b = {
               name = "No, we will not waste money on such useless things!"
		command = { type = stability value = 2 }
		command = { type = vp value = -100 }
        }
}

event = {
	id = 115027
	trigger = {
		exists = U39 
	}
	random = no
	country = MCH
	name = "Incorporate the Mongol tribes"
	desc = "The internal struggle of mongol gave the emerging Manchu the possibility to incorporate the Mongol tribes bit by bit. In 1636, the Chahar of Inner Mongolia were conquered."
	style = 2

        date = { day = 1 month = january year = 1630 }
        offset = 30
        deathdate = { day = 1 month = january year = 1650 }
	
	action_a = {
		name = "Conquer Inner Mongolia"
                command = { type = relation which = U39 value = -200 }
		command = { type = CAV which = -3 value = 5000 }
		command = { type = stability value = 1 }
		command = { type = addcore which = 634 }
		command = { type = addcore which = 607 }
		command = { type = addcore which = 637 }
		command = { type = addcore which = 638 }
		command = { type = addcore which = 1822 }
		command = { type = addcore which = 648 }
		command = { type = addcore which = 645 }
                command = { type = addcore which = 1608 }
                command = { type = addcore which = 1606 }
                command = { type = addcore which = 1559 }
                command = { type = addcore which = 1467 }
                command = { type = addcore which = 633 }
                command = { type = addcore which = 1648 }
		}
        action_b = {
               name = "We aren't strong enough"
               command = { type = stability value = -1 }
	       command = { type = addcore which = 1822 }
	       command = { type = addcore which = 645 }
	       command = { type = addcore which = 648 }
               command = { type = relation which = U39 value = 100 }
	}

}

event = {
        id = 115028
        trigger = {
		exists = CHI 
	}
        random = no
        country = U39
        name = "The Qin help for Khalkha"
        desc = "in 1691, the Khalkha of Outer Mongolia submitted to the Kangxi Emperor in order to escape from the threat of being conquered by the Oirat."
        style = 2

        date = { day = 1 month = january year = 1691 }
        offset = 30
        deathdate = { day = 1 month = january year = 1700 }

        action_a = {
               name = "Make Friends With the Qin empire."
               command = { type = land value = 500 } 
               command = { type = domestic which = quality value = 1 }
               command = { type = INF which = -1 value = 5000 }
	       command = { type = CAV which = -2 value = 5000 }
               command = { type = breakvassal which = PRT }
               command = { type = breakvassal which = TIB }
               command = { type = breakvassal which = CHG }
               command = { type = stability value = 5 }
               command = { type = secedeprovince which = CHI value = 1822 }
               command = { type = secedeprovince which = CHI value = 648 }
               command = { type = secedeprovince which = CHI value = 645 }
               command = { type = secedeprovince which = CHI value = 607 }
               command = { type = secedeprovince which = CHI value = 634 }
               command = { type = secedeprovince which = CHI value = 1559 }
               command = { type = relation which = CHI value = 100 }
               command = { type = relation which = PRT value = -100 }
               command = { type = casusbelli which = PRT value = 20 }
               command = { type = trigger   which = 115029 }
        }
        action_b = {
               name = "No need for Qin help"
               command = { type = stability value = -1 }
               command = { type = breakvassal which = PRT }
               command = { type = breakvassal which = TIB }
               command = { type = breakvassal which = CHG }
               command = { type = relation which = PRT value = -100 }
               command = { type = casusbelli which = PRT value = 20 }
        }
}

event = {
        id = 115029 
        random = no
        country = CHI
        name = "The Qin help for Khalkha"
        desc = "in 1691, the Khalkha of Outer Mongolia submitted to the Kangxi Emperor in order to escape from the threat of being conquered by the Oirat."
        action_a ={ 
               name = "Accept them as vassals."
               command = { type = vassal   which = U39 }
               command = { type = relation which = U39 value = 50 }
        }
}

event = {
	id = 115039
	trigger = {
		NOT = { exists = U39 }
	}
	random = no
	country = CHI
	name = " The beginning of Sayin Noyan Aymagh"
	desc = "In 1725 the Yongzheng Emperor gave Tsering independence from the house of Tьshiyetь Khan. It was the beginning of Sayin Noyan Aymagh."
	style = 2

        date = { day = 1 month = january year = 1725 }
        offset = 30
        deathdate = { day = 1 month = january year = 1760 }
	
	action_a = {
		name = "Outer Mongols Autonomous"
		command = { type = stability value = 1 }
		command = { type = independence  which = U39 }
		}
        action_b = {
               name = "Keep control Outer Mongols"
               command = { type = stability value = -3 }
               command = { type = addcore which = 634 }
		command = { type = addcore which = 607 }
		command = { type = addcore which = 637 }
		command = { type = addcore which = 638 }
		command = { type = addcore which = 1822 }
		command = { type = addcore which = 648 }
		command = { type = addcore which = 645 }
                command = { type = addcore which = 1608 }
                command = { type = addcore which = 1606 }
                command = { type = addcore which = 1559 }
                command = { type = addcore which = 1467 }
                command = { type = addcore which = 633 }
                command = { type = addcore which = 1648 }
        }
}




event = {
	id =  298182
	random = no
	country = U39
	name = "Манчжуры идут"
	desc = ""
	style = 3

	action_a = { 
		name = "пусть бегут,  собаки!"
	        command = { type = stability value = -3 }
		command = { type = secedeprovince which = MCH value = 632 }
                command = { type = secedeprovince which = MCH value = 635 }
                 command = { type = secedeprovince which = MCH value = 636 }
command = { type = secedeprovince which = MCH value = 639 }
                command = { type = secedeprovince which = MCH value = 640 }
                 command = { type = secedeprovince which = MCH value = 643 }
command = { type = secedeprovince which = MCH value = 644 }
                command = { type = secedeprovince which = MCH value = 645 }
command = { type = secedeprovince which = MCH value = 646 }
command = { type = secedeprovince which = MCH value = 647 }
command = { type = secedeprovince which = MCH value = 618 }
command = { type = secedeprovince which = MCH value = 626 }
command = { type = secedeprovince which = MCH value = 627 }
	}
	action_b = { 
		name = "покарать бутновщиков"
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 }
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 }
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 }
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 }
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 }
command = { type = revolt which = -1 }
command = { type = revolt which = -1 }
command = { type = stability value = -6 }
		
	 }
}


event = {
	id = 200231 
	random = no
	country = U37
	name = "Манчжуры идут"
	desc = ""
	style = 3

	action_a = { 
		name = "пусть бегут,  собаки!"
	        command = { type = stability value = -3 }
		command = { type = secedeprovince which = MCH value = 632 }
                command = { type = secedeprovince which = MCH value = 635 }
                 command = { type = secedeprovince which = MCH value = 636 }
command = { type = secedeprovince which = MCH value = 639 }
                command = { type = secedeprovince which = MCH value = 640 }
                 command = { type = secedeprovince which = MCH value = 643 }
command = { type = secedeprovince which = MCH value = 644 }
                command = { type = secedeprovince which = MCH value = 645 }
command = { type = secedeprovince which = MCH value = 646 }
command = { type = secedeprovince which = MCH value = 647 }
command = { type = secedeprovince which = MCH value = 618 }
command = { type = secedeprovince which = MCH value = 626 }
command = { type = secedeprovince which = MCH value = 627 }
	}
	action_b = { 
		name = "покарать бутновщиков"
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 }
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 }
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 }
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 }
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 }
command = { type = revolt which = -1 }
command = { type = revolt which = -1 }
command = { type = stability value = -6 }
		
	 }
}

event = {
	id = 200232 
	random = no
	country = U29
	name = "Манчжуры идут"
	desc = ""
	style = 3

	action_a = { 
		name = "пусть бегут,  собаки!"
	        command = { type = stability value = -3 }
		command = { type = secedeprovince which = MCH value = 632 }
                command = { type = secedeprovince which = MCH value = 635 }
                 command = { type = secedeprovince which = MCH value = 636 }
command = { type = secedeprovince which = MCH value = 639 }
                command = { type = secedeprovince which = MCH value = 640 }
                 command = { type = secedeprovince which = MCH value = 643 }
command = { type = secedeprovince which = MCH value = 644 }
                command = { type = secedeprovince which = MCH value = 645 }
command = { type = secedeprovince which = MCH value = 646 }
command = { type = secedeprovince which = MCH value = 647 }
command = { type = secedeprovince which = MCH value = 618 }
command = { type = secedeprovince which = MCH value = 626 }
command = { type = secedeprovince which = MCH value = 627 }
	}
	action_b = { 
		name = "покарать бутновщиков"
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 }
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 }
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 }
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 }
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 }
command = { type = revolt which = -1 }
command = { type = revolt which = -1 }
command = { type = stability value = -6 }
		
	 }
}

event = {
	id = 200233 
	random = no
	country = HAM
	name = "Манчжуры идут"
	desc = ""
	style = 3

	action_a = { 
		name = "пусть бегут,  собаки!"
	        command = { type = stability value = -3 }
		command = { type = secedeprovince which = MCH value = 632 }
                command = { type = secedeprovince which = MCH value = 635 }
                 command = { type = secedeprovince which = MCH value = 636 }
command = { type = secedeprovince which = MCH value = 639 }
                command = { type = secedeprovince which = MCH value = 640 }
                 command = { type = secedeprovince which = MCH value = 643 }
command = { type = secedeprovince which = MCH value = 644 }
                command = { type = secedeprovince which = MCH value = 645 }
command = { type = secedeprovince which = MCH value = 646 }
command = { type = secedeprovince which = MCH value = 647 }
command = { type = secedeprovince which = MCH value = 618 }
command = { type = secedeprovince which = MCH value = 626 }
command = { type = secedeprovince which = MCH value = 627 }
	}
	action_b = { 
		name = "покарать бутновщиков"
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 }
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 }
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 }
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 }
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 }
command = { type = revolt which = -1 }
command = { type = revolt which = -1 }
command = { type = stability value = -6 }
		
	 }
}