############################
#      Turkey Events       #
############################
add_namespace = CA_Conclusion_Event
add_namespace = central_asia
add_namespace = CA_Speer
add_namespace = CA_Bormann
add_namespace = CA_US
add_namespace = CA_JAP
add_namespace = CA_TK_Events
###########################
#### a) Turkmen Events ####
###########################

#Turkmenistan Regime Change
country_event = {
	id = central_asia.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event central_asia.1" }
	title = central_asia.1.t
	desc = central_asia.1.desc
	picture = GFX_report_event_GER_nazi_moon
	is_triggered_only = yes

	fire_only_once = yes
	option = {
		name = central_asia.1.a
		if = {
			limit = { USA = { has_country_flag = TNO_CA_US_NOT_INTERESTED } }
			random_list = {
				1 = { Turkmenistan_Regime_Change_A1 = yes }
				1 = { Turkmenistan_Regime_Change_A2 = yes }
				1 = { Turkmenistan_Regime_Change_A3 = yes }
			}
			country_event = {
				id = central_asia.20
				days = 827
			}
		}
	}
}


#Kyrgyzstan Regime Change
country_event = {
	id = central_asia.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event central_asia.2" }
	title = central_asia.2.t
	desc = central_asia.2.desc
	picture = GFX_report_event_GER_nazi_moon
	is_triggered_only = yes

	fire_only_once = yes
	option = {
		name = central_asia.2.a
		random_list = {
			1 = { 
				modifier = {
					factor = 0
					has_game_rule = { rule = KYR_PATH option = KYR_PATH_STABILITY }
				}
				Kyrgyzstan_Regime_Change_A1 = yes
			}
			1 = { 
				modifier = {
					factor = 0
					has_game_rule = { rule = KYR_PATH option = KYR_PATH_ISLAMIST }

				}
				Kyrgyzstan_Regime_Change_A2 = yes
			}
		}
	}
}




# Karakalpakstan Regime Change
country_event = {
	id = central_asia.4
	immediate = { log = "[GetDateText]: [Root.GetName]: event central_asia.4" }
	title = central_asia.4.t
	desc = central_asia.4.desc
	picture = GFX_report_event_GER_nazi_moon
	is_triggered_only = yes

	fire_only_once = yes
	option = {
		name = central_asia.4.a
		random_list = {
			1 = {
				modifier = {
					factor = 0
					has_game_rule = { rule = KRK_PATH option = KRK_PATH_STABILITY }
				}
				Karakalpak_Regime_Change_A1 = yes
			}
			1 = {
				modifier = {
					factor = 0
					has_game_rule = { rule = KRK_PATH option = KRK_PATH_QMP }
				}
				set_cosmetic_tag = KRK_United_Socialist
			}
		}
	}
}

country_event = { #Uzbekistan Regime Change
	id = central_asia.5
	immediate = { log = "[GetDateText]: [Root.GetName]: event central_asia.5" }
	title = central_asia.5.t
	desc = central_asia.5.desc
	picture = GFX_report_event_GER_nazi_moon
	is_triggered_only = yes

	fire_only_once = yes
	option = {
		name = central_asia.5.a
		random_list = {
			1 = {
				modifier = {
					factor = 0
					has_game_rule = { rule = UZB_PATH option = UZB_PATH_STABILITY }
				}
				Uzbekistan_Regime_Change_A1 = yes
			}
			1 = {
				modifier = {
					factor = 0
					has_game_rule = { rule = UZB_PATH option = UZB_PATH_DEMOCRATIC }
				}
				#Nothing Happens
			}
		}
		country_event = {
			id = central_asia.6
			days = 60
		}
	}
}


country_event = { #Uzbekistan - Karakalpakstan Unification
	id = central_asia.6
	immediate = { log = "[GetDateText]: [Root.GetName]: event central_asia.6" }
	title = central_asia.6.t
	desc = central_asia.6.desc
	picture = GFX_report_event_GER_nazi_moon
	is_triggered_only = yes

	fire_only_once = yes
	option = {
		name = central_asia.6.a
		KRK = {
			remove_ideas = {
				KRK_wolves_at_the_door
				KRK_young_army
				KRK_uzbek_political_exiles
			}
		}
		if = {
			limit = {
				UZB = {
					has_government = conservatism
				}
				KRK = {
					has_government = liberal_conservatism
				}
			}
			UZB = {
				add_state_core = 750
				add_state_core = 2194
				annex_country = {
					target = KRK
					transfer_troops = yes
				}
				set_country_flag = UZB_Path_Election_Underway
				set_cosmetic_tag = UZB_VictoriousDemocrat
				#country_event = {
				#	id = central_asia.14
				#	days = 400
				#}
				country_event = {
					id = central_asia.21
					days = 300
				}
			}
		}
		else_if = {
			limit = {
				UZB = {
					has_government = communist
				}
				KRK = {
					has_government = socialist
				}
			}
			UZB = {
				add_state_core = 750
				add_state_core = 2194
				annex_country = {
					target = KRK
					transfer_troops = yes
				}
				set_country_flag = UZB_Path_Election_Underway
				set_cosmetic_tag = UZB_VictoriousCommie
				#country_event = {
				#	id = central_asia.14
				#	days = 400
				#}
				country_event = {
					id = central_asia.21
					days = 300
				}
			}
		}
		else = {
			start_border_war = {
				change_state_after_war = no
				attacker = {
					state = 750
					num_provinces = 3
					on_win = central_asia.12
					on_lose = central_asia.13
				}
				defender = {
					state = 585
					num_provinces = 5
				}
			}
			KYR = { transfer_state = 1467 }
			1467 = { add_core_of = KYR }
			1467 = { set_demilitarized_zone = no }
		}
	}
}

country_event = {
	id = central_asia.7
	immediate = {
		log = "[GetDateText]: [Root.GetName]: event central_asia.7"
		random_list = {
			1 = { # Baymirza gets in charge
				modifier = {
					factor = 0
					has_game_rule = { rule = UTL_PATH option = UTL_PATH_KORSIMAT }
				}
				modifier = {
					factor = 0
					has_game_rule = { rule = UTL_PATH option = UTL_PATH_KAYYUM }
				}
				UTL_Regime_Change_A1 = yes
			}
			1 = { # Korsimat gets in charge
				modifier = {
					factor = 0
					has_game_rule = { rule = UTL_PATH option = UTL_PATH_KAYYUM }
				}
				modifier = {
					factor = 0
					has_game_rule = { rule = UTL_PATH option = UTL_PATH_BAYMIRZA }
				}
				UTL_Regime_Change_A2 = yes
				
			}
			1 = { # Kayyum stays in power
				modifier = {
					factor = 0
					has_game_rule = { rule = UTL_PATH option = UTL_PATH_KORSIMAT }
				}
				modifier = {
					factor = 0
					has_game_rule = { rule = UTL_PATH option = UTL_PATH_BAYMIRZA }
				}
			}
		}
		start_border_war = {
			change_state_after_war = no
			attacker = {
				state = 1468
				num_provinces = 2
				on_win = central_asia.8
				on_lose = central_asia.11
			}

			defender = {
				state = 405
				num_provinces = 2
			}
		}
	}
	title = central_asia.7.t
	desc = central_asia.7.desc
	is_triggered_only = yes

	hidden = yes
	option = {
		name = central_asia.7.a
		GER = {
			if = {
				limit = {
					has_country_leader = {
						character = GER_albert_speer
						ruling_only = yes
					}
				}
				country_event = {
					id = CA_Speer.9
				}
			}
		}
	}
}

country_event = {
	id = central_asia.8
	immediate = {
		log = "[GetDateText]: [Root.GetName]: event central_asia.8"
		UTL = {
			add_state_core = 405
			transfer_state = 405
		}
	}
	title = central_asia.8.t
	desc = central_asia.8.desc
	is_triggered_only = yes

	hidden = yes
	option = {
		name = central_asia.8.a
		GER = {
			if = {
				limit = {
					has_country_leader = {
						character = GER_albert_speer
						ruling_only = yes
					}
				}
				if = {
					limit = {
						GER = {
							has_country_flag = TNO_CA_SPEER_WORKING_WITH_KORSIMAT
						}
					}
					country_event = {
						id = CA_Speer.10
						days = 1
					}
				}
				else_if = {
					limit = {
						GER = {
							has_country_flag = TNO_CA_SPEER_WORKING_WITH_BAYMIRZA
						}
					}
					country_event = {
						id = CA_Speer.17
						days = 1
					}
				}
				else_if = {
					limit = {
						GER = {
							has_country_flag = TNO_CA_SPEER_WORKING_WITH_VELLI
						}
					}
					country_event = {
						id = CA_Speer.20
						days = 1
					}
				}
			}
			else_if = {
				limit = {
					has_country_leader = {
						character = GER_martin_bormann
						ruling_only = yes
					}
				}
				GER = {
					if = {
						limit = {
							UTL = {
								has_country_leader = {
									character = UTL_Sher_Muhammad
									ruling_only = yes
								}
							}
						}
						country_event = {
							id = CA_Bormann.9
						}
					}
					else_if = {
						limit = {
							UTL = {
								has_country_leader = {
									character = UTL_Baymirza_Hayit
									ruling_only = yes
								}
							}
						}
						country_event = {
							id = CA_Bormann.10
						}
					}
					if = {
						limit = {
							UTL = {
								has_country_leader = {
									character = UTL_Veli_Kayum_Khan
									ruling_only = yes
								}
							}
						}
						country_event = {
							id = CA_Bormann.11
						}
					}
				}
			}
		}
	}
}

country_event = { #Tajikistan Regime Change
	id = central_asia.9
	immediate = { log = "[GetDateText]: [Root.GetName]: event central_asia.9" }
	title = central_asia.9.t
	desc = central_asia.9.desc
	picture = GFX_report_event_GER_nazi_moon
	is_triggered_only = yes

	fire_only_once = yes
	option = {
		name = central_asia.9.a
		remove_ideas = TAJ_flooded_streets
		random_list = {
			1 = { #Islamist
				modifier = {
					factor = 0
					has_game_rule = { rule = TAJ_PATH option = TAJ_PATH_DESPOTISM }
				}
				modifier = {
					factor = 0
					has_game_rule = { rule = TAJ_PATH option = TAJ_PATH_DEMOCRATIC }
				}
				Tajikistan_Regime_Change_A1 = yes
			}
			1 = { #Junta
				modifier = {
					factor = 0
					has_game_rule = { rule = TAJ_PATH option = TAJ_PATH_DEMOCRATIC }
				}
				modifier = {
					factor = 0
					has_game_rule = { rule = TAJ_PATH option = TAJ_PATH_ULTRA }
				}
				Tajikistan_Regime_Change_A2 = yes
			}
			1 = { #Democratic
				modifier = {
					factor = 0
					has_game_rule = { rule = TAJ_PATH option = TAJ_PATH_ULTRA }
				}
				modifier = {
					factor = 0
					has_game_rule = { rule = TAJ_PATH option = TAJ_PATH_DESPOTISM }
				}
				Tajikistan_Regime_Change_A3 = yes
			}
		}
	}
}

country_event = { #Anti-Agression Pakt
	id = central_asia.10
	immediate = { log = "[GetDateText]: [Root.GetName]: event central_asia.10" }
	title = central_asia.10.t
	desc = central_asia.10.desc
	picture = GFX_report_event_GER_nazi_moon
	is_triggered_only = yes

	fire_only_once = yes

	option = {
		KYR = {
			create_faction_from_template = { name = Kyrgyz_Tajik_Pact icon = GFX_Central_Asian_Solidarity_Alliance_faction template = faction_template_generic }
			add_faction_goal_slot = { category = short_term  value = -10 }
			add_faction_goal_slot = { category = medium_term value = -10 }
			add_faction_goal_slot = { category = long_term   value = -10 }
			add_to_faction = TAJ
			hidden_effect = {
				add_manpower = 200000
				TAJ = {
					add_manpower = 200000
				}
			}
		}
	}
}

country_event = {
	id = central_asia.11
	immediate = {
		log = "[GetDateText]: [Root.GetName]: event central_asia.11"
	}
	title = central_asia1.11.t
	desc = central_asia.11.desc
	is_triggered_only = yes

	hidden = yes
	option = {
		name = central_asia.11.a
		GER = {
			if = {
				limit = {
					has_country_leader = {
						character = GER_albert_speer
						ruling_only = yes
					}
				}
				GER = {
					country_event = {
						id = CA_Speer.15
					}
				}
			}
			#else_if = {
			#	limit = {
			#		has_country_leader = {
			#			character = GER_martin_bormann
			#			ruling_only = yes
			#		}
			#	}
			#	GER = {
			#		country_event = {
			#			id = CA_Bormann.13
			#		}
			#	}
			#}
		}
	}
}

country_event = {
	id = central_asia.12
	immediate = {
		log = "[GetDateText]: [Root.GetName]: event central_asia.12"
		UZB = { drop_cosmetic_tag = yes }
	}
	title = central_asia.12.t
	desc = central_asia.12.desc
	is_triggered_only = yes

	hidden = yes
	option = {
		name = central_asia.12.a
		UZB = {
			add_state_core = 750
			add_state_core = 2194
			annex_country = {
				target = KRK
				transfer_troops = yes
			}
			if = {
				limit = {
					UZB = {
						has_government = communist
					}
				}
				set_cosmetic_tag = UZB_VictoriousCommie
			}
			else_if = {
				limit = {
					UZB = {
						has_government = conservatism
					}
				}
				set_cosmetic_tag = UZB_VictoriousDemocrat
			}
			#country_event = {
			#	id = central_asia.14
			#	days = 400
			#}
		}
	}
}

country_event = {
	id = central_asia.13
	immediate = {
		log = "[GetDateText]: [Root.GetName]: event central_asia.13"
		KRK = { drop_cosmetic_tag = yes }
	}
	title = central_asia.13.t
	desc = central_asia.13.desc
	is_triggered_only = yes

	hidden = yes
	option = {
		name = central_asia.13.a
		KRK = {
			add_state_core = 585
			add_state_core = 405
			annex_country = {
				target = UZB
				transfer_troops = yes
			}
			if = {
				limit = {
					KRK = {
						has_government = socialist
					}
				}
				set_cosmetic_tag = KRK_VictoriousCommie
			}
			else_if = {
				limit = {
					KRK = {
						has_government = liberal_conservatism
					}
				}
				set_cosmetic_tag = KRK_VictoriousDemocrat
			}
			#country_event = {
			#	id = central_asia.17
			#	days = 400
			#}
		}
	}
}

country_event = {
	id = central_asia.14
	immediate = { log = "[GetDateText]: [Root.GetName]: event central_asia.14" }
	title = central_asia.14.t
	desc = central_asia.14.desc
	is_triggered_only = yes

	hidden = yes
	option = {
		name = central_asia.14.a
		UZB = {
			if = {
				limit = {
					UZB = { has_government = communist }
					KYR = { has_government = communist }
				}
				country_event = {
					id = central_asia.16
					days = 200
				}
			}
			else_if = {
				limit = {
					UZB = { has_government = conservatism }
					KYR = { has_government = despotism }
				}
				country_event = {
					id = central_asia.15
					days = 200
				}
			}
			else_if = {
				limit = {
					NOT = {
						KYR = {
							is_in_faction_with = TAJ
						}
					}
				}
				start_border_war = {
					change_state_after_war = no
					attacker = {
						state = 405
						num_provinces = 1
						on_win = central_asia.1400
						on_lose = central_asia.1401
					}
					defender = {
						state = 2195
						num_provinces = 1
					}
				}
			}
			else = {
				#
			}
		}
	}
}

