#Mongolia#

event = {
	id = 7845963
	trigger = { 
	NOT = {
        		OR = {
			control = { province = 648 data = -1 }
			control = { province = 650 data = -1 }
			control = { province = 651 data = -1 }
			control = { province = 652 data = -1 }
			control = { province = 654 data = -1 }
			}
        		OR = {
			control = { province = 1564 data = -1 }
			control = { province = 1608 data = -1 }
			control = { province = 1820 data = -1 }
			control = { province = 1822 data = -1 }
			}
        		OR = {
			control = { province = 1397 data = -1 }
			control = { province = 1558 data = -1 }
			control = { province = 1560 data = -1 }
			control = { province = 1561 data = -1 }
			control = { province = 1562 data = -1 }
			}
		}
		OR = {
		event = 7845962
                event = 7845967
                }
         }
	random = no
	country = U34
	name = "Hongwu Emperor"
	desc = "Between 1356 and 1367, Zhu began a series of campaigns seeking to defeat his opponents in the Red Turbans. At first, he nominally supported Han Liner to stablize his northern frontier. Then he defeated his rivals Chen Youliang, Zhang Shicheng and Fang Guozhen one by one. After rising to dominance, he drowned Han Liner. Calling for a racial revolution to overthrow the Mongols and restore the Han Chinese, Zhu gained popular support."
	style = 5
	date = { day = 1 month = january year = 1368 }
      	offset = 30
	deathdate = { day = 1 month = january year = 1380 }

	action_a = {
		name = "Ok"
                command = { type = independence which = CHI }
                command = { type = trigger which = 7845964 } #Ming Dynasty#
	}
}

event = {
	id = 7845965
	random = no
	country = U34
	name = "Ming Dynasty"
	desc = "Between 1356 and 1367, Zhu began a series of campaigns seeking to defeat his opponents in the Red Turbans. At first, he nominally supported Han Liner to stablize his northern frontier. Then he defeated his rivals Chen Youliang, Zhang Shicheng and Fang Guozhen one by one. After rising to dominance, he drowned Han Liner. Calling for a racial revolution to overthrow the Mongols and restore the Han Chinese, Zhu gained popular support."
	style = 5

	action_a = {
		name = "Ok"
		command = { type = secedeprovince which = CHI value = 646 }
		command = { type = secedeprovince which = CHI value = 647 }
		command = { type = secedeprovince which = CHI value = 649 }
		command = { type = secedeprovince which = CHI value = 650 }
		command = { type = secedeprovince which = CHI value = 651 }
		command = { type = secedeprovince which = CHI value = 652 }
		command = { type = secedeprovince which = CHI value = 653 }
		command = { type = secedeprovince which = CHI value = 654 }
		command = { type = secedeprovince which = CHI value = 655 }
		command = { type = secedeprovince which = CHI value = 656 }
		command = { type = secedeprovince which = CHI value = 657 }
		command = { type = secedeprovince which = CHI value = 658 }
		command = { type = secedeprovince which = CHI value = 659 }
		command = { type = secedeprovince which = CHI value = 660 }
		command = { type = secedeprovince which = CHI value = 661 }
		command = { type = secedeprovince which = CHI value = 1397 }
		command = { type = secedeprovince which = CHI value = 1446 }
		command = { type = secedeprovince which = CHI value = 1447 }
		command = { type = secedeprovince which = CHI value = 1448 }
		command = { type = secedeprovince which = CHI value = 1449 }
		command = { type = secedeprovince which = CHI value = 1455 }
		command = { type = secedeprovince which = CHI value = 1553 }
		command = { type = secedeprovince which = CHI value = 1554 }
		command = { type = secedeprovince which = CHI value = 1555 }
		command = { type = secedeprovince which = CHI value = 1556 }
		command = { type = secedeprovince which = CHI value = 1557 }
		command = { type = secedeprovince which = CHI value = 1558 }
		command = { type = secedeprovince which = CHI value = 1559 }
		command = { type = secedeprovince which = CHI value = 1560 }
		command = { type = secedeprovince which = CHI value = 1561 }
		command = { type = secedeprovince which = CHI value = 1562 }
		command = { type = secedeprovince which = CHI value = 1563 }
		command = { type = secedeprovince which = CHI value = 1564 }
		command = { type = secedeprovince which = CHI value = 1565 }
		command = { type = secedeprovince which = CHI value = 1566 }
		command = { type = secedeprovince which = CHI value = 1567 }
		command = { type = secedeprovince which = CHI value = 1807 }
		command = { type = secedeprovince which = CHI value = 1808 }
		command = { type = secedeprovince which = CHI value = 1817 }
		command = { type = secedeprovince which = CHI value = 1818 }
		command = { type = secedeprovince which = CHI value = 1820 }
		command = { type = secedeprovince which = CHI value = 1821 }
		command = { type = secedeprovince which = CHI value = 2005 }
	}
}