event = {
	id = 7005
	random = no
	country = CHI

	trigger = {
		ai = CHC
		OR = {
			ai = yes
			local_flag = UnitedFrontFlag
		}
		OR = {
			AND = {
				lost_national = { country = CHC value = 40 }
				NOT = { vp = 2 }
			}
			AND = {
				owned = { province = 1271 data = CHC } # Yan'an
				NOT = { control = { province = 1271 data = CHC } } # Yan'an
				lost_IC = { country = CHC value = 50 }
			}
			AND = {
				owned = { province = 1271 data = CHC } # Yan'an
				control = { province = 1271 data = CHC } # Yan'an
				lost_IC = { country = CHC value = 50 }
			}
			alliance = { country = CHC country = CHI }
		}
	}

	name = "EVT_7005_NAME"
	desc = "EVT_7005_DESC"
	style = 0
	picture = "Kmtcav"

	date = { day = 1 month = january year = 1936 }
	offset = 2
	deathdate = { day = 30 month = december year = 1999 }

	action_a = {
		name = "ok"
		command = { type = inherit which = CHC }
	}
}
event = {
	id = 7006
	random = no
	country = CHI

	trigger = {
		ai = CSX
		OR = {
			ai = yes
			local_flag = UnitedFrontFlag
		}
		OR = {
			lost_national = { country = CSX value = 80 }
			lost_VP = { country = CHI value = 70 }
			alliance = { country = CSX country = CHI }
			NOT = { ai = JAP } # human japan
		}
	}

	name = "EVT_7006_NAME"
	desc = "EVT_7006_DESC"
	style = 0
	picture = "Kmtcav"

	date = { day = 1 month = january year = 1936 }
	offset = 2
	deathdate = { day = 30 month = december year = 1999 }

	action_a = {
		name = "ok"
		command = { type = inherit which = CSX }
	}
}
event = {
	id = 7007
	random = no
	country = CHI

	trigger = {
		ai = CYN
		OR = {
			ai = yes
			local_flag = UnitedFrontFlag
		}
		OR = {
			lost_national = { country = CYN value = 50 }
			lost_VP = { country = CYN value = 30 }
			alliance = { country = CYN country = CHI }
			NOT = { ai = JAP } # human japan
		}
	}

	name = "EVT_7007_NAME"
	desc = "EVT_7007_DESC"
	style = 0
	picture = "Kmtcav"

	date = { day = 1 month = january year = 1936 }
	offset = 2
	deathdate = { day = 30 month = december year = 1999 }

	action_a = {
		name = "ok"
		command = { type = inherit which = CYN }
	}
}
event = {
	id = 7008
	random = no
	country = CHI
	
	trigger = {
		ai = CXB
		OR = {
			ai = yes
			local_flag = UnitedFrontFlag
		}
		OR = {
			lost_national = { country = CXB value = 50 }
			lost_VP = { country = CXB value = 30 }
			alliance = { country = CXB country = CHI }
			NOT = { ai = JAP } # human japan
		}
	}

	name = "EVT_7008_NAME"
	desc = "EVT_7008_DESC"
	style = 0
	picture = "Kmtcav"

	date = { day = 1 month = january year = 1936 }
	offset = 2
	deathdate = { day = 30 month = december year = 1999 }

	action_a = {
		name = "ok"
		command = { type = inherit which = CXB }
	}
}
event = {
	id = 7009
	random = no
	country = CHI
	
	trigger = {
		ai = CGX
		OR = {
			ai = yes
			local_flag = UnitedFrontFlag
		}
		OR = {
			lost_national = { country = CGX value = 70 }
			lost_VP = { country = CGX value = 50 }
			lost_VP = { country = CHI value = 70 }
			event = 27009 # China offers Guangxi Clique peace
			alliance = { country = CGX country = CHI }
			NOT = { ai = JAP } # human japan
		}
	}

	name = "EVT_7009_NAME"
	desc = "EVT_7009_DESC"
	style = 0
	picture = "Kmtcav"

	date = { day = 1 month = january year = 1936 }
	offset = 2
	deathdate = { day = 30 month = december year = 1999 }

	action_a = {
		name = "ok"
		command = { type = inherit which = CGX }
	}
}
event = {
	id = 7010
	random = no
	country = CHI

	trigger = {
		ai = SIK
		OR = {
			ai = yes
			local_flag = UnitedFrontFlag
		}
		OR = {
			lost_national = { country = SIK value = 50 }
			lost_VP = { country = SIK value = 30 }
			alliance = { country = SIK country = CHI }
			NOT = { ai = JAP } # human japan
		}
	}

	name = "EVT_7010_NAME"
	desc = "EVT_7010_DESC"
	style = 0
	picture = "Kmtcav"

	date = { day = 1 month = january year = 1936 }
	offset = 2
	deathdate = { day = 30 month = december year = 1999 }

	action_a = {
		name = "ok"
		command = { type = inherit which = SIK }
	}
}