country_event = {
	id = central_asia.1400
	immediate = {
		log = "[GetDateText]: [Root.GetName]: event central_asia.1400"
		UZB = { drop_cosmetic_tag = yes }
	}
	title = central_asia.1400.t
	desc = central_asia.1400.desc
	is_triggered_only = yes

	hidden = yes
	option = {
		name = central_asia.1400.a
		UZB = {
			add_state_core = 1466
			add_state_core = 586
			add_state_core = 2197
			add_state_core = 732
			add_state_core = 2195
			add_state_core = 2196
			1467 = {
				set_demilitarized_zone = no
			}
			annex_country = {
				target = KYR
				transfer_troops = yes
			}
			if = {
				limit = {
					UZB = {
						has_government = communist
					}
				}
				set_cosmetic_tag = UZB_KYRGYZ_ANNEX_COM
			}
			else_if = {
				limit = {
					UZB = {
						has_government = conservatism
					}
				}
				set_cosmetic_tag = UZB_KYRGYZ_ANNEX_DEM
			}
		}
	}
}

country_event = {
	id = central_asia.1401
	immediate = {
		log = "[GetDateText]: [Root.GetName]: event central_asia.1401"
		KYR = { drop_cosmetic_tag = yes }
	}
	title = central_asia.1401.t
	desc = central_asia.1401.desc
	is_triggered_only = yes

	hidden = yes
	option = {
		name = central_asia.1401.a
		KYR = {
			add_state_core = 405
			add_state_core = 585
			add_state_core = 750
			add_state_core = 2194
			1467 = {
				set_demilitarized_zone = no
			}
			annex_country = {
				target = UZB
				transfer_troops = yes
			}
			if = {
				limit = {
					KYR = {
						has_government = communist
					}
				}
				set_cosmetic_tag = KYR_UZBEK_ANNEX_COM
			}
			else_if = {
				limit = {
					KYR = {
						has_government = despotism
					}
				}
				set_cosmetic_tag = KYR_UZBEK_ANNEX_DEM
			}
		}
	}
}

country_event = {
	id = central_asia.15
	immediate = { log = "[GetDateText]: [Root.GetName]: event central_asia.15" }
	title = central_asia.15.t
	desc = central_asia.15.desc
	is_triggered_only = yes

	option = {
		name = central_asia.15.a
		1467 = {
			set_demilitarized_zone = no
		}
		if = {
			limit = {
				KYR = { is_in_faction_with = TAJ }
			}
			KYR = { add_to_faction = UZB }
			UZB = { 
				transfer_state = 1467 
				transfer_state = 2196
				transfer_state = 2195
			}
			TAJ = {
				transfer_state = 1466
			}
		}
		else = {
			random_list = {
				1 = {
					UZB = {
						add_state_core = 1466
						add_state_core = 586
						add_state_core = 732
						add_state_core = 2197
						annex_country = {
							target = KYR
							transfer_troops = yes
						}
						set_cosmetic_tag = UZB_KYRGYZ_ANNEX_DEM
					}
				}
				1 = {
					KYR = {
						add_state_core = 1467
						add_state_core = 405
						add_state_core = 585
						add_state_core = 750
						add_state_core = 2194
						annex_country = {
							target = UZB
							transfer_troops = yes
						}
						set_cosmetic_tag = KYR_UZBEK_ANNEX_DEM
					}
				}
			}
		}
	}
}

country_event = {
	id = central_asia.16
	immediate = { log = "[GetDateText]: [Root.GetName]: event central_asia.16" }
	title = central_asia.16.t
	desc = central_asia.16.desc
	is_triggered_only = yes

	option = {
		name = central_asia.16.a
		1467 = {
			set_demilitarized_zone = no
		}
		if = {
			limit = {
				KYR = { is_in_faction_with = TAJ }
			}
			KYR = { add_to_faction = UZB }
			UZB = { transfer_state = 1467 }
			random_list = {
				1 = {
					UZB = {
						transfer_state = 2195
						transfer_state = 2196
					}
					TAJ = {
						transfer_state = 1466
					}
				}
				1 = { # Nothing happens
				}
			}
		}
		else = {
			random_list = {
				1 = {
					UZB = {
						add_state_core = 1466
						add_state_core = 586
						add_state_core = 732
						add_state_core = 2197
						annex_country = {
							target = KYR
							transfer_troops = yes
						}
						set_cosmetic_tag = UZB_KYRGYZ_ANNEX_COM
					}
				}
				1 = {
					KYR = {
						add_state_core = 1467
						add_state_core = 405
						add_state_core = 585
						add_state_core = 750
						add_state_core = 2194
						annex_country = {
							target = UZB
							transfer_troops = yes
						}
						set_cosmetic_tag = KYR_UZBEK_ANNEX_COM
					}
				}
			}
		}
	}
}

country_event = {
	id = central_asia.17
	immediate = { log = "[GetDateText]: [Root.GetName]: event central_asia.17" }
	title = central_asia.17.t
	desc = central_asia.17.desc
	is_triggered_only = yes

	hidden = yes
	option = {
		name = central_asia.17.a
		KRK = {
			if = {
				limit = {
					KRK = { has_government = socialist }
					KYR = { has_government = communist }
				}
				country_event = {
					id = central_asia.18
				}
			}
			else_if = {
				limit = {
					KRK = { has_government = liberal_conservatism }
					KYR = { has_government = despotism }
				}
				country_event = {
					id = central_asia.19
				}
			}
			else_if = {
				limit = {
					NOT = {
						KYR = {
							is_in_faction_with = TAJ
						}
					}
				}
				start_border_war = {
					change_state_after_war = no
					attacker = {
						state = 405
						num_provinces = 1
						on_win = central_asia.1700
						on_lose = central_asia.1701
					}
					defender = {
						state = 2195
						num_provinces = 1
					}
				}
			}
			else = {
				#
			}
		}
	}
}

country_event = {
	id = central_asia.1700
	immediate = {
		log = "[GetDateText]: [Root.GetName]: event central_asia.1700"
		KRK = { drop_cosmetic_tag = yes }
	}
	title = central_asia.1700.t
	desc = central_asia.1700.desc
	is_triggered_only = yes

	hidden = yes
	option = {
		name = central_asia.1700.a
		KRK = {
			add_state_core = 1466
			add_state_core = 2195
			add_state_core = 2196
			add_state_core = 586
			add_state_core = 732
			add_state_core = 2197
			1467 = {
				set_demilitarized_zone = no
			}
			annex_country = {
				target = KYR
				transfer_troops = yes
			}
			if = {
				limit = {
					KRK = {
						has_government = socialist
					}
				}
				set_cosmetic_tag = KRK_KYRGYZ_ANNEX_COM
			}
			else_if = {
				limit = {
					KRK = {
						has_government = liberal_conservatism
					}
				}
				set_cosmetic_tag = KRK_KYRGYZ_ANNEX_DEM
			}
		}
	}
}

country_event = {
	id = central_asia.1701
	immediate = {
		log = "[GetDateText]: [Root.GetName]: event central_asia.1701"
		KYR = { drop_cosmetic_tag = yes }
	}
	title = central_asia.1701.t
	desc = central_asia.1701.desc
	is_triggered_only = yes

	hidden = yes
	option = {
		name = central_asia.1701.a
		KYR = {
			add_state_core = 405
			add_state_core = 585
			add_state_core = 750
			add_state_core = 2194
			1467 = {
				set_demilitarized_zone = no
			}
			annex_country = {
				target = KRK
				transfer_troops = yes
			}
			if = {
				limit = {
					KYR = {
						has_government = communist
					}
				}
				set_cosmetic_tag = KYR_KARAKALPAK_ANNEX_COM
			}
			else_if = {
				limit = {
					KYR = {
						has_government = despotism
					}
				}
				set_cosmetic_tag = KYR_KARAKALPAK_ANNEX_DEM
			}
		}
	}
}

country_event = {
	id = central_asia.18
	immediate = { log = "[GetDateText]: [Root.GetName]: event central_asia.18" }
	title = central_asia.18.t
	desc = central_asia.18.desc
	is_triggered_only = yes

	option = {
		name = central_asia.18.a
		1467 = {
			set_demilitarized_zone = no
		}
		if = {
			limit = {
				KYR = { is_in_faction_with = TAJ }
			}
			KYR = { add_to_faction = KRK }
			KRK = {
				add_state_core = 1467
				transfer_state = 1467
			}
			random_list = {
				1 = {
					KRK = {
						add_state_core = 2195
						transfer_state = 2195
					}
				}
				1 = { # Nothing happens
				}
			}
		}
		else = {
			random_list = {
				1 = {
					KRK = {
						add_state_core = 1466
						add_state_core = 2195
						add_state_core = 2196
						add_state_core = 2197
						add_state_core = 586
						add_state_core = 732
						annex_country = {
							target = KYR
							transfer_troops = yes
						}
						set_cosmetic_tag = KRK_KYRGYZ_ANNEX_DEM
					}
				}
				1 = {
					KYR = {
						add_state_core = 1467
						add_state_core = 405
						add_state_core = 585
						add_state_core = 750
						add_state_core = 2194
						annex_country = {
							target = KRK
							transfer_troops = yes
						}
						set_cosmetic_tag = KYR_KARAKALPAK_ANNEX_DEM
					}
				}
			}
		}
	}
}

country_event = {
	id = central_asia.19
	immediate = { log = "[GetDateText]: [Root.GetName]: event central_asia.19" }
	title = central_asia.19.t
	desc = central_asia.19.desc
	is_triggered_only = yes

	option = {
		name = central_asia.19.a
		1467 = {
			set_demilitarized_zone = no
		}
		if = {
			limit = {
				KYR = { is_in_faction_with = TAJ }
			}
			KYR = { add_to_faction = KRK }
			KRK = {
				add_state_core = 1467
				transfer_state = 1467
			}
			random_list = {
				1 = {
					KRK = {
						add_state_core = 2195
						transfer_state = 2195
					}
				}
				1 = {
				}
			}
		}
		else = {
			random_list = {
				1 = {
					KRK = {
						add_state_core = 1466
						add_state_core = 586
						add_state_core = 732
						add_state_core = 2195
						add_state_core = 2196
						add_state_core = 2197
						annex_country = {
							target = KYR
							transfer_troops = yes
						}
						set_cosmetic_tag = KRK_KYRGYZ_ANNEX_DEM
					}
				}
				1 = {
					KYR = {
						add_state_core = 1467
						add_state_core = 405
						add_state_core = 585
						add_state_core = 750
						add_state_core = 2194
						annex_country = {
							target = KRK
							transfer_troops = yes
						}
						set_cosmetic_tag = KYR_KARAKALPAK_ANNEX_DEM
					}
				}
			}
		}
	}
}

country_event = { # not-OFN Coup skeleton
	id = central_asia.20
	immediate = { log = "[GetDateText]: [Root.GetName]: event central_asia.20" }
	title = central_asia.20.t
	desc = central_asia.20.desc
	is_triggered_only = yes

	option = {
		name = central_asia.20.a
		random_list = { # Coup
			1 = {
				Turkmenistan_Regime_Change_A4 = yes
			}
			1 = { # Nothing happens

			}
		}
	}
}

country_event = { # Uzbekistan elections
	id = central_asia.21
	immediate = { log = "[GetDateText]: [Root.GetName]: event central_asia.21" }
	title = central_asia.21.t
	desc = central_asia.21.desc
	is_triggered_only = yes

	option = {
		name = central_asia.21.a
		random_list = {
			1 = { # Islamic Marxist
				Uzbekistan_Regime_Change_A2 = yes
				modifier = {
					factor = 0
					has_game_rule = { rule = UZB_ELECTION_PATH option = UZB_ELECTION_PATH_BOLSHEVISM }
				}
			}
			1 = { # Bolshevism
				Uzbekistan_Regime_Change_A3 = yes
				modifier = {
					factor = 0
					has_game_rule = { rule = UZB_ELECTION_PATH option = UZB_ELECTION_PATH_ISLAMIC_MARXIST }
				}
			}
		}
	}
}

###########################
#### a) Bormann Events ####
###########################
country_event = { #RND Receives Reports
	id = CA_Bormann.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Bormann.1" }
	title = CA_Bormann.1.t
	desc = CA_Bormann.1.desc
	picture = GFX_report_event_CA_Generic_Legion

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_Bormann.1.a
		country_event = {
			id = CA_Bormann.2
			days = 52
		}
	}
}

country_event = { #Legion Lives On
	id = CA_Bormann.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Bormann.2" }
	title = CA_Bormann.2.t
	desc = CA_Bormann.2.desc
	picture = GFX_report_event_CA_Generic_Legion_Kurbashi

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_Bormann.2.a
		country_event = {
			id = CA_Bormann.3
			days = 15
		}
	}
}

country_event = { #Veli & RND Meeting
	id = CA_Bormann.3
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Bormann.3" }
	title = CA_Bormann.3.t
	desc = CA_Bormann.3.desc
	picture = GFX_report_event_CA_Generic_Veli_Kayyum

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_Bormann.3.a
		country_event = {
			id = CA_Bormann.4
			days = 5
		}
	}
}

country_event = { #Bormann Choose Your Dog
	id = CA_Bormann.4
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Bormann.4" }
	title = CA_Bormann.4.t
	desc = CA_Bormann.4.desc
	picture = GFX_report_event_CA_Generic_Turkmen_Legion

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Veli
		name = CA_Bormann.4.a
		set_country_flag = TNO_CA_BORMANN_WORKING_WITH_VEYUUM
		custom_effect_tooltip = TNO_GER_Missions_Available
		#random_list = {
		#	1 = {
		#		country_event = {
		#			id = CA_Bormann.5 #Korşirmat#
		#			days = 10
		#		}
		#	}
		#	1 = {
		#		country_event = {
		#			id = CA_Bormann.6 #Baymirza#
		#			days = 10
		#		}
		#	}
		#}
	}
	option = { #Korşirmat
		name = CA_Bormann.4.b
		set_country_flag = TNO_CA_BORMANN_WORKING_WITH_KORSIMAT
		custom_effect_tooltip = TNO_GER_Missions_Available
		#random_list = {
		#	1 = {
		#		country_event = {
		#			id = CA_Bormann.7 #Veli#
		#			days = 10
		#		}
		#	}
		#	1 = {
		#		country_event = {
		#			id = CA_Bormann.6 #Baymirza#
		#			days = 10
		#		}
		#	}
		#}
	}
	option = { #Baymirza
		name = CA_Bormann.4.c
		set_country_flag = TNO_CA_BORMANN_WORKING_WITH_BAYMIRZA
		custom_effect_tooltip = TNO_GER_Missions_Available
		#random_list = {
		#	1 = {
		#		country_event = {
		#			id = CA_Bormann.7 #Veli#
		#			days = 10
		#		}
		#	}
		#	1 = {
		#		country_event = {
		#			id = CA_Bormann.5 #Korşirmat#
		#			days = 10
		#		}
		#	}
		#}
	}
}

country_event = { #Korşirmat fucking dies lmao
	id = CA_Bormann.5
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Bormann.5" }
	title = CA_Bormann.5.t
	desc = CA_Bormann.5.desc
	picture = GFX_report_event_CA_Generic_Korsirmat

	is_triggered_only = yes
	fire_only_once = yes

	option = { ###MAKE KORŞIRMAT REMOVED WITH THIS EVENT###
		name = CA_Bormann.5.a
		set_country_flag = TNO_CA_BORMANN_KORSIMAT_DEAD
		country_event = {
			id = CA_Bormann.8
			days = 12
		}
	}
}

country_event = { #Baymirza dies oh no
	id = CA_Bormann.6
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Bormann.6" }
	title = CA_Bormann.6.t
	desc = CA_Bormann.6.desc
	picture = GFX_report_event_CA_Generic_Baymirza

	is_triggered_only = yes
	fire_only_once = yes

	option = { ###MAKE BAYMIRZA REMOVED WITH THIS EVENT###
		name = CA_Bormann.6.a
		set_country_flag = TNO_CA_BORMANN_BAYMIRZA_DEAD
		country_event = {
			id = CA_Bormann.8
			days = 12
		}
	}
}

