namespace = HAKKOCOLLAB



character_event = { # Creation of the Reorganized National Government of China
	id = HAKKOCOLLAB.1
	
	hide_window = yes
	
	trigger = {
		has_landed_title = e_china_west_governor
		religion = hakko-ichiu
	}

	
	mean_time_to_happen = {
		days = 1
	}
	
	immediate = {
		if = {
			limit = {
				has_landed_title = e_china_west_governor
			}
			e_china_west_governor = {
				set_name = "e_reorganized_government_china"
				adjective = "e_reorganized_government_china_adj"
				set_coa = e_hakko_china
			}
		}
	}
}

character_event = { # Reverse
	id = HAKKOCOLLAB.2
	
	hide_window = yes
	
	trigger = {
		has_landed_title = e_china_west_governor
		NOR = { 
			religion = hakko-ichiu
			religion_group = communism
			religion_group = capitalist
		}
	}

	
	mean_time_to_happen = {
		days = 1
	}
	
	immediate = {
		if = {
			limit = {
				has_landed_title = e_china_west_governor
			}
			e_china_west_governor = {
				set_name = ""
				adjective = ""
				reset_coa = THIS
			}
		}
	}
}

character_event = { # Creation of the Popular Republic of China
	id = HAKKOCOLLAB.3
	
	hide_window = yes
	
	trigger = {
		has_landed_title = e_china_west_governor
		religion = maoist
	}

	
	mean_time_to_happen = {
		days = 1
	}
	
	immediate = {
		if = {
			limit = {
				has_landed_title = e_china_west_governor
			}
			e_china_west_governor = {
				set_name = "e_popular_china"
				adjective = "e_popular_china_adj"
				set_coa = e_popular_china
			}
		}
	}
}

character_event = { # Creation of the Soviet Republic of China
	id = HAKKOCOLLAB.4
	
	hide_window = yes
	
	trigger = {
		has_landed_title = e_china_west_governor
		OR = {
			religion = bolchevik
			religion = trotskist
		}
	}

	
	mean_time_to_happen = {
		days = 1
	}
	
	immediate = {
		if = {
			limit = {
				has_landed_title = e_china_west_governor
			}
			e_china_west_governor = {
				set_name = "e_chinese_soviet"
				adjective = "e_chinese_soviet_adj"
				set_coa = e_chinese_soviet
			}
		}
	}
}

character_event = { # Creation of the Democratic Republic of China
	id = HAKKOCOLLAB.5
	
	hide_window = yes
	
	trigger = {
		has_landed_title = e_china_west_governor
		OR = {
		religion = ecosocialism
		religion = marxist
		religion = anarchist
		religion = anarcho-syndicalism
		religion = anarcho-mutualism
		religion = anarcho-feminism
		religion = ecoanarchism
		}
	}

	
	mean_time_to_happen = {
		days = 1
	}
	
	immediate = {
		if = {
			limit = {
				has_landed_title = e_china_west_governor
			}
			e_china_west_governor = {
				set_name = "e_democratic_china"
				adjective = "e_democratic_china_adj"
				set_coa = e_democratic_china
			}
		}
	}
}

character_event = { # Creation of the Republic of China
	id = HAKKOCOLLAB.6
	
	hide_window = yes
	
	trigger = {
		has_landed_title = e_china_west_governor
		religion_group = capitalist
	}

	
	mean_time_to_happen = {
		days = 1
	}
	
	immediate = {
		if = {
			limit = {
				has_landed_title = e_china_west_governor
			}
			e_china_west_governor = {
				set_name = "e_capitalist_china"
				adjective = "e_capitalist_china_adj"
				set_coa = e_capitalist_china
			}
		}
	}
}