event = { 
	id = 7011
	random = no
	country = CHI

	trigger = {
		ai = yes
		ai = CYN
		event = 90 # xian event
	}

	name = ai_event
	desc = ai_event

	date = { day = 1 month = january year = 1936 }
	offset = 2
	deathdate = { day = 30 month = december year = 1999 }

	action_a = { 
		name = "Together we shall win"
		command = { type = peace which = CYN value = 0 } #Just in case.
		command = { type = alliance which = CYN }
	}
}

event = { 
	id = 7012
	random = no
	country = CHI

	trigger = {
		OR = {
			AND = {
				NOT = { dissent = 15 }
				ai = JAP
			}
			AND = {
				NOT = { dissent = 10 }
				ai = no
			}
			NOT = { dissent = 5 }
		}
		event = 7006 # Shanxi inherited
	}

	name = "EVT_7012_NAME"
	desc = "EVT_7012_DESC"

	date = { day = 1 month = january year = 1936 }
	offset = 2
	deathdate = { day = 30 month = december year = 1999 }

	action_a = { 
		command = { type = dissent value = 5 } 
	}
}

event = { 
	id = 7013
	random = no
	country = CHI

	trigger = {
		OR = {
			event = 7012
			NOT = { event = 7006 }
		}
		OR = {
			AND = {
				NOT = { dissent = 15 }
				ai = JAP
			}
			AND = {
				NOT = { dissent = 10 }
				ai = no
			}
			NOT = { dissent = 5 }
		}
		event = 7007 # Yunnan inherited
	}

	name = "EVT_7013_NAME"
	desc = "EVT_7013_DESC"

	date = { day = 1 month = january year = 1936 }
	offset = 2
	deathdate = { day = 30 month = december year = 1999 }

	action_a = { 
		command = { type = dissent value = 5 } 
	}
}

event = { 
	id = 7014
	random = no
	country = CHI

	trigger = {
		OR = {
			event = 7013
			NOT = { event = 7007 }
		}
		OR = {
			AND = {
				NOT = { dissent = 15 }
				ai = JAP
			}
			AND = {
				NOT = { dissent = 10 }
				ai = no
			}
			NOT = { dissent = 5 }
		}
		event = 7008 # Xibei inherited
	}

	name = "EVT_7014_NAME"
	desc = "EVT_7014_DESC"

	date = { day = 1 month = january year = 1936 }
	offset = 2
	deathdate = { day = 30 month = december year = 1999 }

	action_a = { 
		command = { type = dissent value = 5 } 
	}
}

event = { 
	id = 7015
	random = no
	country = CHI

	trigger = {
		OR = {
			event = 7014
			NOT = { event = 7008 }
		}
		OR = {
			AND = {
				NOT = { dissent = 15 }
				ai = JAP
			}
			AND = {
				NOT = { dissent = 10 }
				ai = no
			}
			NOT = { dissent = 5 }
		}
		event = 7009 # Guangxi inherited
	}

	name = "EVT_7015_NAME"
	desc = "EVT_7015_DESC"

	date = { day = 1 month = january year = 1936 }
	offset = 2
	deathdate = { day = 30 month = december year = 1999 }

	action_a = { 
		command = { type = dissent value = 5 } 
	}
}