country_event = { #Veli goes bye bye
	id = CA_Bormann.7
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Bormann.7" }
	title = CA_Bormann.7.t
	desc = CA_Bormann.7.desc
	picture = GFX_report_event_generic_bloody_bed

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_Bormann.7.a
		set_country_flag = TNO_CA_BORMANN_VEYUUM_DEAD
		country_event = {
			id = CA_Bormann.8
			days = 12
		}
		UTL = {
			effect_tooltip = { kill_country_leader = yes }
			remove_ideas = UTL_Veli_Rides_Again
			UTL_Power_Vacuum = {
				add_country_leader_role = {
					country_leader = {
						desc = "POLITICS_TURKESTAN_LEGION_POWER_VACUUM_DESC"
						ideology = national_socialism_subtype
						expire = "1999.1.1"
						traits = { }
						id = -1
					}
				}
			}
		}
	}
}

country_event = { #Legion attack Samarqand
	id = CA_Bormann.8
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Bormann.8" }
	title = CA_Bormann.8.t
	desc = CA_Bormann.8.desc
	picture = GFX_report_event_CA_Generic_Bandits

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_Bormann.8.a
		country_event = {
			id = central_asia.7
			days = 12
		}
	}
}

country_event = { #Victory - Korshirmat
	id = CA_Bormann.9
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Bormann.9" }
	title = CA_Bormann.9.t
	desc = CA_Bormann.9.desc
	picture = GFX_report_event_CA_Generic_Bandits_Victorious

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_Bormann.9.a
		add_political_power = 50
		UTL = {
			set_politics = {
				ruling_party = despotism
			}
			set_popularities = {
				communist = 0
				ultranationalism = 5
				socialist = 0
				progressivism = 0
				liberalism = 0
				conservatism = 0
				paternalism = 10
				despotism = 65
				fascism = 5
				national_socialism = 10

			}
			effect_tooltip = { kill_country_leader = yes }
			remove_ideas = UTL_Veli_Rides_Again
			UTL_Sher_Muhammad = {
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						desc = "POLITICS_SHER_MUHAMMAD_DESC"
						ideology = despotism_personalistic_dictatorship_subtype
						expire = "1999.1.1"
						traits = { }
						id = -1
					}
				}
			}
		}
		#country_event = {
		#	id = central_asia.16
		#	days = 12
		#}
	}
}

country_event = { #Victory - Baymirza
	id = CA_Bormann.10
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Bormann.10" }
	title = CA_Bormann.10.t
	desc = CA_Bormann.10.desc
	picture = GFX_report_event_CA_Generic_Bandits_Victorious

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_Bormann.10.a
		add_political_power = 50
		UTL = {
			set_politics = {
				ruling_party = fascism
			}
			set_popularities = {
				communist = 0
				ultranationalism = 5
				socialist = 0
				progressivism = 0
				liberalism = 0
				conservatism = 0
				paternalism = 10
				despotism = 5
				fascism = 45
				national_socialism = 30

			}
			effect_tooltip = { kill_country_leader = yes }
			remove_ideas = UTL_Veli_Rides_Again
			promote_character = UTL_Baymirza_Hayit
		}
		#country_event = {
		#	id = central_asia.16
		#	days = 12
		#}
	}
}

country_event = { #Victory - Veli
	id = CA_Bormann.11
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Bormann.11" }
	title = CA_Bormann.11.t
	desc = CA_Bormann.11.desc
	picture = GFX_report_event_CA_Generic_Celebration

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_Bormann.11.a
		add_political_power = 50
		country_event = {
			id = central_asia.12
			days = 5
		}
	}
}

country_event = { #Veli post Red Wedding
	id = CA_Bormann.12
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Bormann.12" }
	title = CA_Bormann.12.t
	desc = CA_Bormann.12.desc
	picture = GFX_report_event_CA_Generic_Veli_Kayyum

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_Bormann.12.a
		UTL = {
			set_popularities = {
				communist = 0
				ultranationalism = 2
				socialist = 0
				progressivism = 0
				liberalism = 0
				conservatism = 0
				paternalism = 2
				despotism = 3
				fascism = 3
				national_socialism = 90

			}
		}
		#country_event = {
		#	id = central_asia.16
		#	days = 5
		#}
	}
}

country_event = { #Offensive Fails
	id = CA_Bormann.13
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Bormann.13" }
	title = CA_Bormann.13.t
	desc = CA_Bormann.13.desc
	picture = GFX_report_event_CA_Generic_Bandits

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_Bormann.13.a
		country_event = { ##KILL
			id = central_asia.14
			days = 5
		}
	}
	option = {
		name = CA_Bormann.13.b
		country_event = { ##Spare
			id = central_asia.15
			days = 5
		}
	}
}

country_event = { #Kill
	id = CA_Bormann.14
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Bormann.14" }
	title = CA_Bormann.14.t
	desc = CA_Bormann.14.desc
	picture = GFX_report_event_CA_Generic_Legion

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_Bormann.14.a
		UTL = {
			set_politics = {
				ruling_party = despotism
			}
			set_party_name = {
				ideology = despotism
				long_name = UTL_despotism_occupation_party_long
				name = UTL_despotism_occupation_party
			}
			set_popularities = {
				communist = 0
				ultranationalism = 15
				socialist = 0
				progressivism = 0
				liberalism = 0
				conservatism = 0
				paternalism = 0
				despotism = 20
				fascism = 35
				national_socialism = 30

			}

			effect_tooltip = { kill_country_leader = yes }
			UTL_Ruzi_Nazar = {
				add_country_leader_role = {
					country_leader = {
						desc = "POLITICS_RUZI_NAZAR_DESC"
						ideology = despotism_military_junta_subtype
						expire = "1999.1.1"
						traits = { }
						id = -1
					}
				}
			}
		}
		country_event = {
			id = central_asia.16
			days = 5
		}
	}
}

country_event = { #Spare
	id = CA_Bormann.15
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Bormann.15" }
	title = CA_Bormann.15.t
	desc = CA_Bormann.15.desc
	picture = GFX_report_event_CA_Generic_Legion

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_Bormann.15.a
		country_event = {
			id = central_asia.16
			days = 5
		}
	}
}

country_event = { #Kenesh Start
	id = CA_Bormann.16
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Bormann.16" }
	title = CA_Bormann.16.t
	desc = CA_Bormann.16.desc
	picture = GFX_report_event_CA_Generic_Legion_2

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_Bormann.16.a
	}
}

####################################################################
# UNITED STATES OF AMERICA - CENTRAL ASIAN BUREAU OF INVESTIGATION #
####################################################################
#ADD NIL'S CA_US.1 EVENT, NO LOC AT THE TIME BEING (27.07.2021) DEEPLY CONCERNED !
#1966 - Poda
country_event = {
	id = CA_US.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_US.1" }
	title = CA_US.1.t
	desc = CA_US.1.desc
	picture = GFX_report_event_CA_Generic_Poda
	is_triggered_only = yes
	hidden = yes ## simple way to do shit without fully skeletonizing

	fire_only_once = yes
	option = {
		name = CA_US.1.a
		hidden_effect = {
			country_event = {
				id = CA_US.2
				days = 365
			}
		}
	}
	option = {
		name = CA_US.2.b ###Skip to election results
		country_event = {
			id = CA_US.5
			days = 440
		}
	}
}
country_event = {
	id = CA_US.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_US.2" }
	title = CA_US.2.t
	desc = CA_US.2.desc
	picture = GFX_report_event_CA_Generic_Poda
	is_triggered_only = yes
	hidden = yes ## simple way to do shit without fully skeletonizing

	fire_only_once = yes
	option = {
		name = CA_US.2.a
		hidden_effect = {
			country_event = {
				id = CA_US.3
				days = 5
			}
		}
	}
	option = {
		name = CA_US.2.b ###Skip to election results
		country_event = {
			id = CA_US.5
			days = 10
		}
	}
}
country_event = { #Election Interference
	id = CA_US.3
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_US.3" }
	title = CA_US.3.t
	desc = CA_US.3.desc
	picture = GFX_report_event_CA_Generic_Teke_Tribes
	is_triggered_only = yes
	hidden = yes ## simple way to do shit without fully skeletonizing

	fire_only_once = yes
	option = {
		name = CA_US.3.a #Poda
		set_country_flag = SUPPORTED_PODA
		random_list = {
			1 = {
				country_event = {
					id = CA_US.4
					days = 5
				}
			}
			1 = {
				country_event = {
					id = CA_US.5
					days = 5
				}
			}
		}
	}
	option = {
		name = CA_US.3.b #Babakhan
		set_country_flag = SUPPORTED_BABAKHAN
		random_list = {
			1 = {
				country_event = {
					id = CA_US.4
					days = 5
				}
			}
			1 = {
				country_event = {
					id = CA_US.5
					days = 5
				}
			}
		}
	}
	option = {
		name = CA_US.3.c #Galiyev
		set_country_flag = SUPPORTED_GALIYEV
		random_list = {
			1 = {
				country_event = {
					id = CA_US.4
					days = 5
				}
			}
			1 = {
				country_event = {
					id = CA_US.5
					days = 5
				}
			}
		}
	}
}
country_event = { #Failure
	id = CA_US.4
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_US.4" }
	title = CA_US.4.t
	desc = CA_US.4.desc
	picture = GFX_report_event_CA_Generic_Turkmen_Volunteer
	is_triggered_only = yes
	fire_only_once = yes
	hidden = yes ## simple way to do shit without fully skeletonizing

	option = {
		name = CA_US.4.a
		hidden_effect = {
			country_event = {
				id = CA_US.5
				days = 5
			}
		}
	}
}
country_event = { #Elections
	id = CA_US.5
	immediate = {
		log = "[GetDateText]: [Root.GetName]: event CA_US.5"
		hidden_effect = {
			TRK = { US_ELECTION_CA_INTERVERENCE_CALCULATOR = yes }
		}
	}
	title = CA_US.5.t
	desc = CA_US.5.desc
	picture = GFX_report_event_CA_Generic_Teke_Tribes
	is_triggered_only = yes
	fire_only_once = yes
	hidden = yes ## simple way to do shit without fully skeletonizing

	option = {
		name = CA_US.5.a
	}
}
country_event = { #Poda - Coup?
	id = CA_US.6
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_US.6" }
	title = CA_US.6.t
	desc = CA_US.6.desc
	picture = GFX_report_event_CA_Generic_Poda
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_US.6.a
		ai_chance = {
			base = 1
			modifier = {
				factor = 0
				has_game_rule = {
					rule = TRK_OFN_COUP
					option = TRK_OFN_COUP_NO
				}
			}
		}
		US_COUP_PODA_HURR_DURR = yes
	}
	option = {
		name = CA_US.6.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 0
				has_game_rule = {
					rule = TRK_OFN_COUP
					option = TRK_OFN_COUP_YES
				}
			}
		}
		hidden_effect = {
			country_event = {
				id = CA_US.16
				days = 8
			}
		}
	}
}
country_event = { #Successfull Coup - Wallace NEEDS LOC
	id = CA_US.7
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_US.7" }
	title = CA_US.7.t
	desc = CA_US.7.desc
	picture = GFX_report_event_CA_Generic_Karryev
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_US.7.a
		TRK = { econ_join_sphere_TUR = yes }
		hidden_effect = {
			country_event = {
				id = CA_US.16
				days = 8
			}
			Turkmenistan_Regime_Change_A4 = yes
		}
	}
}
country_event = { #Successfull Coup - LeMay
	id = CA_US.8
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_US.8" }
	title = CA_US.8.t
	desc = CA_US.8.desc
	picture = GFX_report_event_CA_Generic_Karryev
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_US.8.a
		# TRK = { econ_join_sphere_TUR = yes }
		hidden_effect = {
			country_event = {
				id = CA_US.16
				days = 8
			}
			Turkmenistan_Regime_Change_A4 = yes
		}
	}
}
country_event = { #Successfull Coup - Goldwater
	id = CA_US.9
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_US.9" }
	title = CA_US.9.t
	desc = CA_US.9.desc
	picture = GFX_report_event_CA_Generic_Karryev
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_US.9.a
		# TRK = { econ_join_sphere_TUR = yes }
		hidden_effect = {
			country_event = {
				id = CA_US.16
				days = 8
			}
			Turkmenistan_Regime_Change_A4 = yes
		}
	}
}
country_event = { #Successfull Coup - MCS Girlboss
	id = CA_US.10
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_US.10" }
	title = CA_US.10.t
	desc = CA_US.10.desc
	picture = GFX_report_event_CA_Generic_Karryev
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_US.10.a
		# TRK = { econ_join_sphere_TUR = yes }
		hidden_effect = {
			country_event = {
				id = CA_US.16
				days = 8
			}
			Turkmenistan_Regime_Change_A4 = yes
		}
	}
}
country_event = { #Poda Election Victory
	id = CA_US.11
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_US.11" }
	title = CA_US.11.t
	desc = CA_US.11.desc
	picture = GFX_report_event_CA_Generic_Poda
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_US.11.a
		hidden_effect = {
			country_event = {
				id = CA_US.16
				days = 8
			}
		}
	}
}
country_event = { #Galiyev - Coup?
	id = CA_US.12
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_US.12" }
	title = CA_US.12.t
	desc = CA_US.12.desc
	picture = GFX_report_event_CA_Generic_Galiyev
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_US.12.a
		ai_chance = {
			base = 1
			modifier = {
				factor = 0
				has_game_rule = {
					rule = TRK_OFN_COUP
					option = TRK_OFN_COUP_NO
				}
			}
		}
		US_COUP_PODA_HURR_DURR = yes
	}
	option = {
		name = CA_US.12.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 0
				has_game_rule = {
					rule = TRK_OFN_COUP
					option = TRK_OFN_COUP_YES
				}
			}
		}
		hidden_effect = {
			country_event = {
				id = CA_US.16
				days = 8
			}
		}
	}
}
country_event = { #Galiyev Victory
	id = CA_US.13
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_US.13" }
	title = CA_US.13.t
	desc = CA_US.13.desc
	picture = GFX_report_event_CA_Generic_Galiyev
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_US.13.a
		hidden_effect = {
			country_event = {
				id = CA_US.16
				days = 8
			}
		}
	}
}
country_event = { #Babakhan - Coup?
	id = CA_US.14
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_US.14" }
	title = CA_US.14.t
	desc = CA_US.14.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_US.14.a
		ai_chance = {
			base = 1
			modifier = {
				factor = 0
				has_game_rule = {
					rule = TRK_OFN_COUP
					option = TRK_OFN_COUP_NO
				}
			}
		}
		US_COUP_PODA_HURR_DURR = yes
	}
	option = {
		name = CA_US.14.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 0
				has_game_rule = {
					rule = TRK_OFN_COUP
					option = TRK_OFN_COUP_YES
				}
			}
		}
		hidden_effect = {
			country_event = {
				id = CA_US.16
				days = 8
			}
		}
	}
}
country_event = { #Babakhan
	id = CA_US.15
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_US.15" }
	title = CA_US.15.t
	desc = CA_US.15.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_US.15.a
		hidden_effect = {
			country_event = {
				id = CA_US.16
				days = 8
			}
		}
	}
}

country_event = { #Turkmenistan's Ambitions
	id = CA_US.16
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_US.16" }
	title = CA_US.16.t
	desc = CA_US.16.desc
	picture = GFX_report_event_USA_cia_button
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_US.16.a
	}
}

#################################################
# YOU ARE NOW ENTERING THE JAPANESE EMPIRE ZONE #
#################################################

country_event = { #Japanese Intelligence Department investigating CA
	id = CA_JAP.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_JAP.1" }
	title = CA_JAP.1.t
	desc = CA_JAP.1.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_JAP.1.a
		hidden_effect = {
			set_variable = { success_counter = 0 }
			country_event = {
				id = CA_JAP.2
				days = 22
			}
		}
	}
}

country_event = { #oh god oh fuck Uyghurs SHIT FUCK OH GOD OH FUCK
	id = CA_JAP.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_JAP.2" }
	title = CA_JAP.2.t
	desc = CA_JAP.2.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_JAP.2.a
		hidden_effect = {
			country_event = {
				id = CA_JAP.3
				days = 10
			}
		}
	}
}

