country_event = {
	
	id = 5801
	trigger = {
		OR = {
			religion_group = buddhist
			religion_group = chinese_religion
			}
		owns = 695
		NOT = { has_country_flag = mandate_of_heaven }
		war = no
		}
	mean_time_to_happen = {
		months = 120
		}
	title = "The Mandate of Heaven"
	desc = "We own Beijing and the Forbidden Palace. We may claim the Mandate of Heaven!"
	
	option = {
		name = "Hurrah!"
		set_country_flag = mandate_of_heaven
		prestige = .1
		badboy = -5
		add_core = 695
		}
	}

country_event = {
	
	id = 5802
	trigger = {
		NOT = { owns = 695 }
		has_country_flag = mandate_of_heaven
		}
	mean_time_to_happen = {
		months = 120
		}
	title = "The Mandate of Heaven"
	desc = "We have lost the right to rule!"
	
	option = {
		name = "Alas!"
		clr_country_flag = mandate_of_heaven
		prestige = -.1
		stability = -3
		remove_core = 695
		695 = { clr_province_flag = ourcapital }
		}
	}

country_event = {
	
	id = 5803
	trigger = {
		NOT = {	695 = { has_province_flag = ourcapital } }
		NOT = { has_country_flag = notpeking }
		has_country_flag = mandate_of_heaven
		war = no
		}
	mean_time_to_happen = {
		months = 60
		}
	title = "The Forbidden City"
	desc = "Do we want to move our capital to Beijing and consolidate the kingdom?"
	
	option = {
		ai_chance = { factor = 100 }
		name = "Yes!"
		capital = 695
		695 = { set_province_flag = ourcapital }
		capital_scope = { base_tax = 1 }
		centralization_decentralization = -1
		}
	option = {
		ai_chance = { factor = 0 }
		name = "Never!"
		capital_scope = { base_tax = 1 }
		set_country_flag = notpeking
		}
	}

country_event = {

	id = 5804
	trigger = {
		war = no
		has_country_flag = mandate_of_heaven
		NOT = { religion = kungfutze }
		NOT = { has_country_flag = noconfucius }
		}
	mean_time_to_happen = {
		months = 120
		}
	title = "Confucianism"
	desc = "Since we have the mandate of heaven, do we want to adopt the system of beliefs which have worked so well for the Empire for centuries?"

	option = {
		name = "Yes!"
		religion = kungfutze
		}
	option = {
		name = "No!"
		stability = 1
		set_country_flag = noconfucius
		}
	}

country_event = {

	id = 5805
	trigger = {
		has_country_flag = mandate_of_heaven
		695 = { has_province_flag = ourcapital }
		NOT = { controls = 695 }
		owns = 726
		}
	mean_time_to_happen = {
		months = 36
		}
	title = "Forbidden City captured!"
	desc = "With the Forbidden City under enemy control, we are forced to move our base of operations elsewhere."
	option = {
		name = "Calamity!"
		capital = 726
		stability = -2
		695 = { clr_province_flag = ourcapital }
		}
	}

country_event = {

	id = 5806
	trigger = {
		has_country_flag = mandate_of_heaven
		695 = { has_province_flag = ourcapital }
		NOT = { controls = 695 }
		owns = 686
		}
	mean_time_to_happen = {
		months = 36
		}
	title = "Forbidden City captured!"
	desc = "With the Forbidden City under enemy control, we are forced to move our base of operations elsewhere."
	option = {
		name = "Calamity!"
		capital = 686
		stability = -2
		695 = { clr_province_flag = ourcapital }
		}
	}

country_event = {

	id = 5807
	trigger = {
		has_country_flag = mandate_of_heaven
		695 = { has_province_flag = ourcapital }
		NOT = { controls = 695 }
		owns = 667
		}
	mean_time_to_happen = {
		months = 36
		}
	title = "Forbidden City captured!"
	desc = "With the Forbidden City under enemy control, we are forced to move our base of operations elsewhere."
	option = {
		name = "Calamity!"
		capital = 667
		stability = -2
		695 = { clr_province_flag = ourcapital }
		}
	}

country_event = {

	id = 5808
	trigger = {
		religion = kungfutze
		NOT { is_core = 695 }
		NOT { owns = 695 }
		NOT { has_country_flag = refusedchina }
		}
	mean_time_to_happen = {
		months = 1
		}
	title = "Strife in the Empire"
	desc = "We do not have the mandate of heaven. Surely we must lay claim to it eventually?"
	option = {
		ai_chance = { factor = 100 }
		name = "We shall!"
		add_core = 695
		set_country_flag = imperialcontender
		}
	option = {
		ai_chance = { factor = 0 }
		name = "No, we should recognize the emperor."
		set_country_flag = refusedchina
		stability = 1
		}
	}

country_event = {
	id = 5809
	trigger = {
		has_country_flag = imperialcontender
		NOT = { has_country_flag = refusedchina }
		NOT = { has_country_flag = mandate_of_heaven }
		}
	mean_time_to_happen = {
		months = 120
		}
	title = "Diplomatic Tensions"
	desc = "Our jockeying for power has attracted the notice of the Emperor."
	option = {
		name = "Emperor for now!"
			any_country = {
				limit = {
					has_country_flag = mandate_of_heaven
				}
			relation = { who = THIS value = -100 }
			}
		}
	}