####################### CDCP No Leader fix events #################################
event = {
	id = 7020
	random = no
	country = CSX

	#triggered by CHI3814

	name = "Surrender event"
	desc = "We have no choice"

	action_a = {
		name = "Ok"
		command = { type = sleepleader which = 503000 }
		command = { type = sleepleader which = 503001 }
		command = { type = sleepleader which = 503002 }
		command = { type = sleepleader which = 503003 }
		command = { type = sleepleader which = 503004 }
		command = { type = sleepleader which = 503005 }
		command = { type = sleepleader which = 503006 }
		command = { type = sleepleader which = 503007 }
		command = { type = sleepleader which = 503008 }
		command = { type = sleepleader which = 503009 }
		command = { type = sleepleader which = 503010 }
		command = { type = sleepleader which = 503011 }
		command = { type = sleepleader which = 503012 }
		command = { type = sleepleader which = 503013 }
		command = { type = sleepleader which = 503014 }
		command = { type = sleepleader which = 503015 }
		command = { type = sleepleader which = 503016 }
		command = { type = sleepleader which = 503017 }
		command = { type = sleepleader which = 503018 }
		command = { type = sleepleader which = 503019 }
		}
	}

event = {
	id = 7021
	random = no
	country = CGX

	#triggered by CHI3814

	name = "Surrender event"
	desc = "We have no choice"

	action_a = {
		name = "Ok"
		command = { type = sleepleader which = 502000 }
		command = { type = sleepleader which = 502001 }
		command = { type = sleepleader which = 502002 }
		command = { type = sleepleader which = 502003 }
		command = { type = sleepleader which = 502004 }
		command = { type = sleepleader which = 502005 }
		command = { type = sleepleader which = 502006 }
		command = { type = sleepleader which = 502007 }
		command = { type = sleepleader which = 502008 }
		command = { type = sleepleader which = 502009 }
		command = { type = sleepleader which = 502010 }
		command = { type = sleepleader which = 502011 }
		command = { type = sleepleader which = 502012 }
		command = { type = sleepleader which = 502013 }
		command = { type = sleepleader which = 502014 }
		command = { type = sleepleader which = 502015 }
		command = { type = sleepleader which = 502016 }
		command = { type = sleepleader which = 502017 }
		command = { type = sleepleader which = 502018 }
		command = { type = sleepleader which = 502019 }
		command = { type = sleepleader which = 502020 }
		command = { type = sleepleader which = 502021 }
		}
	}

event = {
	id = 7022
	random = no
	country = CXB

	#triggered by CHI3814

	name = "Surrender event"
	desc = "We have no choice"

	action_a = {
		name = "Ok"
		command = { type = sleepleader which = 504000 }
		command = { type = sleepleader which = 504001 }
		command = { type = sleepleader which = 504002 }
		command = { type = sleepleader which = 504003 }
		command = { type = sleepleader which = 504004 }
		command = { type = sleepleader which = 504005 }
		command = { type = sleepleader which = 504006 }
		command = { type = sleepleader which = 504007 }
		command = { type = sleepleader which = 504008 }
		command = { type = sleepleader which = 504009 }
		command = { type = sleepleader which = 504010 }
		command = { type = sleepleader which = 504011 }
		command = { type = sleepleader which = 504012 }
		command = { type = sleepleader which = 504013 }
		command = { type = sleepleader which = 504014 }
		command = { type = sleepleader which = 504015 }
		command = { type = sleepleader which = 504016 }
		command = { type = sleepleader which = 504017 }
		}
	}

event = {
	id = 7023
	random = no
	country = CYN

	#triggered by CHI3814

	name = "Surrender event"
	desc = "We have no choice"

	action_a = {
		name = "Ok"
		command = { type = sleepleader which = 501000 }
		command = { type = sleepleader which = 501001 }
		command = { type = sleepleader which = 501002 }
		command = { type = sleepleader which = 501003 }
		command = { type = sleepleader which = 501004 }
		command = { type = sleepleader which = 501005 }
		command = { type = sleepleader which = 501006 }
		command = { type = sleepleader which = 501007 }
		command = { type = sleepleader which = 501008 }
		command = { type = sleepleader which = 501009 }
		command = { type = sleepleader which = 501010 }
		command = { type = sleepleader which = 501011 }
		command = { type = sleepleader which = 501012 }
		command = { type = sleepleader which = 501013 }
		command = { type = sleepleader which = 501014 }
		command = { type = sleepleader which = 501015 }
		command = { type = sleepleader which = 501016 }
		command = { type = sleepleader which = 501017 }
		command = { type = sleepleader which = 501018 }
		command = { type = sleepleader which = 501019 }
		}
	}