country_event = { #Ahmad Shah Khan receives blackpill
	id = CA_JAP.3
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_JAP.3" }
	title = CA_JAP.3.t
	desc = CA_JAP.3.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_JAP.3.a
		hidden_effect = {
			if = {
				limit = {
					OR = {
						KYR = { is_in_faction_with = TAJ }
						NOT = { country_exists = TAJ }
					}
				}
				country_event = {
					id = CA_JAP.4
					days = 7
				}
			}
			else = {
				country_event = {
					id = CA_JAP.5
					days = 7
				}
			}
		}
	}
}

country_event = { #Tajikistan and Kyrgyzstan is an union, build your terrorism time !
	id = CA_JAP.4
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_JAP.4" }
	title = CA_JAP.4.t
	desc = CA_JAP.4.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_JAP.4.a
		hidden_effect = {
			country_event = {
				id = CA_JAP.6
				days = 10
			}
		}
	}
}

country_event = { #Tajikistan is alone
	id = CA_JAP.5
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_JAP.5" }
	title = CA_JAP.5.t
	desc = CA_JAP.5.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_JAP.5.a
		hidden_effect = {
			country_event = {
				id = CA_JAP.6
				days = 10
			}
		}
	}
}

country_event = { #Japan and Afhanistan best fwends
	id = CA_JAP.6
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_JAP.6" }
	title = CA_JAP.6.t
	desc = CA_JAP.6.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_JAP.6.a
		hidden_effect = {
			country_event = {
				id = CA_JAP.7
				days = 10
			}
		}
	}
}

country_event = { #the mountains are scary but we can go through them i think oh wai is that a gueri-? OnO
	id = CA_JAP.7
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_JAP.7" }
	title = CA_JAP.7.t
	desc = CA_JAP.7.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_JAP.7.a
		add_political_power = -10 #replace the cost with something else
		random_list = {
			25 = {
				country_event = {
					id = CA_JAP.8
					days = 7
				}
			}
			75 = {
				country_event = {
					id = CA_JAP.9
					days = 7
				}
			}
		}
	}

	option = {
		name = CA_JAP.7.b
		add_political_power = -25
		random_list = {
			50 = {
				country_event = {
					id = CA_JAP.8
					days = 7
				}
			}
			50 = {
				country_event = {
					id = CA_JAP.9
					days = 7
				}
			}
		}
	}
	option = {
		name = CA_JAP.7.c
		add_political_power = -50
		random_list = {
			75 = {
				country_event = {
					id = CA_JAP.8
					days = 7
				}
			}
			25 = {
				country_event = {
					id = CA_JAP.9
					days = 7
				}
			}
		}
	}
}

country_event = { #success
	id = CA_JAP.8
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_JAP.8" }
	title = CA_JAP.8.t
	desc = CA_JAP.8.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_JAP.8.a
		hidden_effect = {
			add_to_variable = { success_counter = 1 }
			country_event = {
				id = CA_JAP.10
				days = 20
			}
		}
	}
}

country_event = { #loss
	id = CA_JAP.9
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_JAP.9" }
	title = CA_JAP.9.t
	desc = CA_JAP.9.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_JAP.9.a
		hidden_effect = {
			country_event = {
				id = CA_JAP.10
				days = 20
			}
		}
	}
}

country_event = { #interview refugees
	id = CA_JAP.10
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_JAP.10" }
	title = CA_JAP.10.t
	desc = CA_JAP.10.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_JAP.10.a
		hidden_effect = {
			country_event = {
				id = CA_JAP.11
				days = 7
			}
		}
	}
	option = {
		name = CA_JAP.10.b
		hidden_effect = {
			country_event = {
				id = CA_JAP.12
				days = 7
			}
		}
	}
}

country_event = { #wrong
	id = CA_JAP.11
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_JAP.11" }
	title = CA_JAP.11.t
	desc = CA_JAP.11.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_JAP.11.a
		hidden_effect = {
			country_event ={
				id = CA_JAP.13
				days = 20
			}
		}
	}
}

country_event = { #right
	id = CA_JAP.12
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_JAP.12" }
	title = CA_JAP.12.t
	desc = CA_JAP.12.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_JAP.12.a
		hidden_effect = {
			add_to_variable = { success_counter = 1 }
			country_event = {
				id = CA_JAP.13
				days = 20
			}
		}
	}
}

country_event = { #investigate xinjiang
	id = CA_JAP.13
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_JAP.13" }
	title = CA_JAP.13.t
	desc = CA_JAP.13.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_JAP.13.a
		add_political_power = -10
		random_list = {
			25 = {
				country_event = {
					id = CA_JAP.14
					days = 7
				}
			}
			75 = {
				country_event = {
					id = CA_JAP.15
					days = 7
				}
			}
		}
	}
	option = {
		name = CA_JAP.13.b
		add_political_power = -25
		random_list = {
			50 = {
				country_event = {
					id = CA_JAP.14
					days = 7
				}
			}
			50 = {
				country_event = {
					id = CA_JAP.15
					days = 7
				}
			}
		}
	}
	option = {
		name = CA_JAP.13.c
		add_political_power = -50
		random_list = {
			75 = {
				country_event = {
					id = CA_JAP.14
					days = 7
				}
			}
			25 = {
				country_event = {
					id = CA_JAP.15
					days = 7
				}
			}
		}
	}
}

country_event = { #success
	id = CA_JAP.14
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_JAP.14" }
	title = CA_JAP.14.t
	desc = CA_JAP.14.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_JAP.14.a
		hidden_effect = {
			add_to_variable = { succes_counter = 1 }
			country_event = {
				id = CA_JAP.16
				days = 20
			}
		}
	}
}

country_event = { #failure
	id = CA_JAP.15
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_JAP.15" }
	title = CA_JAP.15.t
	desc = CA_JAP.15.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_JAP.15.a
		hidden_effect = {
			country_event = {
				id = CA_JAP.16
				days = 20
			}
		}
	}
}

country_event = { #create tajik contacts
	id = CA_JAP.16
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_JAP.16" }
	title = CA_JAP.16.t
	desc = CA_JAP.16.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_JAP.16.a
		hidden_effect = {
			random_list = {
				50 = {
					country_event = {
						id = CA_JAP.17
						days = 7
					}
				}
				50 = {
					country_event = {
						id = CA_JAP.18
						days = 7
					}
				}
			}
		}
	}
}

country_event = { #success
	id = CA_JAP.17
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_JAP.17" }
	title = CA_JAP.17.t
	desc = CA_JAP.17.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_JAP.17.a
		hidden_effect = {
			add_to_variable = { success_counter = 1 }
			country_event = {
				id = CA_JAP.19
				days = 20
			}
		}
	}
}

country_event = { #failure
	id = CA_JAP.18
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_JAP.18" }
	title = CA_JAP.18.t
	desc = CA_JAP.18.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_JAP.18.a
		hidden_effect = {
			country_event = {
				id = CA_JAP.19
				days = 20
			}
		}
	}
}

country_event = { #moment of truth
	id = CA_JAP.19
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_JAP.19" }
	title = CA_JAP.19.t
	desc = CA_JAP.19.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_JAP.19.a
		hidden_effect = {
			if = {
				limit = {
					check_variable = { success_counter > 1 }
				}
				country_event = {
					id = CA_JAP.20
					days = 7
				}
			}
			else = {
				country_event = {
					id = CA_JAP.21 #you failed haha
					days = 7
				}
			}
		}
	}
}

country_event = { #keep going/union or alone
	id = CA_JAP.20
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_JAP.20" }
	title = CA_JAP.20.t
	desc = CA_JAP.20.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_JAP.20.a
		hidden_effect = {
			if = {
				limit = {
					OR = {
						KYR = { is_in_faction_with = TAJ }
						NOT = { country_exists = TAJ }
					}
				}
				country_event = {
					id = CA_JAP.22
					days = 7
				}
			}
			else = {
				country_event = {
					id = CA_JAP.23
					days = 7
				}
			}
		}
	}
}

country_event = { #you lose turkestan will now unite
	id = CA_JAP.21
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_JAP.21" }
	title = CA_JAP.21.t
	desc = CA_JAP.21.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_JAP.21.a
	}
}

country_event = { #union
	id = CA_JAP.22
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_JAP.22" }
	title = CA_JAP.22.t
	desc = CA_JAP.22.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_JAP.22.a #not a backstab haha (add effects here)
		hidden_effect = {
			country_event = {
				id = CA_JAP.24
				days = 20
			}
		}
	}
	option = {
		name = CA_JAP.22.b #sure but sincere (effects ig)
		hidden_effect = {
			country_event = {
				id = CA_JAP.24
				days = 20
			}
		}
	}
}

country_event = { #alone
	id = CA_JAP.23
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_JAP.23" }
	title = CA_JAP.23.t
	desc = CA_JAP.23.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_JAP.23.a #play along for now (add effects plox)
		hidden_effect = {
			country_event = {
				id = CA_JAP.25
				days = 20
			}
		}
	}
	option = {
		name = CA_JAP.23.b #islamism = pan asianism (and effects and stuff)
		hidden_effect = {
			country_event = {
				id = CA_JAP.25
				days = 20
			}
		}
	}
}

country_event = { #union second to last event
	id = CA_JAP.24
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_JAP.24" }
	title = CA_JAP.24.t
	desc = CA_JAP.24.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_JAP.24.a
		hidden_effect = {
			country_event = {
				id = CA_JAP.26
				days = 7
			}
		}
	}
}

country_event = { #alone second to last event
	id = CA_JAP.25
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_JAP.25" }
	title = CA_JAP.25.t
	desc = CA_JAP.25.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_JAP.25.a
		hidden_effect = {
			country_event = {
				id = CA_JAP.26
				days = 7
			}
		}
	}
}

country_event = { #final turkes kanes event
	id = CA_JAP.26
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_JAP.26" }
	title = CA_JAP.26.t
	desc = CA_JAP.26.desc
	picture = GFX_report_event_CA_Generic_Babakhan
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_JAP.26.a #add some effects or smth idk
	}
}

add_namespace = CA_TK_skeleton

country_event = { #Turkes Kenes begins - skeleton, used to branch out to other events
	id = CA_TK_skeleton.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.1" }
	title = CA_TK_skeleton.1.t
	desc = CA_TK_skeleton.1.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.1

		# Victory chances
		set_variable = { # GER and USA start lower to account for coups/border wars
			GER_TK_victory_chance = 33
		}
		set_variable = {
			USA_TK_victory_chance = 33
		}
		set_variable = {
			JAP_TK_victory_chance = 33
		}

		# Clean up borders
		KYR = {
			add_state_core = 1467
			transfer_state = 1467
		}
		1467 = {
			set_demilitarized_zone = no
		}

		TRK = { # ENDING - 1 YEAR IN
			country_event = {
				id = CA_TK_skeleton.22
				days = 365
			}
		}

		if = { # Japan coups Tajikistan
			limit = {
				NOT = {
					TAJ = {
						has_country_leader = {
							character = TAJ_Mawlawi_Hindustoni
							ruling_only = yes
						}
					}
				}
			}
			TAJ = {
				country_event = {
					id = CA_TK_skeleton.2
					days = 20
				}
			}
		}

		if = { # Japan coups Kyrgyzstan if they're together
			limit = {
				TAJ = {
					is_in_faction_with = KYR
				}
			}
			KYR = {
				country_event = {
					id = CA_TK_skeleton.3
					days = 40
				}
			}
		}
		else = { # If they're not, coup them 3 months in, form the faction.
			KYR = {
				country_event = {
					id = CA_TK_skeleton.4
					days = 90
				}
			}
		}

		KYR = { # Japan forms alliance between Kyrgyzstan and Tajikistan, 4 months in
			country_event = {
				id = CA_TK_skeleton.5
				days = 120
			}
		}

		KYR = { # Japan dies to random chance, 9 months in
			country_event = {
				id = CA_TK_skeleton.19
				days = 270
			}
		}

		# Germany orders Legion to attack Samarqand again if they dont own it, 1 month in
		if = {
			limit = {
				NOT = {
					UTL = {
						owns_state = 405
					}
				}
			}
			UTL = {
				country_event = {
					id = CA_TK_skeleton.6
					days = 30
				}
			}
		}

		# Germany orders Legion to attack Ishkoshim, 4 months in
		UTL = {
			country_event = {
				id = CA_TK_skeleton.9
				days = 120
			}
		}

		# USA forms faction between TRK and UZB/KRK, 4 months in
		TRK = {
			country_event = {
				id = CA_TK_skeleton.17
				days = 120
			}
		}

		# CIA coups UZB/KRK, 6 months in
		TRK = {
			country_event = {
				id = CA_TK_skeleton.18
				days = 180
			}
		}
	}
}

country_event = { #Japan coups Tajikistan if its not couped already
	id = CA_TK_skeleton.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.2" }
	title = CA_TK_skeleton.2.t
	desc = CA_TK_skeleton.2.desc
	picture = GFX_report_event_GER_nazi_moon
	trigger = {
		NOT = {
			has_idea = OFN_Observer
		}
	}

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.2
		Tajikistan_Regime_Change_A1 = yes
	}
}

country_event = { #Japan coups Kyrgyzstan if its not couped already and in faction with Tajikistan
	id = CA_TK_skeleton.3
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.3" }
	title = CA_TK_skeleton.3.t
	desc = CA_TK_skeleton.3.desc
	picture = GFX_report_event_GER_nazi_moon
	trigger = {
		NOT = {
			has_idea = OFN_Observer
		}
	}

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.3
		if = { # Japan coups Kyrgyzstan
			limit = {
				NOT = {
					KYR = {
						has_country_leader = {
							character = KYR_Turdakun_Usulbaliev
							ruling_only = yes
						}
					}
				}
			}
			Kyrgyzstan_Regime_Change_A1 = yes

			# Dismantle the former faction, create new one
			dismantle_faction = yes
		}
	}
}

country_event = { #Japan coups Kyrgyzstan if its not couped already
	id = CA_TK_skeleton.4
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.4" }
	title = CA_TK_skeleton.4.t
	desc = CA_TK_skeleton.4.desc
	picture = GFX_report_event_GER_nazi_moon
	trigger = {
		NOT = {
			has_idea = OFN_Observer
		}
	}

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.4
		if = { # Japan coups Kyrgyzstan
			limit = {
				NOT = {
					KYR = {
						has_country_leader = {
							character = KYR_Turdakun_Usulbaliev
							ruling_only = yes
						}
					}
				}
			}
			Kyrgyzstan_Regime_Change_A1 = yes

			# Dismantle the former faction, create new one
			dismantle_faction = yes
		}
	}
}

country_event = { #Japan creates an alliance between Tajikistan and Kyrgyzstan
	id = CA_TK_skeleton.5
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.5" }
	title = CA_TK_skeleton.5.t
	desc = CA_TK_skeleton.5.desc
	picture = GFX_report_event_GER_nazi_moon
	trigger = {
		NOT = {
			is_in_faction_with = TRK
		}
	}

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.5
		create_faction_from_template = { name = Central_Asia_Defense_League icon = GFX_Central_Asia_Defence_League_faction template = faction_template_generic }
		add_faction_goal_slot = { category = short_term  value = -10 }
		add_faction_goal_slot = { category = medium_term value = -10 }
		add_faction_goal_slot = { category = long_term   value = -10 }
		set_country_flag = CADL_MEMBER
		add_to_faction = TAJ
		TAJ = { set_country_flag = CADL_MEMBER }

		#random_list = {
		#	1 = {
		#		set_variable = { # Afghanistan ending, they puppet CA
		#			global.JAP_TK_ending = 1
		#		}
		#	}
		#	1 = {
		#		set_variable = { # Sphere ending, they join Sphere as observers
		#			global.JAP_TK_ending = 2
		#		}
		#	}
		#}
	}
}

country_event = { #Germany orders legion to re-attack Samarqand
	id = CA_TK_skeleton.6
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.6" }
	title = CA_TK_skeleton.6.t
	desc = CA_TK_skeleton.6.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.6
		UTL = {
			start_border_war = {
				change_state_after_war = no
				attacker = {
					state = 1468
					num_provinces = 2
					on_win = CA_TK_skeleton.7
					on_lose = CA_TK_skeleton.7
				}

				defender = {
					state = 405
					num_provinces = 2
				}
			}
		}
	}
}

