add_namespace = CKS

# Chiang Appears #
news_event = {
	id = news.6666
	title = news.6666.t
	desc = news.6666.d
	picture = GFX_world_event_RML_chinese_countercoup

	is_triggered_only = yes
	major = yes
	fire_only_once = no
	option = {
		name = news.6666.a
	}
}
news_event = {
	id = news.66667
	title = news.66667.t
	desc = news.66667.d
	picture = GFX_world_event_RML_chinese_countercoup

	is_triggered_only = yes
	major = yes
	fire_only_once = no
	option = {
		name = news.66667.a
	}
}
country_event = {
	id = CKS.1
	title = CKS.1.t
	desc = CKS.1.desc
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = CKS.1.a
		CKS = {
			transfer_state = 593
			change_tag_from = GDP
		}
		news_event = news.6666
		remove_ideas =
		{
		GDP_kmt_nra_rule
		GDP_whampoa_military_academy
		}
	}
	option = {
		name = CKS.1.b
		CKS = {
			transfer_state = 593
		}
	}
}
country_event = {
	id = CKS.2
	title = CKS.2.t
	desc = CKS.2.desc
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = CKS.2.a
		CKS = {
			load_oob = "GDP"
		}
		GDP = {
			leave_faction = yes
		}
		926 = {
			set_demilitarized_zone = yes
			add_core_of = CKS
		}
		593 = {
			add_core_of = CKS
		}
		925 = {
			add_core_of = CKS
		}
		863 = {
			add_core_of = CKS
		}
		592 = {
			add_core_of = CKS
		}
		594 = {
			add_core_of = CKS
		}
		599 = {
			add_core_of = CKS
		}
		836 = {
			add_core_of = CKS
		}
	}
}
country_event = {
	id = CKS.3
	title = CKS.3.t
	desc = CKS.3.desc
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = CKS.3.a
		ai_will_do = {
			factor = 80
		}
		CKS = {
			annex_country = {
				target = GDP
				transfer_troops = yes
			}
			926 = {
			set_demilitarized_zone = no
		}
		}
		
	}
	option = {
		name = CKS.3.b
		ai_will_do = {
			factor = 20
		}
		CKS = {
			create_wargoal = {
				type = take_state_focus
				target = GDP
			}
		}
		
	}
}
country_event = {
	id = CKS.4
	title = CKS.4.t
	desc = CKS.4.desc
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = CKS.4.a
		ai_will_do = {
			factor = 70
		}
		CKS = {
			annex_country = {
				target = ROOT
				transfer_troops = yes
			}
		}
		
	}
	option = {
		name = CKS.4.b
		ai_will_do = {
			factor = 30
		}
		CKS = {
			create_wargoal = {
				type = take_state_focus
				target = ROOT
			}
		}
		
	}
}
country_event = {
	id = CKS.5
	title = CKS.5.t
	desc = CKS.5.desc
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = CKS.5.a
		ai_will_do = {
			factor = 80
		}
		CKS = {
			puppet = {
				target = ROOT
				end_wars = no
			}
		}
		ROOT = {
			add_to_faction = KMT_FACTION_CKS
			set_cosmetic_tag = SZC_KMT_clique
		}
		
	}
	option = {
		name = CKS.5.b
		ai_will_do = {
			factor = 20
		}
		CKS = {
			create_wargoal = {
				type = take_state_focus
				target = ROOT
			}
		}
		
	}
}
country_event = {
	id = CKS.6
	title = CKS.6.t
	desc = CKS.6.desc
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = CKS.6.a
		ai_will_do = {
			factor = 70
		}
		CKS = {
			annex_country = {
				target = ROOT
				transfer_troops = yes
			}
		}
		
	}
	option = {
		name = CKS.6.b
		ai_will_do = {
			factor = 30
		}
		CKS = {
			create_wargoal = {
				type = take_state_focus
				target = ROOT
			}
		}
		
	}
}
country_event = {
	id = CKS.7
	title = CKS.7.t
	desc = CKS.7.desc
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = CKS.7.a
		ai_will_do = {
			factor = 80
		}
		CKS = {
			puppet = {
				target = ROOT
				end_wars = no
			}
		}
		ROOT = {
			add_to_faction = KMT_FACTION_CKS
			set_cosmetic_tag = XSM_KMT_clique
		}
		
	}
	option = {
		name = CKS.7.b
		ai_will_do = {
			factor = 20
		}
		CKS = {
			create_wargoal = {
				type = take_state_focus
				target = ROOT
			}
		}
		
	}
}
country_event = {
	id = CKS.8
	title = CKS.8.t
	desc = CKS.8.desc
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = CKS.8.a
		ai_will_do = {
			factor = 80
		}
		CKS = {
			puppet = {
				target = ROOT
				end_wars = no
			}
		}
		ROOT = {
			add_to_faction = KMT_FACTION_CKS
			set_cosmetic_tag = SIK_KMT_clique
		}
		
	}
	option = {
		name = CKS.8.b
		ai_will_do = {
			factor = 20
		}
		CKS = {
			create_wargoal = {
				type = take_state_focus
				target = ROOT
			}
		}
		
	}
}
country_event = {
	##HONG KONG
	id = CKS.9
	title = CKS.9.t
	desc = CKS.9.desc
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = CKS.9.a
		ai_will_do = {
			factor = 50
		}
		326 = {
			transfer_state_to = CKS
		}
		
	}
	option = {
		name = CKS.9.b
		ai_will_do = {
			factor = 10
		}
		CKS = {
			create_wargoal = {
				type = take_state_focus
				target = ROOT
			}
		}
		
	}
	option = {
		name = CKS.9.c
		ai_will_do = {
			factor = 40
		}
		CKS = {
			country_event = CKS.11
		}
		
	}
}
country_event = {
	##HONG KONG 2
	id = CKS.11
	title = CKS.11.t
	desc = CKS.11.desc
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = CKS.11.a
		ai_will_do = {
			factor = 90
		}
		326 = {
			transfer_state_to = CKS
		}
		CKS = {
			add_timed_idea = { idea = CKS_hong_kong_payments  days = 120 }
		}
		ENG = {
			country_event = CKS.12
			add_timed_idea = { idea = CKS_hong_kong_payments_ENG  days = 120 }
		}
		
	}
	option = {
		name = CKS.11.b
		ai_will_do = {
			factor = 10
		}
		CKS = {
			create_wargoal = {
				type = take_state_focus
				target = ROOT
			}
		}
		
	}
}
country_event = {
	##HONG KONG 3
	id = CKS.12
	title = CKS.12.t
	desc = CKS.12.desc
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = CKS.12.a
		ai_will_do = {
			factor = 100
		}
	}
}
country_event = {
	##MACAU
	id = CKS.10
	title = CKS.10.t
	desc = CKS.10.desc
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = CKS.10.a
		ai_will_do = {
			factor = 50
		}
		729 = {
			transfer_state_to = CKS
		}
		
	}
	option = {
		name = CKS.10.b
		ai_will_do = {
			factor = 10
		}
		CKS = {
			create_wargoal = {
				type = take_state_focus
				target = ROOT
			}
		}
		
	}
	option = {
		name = CKS.10.c
		ai_will_do = {
			factor = 40
		}
		CKS = {
			country_event = CKS.13
		}
		
	}
}
country_event = {
	##MACAU 2
	id = CKS.13
	title = CKS.13.t
	desc = CKS.13.desc
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = CKS.13.a
		ai_will_do = {
			factor = 90
		}
		729 = {
			transfer_state_to = CKS
		}
		CKS = {
			add_timed_idea = { idea = CKS_macau_payments  days = 120 }
		}
		POR = {
			country_event = CKS.14
			add_timed_idea = { idea = CKS_hong_kong_payments_ENG  days = 120 }
		}
		
	}
	option = {
		name = CKS.13.b
		ai_will_do = {
			factor = 10
		}
		CKS = {
			create_wargoal = {
				type = take_state_focus
				target = ROOT
			}
		}
		
	}
}
country_event = {
	##MACAU 3
	id = CKS.14
	title = CKS.14.t
	desc = CKS.14.desc
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = CKS.14.a
		ai_will_do = {
			factor = 100
		}
	}
}
country_event = {
	##JAPAN PEACE
	id = CKS.peace
	title = CKS.peace.t
	desc = CKS.peace.desc
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = CKS.peace.a
		ai_will_do = {
			factor = 100
		}
		if = {
			limit = {
				country_exists = MAN
				CKS = {
					has_war_with = MAN
				}
			} 
			CKS = {
				white_peace = MAN
				annex_country = {
				target = MAN
				transfer_troops = no
				}
			}
		}
		if = {
			limit = {
				country_exists = DAI
				CKS = {
					has_war_with = DAI
				}
			} 
			CKS = {
				white_peace = DAI
				transfer_state = 877
				transfer_state = 728
				transfer_state = 591
				transfer_state = 1118
			}
		}
		if = {
			limit = {
				JAP = {
					owns_state = 745
				}
			} 
			CKS = {
				transfer_state = 745
			}
		}
		if = {
			limit = {
				JAP = {
					owns_state = 524
					owns_state = 1023
				}
			} 
			CKS = {
				transfer_state = 524
				transfer_state = 1023
			}
		}
		if = {
			limit = {
				JAP = {
					owns_state = 608
					owns_state = 609
					owns_state = 837
				}
			} 
			CKS = {
				transfer_state = 608
				transfer_state = 609
				transfer_state = 837
			}
		}
		if = {
			limit = {
				JAP = {
					owns_state = 610
					owns_state = 789
					owns_state = 716
					owns_state = 715
					owns_state = 328
					owns_state = 716
					owns_state = 809
				}
			} 
			CKS = {
				transfer_state = 610
				transfer_state = 789
				transfer_state = 716
				transfer_state = 715
				transfer_state = 328
				transfer_state = 716
				transfer_state = 809
			}
		}
		CKS = {
			white_peace = JAP
		}
		
	}
}
country_event = {
 #ZHELTO_LESS
	id = CKS.15
	title = CKS.15.t
	desc = CKS.15.desc
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = CKS.15.a
		ai_will_do = {
			factor = 70
		}
		CKS = {
			transfer_state = 717
			transfer_state = 881
			transfer_state = 978
			transfer_state = 912
			transfer_state = 714
			transfer_state = 810
			transfer_state = 1202
			transfer_state = 761
		}
		
	}
	option = {
		name = CKS.15.b
		ai_will_do = {
			factor = 30
		}
		CKS = {
			create_wargoal = {
				type = take_state_focus
				target = ROOT
			}
		}
		
	}
}
country_event = {
 #ZHELTO_MORE
	id = CKS.16
	title = CKS.16.t
	desc = CKS.16.desc
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = CKS.16.a
		ai_will_do = {
			factor = 50
		}
		CKS = {
			transfer_state = 717
			transfer_state = 881
			transfer_state = 978
			transfer_state = 912
			transfer_state = 714
			transfer_state = 810
			transfer_state = 1202
			transfer_state = 761
			transfer_state = 408
			transfer_state = 930
			transfer_state = 409
			transfer_state = 560
			transfer_state = 657
			transfer_state = 561
		}
		
	}
	option = {
		name = CKS.16.b
		ai_will_do = {
			factor = 50
		}
		CKS = {
			create_wargoal = {
				type = take_state_focus
				target = ROOT
			}
		}
		
	}
}
country_event = {
 #TURKESTAN_MORE
	id = CKS.17
	title = CKS.17.t
	desc = CKS.17.desc
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = CKS.17.a
		ai_will_do = {
			factor = 70
		}
		CKS = {
			transfer_state = 586
			transfer_state = 842
		}
		
	}
	option = {
		name = CKS.17.b
		ai_will_do = {
			factor = 30
		}
		CKS = {
			create_wargoal = {
				type = take_state_focus
				target = ROOT
			}
		}
		
	}
}
country_event = {
	id = CKS.18
	title = CKS.18.t
	desc = CKS.18.desc
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = CKS.18.a
		ai_will_do = {
			factor = 70
		}
		CKS = {
			annex_country = {
				target = ROOT
				transfer_troops = yes
			}
		}
		
	}
	option = {
		name = CKS.18.b
		ai_will_do = {
			factor = 30
		}
		CKS = {
			create_wargoal = {
				type = take_state_focus
				target = ROOT
			}
		}
		
	}
}
country_event = {
	id = CKS.19
	title = CKS.19.t
	desc = CKS.19.desc
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = CKS.19.a
		ai_will_do = {
			factor = 70
		}
		CKS = {
			annex_country = {
				target = ROOT
				transfer_troops = yes
			}
		}
		
	}
	option = {
		name = CKS.19.b
		ai_will_do = {
			factor = 30
		}
		CKS = {
			create_wargoal = {
				type = take_state_focus
				target = ROOT
			}
		}
		
	}
}