country_event = { #Legion outcome - always get Samarqand
	id = CA_TK_skeleton.7
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.7" }
	title = CA_TK_skeleton.7.t
	desc = CA_TK_skeleton.7.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.7
		UTL = {
			add_state_core = 405
			transfer_state = 405
		}
		TRK = {
			add_to_variable = {
				GER_TK_victory_chance = 10
			}
		}
	}
}

country_event = { #Border war times out - always get Samarqand
	id = CA_TK_skeleton.8
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.8" }
	title = CA_TK_skeleton.8.t
	desc = CA_TK_skeleton.8.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.8
		cancel_border_war = {
			dont_fire_events = yes
			attacker = 1468
			defender = 405
		}
		UTL = {
			add_state_core = 405
			transfer_state = 405
		}
		TRK = {
			add_to_variable = {
				GER_TK_victory_chance = 10
			}
		}
	}
}

country_event = { #Germany orders legion to attack Ishkoshim
	id = CA_TK_skeleton.9
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.9" }
	title = CA_TK_skeleton.9.t
	desc = CA_TK_skeleton.9.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes

	option = {
		name = CA_TK_skeleton.9
		UTL = {
			if = {
				limit = {
					has_game_rule = {
						rule = CA_CONFERENCE
						option = CA_CONFERENCE_GER
					}
				}
				start_border_war = {
					change_state_after_war = no
					attacker = {
						state = 405
						on_win = CA_TK_skeleton.10
						on_lose = CA_TK_skeleton.10
					}

					defender = {
						state = 2195
					}
				}
			}
			else_if = {
				limit = {
					OR= {
						has_game_rule = {
							rule = CA_CONFERENCE
							option = CA_CONFERENCE_USA
						}
						has_game_rule = {
							rule = CA_CONFERENCE
							option = CA_CONFERENCE_JAP
						}
					}
				}
				start_border_war = {
					change_state_after_war = no
					attacker = {
						state = 405
						on_win = CA_TK_skeleton.11
						on_lose = CA_TK_skeleton.11
					}

					defender = {
						state = 2195
					}
				}
			}
			else = {
				start_border_war = {
					change_state_after_war = no
					attacker = {
						state = 405
						on_win = CA_TK_skeleton.10
						on_lose = CA_TK_skeleton.11
					}

					defender = {
						state = 2195
					}
				}
			}
		}
	}
}

country_event = { #Legion outcome - win Ishkoshim
	id = CA_TK_skeleton.10
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.10" }
	title = CA_TK_skeleton.10.t
	desc = CA_TK_skeleton.10.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.10
		UTL = { transfer_state = 2195 }
		set_temp_variable = { aligned_delegates_temp = 50 }
		custom_effect_tooltip = TK_increase_delegates_tt
		hidden_effect = {
			TRK = {
				TRK_balance_to_1000_GER_event = yes
			}
		}
		TNO_arrange_CA_conference_seats = yes
		TNO_update_CA_conference_display = yes
	}
}

country_event = { #Legion outcome - lose Ishkoshim, stay in place
	id = CA_TK_skeleton.11
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.11" }
	title = CA_TK_skeleton.11.t
	desc = CA_TK_skeleton.11.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.11
	}
}

country_event = { #Border war times out - 50/50 Ishkoshim
	id = CA_TK_skeleton.12
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.12" }
	title = CA_TK_skeleton.12.t
	desc = CA_TK_skeleton.12.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.12
		cancel_border_war = {
			dont_fire_events = yes
			attacker = 405
			defender = 1466
		}
		random_list = {
			1 = { # Legion wins
				UTL = { transfer_state = 2195 }
				set_temp_variable = { aligned_delegates_temp = 20 }
				custom_effect_tooltip = TK_increase_delegates_tt
				hidden_effect = {
					TRK = {
						TRK_balance_to_1000_GER_event = yes
					}
				}
				TNO_arrange_CA_conference_seats = yes
				TNO_update_CA_conference_display = yes
				# Germany orders Legion to attack Tashkent, 2 months later
				UTL = {
					country_event = {
						id = CA_TK_skeleton.9
						days = 60
					}
				}
			}
			1 = { # Nothing happens

			}
		}
	}
}

country_event = { #Germany orders legion to attack Tashkent
	id = CA_TK_skeleton.13
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.13" }
	title = CA_TK_skeleton.13.t
	desc = CA_TK_skeleton.13.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.13
		UTL = {
			if = {
				limit = {
					has_game_rule = {
						rule = CA_CONFERENCE
						option = CA_CONFERENCE_GER
					}
				}
				start_border_war = {
					change_state_after_war = no
					attacker = {
						state = 2195
						on_win = CA_TK_skeleton.14
						on_lose = CA_TK_skeleton.14
					}

					defender = {
						state = 1467
					}
				}
			}
			else = {
				start_border_war = {
					change_state_after_war = no
					attacker = {
						state = 2195
						on_win = CA_TK_skeleton.14
						on_lose = CA_TK_skeleton.15
					}

					defender = {
						state = 1467
					}
				}
			}
		}
	}
}

country_event = { #Legion outcome - win Tashkent
	id = CA_TK_skeleton.14
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.14" }
	title = CA_TK_skeleton.14.t
	desc = CA_TK_skeleton.14.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.14
		UTL = { transfer_state = 1467 }

		TRK = {
			set_temp_variable = { aligned_delegates_temp = 50 }
			custom_effect_tooltip = TK_increase_delegates_tt
			hidden_effect = {
				TRK = {
					TRK_balance_to_1000_GER_event = yes
				}
			}
			TNO_arrange_CA_conference_seats = yes
			TNO_update_CA_conference_display = yes
		}
	}
}

country_event = { #Legion outcome - lose Tashkent, stay in place
	id = CA_TK_skeleton.15
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.15" }
	title = CA_TK_skeleton.15.t
	desc = CA_TK_skeleton.15.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.15
		set_temp_variable = { aligned_delegates_temp = -50 }
		custom_effect_tooltip = TK_increase_delegates_tt
		hidden_effect = {
			TRK = {
				TRK_balance_to_1000_GER_event = yes
			}
		}
		TNO_arrange_CA_conference_seats = yes
		TNO_update_CA_conference_display = yes
	}
}

country_event = { #Border war times out - 50/50 Tashkent
	id = CA_TK_skeleton.16
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.16" }
	title = CA_TK_skeleton.16.t
	desc = CA_TK_skeleton.16.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.16
		cancel_border_war = {
			dont_fire_events = yes
			attacker = 2195
			defender = 1467
		}
		random_list = {
			1 = { # Legion wins
				UTL = { transfer_state = 1467 }
				TRK = {
					add_to_variable = {
						GER_TK_victory_chance = 20
					}
				}
			}
			1 = { # Nothing happens

			}
		}
	}
}

country_event = { #USA creates an alliance between Turkmenistan and UZB/KRK
	id = CA_TK_skeleton.17
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.17" }
	title = CA_TK_skeleton.17.t
	desc = CA_TK_skeleton.17.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.17
		create_faction_from_template = { name = Central_Asian_Solidarity_Alliance icon = GFX_Central_Asian_Solidarity_Alliance_faction template = faction_template_generic }
		add_faction_goal_slot = { category = short_term  value = -10 }
		add_faction_goal_slot = { category = medium_term value = -10 }
		add_faction_goal_slot = { category = long_term   value = -10 }		
		set_country_flag = CASA_MEMBER
		if = {
			limit = {
				KRK = {
					exists = yes
				}
			}
			add_to_faction = KRK
			KRK = { set_country_flag = CASA_MEMBER }
		}
		else = {
			add_to_faction = UZB
			UZB = { set_country_flag = CASA_MEMBER }
		}
	}
}

country_event = { #CIA coups UZB/KRK
	id = CA_TK_skeleton.18
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.18" }
	title = CA_TK_skeleton.18.t
	desc = CA_TK_skeleton.18.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.18
		random_list = {
			1 = { # Coup succeeds
				modifier = {
					factor = 0
					OR = {
						has_game_rule = {
							rule = CA_CONFERENCE
							option = CA_CONFERENCE_GER
						}
						has_game_rule = {
							rule = CA_CONFERENCE
							option = CA_CONFERENCE_JAP
						}
					}
				}
				if = {
					limit = {
						KRK = {
							exists = yes
						}
					}
					KRK = { econ_join_sphere_TUR = yes }
				}
				else = {
					UZB = { econ_join_sphere_TUR = yes }
				}
				TRK = {
					#add_to_variable = {
					#	USA_TK_victory_chance = 15
					#}
					set_temp_variable = { aligned_delegates_temp = 20 }
					custom_effect_tooltip = TK_increase_delegates_tt
					hidden_effect = {
						TRK = {
							TRK_balance_to_1000_OFN_event = yes
						}
					}
					TNO_arrange_CA_conference_seats = yes
					TNO_update_CA_conference_display = yes
				}
			}
			1 = { # Coup fails
				modifier = {
					factor = 0
					has_game_rule = {
						rule = CA_CONFERENCE
						option = CA_CONFERENCE_USA
					}
				}

			}
		}
	}
}

country_event = { #Random chance tensions break down, Japan fails - 9 months in
	id = CA_TK_skeleton.19
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.19" }
	title = CA_TK_skeleton.19.t
	desc = CA_TK_skeleton.19.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.19.a
		random_list = {
			8 = { # Nothing happens
				# Boost chance of Japan winning by 20, give small boost to others
				TRK = {
					add_to_variable = {
						JAP_TK_victory_chance = 20
					}
				}
				TRK = {
					add_to_variable = {
						GER_TK_victory_chance = 10
					}
				}
				TRK = {
					add_to_variable = {
						USA_TK_victory_chance = 10
					}
				}
			}
			2 = {
				# Dismantle the Japanese faction, allow CIA coup on TAJ and KYR, 1 and 2 months in respectively
				dismantle_faction = yes
				clear_variable = global.JAP_TK_ending
				clear_variable = JAP_TK_victory_chance
				KYR = {
					country_event = {
						id = CA_TK_skeleton.20
						days = 30
					}
				}
				TAJ = {
					country_event = {
						id = CA_TK_skeleton.21
						days = 60
					}
				}
			}
		}
	}
}

country_event = { #CIA coups KYR
	id = CA_TK_skeleton.20
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.20" }
	title = CA_TK_skeleton.20.t
	desc = CA_TK_skeleton.20.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.20.a
		random_list = {
			1 = { # Coup succeeds
				modifier = {
					factor = 0
					has_game_rule = {
						rule = CA_CONFERENCE
						option = CA_CONFERENCE_GER
					}
				}
				KYR = { econ_join_sphere_TUR = yes }
				TRK = {
					#add_to_variable = {
					#	USA_TK_victory_chance = 20
					#}
					set_temp_variable = { aligned_delegates_temp = 50 }
					custom_effect_tooltip = TK_increase_delegates_tt
					hidden_effect = {
						TRK = {
							TRK_balance_to_1000_OFN_event = yes
						}
					}
					TNO_arrange_CA_conference_seats = yes
					TNO_update_CA_conference_display = yes
					if = {
						limit = {
							is_faction_leader = yes
						}
						add_to_faction = KYR
					}
				}
			}
			2 = { # Coup fails
				modifier = {
					factor = 0
					has_game_rule = {
						rule = CA_CONFERENCE
						option = CA_CONFERENCE_USA
					}
				}

			}
		}
	}
}

country_event = { #CIA coups TAJ
	id = CA_TK_skeleton.21
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.21" }
	title = CA_TK_skeleton.21.t
	desc = CA_TK_skeleton.21.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.21.a
		random_list = {
			1 = { # Coup succeeds
				modifier = {
					factor = 0
					has_game_rule = {
						rule = CA_CONFERENCE
						option = CA_CONFERENCE_GER
					}
				}
				TAJ = {
					econ_join_sphere_TUR = yes
					retire_country_leader = yes
					remove_all_ministers = yes
					set_politics = {
						ruling_party = conservatism
						last_election = "1933.3.5"
						election_frequency = 48
						elections_allowed = no
					}
					set_cosmetic_tag = TAJ_ConDem
					promote_character = TAJ_Buriniso_Berdieva
				}
				TRK = {
					#add_to_variable = {
					#	USA_TK_victory_chance = 25
					#}
					set_temp_variable = { aligned_delegates_temp = 50 }
					custom_effect_tooltip = TK_increase_delegates_tt
					hidden_effect = {
						TRK = {
							TRK_balance_to_1000_OFN_event = yes
						}
					}
					TNO_arrange_CA_conference_seats = yes
					TNO_update_CA_conference_display = yes
					if = {
						limit = {
							is_faction_leader = yes
						}
						add_to_faction = TAJ
					}
				}
			}
			4 = { # Coup fails
				modifier = {
					factor = 0
					has_game_rule = {
						rule = CA_CONFERENCE
						option = CA_CONFERENCE_USA
					}
				}

			}
		}
	}
}

country_event = { #Ending event, 1 year in
	id = CA_TK_skeleton.22
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.22" }
	title = CA_TK_skeleton.22.t
	desc = CA_TK_skeleton.22.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.22.a
		random_list = {
			GER_TK_victory_chance = { # Germany wins
				# Ending
				hidden_effect = {
					every_country = {
						limit = { is_ai = no }
						news_event = { id = WORLD.30051 }
					}
				}
				UTL = {
					country_event = {
						id = CA_TK_skeleton.23
						days = 20
					}
				}
				set_global_flag = TK_GER_Victory
			}
			USA_TK_victory_chance = { # USA wins
				# Ending
				hidden_effect = {
					every_country = {
						limit = { is_ai = no }
						news_event = { id = WORLD.30050 }
					}
				}
				TRK = {
					country_event = {
						id = CA_TK_skeleton.31
						days = 20
					}
				}
				set_global_flag = TK_USA_Victory
			}
			JAP_TK_victory_chance = { # Japan wins
				# Ending
				hidden_effect = {
					every_country = {
						limit = { is_ai = no }
						news_event = { id = WORLD.30052 }
					}
				}
				KYR = {
					country_event = {
						id = CA_TK_skeleton.27
						days = 20
					}
				}
				set_global_flag = TK_JAP_Victory
			}
		}
	}
}

# Germany wins - Legion invades everyone

country_event = { #Legion begins preparation for invasion
	id = CA_TK_skeleton.23
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.23" }
	title = CA_TK_skeleton.23.t
	desc = CA_TK_skeleton.23.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.23.a
		load_oob = "UTL_1962"
		load_oob = "UTL_1962"
		add_manpower = 200000

		# Remove factions from map
		KYR = {
			dismantle_faction = yes
		}
		TRK = {
			dismantle_faction = yes
			remove_faction_status = yes
		}
		KRK = { remove_faction_status = yes }
		UZB = { remove_faction_status = yes }
		UTL = {
			country_event = {
				id = CA_TK_skeleton.24
			}
		}
	}
}

country_event = { #Delete non-Legion CA armies
	id = CA_TK_skeleton.24
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.24" }
	title = CA_TK_skeleton.24.t
	desc = CA_TK_skeleton.24.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.24.a
		every_country = {
			limit = {
				AND = {
					has_country_flag = IS_CA_NATION
					NOT = { tag = UTL }
				}
			}
			add_ideas = {
				CA_Turkes_Kenes_Infighting
			}
		}
		UTL = {
			country_event = {
				id = CA_TK_skeleton.25
				days = 10
			}
		}
	}
}

country_event = { #Fight!
	id = CA_TK_skeleton.25
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.25" }
	title = CA_TK_skeleton.25.t
	desc = CA_TK_skeleton.25.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.25.a
		every_country = {
			limit = {
				has_country_flag = IS_CA_NATION
			}
			UTL = {
				declare_war_on = {
					target = PREV
					type = annex_everything
				}
			}
		}
	}
}

country_event = { #Victory is achieved
	id = CA_TK_skeleton.26
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.26" }
	title = CA_TK_skeleton.26.t
	desc = CA_TK_skeleton.26.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.26.a
		UTL = {
			remove_war_buff = yes
			if = {
				limit = {
					OR = {
						UTL = {
							has_country_leader = {
								character = UTL_Sher_Muhammad
								ruling_only = yes
							}
						}
						UTL = {
							has_country_leader = {
								character = UTL_Ruzi_Nazar
								ruling_only = yes
							}
						}
					}
				}
				set_temp_variable = { TNO_economy_type_temp = token:Econ_Type_Planned }
				econ_type_change = yes
				set_cosmetic_tag = UTL_unified_3
			}
			else_if = {
				limit = {
					UTL = {
						has_country_leader = {
							character = UTL_Baymirza_Hayit
							ruling_only = yes
						}
					}
				}
				set_temp_variable = { TNO_economy_type_temp = token:Econ_Type_Corporatism }
				econ_type_change = yes
				set_cosmetic_tag = UTL_unified_2
			}
			else_if = {
				limit = {
					UTL = {
						has_country_leader = {
							character = UTL_Veli_Kayum_Khan
							ruling_only = yes
						}
					}
				}
				set_temp_variable = { TNO_economy_subtype_temp = token:Econ_Subtype_Gelenkte_Wirtschaft }
				econ_subtype_change = yes
				set_cosmetic_tag = UTL_unified_1
			}
			if = {
				limit = { has_global_flag = german_civil_war_speervic }
				join_zollverein = yes
			}
			econ_join_sphere_GER = yes
			add_ideas = Pakt_Mitstreiter
		}
		GER = {
			add_to_faction = UTL
		}
	}
}

country_event = { #TURAN FORMS
	id = CA_TK_skeleton.2600
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.2600" }
	title = CA_TK_skeleton.2600.t
	desc = CA_TK_skeleton.2600.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.2600.a
		UTL = {
			retire_country_leader = yes
			remove_country_leader_role = {
				character = UTL_Veli_Kayum_Khan
				ideology = national_socialism_naturalised_nazism_subtype
			}
			UTL_Veli_Kayum_Khan = {
				add_country_leader_role = {
					country_leader = {
						ideology = national_socialism_esoteric_nazism_subtype
						expire = "1999.1.1"
						traits = { }
						id = -1
					}
				}
				promote_character = yes
			}
			set_popularities = {
				national_socialism = 100
			}
			set_politics = {
				ruling_party = national_socialism
			}
			set_cosmetic_tag = UTL_TURAN

			annex_country = {
				target = KRK
				transfer_troops = no
			}
			annex_country = {
				target = UZB
				transfer_troops = no
			}
			annex_country = {
				target = KYR
				transfer_troops = no
			}
			annex_country = {
				target = TAJ
				transfer_troops = no
			}
			annex_country = {
				target = TRK
				transfer_troops = no
			}
			annex_country = {
				target = KAZ
				transfer_troops = no
			}
			annex_country = {
				target = KZR
				transfer_troops = no
			}
			annex_country = {
				target = CAU
				transfer_troops = no
			}
			annex_country = {
				target = TUR
				transfer_troops = no
			}
			annex_country = {
				target = BKU
				transfer_troops = no
			}
			annex_country = {
				target = XIN
				transfer_troops = no
			}
			annex_country = {
				target = PRC
				transfer_troops = no
			}
			annex_country = {
				target = MEN
				transfer_troops = no
			}
			annex_country = {
				target = QIN
				transfer_troops = no
			}
			annex_country = {
				target = GAN
				transfer_troops = no
			}
			annex_country = {
				target = ALT
				transfer_troops = no
			}
			annex_country = {
				target = KEM
				transfer_troops = no
			}
			annex_country = {
				target = KRS
				transfer_troops = no
			}
			annex_country = {
				target = SBA
				transfer_troops = no
			}
			annex_country = {
				target = IRK
				transfer_troops = no
			}
			annex_country = {
				target = BRY
				transfer_troops = no
			}
			annex_country = {
				target = CHT
				transfer_troops = no
			}
			annex_country = {
				target = AMR
				transfer_troops = no
			}
			annex_country = {
				target = MAG
				transfer_troops = no
			}
			annex_country = {
				target = KMC
				transfer_troops = no
			}
			annex_country = {
				target = YAK
				transfer_troops = no
			}
			annex_country = {
				target = FIN
				transfer_troops = no
			}
			annex_country = {
				target = HUN
				transfer_troops = no
			}
			transfer_state = 237
			transfer_state = 236
			transfer_state = 244
			transfer_state = 224
			transfer_state = 218
			transfer_state = 227
			transfer_state = 200
			transfer_state = 196
			transfer_state = 137
			transfer_state = 1532
			transfer_state = 228
			transfer_state = 714
			transfer_state = 715
			transfer_state = 717
			transfer_state = 765
			transfer_state = 601
			transfer_state = 40
			transfer_state = 759
			transfer_state = 644
			transfer_state = 891
			transfer_state = 1396
			transfer_state = 1395
			transfer_state = 13
			transfer_state = 191
			transfer_state = 1440
			transfer_state = 664
			transfer_state = 968
			transfer_state = 82
			transfer_state = 1287
			transfer_state = 84
			transfer_state = 1289
			transfer_state = 1288
			transfer_state = 76
			transfer_state = 83
			transfer_state = 801
		}
	}
}

# Japan wins - to the victors go the spoils

country_event = { #Turkes Kenes goes boom
	id = CA_TK_skeleton.27
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.27" }
	title = CA_TK_skeleton.27.t
	desc = CA_TK_skeleton.27.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.27.a
		# OFN dies in CA
		TRK = {
			dismantle_faction = yes
			remove_ideas = OFN_Observer
			remove_faction_status = yes
		}
		KRK = { remove_faction_status = yes }
		UZB = { remove_faction_status = yes }
		if = {
			limit = {
				KRK = {
					exists = yes
				}
			}
			KRK = {
				remove_ideas = OFN_Observer
			}
		}
		else = {
			UZB = {
				remove_ideas = OFN_Observer
			}
		}
		KYR = {
			country_event = {
				id = CA_TK_skeleton.28
				days = 5
			}
		}
	}
}

country_event = { #RIP rest of Central Asia, Kyrgyzstan and Tajikistan prepare to invade Legion
	id = CA_TK_skeleton.28
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.28" }
	title = CA_TK_skeleton.28.t
	desc = CA_TK_skeleton.28.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.28.a
		# rip
		UTL = {
			add_ideas = CA_Turkes_Kenes_Infighting
			if = {
				limit = {
					NOT = {
						owns_state = 405
					}
				}
				add_state_core = 405
				transfer_state = 405
			}
		}
		TRK = {
			dismantle_faction = yes
			remove_faction_status = yes
			if = {
				limit = {
					has_idea = OFN_Observer
				}
				remove_ideas = OFN_Observer
			}
			if = {
				limit = {
					has_idea = KOM_socintern_associate
				}
				remove_ideas = KOM_socintern_associate
				clr_country_flag = SOCINTERN_MEMBER
				SocIntern_Refresh_Arrays = yes
			}
			if = {
				limit = {
					has_idea = KOM_socintern_member
				}
				remove_ideas = KOM_socintern_member
				clr_country_flag = SOCINTERN_MEMBER
				SocIntern_Refresh_Arrays = yes
			}
			if = {
				limit = {
					has_idea = TNO_foreign_advisors
				}
				remove_ideas = TNO_foreign_advisors
			}
			retire_country_leader = yes
			kill_ideology_leader = socialist
			set_politics = {
				ruling_party = socialist
			}
			set_popularities = {
				socialist = 100
			}
			TRK_Power_Vacuum = {
				add_country_leader_role = {
					country_leader = {
						ideology = socialist_subtype
						expire = "1999.1.1"
						traits = { }
						id = -1
					}
				}
			}
			TRK_Power_Vacuum = {
				promote_character = yes
			}
			set_cosmetic_tag = TRK_Coup
			every_owned_state = {
				set_demilitarized_zone = yes
			}
			set_party_name = {
				ideology = socialist
				long_name = TRK_Power_Vacuum_name
				name = TRK_Power_Vacuum_name
			}
		}
		if = {
			limit = {
				KRK = {
					exists = yes
				}
			}
			KRK = {
				remove_faction_status = yes
				if = {
					limit = {
						has_idea = OFN_Observer
					}
					remove_ideas = OFN_Observer
				}
				retire_country_leader = yes
				kill_ideology_leader = socialist
				set_politics = {
					ruling_party = socialist
				}
				set_popularities = {
					despotism = 100
				}
				KRK_Power_Vacuum = {
					add_country_leader_role = {
						country_leader = {
							ideology = socialist_subtype
							expire = "1999.1.1"
							traits = { }
							id = -1
						}
					}
				}
				KRK_Power_Vacuum = {
					promote_character = yes
				}
				every_owned_state = {
					set_demilitarized_zone = yes
				}
				set_party_name = {
					ideology = socialist
					long_name = TRK_Power_Vacuum_name
					name = TRK_Power_Vacuum_name
				}
			}
			TRK = {
				annex_country = {
					target = KRK
					transfer_troops = no
				}
				every_owned_state = {
					limit = {
						is_core_of = KRK
					}
					add_core_of = TRK
					remove_core_of = KRK
				}
			}
		}
		else = {
			UZB = {
				remove_faction_status = yes
				if = {
					limit = {
						has_idea = OFN_Observer
					}
					remove_ideas = OFN_Observer
				}
				retire_country_leader = yes
				kill_ideology_leader = socialist
				set_politics = {
					ruling_party = socialist
				}
				set_popularities = {
					despotism = 100
				}
				UZB_Power_Vacuum = {
					add_country_leader_role = {
						country_leader = {
							ideology = socialist_subtype
							expire = "1999.1.1"
							traits = { }
							id = -1
						}
					}
				}
				UZB_Power_Vacuum = {
					promote_character = yes
				}
				every_owned_state = {
					set_demilitarized_zone = yes
				}
				set_party_name = {
					ideology = socialist
					long_name = TRK_Power_Vacuum_name
					name = TRK_Power_Vacuum_name
				}
			}
			TRK = {
				annex_country = {
					target = UZB
					transfer_troops = no
				}
				every_owned_state = {
					limit = {
						is_core_of = UZB
					}
					add_core_of = TRK
					remove_core_of = UZB
				}
			}
		}
		TRK = {
			set_cosmetic_tag = TRK_anarchy
			transfer_units_fraction = {
				target = ZZZ
				size = 0
				army_ratio = 1.0
			}
			ZZZ = {
				delete_unit = {
					state = 1297
					disband = no
				}
			}
			set_global_flag = TNO_rip_turkmenistan
			remove_all_ministers = yes
			econ_leave_sphere = yes
			remove_ideas = {
				TRK_A_Modern_Silk_Road
				TRK_Question_Of_Identity
				TRK_Fragmented_Tribes
			}
			add_ideas = {
				ZZZ_anarchy
			}
			set_temp_variable = { TNO_economy_subtype_temp = token:Econ_Subtype_Subsistence_Economy } #For those 30 days until annexation
			econ_subtype_change = yes
			
		}
		TRK = {
			every_owned_state = { #Failsafe?
				add_core_of = TRK
				remove_core_of = UZB
				remove_core_of = KRK
			}
		}
		KYR = {
			load_oob = "KYR_1962"
			load_oob = "KYR_1962"
		}
		TAJ = {
			load_oob = "TAJ_1962"
			load_oob = "TAJ_1962"
		}
		KYR = {
			country_event = {
				id = CA_TK_skeleton.29
				days = 10
			}
		}
	}
}

country_event = { #The Legion is invaded
	id = CA_TK_skeleton.29
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.29" }
	title = CA_TK_skeleton.29.t
	desc = CA_TK_skeleton.29.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.29.a
		KYR = {
			declare_war_on = {
				target = UTL
				type = annex_everything
			}
		}
		TAJ = {
			declare_war_on = {
				target = UTL
				type = annex_everything
			}
		}
	}
}

country_event = { #Dividing up the legion
	id = CA_TK_skeleton.30
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.30" }
	title = CA_TK_skeleton.30.t
	desc = CA_TK_skeleton.30.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.30.a
		KYR = {
			transfer_state = 1466
			transfer_state = 1467
			transfer_state = 2195
			dismantle_faction = yes # Bye bye
		}
		TAJ = { remove_ideas = TAJ_fading_economy }
		TRK = { every_owned_state = { add_core_of = UTL } }
		UTL = {
			econ_leave_sphere = yes
			transfer_state = 1468
			transfer_state = 405
			transfer_state = 2205
			if = {
				limit = { # Sphere ending, they join Sphere as observers
					has_global_flag = TK_JAP_Victory
				}
				annex_country = {
					target = TRK
					transfer_troops = no
				}
				every_owned_state = { add_core_of = UTL } #Failsafe
				every_owned_state = { set_demilitarized_zone = no }
			}
			set_politics = {
				ruling_party = despotism
			}
			set_party_name = {
				ideology = despotism
				long_name = UTL_despotism_occupation_party_long
				name = UTL_despotism_occupation_party
			}
			set_popularities = {
				communist = 0
				ultranationalism = 0
				socialist = 0
				progressivism = 0
				liberalism = 0
				conservatism = 0
				paternalism = 0
				despotism = 60
				fascism = 20
				national_socialism = 20

			}
			retire_country_leader = yes
			UTL_Ruzi_Nazar = {
				add_country_leader_role = {
					country_leader = {
						desc = "POLITICS_RUZI_NAZAR_DESC"
						ideology = despotism_military_junta_subtype
						expire = "1999.1.1"
						traits = { }
						id = -1
					}
				}
				promote_character = yes
			}
			set_cosmetic_tag = UTL_occupation
		}
		if = {
			limit = { # Sphere ending, they join Sphere as observers
				has_global_flag = TK_JAP_Victory
			}
			KYR = {
				add_ideas = Sphere_Observer
				econ_join_sphere_JAP = yes
			}
			TAJ = {
				add_ideas = Sphere_Observer
				econ_join_sphere_JAP = yes
			}
			UTL = {
				add_ideas = Sphere_Observer
				econ_join_sphere_JAP = yes
			}
		}
		else = { # Neutral ending, Afghanistan gains them as puppets
			if = {
				limit = {
					AND = {
						NOT = { AFG = { check_variable = { ECON_SPHERE_LEADER = JAP } } }
						NOT = { AFG = { check_variable = { ECON_SPHERE_LEADER = GER } } }
					}
				}
				GER = {
					set_temp_variable = { Victory_ID = 22 }
					set_temp_variable = { Victory_Outcome = 0 }
					set_temp_variable = { Victory_Points = -25 }
					Cold_War_GUI_ManipulateVictory = yes
				}
				JAP = {
					set_temp_variable = { Victory_ID = 22 }
					set_temp_variable = { Victory_Outcome = 0 }
					set_temp_variable = { Victory_Points = -25 }
					Cold_War_GUI_ManipulateVictory = yes
				}
			}
			else_if = {
				limit = {
					AFG = { check_variable = { ECON_SPHERE_LEADER = GER } }
				}
				GER = {
					set_temp_variable = { Victory_ID = 22 }
					set_temp_variable = { Victory_Outcome = 4 }
					set_temp_variable = { Victory_Points = 50 }
					Cold_War_GUI_ManipulateVictory = yes
				}
				JAP = {
					set_temp_variable = { Victory_ID = 22 }
					set_temp_variable = { Victory_Outcome = 1 }
					set_temp_variable = { Victory_Points = -50 }
					Cold_War_GUI_ManipulateVictory = yes
				}
			}
			else_if = {
				limit = {
					AFG = { check_variable = { ECON_SPHERE_LEADER = JAP } }
				}
				GER = {
					set_temp_variable = { Victory_ID = 22 }
					set_temp_variable = { Victory_Outcome = 1 }
					set_temp_variable = { Victory_Points = -50 }
					Cold_War_GUI_ManipulateVictory = yes
				}
				JAP = {
					set_temp_variable = { Victory_ID = 22 }
					set_temp_variable = { Victory_Outcome = 4 }
					set_temp_variable = { Victory_Points = 50 }
					Cold_War_GUI_ManipulateVictory = yes
				}
			}
			KYR = {
				save_party_popularities = yes
				econ_leave_sphere = yes
			}
			TAJ = {
				save_party_popularities = yes
				get_current_government_type = yes
				econ_leave_sphere = yes
			}
			UTL = {
				save_party_popularities = yes
				econ_leave_sphere = yes
			}
			if = {
				limit = {
					NOT = {
						OR = {
							AFG = { has_government = socialist }
							AFG = { has_government = communist }
						}
					}
				}
				AFG = {
					set_autonomy = {
						target = KYR
						autonomy_state = autonomy_satellite
					}
					set_autonomy = {
						target = TAJ
						autonomy_state = autonomy_satellite
					}
					set_autonomy = {
						target = UTL
						autonomy_state = autonomy_military_government
					}
				}
				if = {
					limit = { has_global_flag = AFG_DK_JAP }
					KYR = { econ_join_sphere_JAP = yes }
					TAJ = { econ_join_sphere_JAP = yes }
					UTL = { econ_join_sphere_JAP = yes }
				}
				else_if = {
					limit = { has_global_flag = AFG_DK_TUR }
					KYR = { econ_join_sphere_TUR = yes }
					TAJ = { econ_join_sphere_TUR = yes }
					UTL = { econ_join_sphere_TUR = yes }
				}
			}
		}
		KYR = {
			apply_party_popularities = yes
			set_politics = {
				ruling_party = despotism
			}
		}
		TAJ = {
			apply_party_popularities = yes
			set_politics = {
				ruling_party = ultranationalism
			}
		}
		UTL = {
			apply_party_popularities = yes
			set_politics = {
				ruling_party = despotism
			}
			remove_ideas = {
				UTL_Veli_Rides_Again
				UTL_Black_Dogs
				CA_Turkes_Kenes_Infighting
			}
		}
	}
}

country_event = { #America ending - Turkmenistan annexes UZB/KRK
	id = CA_TK_skeleton.31
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.31" }
	title = CA_TK_skeleton.31.t
	desc = CA_TK_skeleton.31.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.31.a
		if = {
			limit = {
				KRK = {
					exists = yes
				}
			}
			TRK = {
				annex_country = {
					target = KRK
					transfer_troops = no
				}
				every_owned_state = {
					limit = {
						is_core_of = KRK
					}
					add_core_of = TRK
					remove_core_of = KRK
				}
			}
		}
		else = {
			TRK = {
				annex_country = {
					target = UZB
					transfer_troops = no
				}
				every_owned_state = {
					limit = {
						is_core_of = UZB
					}
					add_core_of = TRK
					remove_core_of = UZB
				}
			}
		}
		TRK = {
			set_cosmetic_tag = TRK_united
			set_temp_variable = { TNO_economy_type_temp = token:Econ_Type_Planned }
			econ_type_change = yes
		}
		TRK = {
			country_event = {
				id = CA_TK_skeleton.32
				days = 10
			}
		}
	}
}

country_event = { #Turkestan invades Legion
	id = CA_TK_skeleton.32
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.32" }
	title = CA_TK_skeleton.32.t
	desc = CA_TK_skeleton.32.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.32.a
		TRK = {
			declare_war_on = {
				target = UTL
				type = annex_everything
			}
		}
		if = {
			limit = {
				KYR = {
					is_in_faction_with = TRK
				}
			}
			KYR = {
				declare_war_on = {
					target = UTL
					type = annex_everything
				}
			}
		}
		if = {
			limit = {
				TAJ = {
					is_in_faction_with = TRK
				}
			}
			TAJ = {
				declare_war_on = {
					target = UTL
					type = annex_everything
				}
			}
		}
		UTL = {
			add_ideas = CA_Turkes_Kenes_Infighting
		}
		TRK = {
			country_event = {
				id = CA_TK_skeleton.33
				days = 10
			}
		}
	}
}

country_event = { #Turkestan wins!!! - begin prep to invade neutrals
	id = CA_TK_skeleton.33
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.33" }
	title = CA_TK_skeleton.33.t
	desc = CA_TK_skeleton.33.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.33.a
		if = {
			limit = {
				country_exists = KYR
				KYR = {
					NOT = {
						is_in_faction_with = TRK
					}
				}
			}
			KYR = {
				add_ideas = CA_Turkes_Kenes_Infighting
			}
			TRK = {
				declare_war_on = {
					target = KYR
					type = annex_everything
				}
			}
		}
		else = {
			TRK = {
				if = {
					limit = {
						country_exists = KYR
					}
					annex_country = {
						target = KYR
						transfer_troops = no
					}
					every_owned_state = {
						limit = {
							is_core_of = KYR
						}
						add_core_of = TRK
						remove_core_of = KYR
					}
				}
			}
		}

		if = {
			limit = {
				TAJ = {
					country_exists = TRK
					NOT = {
						is_in_faction_with = TRK
					}
				}
			}
			TAJ = {
				add_ideas = CA_Turkes_Kenes_Infighting
			}
			TRK = {
				declare_war_on = {
					target = TAJ
					type = annex_everything
				}
			}
		}
		else = {
			TRK = {
				if = {
					limit = {
						country_exists = TAJ
					}
					annex_country = {
						target = TAJ
						transfer_troops = no
					}
					every_owned_state = {
						limit = {
							is_core_of = TAJ
						}
						add_core_of = TRK
						remove_core_of = TAJ
					}
				}
			}
		}
	}
}

country_event = { #Finale - disband faction, join OFN
	id = CA_TK_skeleton.34
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_skeleton.34" }
	title = CA_TK_skeleton.34.t
	desc = CA_TK_skeleton.34.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = CA_TK_skeleton.34.a
		TRK = {
			dismantle_faction = yes
			remove_faction_status = yes
			set_temp_variable = { TNO_economy_type_temp = token:Econ_Type_Planned }
			econ_type_change = yes
		}
		KRK = { remove_faction_status = yes }
		UZB = { remove_faction_status = yes }
		#USA = { add_to_faction = TRK }
		#	add_to_array = {
		#		global.OFN_members = TRK
		#	}
		TRK = {
			econ_join_sphere_TUR = yes
		}
	}
}

##############################################################
country_event = { #US The Council Begins
	id = central_asia.100
	immediate = { log = "[GetDateText]: [Root.GetName]: event central_asia.100" }
	title = central_asia.100.t
	desc = central_asia.100.desc
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = central_asia.100

		TNO_setup_CA_Conference = yes
	}
}

# Reload event
country_event = {
	id = central_asia.200
	immediate = { log = "[GetDateText]: [Root.GetName]: event central_asia.200" }
	title = central_asia.200.t
	desc = central_asia.200.desc
	is_triggered_only = yes

	trigger = {
		TRK = {
			has_country_flag = TRK_DC_Happening
		}
	}
	immediate = {
		if = {
			limit = {
				NOT = { has_global_flag = TNO_TURKES_KENES_OVER_OVER }
			}
			TRK = {
				TNO_CA_Conference_daily_tick = yes
			}
			country_event = {
				id = central_asia.200
				days = 1
			}
		}
	}

	hidden = yes


}


############################
#     Espionage Events     #
############################
add_namespace = CA_RND_UVH
add_namespace = CA_CIA

country_event = { # The guns are delivered safely.
	id = CA_RND_UVH.101
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_RND_UVH.101" }
	title = CA_RND_UVH.101.t
	desc = CA_RND_UVH.101.desc
	picture = GFX_report_event_GER_nazi_moon
	is_triggered_only = yes

	fire_only_once = yes

	option = {
		name = CA_RND_UVH.101.a
		PER = {
			send_equipment = {
				equipment = infantry_equipment
				amount = 1000
				target = GER
			}
		}
	}
}

country_event = { #During the treck to the Legion territory, the caravan was attacked by Afghan bandits. While we could deliver most of the package, there is a certain tension if words spread.
	id = CA_RND_UVH.102
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_RND_UVH.102" }
	title = CA_RND_UVH.101.t
	desc = CA_RND_UVH.101.desc
	picture = GFX_report_event_GER_nazi_moon
	is_triggered_only = yes

	fire_only_once = yes

	option = {
		name = CA_RND_UVH.101.a
		PER = {
			send_equipment = {
				equipment = infantry_equipment
				amount = 500
				target = GER
			}
		}
	}
}

country_event = { # Korsimat was successfully assassinated
	id = CA_RND_UVH.201
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_RND_UVH.201" }
	title = CA_RND_UVH.101.t
	desc = CA_RND_UVH.101.desc
	picture = GFX_report_event_GER_nazi_moon
	is_triggered_only = yes

	fire_only_once = yes

	option = {
		name = CA_RND_UVH.101.a
		UTL = {
			set_country_flag = TNO_UTL_Korsimat_Dead
			add_manpower = -1
		}
	}
}

country_event = { #Korsimat survived the murder attempt. While we managed to cover our tracks, the man has grown paranoid. We won't have another chance.
	id = CA_RND_UVH.202
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_RND_UVH.202" }
	title = CA_RND_UVH.101.t
	desc = CA_RND_UVH.101.desc
	picture = GFX_report_event_GER_nazi_moon
	is_triggered_only = yes

	fire_only_once = yes

	option = {
		name = CA_RND_UVH.101.a
	}
}

############################
#        Speer Zone        #
############################

country_event = { #
	id = CA_Speer.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.1" }
	title = CA_Speer.1.t
	desc = CA_Speer.1.desc
	picture = GFX_report_event_SGR_RND_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.1.a
		ai_chance = { factor = 1 }
		country_event = {
			id = CA_Speer.2
			days = 52
		}
	}
}

country_event = { #
	id = CA_Speer.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.2" }
	title = CA_Speer.2.t
	desc = CA_Speer.2.desc
	picture = GFX_report_event_GER_gehlen_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.2.a
		ai_chance = { factor = 1 }
		country_event = {
			id = CA_Speer.3
			days = 15
		}
	}
}

country_event = { #
	id = CA_Speer.3
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.3" }
	title = CA_Speer.3.t
	desc = CA_Speer.3.desc
	#picture =

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.3.a
		ai_chance = { factor = 1 }
		country_event = {
			id = CA_Speer.4
			days = 15
		}
	}
}

country_event = { #
	id = CA_Speer.4
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.4" }
	title = CA_Speer.4.t
	desc = CA_Speer.4.desc
	picture = GFX_report_event_generic_mountain

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.4.a
		ai_chance = { factor = 1 }

	}
	option = { #
		name = CA_Speer.4.b
		ai_chance = { factor = 1 }
		country_event = {
			id = CA_Speer.5
			days = 15
		}
	}
}

country_event = { #
	id = CA_Speer.5
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.5" }
	title = CA_Speer.5.t
	desc = CA_Speer.5.desc
	picture = GFX_report_event_CA_Generic_Veli_Kayyum

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.5.a
		ai_chance = { factor = 1 }
		country_event = {
			id = CA_Speer.6
			days = 3
		}
	}
}

country_event = { #
	id = CA_Speer.6
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.6" }
	title = CA_Speer.6.t
	desc = CA_Speer.6.desc
	picture = GFX_report_event_CA_Generic_Korsirmat

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.6.a
		ai_chance = { factor = 1 }
		country_event = {
			id = CA_Speer.7
		}
	}
	option = { #
		name = CA_Speer.6.b
		ai_chance = { factor = 1 }
		country_event = {
			id = CA_Speer.25
			days = 1
		}
	}
}

country_event = { #
	id = CA_Speer.7
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.7" }
	title = CA_Speer.7.t
	desc = CA_Speer.7.desc
	picture = GFX_report_event_CA_Generic_Baymirza

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.7.a
		ai_chance = { factor = 1 }
		country_event = {
			id = CA_Speer.8
		}
	}
	option = { #
		name = CA_Speer.7.b
		ai_chance = { factor = 1 }
		country_event = {
			id = CA_Speer.26
			days = 1
		}
	}
}

country_event = { #
	id = CA_Speer.8
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.8" }
	title = CA_Speer.8.t
	desc = CA_Speer.8.desc
	picture = GFX_report_event_GER_radio_espionage

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.8.a
		country_event = {
			id = CA_Speer.27
			days = 1
		}
	}
}

country_event = { #
	id = CA_Speer.9
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.9" }
	title = CA_Speer.9.t
	desc = CA_Speer.9.desc
	picture = GFX_report_event_RUS_soldiers_bombed_city

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.9.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = CA_Speer.10
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.10" }
	title = CA_Speer.10.t
	desc = CA_Speer.10.desc
	#picture =

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.10.a
		ai_chance = { factor = 1 }
		UTL = {
			effect_tooltip = { kill_country_leader = yes }
			UTL_Power_Vacuum = {
				add_country_leader_role = {
					country_leader = {
						desc = "POLITICS_TURKESTAN_LEGION_POWER_VACUUM_DESC"
						ideology = national_socialism_subtype
						expire = "1999.1.1"
						traits = { }
						id = -1
					}
				}
				promote_character = yes
			}
		}
		country_event = {
			id = CA_Speer.11
			days = 10
		}
	}
}

country_event = { #
	id = CA_Speer.11
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.11" }
	title = CA_Speer.11.t
	desc = CA_Speer.11.desc
	#picture =

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.11.a
		ai_chance = { factor = 1 }
		country_event = {
			id = CA_Speer.12
			days = 30
		}
	}
}

country_event = { #
	id = CA_Speer.12
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.12" }
	title = CA_Speer.12.t
	desc = CA_Speer.12.desc
	#picture =

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.12.a
		ai_chance = { factor = 1 }
		add_political_power = 100
		set_variable = { GER_TK_Weight = 3 }
		UTL = {
			set_politics = {
				ruling_party = despotism
			}
			set_popularities = {
				communist = 0
				ultranationalism = 5
				socialist = 0
				progressivism = 0
				liberalism = 0
				conservatism = 0
				paternalism = 10
				despotism = 65
				fascism = 5
				national_socialism = 10

			}
			effect_tooltip = { kill_country_leader = yes }
			UTL_Sher_Muhammad = {
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						desc = "POLITICS_SHER_MUHAMMAD_DESC"
						ideology = despotism_personalistic_dictatorship_subtype
						expire = "1999.1.1"
						traits = { }
						id = -1
					}
				}
				promote_character = yes
			}
			#hidden_effect = {
			#	country_event = {
			#		id = central_asia.16
			#		days = 12
			#	}
			#}
		}
	}
}

country_event = { #
	id = CA_Speer.13
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.13" }
	title = CA_Speer.13.t
	desc = CA_Speer.13.desc
	#picture =

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.13.a
		ai_chance = { factor = 1 }

	}
	option = { #
		name = CA_Speer.13.b
		ai_chance = { factor = 1 }

	}
}

country_event = { #
	id = CA_Speer.14
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.14" }
	title = CA_Speer.14.t
	desc = CA_Speer.14.desc
	#picture =

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.14.a
		ai_chance = { factor = 1 }

	}
	option = { #
		name = CA_Speer.14.b
		ai_chance = { factor = 1 }

	}
}

country_event = { #
	id = CA_Speer.15
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.15" }
	title = CA_Speer.15.t
	desc = CA_Speer.15.desc
	picture = GFX_report_event_RUS_soldiers_bombed_city

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.15.a
		ai_chance = { factor = 1 }
		hidden_effect = {
			random_list = {
				25 = {
					country_event = {
						id = CA_Speer.16
						days = 2
					}
				}
				25 = {
					country_event = {
						id = CA_Speer.23
						days = 2
					}
				}
				50 = {
					country_event = {
						id = CA_Speer.24
						days = 2
					}
				}
			}
		}
	}
}

country_event = { #
	id = CA_Speer.16
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.16" }
	title = CA_Speer.16.t
	desc = CA_Speer.16.desc
	picture = GFX_report_event_CA_Generic_Baymirza

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.16.a
		ai_chance = { factor = 1 }

	}
}

country_event = { #
	id = CA_Speer.17
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.17" }
	title = CA_Speer.17.t
	desc = CA_Speer.17.desc
	#picture =

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.17.a
		ai_chance = { factor = 1 }

	}
}

country_event = { #
	id = CA_Speer.18
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.18" }
	title = CA_Speer.18.t
	desc = CA_Speer.18.desc
	#picture =

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.18.a
		ai_chance = { factor = 1 }
		UTL = {
			effect_tooltip = { kill_country_leader = yes }
			UTL_Power_Vacuum = {
				add_country_leader_role = {
					country_leader = {
						desc = "POLITICS_TURKESTAN_LEGION_POWER_VACUUM_DESC"
						ideology = national_socialism_subtype
						expire = "1999.1.1"
						traits = { }
						id = -1
					}
				}
				promote_character = yes
			}
		}
		country_event = {
			id = CA_Speer.12
			days = 30
		}
	}
}

country_event = { #
	id = CA_Speer.19
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.19" }
	title = CA_Speer.19.t
	desc = CA_Speer.19.desc
	#picture =

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.19.a
		ai_chance = { factor = 1 }
		add_political_power = 100
		set_variable = { GER_TK_Weight = 3 }
		#hidden_effect = {
		#	country_event = {
		#		id = central_asia.16
		#		days = 12
		#	}
		#}
		UTL = {
			set_politics = {
				ruling_party = fascism
			}
			set_popularities = {
				communist = 0
				ultranationalism = 5
				socialist = 0
				progressivism = 0
				liberalism = 0
				conservatism = 0
				paternalism = 10
				despotism = 5
				fascism = 45
				national_socialism = 30

			}
			effect_tooltip = { kill_country_leader = yes }
			promote_character = UTL_Baymirza_Hayit
		}
	}
}

country_event = { #
	id = CA_Speer.20
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.20" }
	title = CA_Speer.20.t
	desc = CA_Speer.20.desc
	#picture =

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.20.a
		ai_chance = { factor = 1 }
		country_event = {
			id = CA_Speer.21
			days = 2
		}
	}
}

country_event = { #
	id = CA_Speer.21
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.21" }
	title = CA_Speer.21.t
	desc = CA_Speer.21.desc
	#picture =

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.21.a
		ai_chance = { factor = 1 }
		country_event = {
			id = CA_Speer.22
			days = 2
		}
	}
}

country_event = { #
	id = CA_Speer.22
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.22" }
	title = CA_Speer.22.t
	desc = CA_Speer.22.desc
	#picture =

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.22.a
		ai_chance = { factor = 1 }
		add_political_power = 100
		set_country_flag = TNO_CA_BORMANN_BAYMIRZA_DEAD
		set_country_flag = TNO_CA_BORMANN_KORSIMAT_DEAD
		set_variable = { GER_TK_Weight = 3 }
		#hidden_effect = {
		#	country_event = {
		#		id = central_asia.16
		#		days = 12
		#	}
		#}
	}
}

country_event = { #
	id = CA_Speer.23
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.23" }
	title = CA_Speer.23.t
	desc = CA_Speer.23.desc
	picture = GFX_report_event_CA_Generic_Baymirza

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.23.a
		ai_chance = { factor = 1 }

	}
}

country_event = { #
	id = CA_Speer.24
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.24" }
	title = CA_Speer.24.t
	desc = CA_Speer.24.desc
	picture = GFX_report_event_CA_Generic_Veli_Kayyum

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.24.a
		ai_chance = { factor = 1 }

	}
}

country_event = { #
	id = CA_Speer.25
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.25" }
	title = CA_Speer.25.t
	desc = CA_Speer.25.desc
	#picture =

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.25.a
		ai_chance = { factor = 1 }
		GER = {
			set_country_flag = TNO_CA_SPEER_WORKING_WITH_KORSIMAT
		}
	}
}

country_event = { #
	id = CA_Speer.26
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.26" }
	title = CA_Speer.26.t
	desc = CA_Speer.26.desc
	#picture =

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.26.a
		ai_chance = { factor = 1 }
		GER = {
			set_country_flag = TNO_CA_SPEER_WORKING_WITH_BAYMIRZA
		}
	}
}

country_event = { #
	id = CA_Speer.27
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.27" }
	title = CA_Speer.27.t
	desc = CA_Speer.27.desc
	#picture =

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.27.a
		ai_chance = { factor = 1 }
		GER = {
			set_country_flag = TNO_CA_SPEER_WORKING_WITH_VELLI
		}
	}
}

country_event = { #
	id = CA_Speer.28
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.28" }
	title = CA_Speer.28.t
	desc = CA_Speer.28.desc
	#picture =

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.28.a
		ai_chance = { factor = 1 }

	}
	option = { #
		name = CA_Speer.28.b
		ai_chance = { factor = 1 }

	}
}

country_event = { #
	id = CA_Speer.29
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.29" }
	title = CA_Speer.29.t
	desc = CA_Speer.29.desc
	#picture =

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.29.a
		ai_chance = { factor = 1 }

	}
	option = { #
		name = CA_Speer.29.b
		ai_chance = { factor = 1 }

	}
}

country_event = { #
	id = CA_Speer.30
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_Speer.30" }
	title = CA_Speer.30.t
	desc = CA_Speer.30.desc
	#picture =

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = CA_Speer.30.a
		ai_chance = { factor = 1 }

	}
	option = { #
		name = CA_Speer.30.b
		ai_chance = { factor = 1 }

	}
}

country_event = { # Japan First Warning
	id = CA_TK_Events.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_Events.1" }
	title = CA_TK_Events.1.t
	desc = CA_TK_Events.1.desc
	picture = GFX_report_event_CA_Generic_Teke_Tribes
	is_triggered_only = yes

	fire_only_once = yes
	option = {
		name = CA_TK_Events.1.a

	}
}

country_event = { # USA things are sus
	id = CA_TK_Events.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_Events.2" }
	title = CA_TK_Events.2.t
	desc = CA_TK_Events.2.desc
	picture = GFX_report_event_GER_documents
	is_triggered_only = yes

	fire_only_once = yes
	option = {
		name = CA_TK_Events.2.a

	}
}

country_event = { # GER things are sus
	id = CA_TK_Events.3
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_Events.3" }
	title = CA_TK_Events.3.t
	desc = CA_TK_Events.3.desc
	picture = GFX_report_event_GER_radio_espionage
	is_triggered_only = yes

	fire_only_once = yes
	option = {
		name = CA_TK_Events.3.a

	}
}

country_event = { # Japan Second Warning
	id = CA_TK_Events.4
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_Events.4" }
	title = CA_TK_Events.4.t
	desc = CA_TK_Events.4.desc
	picture = GFX_report_event_KOM_SC_agent_in_chair
	is_triggered_only = yes

	fire_only_once = yes
	option = {
		name = CA_TK_Events.4.a

	}
}

country_event = { # USA things are hella sus
	id = CA_TK_Events.5
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_Events.5" }
	title = CA_TK_Events.5.t
	desc = CA_TK_Events.5.desc
	picture = GFX_report_event_generic_command_table
	is_triggered_only = yes

	fire_only_once = yes
	option = {
		name = CA_TK_Events.5.a

	}
}

country_event = { # GER things are hella sus
	id = CA_TK_Events.6
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_Events.6" }
	title = CA_TK_Events.6.t
	desc = CA_TK_Events.6.desc
	picture = GFX_report_event_IBR_barcelona_rubble
	is_triggered_only = yes

	fire_only_once = yes
	option = {
		name = CA_TK_Events.6.a

	}
}

country_event = { # American Agents Meet with German Agents. Truce to reveal the Japanese involvement
	id = CA_TK_Events.7
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_Events.7" }
	title = CA_TK_Events.7.t
	desc = CA_TK_Events.7.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes

	fire_only_once = yes
	option = {
		name = CA_TK_Events.7.a
		if = {
			limit = { TUR = { is_ai = no } }
			country_event = {
				id = CA_TK_Events.8
				days = 5
			}
		}
		else_if = {
			limit = { GER = { is_ai = no } }
			country_event = {
				id = CA_TK_Events.8
				days = 5
			}
		}
		else = {
			JAP = {
				country_event = {
					id = CA_TK_Events.9
					days = 10
				}
			}
			TUR = {
				country_event = {
					id = CA_TK_Events.10
					days = 10
				}
			}
			GER = {
				country_event = {
					id = CA_TK_Events.10
					days = 10
				}
			}
		}
	}
}

country_event = { # Local media shows the extent of their interference, plans, collab with goddamn Afghanistan
	id = CA_TK_Events.8
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_Events.8" }
	title = CA_TK_Events.8.t
	desc = CA_TK_Events.8.desc
	picture = GFX_report_event_RUS_newspaper_stand
	is_triggered_only = yes

	fire_only_once = yes
	option = {
		name = CA_TK_Events.8.a
		JAP = {
			country_event = {
				id = CA_TK_Events.9
				days = 5
			}
		}
		TUR = {
			country_event = {
				id = CA_TK_Events.10
				days = 5
			}
		}
		GER = {
			country_event = {
				id = CA_TK_Events.10
				days = 5
			}
		}
	}
}

country_event = { # Japan representatives are sent packing, tension at borders but this is the extent of their interference, RIP Japan
	id = CA_TK_Events.9
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_Events.9" }
	title = CA_TK_Events.9.t
	desc = CA_TK_Events.9.desc
	picture = GFX_report_event_JAP_mail
	is_triggered_only = yes
	immediate = {
		JAP = {
			TNO_fopo_remove_ca_conference_tab = yes
		}
	}

	fire_only_once = yes
	option = {
		name = CA_TK_Events.9.a
		add_political_power = -100
	}
}

country_event = { # Japan representatives are sent packing, tension at borders but this is the extent of their interference, RIP Japan - USA and GER POV
	id = CA_TK_Events.10
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_Events.10" }
	title = CA_TK_Events.10.t
	desc = CA_TK_Events.10.desc
	picture = GFX_report_event_IBR_congress_panic
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_TK_Events.10.a
		add_political_power = 100
	}
}

country_event = { #US notification
	id = CA_TK_Events.11
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_Events.11" }
	title = CA_TK_Events.11.t
	desc = CA_TK_Events.11.desc
	picture = GFX_report_event_generic_congress
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_TK_Events.11.a
		custom_effect_tooltip = TNO_CA_Conference_category_enabled_tooltip
	}
}

country_event = { #Germany notification
	id = CA_TK_Events.12
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_Events.12" }
	title = CA_TK_Events.12.t
	desc = CA_TK_Events.12.desc
	picture = GFX_report_event_generic_congress
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_TK_Events.12.a
		custom_effect_tooltip = TNO_CA_Conference_category_enabled_tooltip
	}
}

country_event = { #Japan notification
	id = CA_TK_Events.13
	immediate = { log = "[GetDateText]: [Root.GetName]: event CA_TK_Events.13" }
	title = CA_TK_Events.13.t
	desc = CA_TK_Events.13.desc
	picture = GFX_report_event_generic_congress
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = CA_TK_Events.13.a
		custom_effect_tooltip = TNO_CA_Conference_category_enabled_tooltip
	}
}

## No idea where to put it elsewhere

add_namespace = kazakhstan_wars

country_event = {
	id = kazakhstan_wars.1
	immediate = {log = "[GetDateText]: [Root.GetName]: event kazakhstan_wars.1"}
	title = kazakhstan_wars.1.t
	desc = kazakhstan_wars.1.d
	picture = GFX_report_event_komi_bombing_2

	is_triggered_only = yes
	trigger = { #halts event if shattered between pulse effect and event firing
		NOT = {
			has_global_flag = RUS_shattered_kazakhstan
			has_global_flag = KAZ_UNIFIED
		}
	}

	option = {
		name = kazakhstan_wars.1.a
		hidden_effect = {			
			ZZZ = {
				country_event = {
					id = kazakhstan_wars.1
					days = 7
					random = 24
				}
			}
		}
		random_country = {
			limit = {
				is_kazakh_nation = yes
				NOT = {
					tag = NPL
				}
			}
			hidden_effect = {
				add_war_support = 0.05
				add_manpower = 10000
			}
			random_country = {
				limit = {
					is_kazakh_nation = yes
					if = {
						limit = {
							PREV = {
								any_other_country = {
									is_kazakh_nation = yes
									exists = yes
									NOT = { tag = NPL }
								}
							}
						}
						NOT = {
							tag = NPL
						}
					}
					is_neighbor_of = PREV
					has_war = no
				}
				hidden_effect = {
					add_manpower = 15000
				}
				declare_war_on = {
					target = PREV
					type = annex_everything
				}
			}
		}
	}
}

country_event = { #Nowa Polska Kills Kazakhstan Event
	id = kazakhstan_wars.2
	immediate = {
		log = "[GetDateText]: [Root.GetName]: event kazakhstan_wars.2"
		hidden_effect = {
			set_global_flag = RUS_shattered_kazakhstan
			NPL = {
				406 = {
					add_core_of = NPL
				}
				set_autonomy = {
					target = ARL
					autonomy_state = autonomy_client_state
				}
				transfer_state = 406
				clear_global_event_target = RUS_kazakhstan_unifier
				587 = { remove_core_of = ARL }
			}
			ARL = {
				set_politics = {
					ruling_party = paternalism
				}
				create_country_leader = {
					name = "Rudolf Dzipanov"
					desc = "POLITICS_RUDOLF_DZIPANOV_DESC"
					picture = "gfx/leaders/NPL/Portrait_Nowa_Polska_Rudolf_Dzipanov.dds"
					expire = "1999.1.1"
					ideology = paternalism_subtype
					traits = { }
				}
				406 = { remove_core_of = ARL }
				583 = {
					add_core_of = ARL
				}
				transfer_state = 402
				transfer_state = 583
				set_cosmetic_tag = ARL_NPL
				add_popularity = {
					ideology = paternalism
					popularity = 0.40
				}
				add_popularity = {
					ideology = conservatism
					popularity = 0.05
				}
				add_popularity = {
					ideology = progressivism
					popularity = 0.05
				}
				remove_ideas = {
					ARL_national_renewal
				}
			}
			KAZ = {
				set_politics = {
					ruling_party = progressivism
				}
				create_country_leader = {
					name = "Isatai Abdukarimov"
					desc = "POLITICS_ISATAI_ABDUKARIMOV_DESC"
					picture = "gfx/leaders/KAZ/Portrait_Kazakhstan_Isatai_Abdukarimov.dds"
					expire = "1999.1.1"
					ideology = progressivism_subtype
					traits = { }
				}
				588 = {
					add_core_of = KAZ
				}
				590 = {
					add_core_of = KAZ
				}
				1805 = {
					add_core_of = KAZ
				}
				1806 = { 
					add_core_of = KAZ
				}
				1808 = {
					add_core_of = KAZ
				}
				transfer_state = 587
				transfer_state = 589
				transfer_state = 404
				transfer_state = 588
				transfer_state = 590
				transfer_state = 1802
				transfer_state = 1803
				transfer_state = 1804
				transfer_state = 1805
				transfer_state = 1806
				transfer_state = 1807
				transfer_state = 1808
				set_cosmetic_tag = KAZ_NPL
				set_capital = { state = 589 }
				add_popularity = {
					ideology = progressivism
					popularity = 0.40
				}
				add_popularity = {
					ideology = conservatism
					popularity = 0.10
				}
				add_popularity = {
					ideology = paternalism
					popularity = 0.15
				}
				remove_ideas = {
					KAZ_kaz_red_army
				}
				remove_ideas = {
					KAZ_bandit_plague
				}
				save_global_event_target_as = RUS_kazakhstan_unifier
			}
		}
	}
	title = kazakhstan_wars.2.t
	desc = kazakhstan_wars.2.desc
	#picture =

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = kazakhstan_wars.2.a
		ai_chance = { factor = 1 }
	}
}