############################
#  		Turkey Events	   #
############################

#Section 1: turkey_skeleton
#Section 2: turkey_skeleton_news
#Section 3: turkey_faction_skeleton

add_namespace = turkey

add_namespace = turkey_skeleton

#Section 1: turkey_skeleton
country_event = { #Spring Protests of 1962 
	id = turkey_skeleton.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton.1" }
	title = turkey_skeleton.1.t
	desc = turkey_skeleton.1.d

	is_triggered_only = yes
	fire_only_once = yes
	
	option = { #Agree to reforms
		name = turkey_skeleton.1.a
		ai_chance = {
			base = 1
			modifier = { 
				factor = 0
				OR = {
					has_game_rule = { rule = TUR_SPRING_PROTESTS_PATH option = TUR_SPRING_PROTESTS_PATH_PROTESTS_CRUSHED } 
				}
			}
		}
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.1
		}
	}
	option = { #crush protests
		name = turkey_skeleton.1.b
		ai_chance = {
			base = 1
			modifier = { 
				factor = 0
				OR = {
					has_game_rule = { rule = TUR_SPRING_PROTESTS_PATH option = TUR_SPRING_PROTESTS_PATH_NEGOTIATIONS }
				}
			}
		}
		set_country_flag = TUR_spring_protests_crushed #will hurt CHP
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.2
		}
	}
}
	

country_event = { #1963 Elections
	id = turkey_skeleton.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton.2" }
	title = turkey_skeleton.2.t
	desc = turkey_skeleton.2.d

	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		hidden_effect = {
			country_event = { id = turkey_skeleton.17 days = 2920 } #1971 elections
			country_event = {
				id = turkey_faction_skeleton.11
				days = 1868 #should correspond to 5 May 1968
			}
		}
	}
	#This event date should correspond to 24 March 1963

	option = { #CHP
		name = turkey_skeleton.2.a
		
		trigger = { has_country_flag = tur_won_itw }

		ai_chance = {
			base = 1
			modifier = {
				factor = 7
				has_country_flag = TUR_won_itw
			}
			modifier = {
				factor = 0.5
				has_country_flag = TUR_spring_protests_crushed
			}
			modifier = { 
				factor = 0
				OR = {
					has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_UDP_MENDERES }
					has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_UDP_DEMIREL }
					has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_UDP_BILGIC }
					has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_DYP_SOCIALISTS }
					has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_DYP_LIBERALS }
				}
			}
		}

		meta_effect = { #sets up next election date in country ui
			text = {
				set_politics = {
					ruling_party = paternalism
					last_election = "[current_election_date]"
					elections_allowed = yes
					election_frequency = 48
				}
			}
			current_election_date = "[?global.date.GetDateStringNoHour]"
		}
		set_country_flag = TUR_CHP_gov
		promote_character = { 
			character = TUR_Ismet_Inonu
			ideology = paternalism_kemalism_subtype 
		}
		set_popularities = {
			communist = 0
			socialist = 6
			progressivism = 16
			liberalism = 6
			liberal_conservatism = 4
			conservatism = 14
			conservatism_1 = 13
			paternalism = 35
			paternalism_1 = 6
			despotism = 0
			fascism = 0
		}
		every_country = { #Resignation Crisis
			limit = { is_ai = no }
			news_event = { id = turkey_skeleton_news.9 days = 730 random_hours = 300 }
		}
		country_event = { id = turkey_skeleton.3 days = 1460 } # Coup vs election
		
		swap_ideas = {
			remove_idea = TUR_demokrasi_bahari
			add_idea = TUR_divide_and_conquer_idea
		}
		add_ideas = TUR_a_modern_chp_0
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.3
		}
	}

	option = { #UDP
		name = turkey_skeleton.2.b

		ai_chance = {
			base = 1
			modifier = {
				factor = 2
				has_country_flag = TUR_won_itw
			}
			modifier = {
				factor = 3
				has_country_flag = TUR_lost_itw
			}
			modifier = { 
				factor = 0
				OR = {
					has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_CHP_LEFT }
					has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_CHP_RIGHT }
					has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_DYP_SOCIALISTS }
					has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_DYP_LIBERALS }
					has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_22_APRIL_INCIDENT }
				}
			}
		}

		meta_effect = { #sets up next election date in country ui
			text = {
				set_politics = {
					ruling_party = liberal_conservatism
					last_election = "[current_election_date]"
					elections_allowed = yes
					election_frequency = 48
				}
			}
			current_election_date = "[?global.date.GetDateStringNoHour]"
		}
		set_country_flag = TUR_UDP_gov
		promote_character = { 
			character = TUR_Fuat_Koprulu
			ideology = liberal_conservatism_subtype 
		}
			
		set_popularities = {
			communist = 0
			socialist = 6
			progressivism = 10
			liberalism = 6
			liberal_conservatism = 14
			conservatism = 21
			conservatism_1 = 8
			paternalism = 24
			paternalism_1 = 11
			despotism = 0
			fascism = 0
		}
		country_event = { id = turkey_skeleton.3 days = 1460 } # Coup vs election
		random_list = {
			3 = {
				modifier = { 
					factor = 0
					OR = {
						has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_UDP_DEMIREL }
						has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_UDP_BILGIC }
					}
				}
				every_country = { #Military reforms
					limit = { is_ai = no }
					news_event = { id = turkey_skeleton_news.14 days = 730 }
				}
				set_country_flag = TUR_Menderes_ascendant
			}
			7 = {
				modifier = {
					factor = 0
					has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_UDP_MENDERES }
				}
				every_country = { #Kurtbek resigns
					limit = { is_ai = no }
					news_event = { id = turkey_skeleton_news.15 days = 730 }
				}
			}
		}
		
		swap_ideas = {
			remove_idea = TUR_demokrasi_bahari
			add_idea = TUR_demokrasi_ittifaki
		}
		add_ideas = TUR_great_turkey
		add_ideas = TUR_will_of_the_people
		
		if = {
			limit = { has_country_flag = tur_won_itw }
			every_country = {
				limit = { is_ai = no }
				news_event = turkey_skeleton_news.4
			}
		}
		else = {
			every_country = {
				limit = { is_ai = no }
				news_event = turkey_skeleton_news.5
			}
		}
	}
	
	option = { #DYP
		name = turkey_skeleton.2.c

		ai_chance = {
			base = 1
			modifier = {
				factor = 1
				has_country_flag = TUR_won_itw
			}
			modifier = {
				factor = 2
				has_country_flag = TUR_lost_itw
			}
			modifier = { 
				factor = 0
				OR = {
					has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_CHP_LEFT }
					has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_CHP_RIGHT }
					has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_UDP_MENDERES }
					has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_UDP_DEMIREL }
					has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_UDP_BILGIC }
					has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_22_APRIL_INCIDENT }
				}
			}
		}
		meta_effect = { #sets up next election date in country ui
			text = {
				set_politics = {
					ruling_party = progressivism
					last_election = "[current_election_date]"
					elections_allowed = yes
					election_frequency = 48
				}
			}
			current_election_date = "[?global.date.GetDateStringNoHour]"
		}
		set_country_flag = TUR_DYP_gov
		
		#DYP is being moderated, move Left-CHP to altideology
		promote_character = { 
			character = TUR_Tevfik_Rustu_Aras
			ideology = progressivism_popular_front_subtype
		}
		set_party_name = {
			ideology = progressivism_1
			name = TUR_paternalism_party
			long_name = TUR_paternalism_party_long
		}
		set_party_name = {
			ideology = progressivism
			name = TUR_progressivism_party
			long_name = TUR_progressivism_party_long
		}
		set_popularities = {
			communist = 0
			socialist = 22
			progressivism = 0
			progressivism_1 = 11
			liberalism = 18
			liberal_conservatism = 5
			conservatism = 12
			conservatism_1 = 9
			paternalism = 17
			paternalism_1 = 6
			despotism = 0
			fascism = 0
		}
		
		country_event = { id = turkey_skeleton.3 days = 1460 } # Coup vs election
		
		swap_ideas = {
			remove_idea = TUR_demokrasi_bahari
			add_idea = TUR_demokrasi_ittifaki
		}
		add_ideas = TUR_contrasting_ideals
		
		if = {
			limit = { has_country_flag = tur_won_itw }
			every_country = {
				limit = { is_ai = no }
				news_event = turkey_skeleton_news.6
			}
		}
		else = {
			every_country = {
				limit = { is_ai = no }
				news_event = turkey_skeleton_news.7
			}
		}
	}
	
	option = { #RadKems
		name = turkey_skeleton.2.e
		
		trigger = { has_country_flag = tur_lost_itw }

		ai_chance = {
			base = 1
			modifier = {
				factor = 2
				has_country_flag = TUR_spring_protests_crushed
			}
			modifier = {
				factor = 4
				has_country_flag = TUR_lost_itw
			}
			modifier = { 
				factor = 0
				OR = {
					has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_DYP_SOCIALISTS }
					has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_DYP_LIBERALS }
					has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_UDP_MENDERES }
					has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_UDP_DEMIREL }
					has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_UDP_BILGIC }
				}
			}
		}

		meta_effect = { #sets up next election date in country ui
			text = {
				set_politics = {
					ruling_party = despotism
					last_election = "[current_election_date]"
					elections_allowed = no
					election_frequency = 48
				}
			}
			current_election_date = "[?global.date.GetDateStringNoHour]"
		}
		set_country_flag = TUR_RadKem_gov
		set_country_flag = TUR_not_democratic
		TUR_Ismet_Inonu = { 
			promote_character = { ideology = despotism_radical_kemalism_subtype }
			set_portraits = {
				civilian = { large = "gfx/leaders/TUR/Portrait_Turkey_Ismet_Inonu_RadKem.png" }
			}
		}
		
		set_popularities = {
			communist = 0
			socialist = 2
			progressivism = 0
			liberalism = 0
			liberal_conservatism = 0
			conservatism = 0
			paternalism = 32
			despotism = 42
			despotism_3 = 11
			despotism_2 = 11
			fascism = 2
			ultranationalism = 0
			national_socialism = 0
		}
		
		set_party_name = {
			ideology = despotism_3
			name = TUR_Yon_party
			long_name = TUR_Yon_party_long
		}
		set_party_name = {
			ideology = despotism_2
			name = TUR_Ulku_party
			long_name = TUR_Ulku_party_long
		}
		set_party_name = {
			ideology = paternalism
			name = TUR_CHP_Moderates_party
			long_name = TUR_CHP_Moderates_party_long
		}
		set_party_name = {
			ideology = socialist
			name = TUR_RadKem_socialists_party
			long_name = TUR_RadKem_socialists_party_long
		}
		set_party_name = {
			ideology = fascism
			name = TUR_RadKem_nationalists_party
			long_name = TUR_RadKem_nationalists_party_long
		}
		
		country_event = { id = turkey_skeleton.14 days = 730 } # RadKem consolidation check
		
		country_lock_all_division_template = yes
		swap_ideas = {
			remove_idea = TUR_stains_of_the_past
			add_idea = TUR_second_turkish_revolution
		}
		swap_ideas = {
			remove_idea = TUR_demokrasi_bahari
			add_idea = TUR_rogue_general_insurrection
		}
		add_ideas = TUR_inonu_and_his_devil
		
		1267 = { set_demilitarized_zone = yes } #East Thrace
		341 = { set_demilitarized_zone = yes }  #Istanbul
		347 = { set_demilitarized_zone = yes }  #Kocaeli
		345 = { set_demilitarized_zone = yes }  #Balıkesir
		340 = { set_demilitarized_zone = yes }  #Bursa
		339 = { set_demilitarized_zone = yes }  #İzmir
		344 = { set_demilitarized_zone = yes }  #Adana
		1988 = { set_demilitarized_zone = yes } #Hatay
		1448 = { set_demilitarized_zone = yes } #Rize
		1565 = { set_demilitarized_zone = yes } #Batum
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.8
		}
	}
}

country_event = { #coup check
	id = turkey_skeleton.3
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton.3" }
	title = turkey_skeleton.3.t
	desc = turkey_skeleton.3.d

	is_triggered_only = yes
	fire_only_once = yes

	option = { #stage the coup
		name = turkey_skeleton.3.a
		trigger = { NOT = { has_country_flag = TUR_CHP_gov } }
		ai_chance = {
			base = 1
			modifier = { 
				factor = 0
				OR = {
					has_game_rule = { rule = TUR_MILITARY_COUP_PATH option = TUR_MILITARY_COUP_PATH_NO }
				}
			}
		}
		if = {
			limit = {
				has_government = progressivism
				has_country_flag = TUR_DYP_gov
			}
			every_country = {
				limit = { is_ai = no }
				news_event = turkey_skeleton_news.27
			}
		}
		else_if = {
			limit = {
				has_government = liberal_conservatism
				has_country_flag = TUR_UDP_gov
			}
			every_country = {
				limit = { is_ai = no }
				news_event = turkey_skeleton_news.26
			}
		}
		clr_country_flag = TUR_UDP_gov
		clr_country_flag = TUR_DYP_gov
		set_country_flag = TUR_not_democratic
		set_country_flag = TUR_Junta_gov
		set_politics = {
			ruling_party = despotism
			elections_allowed = no
		}
		promote_character = { 
			character = TUR_Cevdet_Sunay
			ideology = despotism_military_junta_subtype 
		}
		set_party_name = {
			ideology = despotism
			name = TUR_despotism_party
			long_name = TUR_despotism_party_long
		}
		set_party_name = {
			ideology = despotism_2
			name = TUR_MBK_radicals_party
			long_name = TUR_MBK_radicals_party_long
		}
		set_party_name = {
			ideology = paternalism
			name = TUR_MBK_democrats_party
			long_name = TUR_MBK_democrats_party_long
		}
		set_party_name = {
			ideology = socialist
			name = TUR_MBK_socialists_party
			long_name = TUR_MBK_socialists_party_long
		}
		set_party_name = {
			ideology = fascism
			name = TUR_MBK_nationalists_party
			long_name = TUR_MBK_nationalists_party_long
		}
		
		set_popularities = {
			communist = 0
			ultranationalism = 0
			national_socialism = 0
			socialist = 2
			progressivism = 0
			liberalism = 0
			liberal_conservatism = 0
			conservatism = 0
			paternalism = 31
			despotism = 52
			despotism_2 = 12
			fascism = 3
		}
		
		remove_ideas = TUR_demokrasi_ittifaki
		remove_ideas = TUR_great_turkey
		remove_ideas = TUR_will_of_the_people
		remove_ideas = TUR_contrasting_ideals
		remove_ideas = TUR_stains_of_the_past
		add_ideas = TUR_echoes_in_the_barracks
		#add_ideas = TUR_spectre_of_radicalism
		
		country_event = { id = turkey_skeleton.11 days = 365 }
	}
	option = { #get to 1967 elections
		name = turkey_skeleton.3.b
		ai_chance = {
			base = 1
			modifier = { 
				factor = 0
				OR = {
					has_game_rule = { rule = TUR_MILITARY_COUP_PATH option = TUR_MILITARY_COUP_PATH_YES }
				}
			}
		}
		remove_ideas = TUR_stains_of_the_past
		#setting up MMP here because why not; it will be overridden where needed anyway
		promote_character = {
			character = TUR_Sadettin_Bilgic
			ideology = conservatism_2_subtype
		}
		set_party_name = {
			ideology = conservatism_2
			long_name = TUR_MMP_party_long
			name = TUR_MMP_party
		}
		#CHP government
		if = {
			limit = {
				has_government = paternalism
				has_country_flag = TUR_CHP_gov
			}
			every_country = {
				limit = { is_ai = no }
				news_event = turkey_skeleton_news.10
			}
			country_event = { id = turkey_skeleton.4 days = 730 } #İnönü Resignation
			meta_effect = { #sets up next election date in country ui
				text = {
					set_politics = {
						ruling_party = paternalism
						last_election = "[current_election_date]"
						elections_allowed = yes
						election_frequency = 48
					}
				}
				current_election_date = "[?global.date.GetDateStringNoHour]"
			}
			set_popularities = {
				communist = 0
				socialist = 6
				progressivism = 16
				liberalism = 6
				liberal_conservatism = 0
				conservatism = 22
				conservatism_1 = 15
				paternalism = 35
				paternalism_1 = 0
				despotism = 0
				fascism = 0
			}
		}
		#UDP govenment
		else_if = {
			limit = {
				has_government = liberal_conservatism
				has_country_flag = TUR_UDP_gov
			}
			#CHP goes left in all cases of UDP
			set_country_flag = tur_chp_went_left
			set_party_name = {
				ideology = conservatism_1
				long_name = TUR_CGP_party_long
				name = TUR_CGP_party
			}
			#popularities are divided under succession codes
			
			if = { #Military was reformed, Menderes becomes president
				limit = { has_country_flag = TUR_Menderes_ascendant }
				
				set_popularities = {
					communist = 0
					socialist = 7
					progressivism = 12
					liberalism = 7
					liberal_conservatism = 0
					conservatism = 10
					conservatism_1 = 9
					conservatism_2 = 13
					paternalism = 42
					despotism = 0
					fascism = 0
				}
		
				meta_effect = { #sets up next election date in country ui
					text = {
						set_politics = {
							ruling_party = paternalism
							last_election = "[current_election_date]"
							elections_allowed = yes
							election_frequency = 48
						}
					}
					current_election_date = "[?global.date.GetDateStringNoHour]"
				}
				
				#set party names
				set_party_name = {
					ideology = conservatism
					long_name = TUR_AP_party_long
					name = TUR_AP_party
				}
				set_party_name = {
					ideology = conservatism_2
					long_name = TUR_MMP_party_long
					name = TUR_MMP_party
				}
				set_party_name = {
					ideology = paternalism
					long_name = TUR_conservatism_party_long
					name = TUR_conservatism_party
				}
				promote_character = {
					character = TUR_Adnan_Menderes
					ideology = paternalism_anocracy_subtype
				}
				promote_character = {
					character = TUR_Suleyman_Demirel
					ideology = conservatism_populist_conservatism_subtype
				}
				promote_character = {
					character = TUR_Sadettin_Bilgic
					ideology = conservatism_2_subtype #conservatism_paternalistic_conservatism_subtype
				}
				
				country_event = { id = turkey_skeleton.9 days = 1095 } #Menderes rewrites constitution
				
				swap_ideas = {
					remove_idea = TUR_will_of_the_people
					add_idea = TUR_will_of_the_people_2
				}
				swap_ideas = {
					remove_idea = TUR_great_turkey
					add_idea = TUR_great_turkey_menderes
				}
				remove_ideas = TUR_demokrasi_ittifaki
				
				every_country = {
					limit = { is_ai = no }
					news_event = turkey_skeleton_news.17
				}
			}
			else = { #Menderes is purged from party, democracy is saved
				set_party_name = {
					ideology = paternalism
					long_name = TUR_MDP_party_long
					name = TUR_MDP_party
				}
				promote_character = {
					character = TUR_Adnan_Menderes
					ideology = paternalism_anocracy_subtype #he won't get into power so it's safe.
				}
				swap_ideas = {
					remove_idea = TUR_demokrasi_ittifaki
					add_idea = TUR_demokrasi_ittifaki_udp
				}
				swap_ideas = {
					remove_idea = TUR_will_of_the_people
					add_idea = TUR_gilgamesh_against_enkidu
				}
				country_event = { id = turkey_skeleton.8 days = 1095 } #Menderes is killed
				
				random_list = {
					1 = { #Demirel becomes Prime Minister
						modifier = { 
							factor = 0
							OR = {
								has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_UDP_MENDERES }
								has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_UDP_BILGIC }
							}
						}
						set_country_flag = TUR_UDP_Demirel
						meta_effect = { #sets up next election date in country ui
							text = {
								set_politics = {
									ruling_party = conservatism
									last_election = "[current_election_date]"
									elections_allowed = yes
									election_frequency = 48
								}
							}
							current_election_date = "[?global.date.GetDateStringNoHour]"
						}

						add_country_leader_role = {
							character = TUR_Fuat_Koprulu
							promote_leader = yes
							country_leader = { #PM Demirel
								desc = "POLITICS_FUAT_KOPRULU_DESC"
								expire = "1999.1.1"
								ideology = conservatism_populist_conservatism_subtype
								traits = {
									# kopruluzade # trait doesn't exist
								}
								id = -1
							}
						}
						promote_character = {
							character = TUR_Sadettin_Bilgic
							ideology = conservatism_2_subtype
						}
						set_party_name = {
							ideology = conservatism_2
							long_name = TUR_MMP_party_long
							name = TUR_MMP_party
						}
						set_popularities = {
							communist = 0
							socialist = 9
							progressivism = 27
							liberalism = 9
							liberal_conservatism = 0
							conservatism = 17
							conservatism_1 = 15
							conservatism_2 = 13
							paternalism = 10
							despotism = 0
							fascism = 0
						}
						
						swap_ideas = {
							remove_idea = TUR_great_turkey
							add_idea = TUR_great_turkey_demirel
						}
						
						every_country = {
							limit = { is_ai = no }
							news_event = turkey_skeleton_news.18
						}
					}
					1 = { #Bilgiç becomes Prime Minister
						modifier = { 
							factor = 0
							OR = {
								has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_UDP_MENDERES }
								has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_UDP_DEMIREL }
							}
						}
						meta_effect = { #sets up next election date in country ui
							text = {
								set_politics = {
									ruling_party = conservatism
									last_election = "[current_election_date]"
									elections_allowed = yes
									election_frequency = 48
								}
							}
							current_election_date = "[?global.date.GetDateStringNoHour]"
						}
					
						promote_character = {
							character = TUR_Fuat_Koprulu
							ideology = conservatism_paternalistic_conservatism_subtype
						}
						promote_character = {
							character = TUR_Suleyman_Demirel
							ideology = conservatism_2_subtype
						}
						set_party_name = {
							ideology = conservatism_2
							long_name = TUR_AP_party_long
							name = TUR_AP_party
						}
						
						set_popularities = {
							communist = 0
							socialist = 9
							progressivism = 22
							liberalism = 7
							liberal_conservatism = 0
							conservatism = 24
							conservatism_1 = 12
							conservatism_2 = 16
							paternalism = 10
							despotism = 0
							fascism = 0
						}
						
						swap_ideas = {
							remove_idea = TUR_great_turkey
							add_idea = TUR_great_turkey_bilgic
						}
						
						every_country = {
							limit = { is_ai = no }
							news_event = turkey_skeleton_news.19
						}
					}
				}
			}
		}
		#DYP government
		else_if = {
			limit = {
				has_government = progressivism
				has_country_flag = TUR_DYP_gov
			}
			every_country = {
				limit = { is_ai = no }
				news_event = turkey_skeleton_news.22
			}
			every_country = { #DİSK protests
				limit = { is_ai = no }
				news_event = { id = turkey_skeleton_news.23 days = 550 }
			}
			country_event = { id = turkey_skeleton.10 days = 730 } #DİSK Protests conclusion
			meta_effect = { #sets up next election date in country ui
				text = {
					set_politics = {
						ruling_party = progressivism
						last_election = "[current_election_date]"
						elections_allowed = yes
						election_frequency = 48
					}
				}
				current_election_date = "[?global.date.GetDateStringNoHour]"
			}
		}
	}
}

country_event = { #İnönü resigns in 1969
	id = turkey_skeleton.4
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton.4" }
	title = turkey_skeleton.4.t
	desc = turkey_skeleton.4.d

	is_triggered_only = yes
	fire_only_once = yes
	
	option = { #yay?
		name = turkey_skeleton.4.a 
		promote_character = { 
			character = TUR_Kasim_Gulek
			ideology = paternalism_kemalism_subtype 
		}
		country_event = { id = turkey_skeleton.5 days = 180 } #CHP going Left or Right?
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.11
		}
	}
}


country_event = { #CHP internal chicanery
	id = turkey_skeleton.5
	immediate = {
		log = "[GetDateText]: [Root.GetName]: event turkey_skeleton.4"
		country_event = { id = turkey_skeleton.6 days = 90 } #check if reforms were success
	}
	title = turkey_skeleton.5.t
	desc = turkey_skeleton.5.d

	is_triggered_only = yes
	fire_only_once = yes

	option = { #L-CHP
		name = turkey_skeleton.5.a

		ai_chance = {
			base = 5
			modifier = {
				factor = 0
				has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_CHP_RIGHT }
			}
		}

		set_country_flag = tur_chp_went_left

		set_party_name = {
			ideology = progressivism
			long_name = TUR_paternalism_party_long
			name = TUR_paternalism_party
		}
		set_party_name = {
			ideology = conservatism_1
			long_name = TUR_CGP_party_long
			name = TUR_CGP_party
		}

		promote_character = {
			character = TUR_Kasim_Gulek
			ideology = progressivism_left_kemalism_subtype
		}

		set_politics = {
			ruling_party = progressivism
			last_election = "1967.1.1"
			election_frequency = 48
			elections_allowed = yes
		}
		
		set_popularities = {
			communist = 0
			socialist = 6
			progressivism = 36
			liberalism = 6
			liberal_conservatism = 0
			conservatism = 22
			conservatism_1 = 30
			paternalism = 0
			despotism = 0
			fascism = 0
		}
		
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.12
		}
	}

	option = { #R-CHP
		name = turkey_skeleton.5.b

		ai_chance = {
			base = 5
			modifier = {
				factor = 0
				has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_CHP_LEFT }
			}
		}
		promote_character = {
			character = TUR_Kasim_Gulek
			ideology = conservatism_right_kemalism_subtype
		}
		promote_character = {
			character = TUR_Adnan_Menderes
			ideology = conservatism_1_subtype
		}

		set_politics = {
			ruling_party = conservatism
			last_election = "1967.1.1"
			election_frequency = 48
			elections_allowed = yes
		}
		#swapping conservatism_1 and conservatism
		set_party_name = {
			ideology = conservatism
			long_name = TUR_paternalism_party_long
			name = TUR_paternalism_party
		}
		set_party_name = {
			ideology = conservatism_1
			long_name = TUR_conservatism_party_long
			name = TUR_conservatism_party
		}
		
		set_popularities = {
			communist = 0
			socialist = 6
			progressivism = 31
			liberalism = 6
			liberal_conservatism = 0
			conservatism = 35
			conservatism_1 = 22
			paternalism = 0
			despotism = 0
			fascism = 0
		}
		
		set_country_flag = tur_chp_went_right
		
		set_party_name = {
			ideology = progressivism
			long_name = TUR_DSP_party_long
			name = TUR_DSP_party
		}
		
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.13
		}
	}
}

country_event = { #Gülek's reforms check
	id = turkey_skeleton.6
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton.6" }
	title = turkey_skeleton.6.t
	desc = turkey_skeleton.6.d

	is_triggered_only = yes
	fire_only_once = yes
	
	option = { #reforms were success
		name = turkey_skeleton.6.a
		random_list = {
			7 = {
				if = {
					limit = { has_country_flag = tur_chp_went_left }
					swap_ideas = {
						remove_idea = TUR_a_modern_chp_0
						add_idea = TUR_a_modern_chp_1
					}
				}
				else = {
					swap_ideas = {
						remove_idea = TUR_a_modern_chp_0
						add_idea = TUR_a_modern_chp_2
					}
				}
			}
			3 = {
				swap_ideas = {
					remove_idea = TUR_a_modern_chp_0
					add_idea = TUR_a_modern_chp_3
				}
			}
		}
	}
}

#country_event = { #UDP Sunday Crisis	#Merged to 1967 coup check
#	id = turkey_skeleton.7
#	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton.7" }
#	title = turkey_skeleton.7.t
#	desc = turkey_skeleton.7.d
#
#	is_triggered_only = yes
#	fire_only_once = yes
#	
#	option = { #Menderes becomes president
#		name = turkey_skeleton.7.a
#		
#		trigger = { has_country_flag = TUR_Menderes_ascendant }
#		
#		ai_chance = {
#			base = 3
#			#modifier = { # add gamerule
#			#	factor = 0
#			#	OR = {
#			#		has_game_rule = { rule = TUR_UDP_PATH option = TUR_UDP_PATH_DEMIREL }
#			#		has_game_rule = { rule = TUR_UDP_PATH option = TUR_UDP_PATH_BILGIC }
#			#	}
#			#}
#		}
#		
#		#move conservatism to paternalism, add paternalism_1 over conservatism and move paternalism to paternalism_1
#		add_popularity = {
#			ideology = paternalism_2
#			popularity = party_popularity@paternalism_1
#		}
#		add_popularity = {
#			ideology = paternalism_1
#			popularity = -1
#		}
#		add_popularity = {
#			ideology = paternalism_1
#			popularity = party_popularity@paternalism
#		}
#		add_popularity = {
#			ideology = paternalism
#			popularity = -1
#		}
#		add_popularity = {
#			ideology = paternalism
#			popularity = party_popularity@conservatism
#		}
#		add_popularity = {
#			ideology = paternalism
#			popularity = party_popularity@liberal_conservatism
#		}
#		add_popularity = {
#			ideology = liberal_conservatism
#			popularity = -1
#		}
#		add_popularity = {
#			ideology = conservatism
#			popularity = -1
#		}
#		add_popularity = {
#			ideology = conservatism
#			popularity = party_popularity@paternalism_2
#		}
#		add_popularity = {
#			ideology = paternalism_2
#			popularity = -1
#		}
#		add_popularity = {
#			ideology = conservatism
#			popularity = -1
#		}
#		add_popularity = {
#			ideology = socialist
#			popularity = -0.05
#		}
#		add_popularity = {
#			ideology = liberalism
#			popularity = -0.05
#		}
#		#set_popularities = {
#		#	communist = 0
#		#	ultranationalism = 0
#		#	national_socialism = 0
#		#	socialist = 8
#		#	progressivism = 10
#		#	liberalism = 8
#		#	liberal_conservatism = 12
#		#	conservatism = 12
#		#	conservatism_1 = 9
#		#	paternalism = 25
#		#	paternalism_1 = 16
#		#	despotism = 0
#		#	fascism = 0
#		#}
#		
#		meta_effect = { #sets up next election date in country ui
#			text = {
#				set_politics = {
#					ruling_party = paternalism
#					last_election = "[current_election_date]"
#					elections_allowed = yes
#					election_frequency = 48
#				}
#			}
#			current_election_date = "[?global.date.GetDateStringNoHour]"
#		}
#		
#		#set party names
#		set_party_name = {
#			ideology = paternalism
#			long_name = TUR_conservatism_party_long
#			name = TUR_conservatism_party
#		}
#		set_party_name = {
#			ideology = paternalism_1
#			long_name = TUR_paternalism_party_long
#			name = TUR_paternalism_party
#		}
#		
#		promote_character = {
#			character = TUR_Adnan_Menderes
#			ideology = paternalism_anocracy_subtype
#		}
#		promote_character = {
#			character = TUR_Ismet_Inonu
#			ideology = paternalism_1_subtype
#		}
#		promote_character = {
#			character = TUR_Osman_Turan
#			ideology = conservatism_paternalistic_conservatism_subtype
#		}
#		
#		country_event = { id = turkey_skeleton.9 days = 1095 } #Menderes rewrites constitution
#		
#		every_country = {
#			limit = { is_ai = no }
#			news_event = turkey_skeleton_news.17
#		}
#		
#	}
#	option = { #Demirel becomes Prime Minister
#		name = turkey_skeleton.7.b
#		set_country_flag = TUR_UDP_Demirel
#		
#		ai_chance = {
#			base = 3
#			modifier = {
#				factor = 0
#				has_country_flag = TUR_Menderes_ascendant
#			}
#			#modifier = { # add gamerule
#			#	factor = 0
#			#	OR = {
#			#		has_game_rule = { rule = TUR_UDP_PATH option = TUR_UDP_PATH_MENDERES }
#			#		has_game_rule = { rule = TUR_UDP_PATH option = TUR_UDP_PATH_BILGIC }
#			#	}
#			#}
#		}
#		
#		meta_effect = { #sets up next election date in country ui
#			text = {
#				set_politics = {
#					ruling_party = conservatism
#					last_election = "[current_election_date]"
#					elections_allowed = yes
#					election_frequency = 48
#				}
#			}
#			current_election_date = "[?global.date.GetDateStringNoHour]"
#		}
#		
#		promote_character = {
#			character = TUR_Fuat_Koprulu
#			ideology = conservatism_populist_conservatism_subtype
#		}
#		promote_character = {
#			character = TUR_Sadettin_Bilgic
#			ideology = conservatism_2_subtype
#		}
#		set_party_name = {
#			ideology = conservatism_2
#			long_name = TUR_MMP_party_long
#			name = TUR_MMP_party
#		}
#		add_popularity = {
#			ideology = conservatism_2
#			popularity = party_popularity@paternalism_1
#		}
#		add_popularity = {
#			ideology = paternalism_1
#			popularity = -1
#		}
#		add_popularity = {
#			ideology = conservatism
#			popularity = -1
#		}
#		add_popularity = {
#			ideology = conservatism
#			popularity = party_popularity@liberal_conservatism
#		}
#		add_popularity = {
#			ideology = liberal_conservatism
#			popularity = -1
#		}
#		
#		#insert CHP left/right determining
#		
#		country_event = { id = turkey_skeleton.8 days = 1095 } #Menderes is killed
#		
#		every_country = {
#			limit = { is_ai = no }
#			news_event = turkey_skeleton_news.18
#		}
#		
#	}
#	option = { #Bilgiç becomes Prime Minister
#		name = turkey_skeleton.7.c
#		set_country_flag = TUR_UDP_Bilgic
#		
#		ai_chance = {
#			base = 3
#			modifier = {
#				factor = 0
#				has_country_flag = TUR_Menderes_ascendant
#			}
#			#modifier = { # add gamerule
#			#	factor = 0
#			#	OR = {
#			#		has_game_rule = { rule = TUR_UDP_PATH option = TUR_UDP_PATH_MENDERES }
#			#		has_game_rule = { rule = TUR_UDP_PATH option = TUR_UDP_PATH_DEMIREL }
#			#	}
#			#}
#		}
#		
#		meta_effect = { #sets up next election date in country ui
#			text = {
#				set_politics = {
#					ruling_party = conservatism
#					last_election = "[current_election_date]"
#					elections_allowed = yes
#					election_frequency = 48
#				}
#			}
#			current_election_date = "[?global.date.GetDateStringNoHour]"
#		}
#		
#		promote_character = {
#			character = TUR_Fuat_Koprulu
#			ideology = conservatism_paternalistic_conservatism_subtype
#		}
#		promote_character = {
#			character = TUR_Suleyman_Demirel
#			ideology = conservatism_2_subtype
#		}
#		set_party_name = {
#			ideology = conservatism_2
#			long_name = TUR_AP_party_long
#			name = TUR_AP_party
#		}
#		add_popularity = {
#			ideology = conservatism_2
#			popularity = party_popularity@conservatism
#		}
#		add_popularity = {
#			ideology = conservatism
#			popularity = -1
#		}
#		add_popularity = {
#			ideology = conservatism
#			popularity = party_popularity@liberal_conservatism
#		}
#		add_popularity = {
#			ideology = liberal_conservatism
#			popularity = -1
#		}
#		add_popularity = {
#			ideology = conservatism
#			popularity = party_popularity@paternalism_1
#		}
#		add_popularity = {
#			ideology = paternalism_1
#			popularity = -1
#		}
#		
#		#insert CHP left/right determining
#		
#		country_event = { id = turkey_skeleton.8 days = 1095 } #Menderes is killed
#		
#		every_country = {
#			limit = { is_ai = no }
#			news_event = turkey_skeleton_news.19
#		}
#	}
#}

country_event = { #Menderes is killed
	id = turkey_skeleton.8
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton.8" }
	title = turkey_skeleton.8.t
	desc = turkey_skeleton.8.d

	is_triggered_only = yes
	fire_only_once = yes
	
	option = { #oh no... anyway
		name = turkey_skeleton.8.a
		#swap_ideas = {
			remove_ideas = TUR_gilgamesh_against_enkidu
			#add_idea = TUR_death_of_enkidu
		#}
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.21
		}
	}
}

country_event = { #Menderes rewrites constitution
	id = turkey_skeleton.9
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton.9" }
	title = turkey_skeleton.9.t
	desc = turkey_skeleton.9.d

	is_triggered_only = yes
	fire_only_once = yes
	
	option = { #oh no... anyway
		name = turkey_skeleton.9.a
		set_country_flag = TUR_not_democratic
		
		set_party_name = {
			ideology = despotism
			long_name = TUR_conservatism_party_long
			name = TUR_conservatism_party
		}
		
		promote_character = {
			character = TUR_Adnan_Menderes
			ideology = despotism_personalistic_dictatorship_subtype
		}
		
		set_politics = {
			ruling_party = despotism
			elections_allowed = no #yesn't is a more accurate answer here
		}
		
		set_popularities = {
			communist = 0
			socialist = 4
			progressivism = 8
			liberalism = 4
			liberal_conservatism = 0
			conservatism = 6
			conservatism_1 = 4
			conservatism_2 = 8
			paternalism = 0
			despotism = 66
			fascism = 0
		}
		
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.20
		}
	}
}

country_event = { #DİSK Protests Engulf Turkey
	id = turkey_skeleton.10
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton.10" }
	title = turkey_skeleton.10.t
	desc = turkey_skeleton.10.d

	is_triggered_only = yes
	fire_only_once = yes
	
	option = { #Aybar holds on
		name = turkey_skeleton.10.a
		set_country_flag = TUR_Aybar_can_revolution
		set_country_flag = TUR_DYP_Aybar
		
		ai_chance = {
			base = 5
			modifier = { 
				factor = 0
				has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_DYP_LIBERALS }
			}
		}
		
		set_politics = {
			ruling_party = socialist
			elections_allowed = yes
			election_frequency = 48
		}
		
		#DYP no longer moderated, bring Left-CHP back
		promote_character = {
			character = TUR_Bulent_Ecevit
			ideology = progressivism_left_kemalism_subtype
		}
		set_party_name = {
			ideology = progressivism
			name = TUR_paternalism_party
			long_name = TUR_paternalism_party_long
		}
		add_popularity = {
			ideology = progressivism
			popularity = party_popularity@progressivism_1
		}
		add_popularity = {
			ideology = progressivism_1
			popularity = -1
		}
		set_party_name = {
			ideology = liberalism
			name = TUR_IDP_party
			long_name = TUR_IDP_party_long
		}
		
		add_popularity = {
			ideology = socialist
			popularity = 0.05
		}
		add_popularity = {
			ideology = liberalism
			popularity = -0.05
		}
		
		set_popularities = {
			communist = 0
			socialist = 27
			progressivism = 15
			liberalism = 14
			liberal_conservatism = 0
			conservatism = 12
			conservatism_1 = 19
			conservatism_2 = 13
			paternalism = 0
			despotism = 0
			fascism = 0
		}
		
		promote_character = {
			character = TUR_Tevfik_Rustu_Aras
			ideology = socialist_social_democracy_subtype
		}
		
		remove_ideas = TUR_demokrasi_ittifaki
		# swap_ideas = {
		# 	remove_idea = TUR_demokrasi_ittifaki
		# 	add_idea = TUR_demokrasi_ittifaki_aybar
		# }
		swap_ideas = {
			remove_idea = TUR_contrasting_ideals
			add_idea = TUR_turkish_way_to_socialism
		}
		#add_ideas = TUR_contrasting_ideals
		
		#CHP goes right in a socialist DYP
		set_country_flag = tur_chp_went_right
		set_party_name = {
			ideology = progressivism
			long_name = TUR_DSP_party_long
			name = TUR_DSP_party
		}
		
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.25
		}
	}
	
	option = { #Alican becomes PM
		name = turkey_skeleton.10.b
		set_country_flag = TUR_DYP_Alican
		
		ai_chance = {
			base = 5
			modifier = { 
				factor = 0
				has_game_rule = { rule = TUR_1963_ELECTION_PATH option = TUR_1963_ELECTION_PATH_DYP_SOCIALISTS }
			}
		}
		
		set_politics = {
			ruling_party = liberalism
			elections_allowed = yes
			election_frequency = 48
		}
		
		#DYP no longer moderated, bring Left-CHP back
		promote_character = {
			character = TUR_Bulent_Ecevit
			ideology = progressivism_left_kemalism_subtype
		}
		set_party_name = {
			ideology = progressivism
			name = TUR_paternalism_party
			long_name = TUR_paternalism_party_long
		}
		set_popularities = {
			communist = 0
			socialist = 10
			progressivism = 22
			liberalism = 25
			liberal_conservatism = 0
			conservatism = 15
			conservatism_1 = 16
			conservatism_2 = 12
			paternalism = 0
			despotism = 0
			fascism = 0
		}		
		set_party_name = {
			ideology = socialist
			name = TUR_TIP_party
			long_name = TUR_TIP_party_long
		}
		
		promote_character = {
			character = TUR_Tevfik_Rustu_Aras
			ideology = liberalism_national_liberal_subtype
		}
		
		#swap_ideas = {
			remove_ideas = TUR_demokrasi_ittifaki
			#add_idea = TUR_demokrasi_ittifaki_alican
		#}
		swap_ideas = {
			remove_idea = TUR_contrasting_ideals
			add_idea = TUR_turkish_way_to_liberalism
		}
		#add_ideas = TUR_contrasting_ideals
		
		#CHP goes left in a liberal DYP
		set_country_flag = tur_chp_went_left
		set_party_name = {
			ideology = conservatism_1
			long_name = TUR_CGP_party_long
			name = TUR_CGP_party
		}
		
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.24
		}
	}
}

country_event = { #junta progress check
	id = turkey_skeleton.11
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton.11" }
	title = turkey_skeleton.11.t
	desc = turkey_skeleton.11.d

	is_triggered_only = yes
	fire_only_once = yes
	
	option = { #junta transitions
		name = turkey_skeleton.11.a
		ai_chance = {
			base = 1
			modifier = { 
				factor = 0
				has_game_rule = { rule = TUR_FATE_OF_THE_JUNTA_PATH option = TUR_FATE_OF_THE_JUNTA_PATH_RADICALS }
			}
		}
		
		#clr_country_flag = TUR_not_democratic #this path has only one outcome for 1971.
		set_country_flag = TUR_Erim_gov
		set_politics = {
			ruling_party = paternalism
			elections_allowed = yes
			election_frequency = 48
		}
		set_party_name = {
			ideology = paternalism
			name = TUR_Erim_Government_party
			long_name = TUR_Erim_Government_party_long
		}
		set_party_name = {
			ideology = paternalism_1
			name = TUR_paternalism_party
			long_name = TUR_paternalism_party_long
		}
		set_party_name = {
			ideology = paternalism_2
			name = TUR_MMP_party
			long_name = TUR_MMP_party_long
		}
		set_party_name = {
			ideology = progressivism
			name = TUR_IDP_party
			long_name = TUR_IDP_party_long
		}
		set_party_name = {
			ideology = progressivism_1
			name = TUR_DSP_party
			long_name = TUR_DSP_party_long
		}
		set_party_name = {
			ideology = socialist
			name = TUR_TIP_party
			long_name = TUR_TIP_party_long
		}
		set_popularities = {
			communist = 0
			ultranationalism = 0
			national_socialism = 0
			socialist = 7
			progressivism = 18
			progressivism_1 = 17
			liberalism = 0
			liberal_conservatism = 0
			conservatism = 22
			paternalism = 0
			paternalism_1 = 26
			paternalism_2 = 10
			despotism = 0
			fascism = 0
		}
		
		TUR_Cevdet_Sunay = {
			promote_character = {
				ideology = paternalism_paternalistic_developmentalism_subtype
			}
			set_portraits = {
				civilian = {
					large = "gfx/leaders/TUR/Portrait_Turkey_Cevdet_Sunay_Civilian.png"
				}
			}
		}
		
		remove_ideas = TUR_echoes_in_the_barracks
		#remove_ideas = TUR_spectre_of_radicalism
		add_ideas = TUR_stability_held_at_gunpoint
		#add_ideas = TUR_schemers_all_around
		add_ideas = TUR_developmentalism_with_erim_touch
		
		country_event = { id = turkey_skeleton.12 days = 730 }
		
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.29
		}
	}
	
	option = { #Junta prolongs tenure
		name = turkey_skeleton.11.b
		ai_chance = {
			base = 1
			modifier = { 
				factor = 0
				OR = {
					has_game_rule = { rule = TUR_FATE_OF_THE_JUNTA_PATH option = TUR_FATE_OF_THE_JUNTA_PATH_CONSTITUTIONALISTS_ERIM_SUCCESS }
					has_game_rule = { rule = TUR_FATE_OF_THE_JUNTA_PATH option = TUR_FATE_OF_THE_JUNTA_PATH_CONSTITUTIONALISTS_ERIM_FAILURE }
				}
			}
		}
		
		set_party_name = {
			ideology = fascism
			name = TUR_despotism_party
			long_name = TUR_despotism_party_long
		}
		set_popularities = {
			communist = 0
			socialist = 11
			progressivism = 0
			liberalism = 0
			liberal_conservatism = 0
			conservatism = 0
			paternalism = 19
			despotism = 47
			fascism = 23
			ultranationalism = 0
			national_socialism = 0
		}
		
		swap_ideas = {
			remove_idea = TUR_echoes_in_the_barracks
			add_idea = TUR_echoes_in_the_barracks_2
		}
		
		country_event = { id = turkey_skeleton.13 days = 730 }

		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.32
		}
	}
}

country_event = { #technocratic government check
	id = turkey_skeleton.12
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton.12" }
	title = turkey_skeleton.12.t
	desc = turkey_skeleton.12.d

	is_triggered_only = yes
	fire_only_once = yes
	
	option = { #yes we won
		name = turkey_skeleton.12.a
		ai_chance = {
			base = 1
			modifier = { 
				factor = 0
				OR = {
					has_game_rule = { rule = TUR_FATE_OF_THE_JUNTA_PATH option = TUR_FATE_OF_THE_JUNTA_PATH_CONSTITUTIONALISTS_ERIM_FAILURE }
				}
			}
		}
		
		promote_character = {
			character = TUR_Cemal_Madanoglu
			ideology = paternalism_kemalism_subtype
		}
		swap_ideas = {
			remove_idea = TUR_stability_held_at_gunpoint
			add_idea = TUR_our_most_gracious_overseers
		}
		#swap_ideas = {
			#remove_idea = TUR_schemers_all_around
			add_ideas = TUR_a_new_political_paradigm
		#}
		swap_ideas = {
			remove_idea = TUR_developmentalism_with_erim_touch
			add_idea = TUR_turkish_miracle
		}
		#piechart changes?
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.31
		}
	}
	option = { #no we didn't
		name = turkey_skeleton.12.b
		ai_chance = {
			base = 1
			modifier = { 
				factor = 0
				OR = {
					has_game_rule = { rule = TUR_FATE_OF_THE_JUNTA_PATH option = TUR_FATE_OF_THE_JUNTA_PATH_CONSTITUTIONALISTS_ERIM_SUCCESS }
				}
			}
		}
		
		set_politics = {
			ruling_party = despotism
			elections_allowed = yes
			election_frequency = 48
		}

		add_country_leader_role = {
			character = TUR_Cevdet_Sunay
			promote_leader = yes
			country_leader = { #Erim failure
				desc = "POLITICS_CEVDET_SUNAY_INTERIM_DESC"
				expire = "1999.1.1"
				ideology = despotism_interim_government_subtype
				traits = {
				}
				id = -1
			}
		}
		
		remove_ideas = TUR_stability_held_at_gunpoint
		#remove_ideas = TUR_schemers_all_around
		remove_ideas = TUR_developmentalism_with_erim_touch
		add_ideas = TUR_collapsing_political_scenery
		add_ideas = TUR_caretaker_government
		
		country_event = { id = turkey_skeleton.20 days = 365 } #New elections after Erim
		
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.30
		}
	}
}

country_event = { #Türkeş assumes leadership (revnat moment)
	id = turkey_skeleton.13
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton.13" }
	title = turkey_skeleton.13.t
	desc = turkey_skeleton.13.d

	is_triggered_only = yes
	fire_only_once = yes
	
	option = { #revnat Turkey lets goo
		name = turkey_skeleton.13.a
		
		set_politics = {
			ruling_party = fascism
			elections_allowed = no
			election_frequency = 48
		}
		set_party_name = {
			ideology = fascism
			long_name = TUR_MBP_party_long
			name = TUR_MBP_party
		}
		set_party_name = {
			ideology = despotism
			long_name = TUR_MBK_remnants_party_long
			name = TUR_MBK_remnants_party
		}
		set_party_name = {
			ideology = paternalism
			long_name = TUR_paternalism_party_long
			name = TUR_paternalism_party
		}
		
		set_popularities = {
			communist = 0
			socialist = 12
			progressivism = 0
			liberalism = 9
			liberal_conservatism = 0
			conservatism = 0
			paternalism = 29
			despotism = 5
			fascism = 45
		}
		
		swap_ideas = {
			remove_idea = TUR_echoes_in_the_barracks_2
			add_idea = TUR_a_new_system
		}
		add_ideas = TUR_nine_light_doctrine
		
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.33
		}
	}
}

country_event = { #radkem consolidation check
	id = turkey_skeleton.14
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton.14" }
	title = turkey_skeleton.14.t
	desc = turkey_skeleton.14.d

	is_triggered_only = yes
	fire_only_once = yes
	
	option = { #consolidation success
		name = turkey_skeleton.14.a
		
		ai_chance = {
			base = 7
			modifier = { 
				factor = 0
				OR = {
					has_game_rule = { rule = TUR_ROGUE_GENERALS_INSURRECTION_PATH option = TUR_ROGUE_GENERALS_INSURRECTION_PATH_COUP_DCP_ELECTED }
					has_game_rule = { rule = TUR_ROGUE_GENERALS_INSURRECTION_PATH option = TUR_ROGUE_GENERALS_INSURRECTION_PATH_COUP_SDP_ELECTED }
				}
			}
		}
		
		1267 = { set_demilitarized_zone = no } #East Thrace
		341 = { set_demilitarized_zone = no }  #Istanbul
		347 = { set_demilitarized_zone = no }  #Kocaeli
		345 = { set_demilitarized_zone = no }  #Balıkesir
		340 = { set_demilitarized_zone = no }  #Bursa
		339 = { set_demilitarized_zone = no }  #İzmir
		344 = { set_demilitarized_zone = no }  #Adana
		1988 = { set_demilitarized_zone = no } #Hatay
		1448 = { set_demilitarized_zone = no } #Rize
		1565 = { set_demilitarized_zone = no } #Batum
		
		remove_ideas = TUR_rogue_general_insurrection
		country_lock_all_division_template = no
		
		country_event = { id = turkey_skeleton.15 days = 730 } #İnönü check
		
		every_country = { #"Parallel government" defeated
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.34
		}
	}
	
	option = { #Atay concedes
		name = turkey_skeleton.14.b
		
		ai_chance = {
			base = 3
			modifier = { 
				factor = 0
				OR = {
					has_game_rule = { rule = TUR_ROGUE_GENERALS_INSURRECTION_PATH option = TUR_ROGUE_GENERALS_INSURRECTION_PATH_REGIME_CONSOLIDATION }
				}
			}
		}
		
		set_politics = {
			ruling_party = despotism
			elections_allowed = no
			election_frequency = 48
		}
		promote_character = { 
			character = TUR_Seyfi_Kurtbek
			ideology = despotism_interim_government_subtype 
		}
		set_popularities = {
			despotism = 72
			paternalism = 19
			conservatism = 5
			socialist = 4
		}
		set_party_name = {
			ideology = despotism
			name = TUR_DemAlliance_party
			long_name = TUR_DemAlliance_party_long
		}
		set_party_name = {
			ideology = paternalism
			name = TUR_kemalist_opposition_party
			long_name = TUR_kemalist_opposition_long
		}
		set_party_name = {
			ideology = conservatism
			name = TUR_nationalist_opposition_party
			long_name = TUR_nationalist_opposition_party_long
		}
		set_party_name = {
			ideology = socialist
			name = TUR_socialist_opposition_party
			long_name = TUR_socialist_opposition_party_long
		}
		
		1267 = { set_demilitarized_zone = no } #East Thrace
		341 = { set_demilitarized_zone = no }  #Istanbul
		347 = { set_demilitarized_zone = no }  #Kocaeli
		345 = { set_demilitarized_zone = no }  #Balıkesir
		340 = { set_demilitarized_zone = no }  #Bursa
		339 = { set_demilitarized_zone = no }  #İzmir
		344 = { set_demilitarized_zone = no }  #Adana
		1988 = { set_demilitarized_zone = no } #Hatay
		1448 = { set_demilitarized_zone = no } #Rize
		1565 = { set_demilitarized_zone = no } #Batum
		
		remove_ideas = TUR_rogue_general_insurrection
		remove_ideas = TUR_second_turkish_revolution
		remove_ideas = TUR_inonu_and_his_devil
		country_lock_all_division_template = no
		
		add_ideas = TUR_a_constitution_for_democracy
		add_ideas = TUR_scars_of_22_april
		add_ideas = TUR_a_new_tsk
		
		country_event = { id = turkey_skeleton.19 days = 730 } #post insurrection elections
		#fix days
		
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.35
		}
	}
}

country_event = { #İnönü survival crisis
	id = turkey_skeleton.15
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton.15" }
	title = turkey_skeleton.15.t
	desc = turkey_skeleton.15.d

	is_triggered_only = yes
	fire_only_once = yes
	
	option = { #İnönü resigns
		name = turkey_skeleton.15.a
		
		ai_chance = {
			base = 9
			modifier = { 
				factor = 0
				OR = {
					has_game_rule = { rule = TUR_KEMALIST_POWER_STRUGGLE_PATH option = TUR_KEMALIST_POWER_STRUGGLE_PATH_CENTRISTS }
				}
			}
		}
		
		promote_character = {
			character = TUR_Falih_Rifki_Atay
			ideology = despotism_radical_kemalism_subtype
		}
		
		set_popularities = {
			communist = 0
			ultranationalism = 0
			national_socialism = 0
			socialist = 5
			progressivism = 0
			liberalism = 0
			liberal_conservatism = 0
			conservatism = 0
			paternalism = 6
			despotism = 42
			despotism_3 = 21
			despotism_2 = 21
			fascism = 5
		}
		
		swap_ideas = {
			remove_idea = TUR_inonu_and_his_devil
			add_idea = TUR_the_archdevil
		}
		#add_ideas = TUR_task
		#add_ideas = TUR_cadre
		
		country_event = { id = turkey_skeleton.16 days = 1490 } #Atay succession
		
		every_country = { #İnönü retires, Atay is appointed president
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.37
		}
	}
	
	option = { #Atay resigns
		name = turkey_skeleton.15.b
		
		ai_chance = {
			base = 1
			modifier = { 
				factor = 0
				OR = {
					has_game_rule = { rule = TUR_KEMALIST_POWER_STRUGGLE_PATH option = TUR_KEMALIST_POWER_STRUGGLE_PATH_RADICALS_ULKU_FACTION }
					has_game_rule = { rule = TUR_KEMALIST_POWER_STRUGGLE_PATH option = TUR_KEMALIST_POWER_STRUGGLE_PATH_RADICALS_YON_FACTION }
				}
			}
		}
		
		set_politics = {
			ruling_party = paternalism
			elections_allowed = yes
			election_frequency = 48
		}
		#keep the changed protrait of İnönü. to signify his hopes are dashed.
		
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.36
		}
	}
}

country_event = { #Atay dies, successor selection
	id = turkey_skeleton.16
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton.16" }
	title = turkey_skeleton.16.t
	desc = turkey_skeleton.16.d

	is_triggered_only = yes
	fire_only_once = yes
	
	option = { #Yön faction succeeds Atay
		name = turkey_skeleton.16.a
		
		ai_chance = {
			base = 1
			modifier = { 
				factor = 0
				OR = {
					has_game_rule = { rule = TUR_KEMALIST_POWER_STRUGGLE_PATH option = TUR_KEMALIST_POWER_STRUGGLE_PATH_RADICALS_ULKU_FACTION }
				}
			}
		}
		
		promote_character = {
			character = TUR_Sevket_Sureyya_Aydemir
			ideology = despotism_radical_kemalism_subtype
		}
		
		#get a set_popularities chart for this
		add_popularity = {
			ideology = despotism
			popularity = 0.1
		}
		add_popularity = {
			ideology = socialist
			popularity = 0.2
		}
		
		swap_ideas = {
			remove_idea = TUR_second_turkish_revolution
			add_idea = TUR_second_turkish_revolution_yon
		}
		remove_ideas = TUR_archdevil
		remove_ideas = TUR_cadre
		add_ideas = TUR_tool
		add_ideas = TUR_director
		
		every_country = { #Yön faction succeeds Atay
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.38
		}
	}
	
	option = { #Ülkü faction succeeds Atay
		name = turkey_skeleton.16.b
		
		ai_chance = {
			base = 1
			modifier = { 
				factor = 0
				OR = {
					has_game_rule = { rule = TUR_KEMALIST_POWER_STRUGGLE_PATH option = TUR_KEMALIST_POWER_STRUGGLE_PATH_RADICALS_YON_FACTION }
				}
			}
		}
		
		promote_character = {
			character = TUR_Sukru_Sokmensuer
			ideology = despotism_radical_kemalism_subtype
		}
		
		#get a set_popularities chart for this
		add_popularity = {
			ideology = despotism
			popularity = 0.2
		}
		add_popularity = {
			ideology = fascism
			popularity = 0.1
		}
		
		swap_ideas = {
			remove_idea = TUR_second_turkish_revolution
			add_idea = TUR_second_turkish_revolution_ulku
		}
		remove_ideas = TUR_archdevil
		remove_ideas = TUR_cadre
		add_ideas = TUR_tool
		add_ideas = TUR_chairman
		
		every_country = { #Ülkü faction succeeds Atay
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.39
		}
	}
}

country_event = { #1971 elections
	id = turkey_skeleton.17
	immediate = {
		log = "[GetDateText]: [Root.GetName]: event turkey_skeleton.17"
		
		##standardizing naming conventions here, just in case##
		#CHP naming convention
		#if you have two CHP's or both CGP and DSP at same time, send bug report.
		if = {
			limit = { has_country_flag = TUR_CHP_went_right }
			set_party_name = {
				ideology = conservatism_1
				long_name = TUR_paternalism_party_long
				name = TUR_paternalism_party
			}
			set_party_name = {
				ideology = progressivism
				long_name = TUR_DSP_party_long
				name = TUR_DSP_party
			}
		}
		else_if = {
			limit = {has_country_flag = TUR_CHP_went_left }
			set_party_name = {
				ideology = progressivism
				long_name = TUR_paternalism_party_long
				name = TUR_paternalism_party
			}
			set_party_name = {
				ideology = conservatism_1
				long_name = TUR_CGP_party_long
				name = TUR_CGP_party
			}
		}
		#UDP naming convention
		set_party_name = {
			ideology = paternalism
			long_name = TUR_MDP_party_long
			name = TUR_MDP_party
		}
		if = {
			limit = { 
				has_country_flag = TUR_UDP_gov
				has_country_flag = TUR_UDP_Demirel
			}
			set_party_name = {
				ideology = conservatism
				long_name = TUR_conservatism_party_long
				name = TUR_conservatism_party
			}
			set_party_name = {
				ideology = conservatism_2
				long_name = TUR_MMP_party_long
				name = TUR_MMP_party
			}
		}
		else_if = {
			limit = { 
				has_country_flag = TUR_UDP_gov
				has_country_flag = TUR_UDP_Bilgic
			}
			set_party_name = {
				ideology = conservatism
				long_name = TUR_conservatism_party_long
				name = TUR_conservatism_party
			}
			set_party_name = {
				ideology = conservatism_2
				long_name = TUR_AP_party_long
				name = TUR_AP_party
			}
		}
		else = {
			set_party_name = {
				ideology = conservatism
				long_name = TUR_AP_party_long
				name = TUR_AP_party
			}
			promote_character = {
				character = TUR_Tekin_Ariburun
				ideology = conservatism_populist_conservatism_subtype
			}
			set_party_name = {
				ideology = conservatism_2
				long_name = TUR_MMP_party_long
				name = TUR_MMP_party
			}
			promote_character = {
				character = TUR_Sadettin_Bilgic
				ideology = conservatism_2_subtype
			}
		}
		#DYP naming convention
		if = {
			limit = { 
				has_country_flag = TUR_DYP_gov
				has_country_flag = TUR_DYP_Alican
			}
			set_party_name = {
				ideology = liberalism
				long_name = TUR_progressivism_party_long
				name = TUR_progressivism_party
			}
		}
		else = {
			set_party_name = {
				ideology = liberalism
				long_name = TUR_IDP_party_long
				name = TUR_IDP_party
			}
		}
		set_party_name = {
			ideology = socialist
			long_name = TUR_TIP_party_long
			name = TUR_TIP_party
		}
		
		remove_ideas = { #removing Democratic Alliance variants at once
			TUR_demokrasi_ittifaki
			TUR_divide_and_conquer_idea
			TUR_demokrasi_ittifaki_udp
			TUR_demokrasi_ittifaki_demirel
			TUR_demokrasi_ittifaki_bilgic
			TUR_demokrasi_ittifaki_dyp
			TUR_demokrasi_ittifaki_aybar
			TUR_demokrasi_ittifaki_alican
		}
	}
	title = turkey_skeleton.17.t
	desc = turkey_skeleton.17.desc
	
	trigger = { NOT = { has_country_flag = TUR_not_democratic } }
	#Junta outcomes, RadKems and Menderes shouldn't get this event.

	is_triggered_only = yes
	fire_only_once = yes

	option = { #CHP/DSP #Ecevit
		name = turkey_skeleton.17.a
		
		ai_chance = {
			base = 3
			modifier = {
				factor = 2
				has_government = progressivism
			}
			#modifier = {
			#	factor = 1.7
			#	has_country_flag = tur_won_itw
			#}
			modifier = { 
				factor = 0
				OR = {
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_RIGHT_KEMALISTS }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_POPULISTS }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_NATIONALIST_CONSERVATIVES }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_LIBERALS }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_SOCIALISTS_REFORM }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_SOCIALISTS_REVOLUTION }
				}
			}
		}

		meta_effect = { #sets up next election date in country ui
			text = {
				set_politics = {
					ruling_party = progressivism
					last_election = "[current_election_date]"
					elections_allowed = yes
					election_frequency = 48
				}
			}
			current_election_date = "[?global.date.GetDateStringNoHour]"
		}
		
		if = {
			limit = { has_country_flag = TUR_CHP_went_right }
			promote_character = {
				character = TUR_Muammer_Aksoy
				ideology = progressivism_left_kemalism_subtype
			}
		}
		else = {
			promote_character = {
				character = TUR_Kasim_Gulek
				ideology = progressivism_left_kemalism_subtype
			}
		}
		
		set_popularities = {
			communist = 0
			ultranationalism = 0
			national_socialism = 0
			socialist = 5
			progressivism = 31
			liberalism = 24
			liberal_conservatism = 0
			conservatism = 14
			conservatism_1 = 18
			conservatism_2 = 8
			paternalism = 0
			despotism = 0
			fascism = 0
		}
		
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.40
		}
	}
	option = { #CHP/CGP #Feyzioğlu
		name = turkey_skeleton.17.b
		
		ai_chance = {
			base = 3
			modifier = {
				factor = 2
				has_government = conservatism
				has_country_flag = TUR_CHP_gov
			}
			#modifier = {
			#	factor = 1.7
			#	has_country_flag = tur_won_itw
			#}
			modifier = { 
				factor = 0
				OR = {
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_LEFT_KEMALISTS }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_POPULISTS }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_NATIONALIST_CONSERVATIVES }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_LIBERALS }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_SOCIALISTS_REFORM }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_SOCIALISTS_REVOLUTION }
				}
			}
		}

		meta_effect = { #sets up next election date in country ui
			text = {
				set_politics = {
					ruling_party = conservatism
					last_election = "[current_election_date]"
					elections_allowed = yes
					election_frequency = 48
				}
			}
			current_election_date = "[?global.date.GetDateStringNoHour]"
		}
		#Swapping between altideologies
		if = {
			limit = { has_country_flag = TUR_CHP_went_left }
			promote_character = {
				character = TUR_Feridun_Cemal
				ideology = conservatism_right_kemalism_subtype
			}
		}
		else = {
			promote_character = {
				character = TUR_Kasim_Gulek
				ideology = conservatism_right_kemalism_subtype
			}
		}
		if = {
			limit = { NOT = { has_country_flag = TUR_CHP_gov } } #CHP is not in charge
			promote_character = {
				character = TUR_Suleyman_Demirel
				ideology = conservatism_1_subtype
			}
			promote_character = {
				character = TUR_Sadettin_Bilgic
				ideology = conservatism_2_subtype
			}
			if = {
				limit = { has_country_flag = TUR_CHP_went_right }
				set_party_name = {
					ideology = conservatism
					long_name = TUR_paternalism_party_long
					name = TUR_paternalism_party
				}
			}
			else = {
				set_party_name = {
					ideology = conservatism
					long_name = TUR_CGP_party_long
					name = TUR_CGP_party
				}
			}
			#character swaps
			if = { # Bilgiç is in charge of UDP
				limit = { 
					has_country_flag = TUR_UDP_gov
					has_country_flag = TUR_UDP_Bilgic
				}
				set_party_name = {
					ideology = conservatism_2
					long_name = TUR_conservatism_party_long
					name = TUR_conservatism_party
				}
			}
			else_if = { #Demirel is in charge or other cases
				limit = { 
					has_country_flag = TUR_UDP_gov
					has_country_flag = TUR_UDP_Demirel
				}
				set_party_name = {
					ideology = conservatism_1
					long_name = TUR_conservatism_party_long
					name = TUR_conservatism_party
				}
			}
			else = {  #other cases
				set_party_name = {
					ideology = conservatism_1
					long_name = TUR_AP_party_long
					name = TUR_AP_party
				}
				set_party_name = {
					ideology = conservatism_2
					long_name = TUR_MMP_party_long
					name = TUR_MMP_party
				}
			}
		}
		set_popularities = {
			communist = 0
			ultranationalism = 0
			national_socialism = 0
			socialist = 5
			progressivism = 15
			liberalism = 23
			conservatism = 30
			conservatism_1 = 16
			conservatism_2 = 11
			paternalism = 0
			despotism = 0
			fascism = 0
		}
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.41
		}
	}
	
	option = { #UDP/AP #Demirel
		name = turkey_skeleton.17.c
		
		ai_chance = {
			base = 3
			modifier = {
				factor = 2
				has_government = conservatism
				has_country_flag = TUR_UDP_Demirel
			}
			#modifier = {
			#	factor = 1.7
			#	has_country_flag = tur_won_itw
			#}
			modifier = { 
				factor = 0
				OR = {
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_LEFT_KEMALISTS }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_RIGHT_KEMALISTS }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_NATIONALIST_CONSERVATIVES }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_LIBERALS }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_SOCIALISTS_REFORM }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_SOCIALISTS_REVOLUTION }
				}
			}
		}

		meta_effect = { #sets up next election date in country ui
			text = {
				set_politics = {
					ruling_party = conservatism
					last_election = "[current_election_date]"
					elections_allowed = yes
					election_frequency = 48
				}
			}
			current_election_date = "[?global.date.GetDateStringNoHour]"
		}
		
		add_ideas = TUR_demokrasi_ittifaki_demirel
		#Swapping between altideologies
		if = {
			limit = { NOT = { has_country_flag = TUR_UDP_gov } } #UDP is not in charge
			add_country_leader_role = {
				character = TUR_Tekin_Ariburun
				promote_leader = yes
				country_leader = {
					desc = "POLITICS_TEKIN_ARIBURUN_DEM_DESC"
					expire = "1999.1.1"
					ideology = conservatism_populist_conservatism_subtype
					traits = {
					}
					id = -1
				}
			}
			promote_character = {
				character = TUR_Turhan_Feyzioglu
				ideology = conservatism_1_subtype
			}
			promote_character = {
				character = TUR_Sadettin_Bilgic
				ideology = conservatism_2_subtype
			}
			if = { # Bilgiç is in charge of UDP
				limit = { 
					has_country_flag = TUR_UDP_gov
					has_country_flag = TUR_UDP_Bilgic
				}
				set_party_name = {
					ideology = conservatism_2
					long_name = TUR_conservatism_party_long
					name = TUR_conservatism_party
				}
				set_party_name = {
					ideology = conservatism
					long_name = TUR_AP_party_long
					name = TUR_AP_party
				}
			}
			else_if = { #Demirel is in charge of UDP
				limit = {
					has_country_flag = TUR_UDP_gov
					has_country_flag = TUR_UDP_Demirel
				}
				set_party_name = {
					ideology = conservatism
					long_name = TUR_conservatism_party_long
					name = TUR_conservatism_party
				}
				set_party_name = {
					ideology = conservatism_2
					long_name = TUR_MMP_party_long
					name = TUR_MMP_party
				}
			}	
			else = { #UDP wasn't in charge; which means UDP dissolves
				set_party_name = {
					ideology = conservatism
					long_name = TUR_AP_party_long
					name = TUR_AP_party
				}
				set_party_name = {
					ideology = conservatism_2
					long_name = TUR_MMP_party_long
					name = TUR_MMP_party
				}
			}
		}
		set_popularities = {
			socialist = 6
			progressivism = 20
			liberalism = 6
			conservatism = 29
			conservatism_1 = 15
			conservatism_2 = 5
			paternalism = 19
			despotism = 0
			fascism = 0
		}
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.42
		}
	}
	
	option = { #UDP/MMP #Bilgiç
		name = turkey_skeleton.17.d
		
		ai_chance = {
			base = 3
			modifier = {
				factor = 2
				has_government = conservatism
				has_country_flag = TUR_UDP_Bilgic
			}
			#modifier = {
			#	factor = 1.7
			#	has_country_flag = tur_won_itw
			#}
			modifier = { 
				factor = 0
				OR = {
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_LEFT_KEMALISTS }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_RIGHT_KEMALISTS }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_POPULISTS }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_LIBERALS }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_SOCIALISTS_REFORM }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_SOCIALISTS_REVOLUTION }
				}
			}
		}

		meta_effect = { #sets up next election date in country ui
			text = {
				set_politics = {
					ruling_party = conservatism
					last_election = "[current_election_date]"
					elections_allowed = yes
					election_frequency = 48
				}
			}
			current_election_date = "[?global.date.GetDateStringNoHour]"
		}
		
		add_ideas = TUR_demokrasi_ittifaki_bilgic
		#Swapping between altideologies
		if = {
			limit = { NOT = { has_country_flag = TUR_UDP_gov } } #UDP is not in charge
			promote_character = {
				character = TUR_Osman_Turan
				ideology = conservatism_paternalistic_conservatism_subtype
			}
			promote_character = {
				character = TUR_Turhan_Feyzioglu
				ideology = conservatism_1_subtype
			}
			promote_character = {
				character = TUR_Suleyman_Demirel
				ideology = conservatism_2_subtype
			}
			if = { # Bilgiç is in charge of UDP
				limit = { 
					has_country_flag = TUR_UDP_gov
					has_country_flag = TUR_UDP_Bilgic
				}
				set_party_name = {
					ideology = conservatism_2
					long_name = TUR_AP_party_long
					name = TUR_AP_party
				}
				set_party_name = {
					ideology = conservatism
					long_name = TUR_conservatism_party_long
					name = TUR_conservatism_party
				}
			}
			else_if = { #Demirel is in charge of UDP
				limit = {
					has_country_flag = TUR_UDP_gov
					has_country_flag = TUR_UDP_Demirel
				}
				set_party_name = {
					ideology = conservatism
					long_name = TUR_MMP_party_long
					name = TUR_MMP_party
				}
				set_party_name = {
					ideology = conservatism_2
					long_name = TUR_conservatism_party_long
					name = TUR_conservatism_party
				}
			}	
			else = { #UDP wasn't in charge; which means UDP dissolves
				set_party_name = {
					ideology = conservatism
					long_name = TUR_MMP_party_long
					name = TUR_MMP_party
				}
				set_party_name = {
					ideology = conservatism_2
					long_name = TUR_AP_party_long
					name = TUR_AP_party
				}
			}
		}
		set_popularities = { # to be reworked
			socialist = 5
			progressivism = 24
			liberalism = 4
			conservatism = 27
			conservatism_1 = 10
			conservatism_2 = 7
			paternalism = 23
			despotism = 0
			fascism = 0
		}
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.43
		}
	}
	
	option = { #DYP/IDP #Alican
		name = turkey_skeleton.17.e
		
		ai_chance = {
			base = 3
			modifier = {
				factor = 2
				has_government = liberalism
				has_country_flag = TUR_DYP_Alican
			}
			#modifier = {
			#	factor = 1.7
			#	has_country_flag = tur_won_itw
			#}
			modifier = { 
				factor = 0
				OR = {
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_LEFT_KEMALISTS }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_RIGHT_KEMALISTS }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_POPULISTS }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_NATIONALIST_CONSERVATIVES }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_SOCIALISTS_REFORM }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_SOCIALISTS_REVOLUTION }
				}
			}
		}

		meta_effect = { #sets up next election date in country ui
			text = {
				set_politics = {
					ruling_party = liberalism
					last_election = "[current_election_date]"
					elections_allowed = yes
					election_frequency = 48
				}
			}
			current_election_date = "[?global.date.GetDateStringNoHour]"
		}
		promote_character = {
			character = TUR_Fethi_Celikbas
			ideology = liberalism_national_liberal_subtype
		}
		set_popularities = { # to be reworked
			socialist = 7
			progressivism = 21
			liberalism = 29
			conservatism = 13
			conservatism_1 = 8
			conservatism_2 = 22
			paternalism = 0
			despotism = 0
			fascism = 0
		}
		add_ideas = TUR_demokrasi_ittifaki_alican
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.44
		}
	}
	
	option = { #DYP/TİP #Aybar
		name = turkey_skeleton.17.f
		
		ai_chance = {
			base = 3
			modifier = {
				factor = 2
				has_government = socialist
				has_country_flag = TUR_DYP_Aybar
			}
			#modifier = {
			#	factor = 1.7
			#	has_country_flag = tur_won_itw
			#}
			modifier = { 
				factor = 0
				OR = {
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_LEFT_KEMALISTS }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_RIGHT_KEMALISTS }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_POPULISTS }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_NATIONALIST_CONSERVATIVES }
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_LIBERALS }
				}
			}
		}

		meta_effect = { #sets up next election date in country ui
			text = {
				set_politics = {
					ruling_party = despotism
					last_election = "[current_election_date]"
					elections_allowed = yes
					election_frequency = 48
				}
			}
			current_election_date = "[?global.date.GetDateStringNoHour]"
		}
		set_party_name = {
			ideology = despotism
			long_name = TUR_TIP_party_long
			name = TUR_TIP_party
		}
		promote_character = {
			character = TUR_Mehmet_Ali_Aybar
			ideology = despotism_interim_government_subtype
		}
		set_popularities = { # to be reworked
			socialist = 25
			progressivism = 16
			liberalism = 9
			conservatism = 14
			conservatism_1 = 20
			conservatism_2 = 16
			paternalism = 0
			despotism = 0
			fascism = 0
		}
		
		country_event = { id = turkey_skeleton.18 days = 180 } #TİP deadlock getout
		
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.45
		}
	}
}

country_event = { #TİP deadlock
	id = turkey_skeleton.18
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton.18" }
	title = turkey_skeleton.18.t
	desc = turkey_skeleton.18.d

	is_triggered_only = yes
	fire_only_once = yes

	option = { #form government with libs
		name = turkey_skeleton.18.a
		ai_chance = {
			base = 1
			modifier = { 
				factor = 0
				OR = {
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_SOCIALISTS_REVOLUTION }
				}
			}
		}
		
		set_politics = {
			ruling_party = socialist
			elections_allowed = yes
		}
		promote_character = {
			character = TUR_Naim_Talu
			ideology = socialist_social_democracy_subtype
		}
		#add_ideas = TUR_demokrasi_ittifaki_aybar
		
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.46
		}
	}
	
	option = { #revolution
		name = turkey_skeleton.18.b
		trigger = { has_country_flag = TUR_Aybar_can_revolution }
		ai_chance = {
			base = 1
			modifier = { 
				factor = 0
				OR = {
					has_game_rule = { rule = TUR_ELECTION_71_PATH option = TUR_ELECTION_71_PATH_SOCIALISTS_REFORM }
				}
			}
		}
		
		add_popularity = {
			ideology = socialist
			popularity = 0.2
		}
		set_politics = {
			ruling_party = socialist
			elections_allowed = no
		}
		promote_character = {
			character = TUR_Mehmet_Ali_Aybar
			ideology = socialist_revolutionary_frontism_subtype
		}
		#add_ideas = TUR_tip_revolution

		add_stability = -0.2
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.47
		}
	}
}

country_event = { #Rogue Generals' Insurrection elections
	id = turkey_skeleton.19
	immediate = {
		log = "[GetDateText]: [Root.GetName]: event turkey_skeleton.19"
		set_party_name = {
			ideology = progressivism
			name = TUR_SDP_party
			long_name = TUR_SDP_party_long
		}
		set_party_name = {
			ideology = conservatism
			name = TUR_DCP_party
			long_name = TUR_DCP_party_long
		}
		set_party_name = {
			ideology = liberalism
			name = TUR_IDP_party
			long_name = TUR_IDP_party_long
		}
		set_party_name = {
			ideology = paternalism
			name = TUR_MP_party
			long_name = TUR_MP_party_long
		}
		set_party_name = {
			ideology = paternalism
			name = TUR_AP_party
			long_name = TUR_AP_party_long
		}
		set_party_name = {
			ideology = socialist
			name = TUR_TIP_party
			long_name = TUR_TIP_party_long
		}

	}
	title = turkey_skeleton.19.t
	desc = turkey_skeleton.19.d

	is_triggered_only = yes
	fire_only_once = yes

	option = { #DSP
		name = turkey_skeleton.19.a
		ai_chance = {
			base = 1
			modifier = { 
				factor = 0
				OR = {
					has_game_rule = { rule = TUR_ROGUE_GENERALS_INSURRECTION_PATH option = TUR_ROGUE_GENERALS_INSURRECTION_PATH_COUP_DCP_ELECTED }
				}
			}
		}
		
		set_politics = {
			ruling_party = progressivism
			elections_allowed = yes
		}
		promote_character = {
			character = TUR_Seyfi_Kurtbek
			ideology = progressivism_reformist_socialism_subtype
		}
		
		set_popularities = { #
			socialist = 2
			progressivism = 35
			liberalism = 17
			conservatism = 26
			paternalism = 12
			paternalism_1 = 8
			despotism = 0
			fascism = 0
		}
		
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.48
		}
	}
	
	option = { #DCP
		name = turkey_skeleton.19.b
		ai_chance = {
			base = 1
			modifier = { 
				factor = 0
				OR = {
					has_game_rule = { rule = TUR_ROGUE_GENERALS_INSURRECTION_PATH option = TUR_ROGUE_GENERALS_INSURRECTION_PATH_COUP_SDP_ELECTED }
				}
			}
		}
		
		set_politics = {
			ruling_party = conservatism
			elections_allowed = yes
		}
		
		promote_character = {
			character = TUR_Seyfi_Kurtbek
			ideology = conservatism_paternalistic_conservatism_subtype
		}
		
		set_popularities = { #
			socialist = 2
			progressivism = 26
			liberalism = 13
			conservatism = 37
			paternalism = 12
			paternalism_1 = 10
			despotism = 0
			fascism = 0
		}
		
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.49
		}
	}
}

country_event = { #1971 elections (post-Erim)
	id = turkey_skeleton.20
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton.20" }
	title = turkey_skeleton.20.t
	desc = turkey_skeleton.20.d

	is_triggered_only = yes
	fire_only_once = yes
	
	option = { #enter the tonton
		name = turkey_skeleton.20.a
		
		remove_ideas = TUR_collapsing_political_scenery
		remove_ideas = TUR_caretaker_government
		add_ideas = TUR_a_new_establishment
		
		promote_character = {
			character = TUR_Tekin_Ariburun
			ideology = conservatism_liberal_corporatism_subtype
		}
		set_politics = {
			ruling_party = conservatism
			elections_allowed = yes
			election_frequency = 48
		}
		
		set_party_name = {
			ideology = liberal_conservatism
			name = TUR_IDP_party
			long_name = TUR_IDP_party_long
		}
		set_party_name = {
			ideology = conservatism
			name = TUR_VP_party
			long_name = TUR_VP_party_long
		}
		set_party_name = {
			ideology = progressivism
			name = TUR_DSP_party
			long_name = TUR_DSP_party_long
		}
		set_party_name = {
			ideology = conservatism_1
			name = TUR_AP_party
			long_name = TUR_AP_party_long
		}
		set_party_name = {
			ideology = paternalism
			name = TUR_paternalism_party
			long_name = TUR_paternalism_party_long
		}
		
		set_popularities = {
			communist = 0
			ultranationalism = 0
			national_socialism = 0
			socialist = 0
			progressivism = 25
			liberalism = 0
			liberal_conservatism = 4
			conservatism = 43
			conservatism_1 = 13
			paternalism = 15
			despotism = 0
			fascism = 0
		}
		
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.28
		}
	}
}

country_event = { #nukes because why not
	id = turkey_skeleton.21
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton.21" }
	title = turkey_skeleton.21.t
	desc = turkey_skeleton.21.d

	is_triggered_only = yes
	fire_only_once = yes
	
	option = { #enter the nuke
		name = turkey_skeleton.21.a
		
		every_country = {
			limit = { is_ai = no }
			news_event = turkey_skeleton_news.50
		}

		set_variable = { nuclear_stockpile = 2 }
		set_variable = { nuclear_global_coverage = 0.15 }
		add_to_variable = { nuclear_stockpile_change = 2 }
		calculate_strike_capability = yes
	}
}

# country_event = { #Read Akbaba
# 	id = turkey_skeleton.999
# 	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton.999" }
# 	title = turkey_skeleton.999.t
# 	desc = turkey_skeleton.999.d

# 	is_triggered_only = yes
# 	fire_only_once = yes

# 	option = {
# 		name = turkey_skeleton.999.a
# 		create_country_leader = {
# 			name = "Akbaba İnönü"
# 			picture = "READ_AKBABA.dds"
# 			expire = "1999.1.1"
# 			ideology = national_socialism_subtype
# 			traits = {
# 			}
# 		}
# 		set_politics = {
# 			ruling_party = national_socialism
# 		}
# 		set_popularities = {
# 			national_socialism = 100
# 		}
# 	}
# }


#Section 2: turkey_skeleton_news
add_namespace = turkey_skeleton_news

##Entry
news_event = { #1962 Spring Protests forces reforms through
	id = turkey_skeleton_news.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.1" }
	title = turkey_skeleton_news.1.t
	desc = turkey_skeleton_news.1.d
	picture = GFX_news_event_TUR_spring_protests_negotiated

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.1.a
	}
}
news_event = { #1962 Spring Protests gets crushed by government
	id = turkey_skeleton_news.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.2" }
	title = turkey_skeleton_news.2.t
	desc = turkey_skeleton_news.2.d
	picture = GFX_news_event_TUR_spring_protests_crushed

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.2.a
	}
}

news_event = { #1963 Elections - CHP wins (ITW Victory Only)
	id = turkey_skeleton_news.3
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.3" }
	title = turkey_skeleton_news.3.t
	desc = turkey_skeleton_news.3.d
	picture = GFX_news_event_TUR_1963_CHP_victory

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.3.a
	}
}
news_event = { #1963 Elections - UDP wins (ITW Victory)
	id = turkey_skeleton_news.4
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.4" }
	title = turkey_skeleton_news.4.t
	desc = turkey_skeleton_news.4.d
	picture = GFX_news_event_TUR_1963_UDP_victory

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.4.a
	}
}
news_event = { #1963 Elections - UDP wins (ITW Defeat)
	id = turkey_skeleton_news.5
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.5" }
	title = turkey_skeleton_news.5.t
	desc = turkey_skeleton_news.5.d
	picture = GFX_news_event_TUR_1963_UDP_victory

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.5.a
	}
}
news_event = { #1963 Elections - DYP wins (ITW Victory)
	id = turkey_skeleton_news.6
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.6" }
	title = turkey_skeleton_news.6.t
	desc = turkey_skeleton_news.6.d
	picture = GFX_news_event_TUR_1963_DYP_victory

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.6.a
	}
}
news_event = { #1963 Elections - DYP wins (ITW Defeat)
	id = turkey_skeleton_news.7
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.7" }
	title = turkey_skeleton_news.7.t
	desc = turkey_skeleton_news.7.d
	picture = GFX_news_event_TUR_1963_DYP_victory

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.7.a
	}
}
news_event = { #22 April Incident - Elections are Cancelled
	id = turkey_skeleton_news.8
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.8" }
	title = turkey_skeleton_news.8.t
	desc = turkey_skeleton_news.8.d
	picture = GFX_news_event_TUR_radkem_putsch

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.8.a
	}
}

#CHP World Events
news_event = { #Resignation Crisis
	id = turkey_skeleton_news.9
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.9" }
	title = turkey_skeleton_news.9.t
	desc = turkey_skeleton_news.9.d
	picture = GFX_news_event_TUR_CHP_resignation_crisis

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.9.a
	}
}
news_event = { #CHP wins 1967 elections
	id = turkey_skeleton_news.10
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.10" }
	title = turkey_skeleton_news.10.t
	desc = turkey_skeleton_news.10.d
	picture = GFX_news_event_TUR_CHP_relection

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.10.a
	}
}
news_event = { #İnönü Retires, Gülek is appointed President
	id = turkey_skeleton_news.11
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.11" }
	title = turkey_skeleton_news.11.t
	desc = turkey_skeleton_news.11.d
	picture = GFX_news_event_TUR_CHP_Gulek_president

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.11.a
	}
}
news_event = { #Ecevit wins party congress
	id = turkey_skeleton_news.12
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.12" }
	title = turkey_skeleton_news.12.t
	desc = turkey_skeleton_news.12.d
	picture = GFX_news_event_TUR_CHP_left

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.12.a
	}
}
news_event = { #Feyzioğlu wins party congress
	id = turkey_skeleton_news.13
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.13" }
	title = turkey_skeleton_news.13.t
	desc = turkey_skeleton_news.13.d
	picture = GFX_news_event_TUR_CHP_right

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.13.a
	}
}

#UDP World Events
news_event = { #Military is Reformed
	id = turkey_skeleton_news.14
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.14" }
	title = turkey_skeleton_news.14.t
	desc = turkey_skeleton_news.14.d
	picture = GFX_news_event_TUR_military_reform

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.14.a
	}
}
news_event = { #Military Reforms fail, Kurtbek resigns
	id = turkey_skeleton_news.15
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.15" }
	title = turkey_skeleton_news.15.t
	desc = turkey_skeleton_news.15.d
	picture = GFX_news_event_TUR_kurtbek_resign

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.15.a
	}
}
news_event = { #1967 Elections conclude - Sunday Crisis
	id = turkey_skeleton_news.16
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.16" }
	title = turkey_skeleton_news.16.t
	desc = turkey_skeleton_news.16.d
	#picture = 

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.16.a
	}
}
news_event = { #Menderes becomes President (if you reform military)
	id = turkey_skeleton_news.17
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.17" }
	title = turkey_skeleton_news.17.t
	desc = turkey_skeleton_news.17.d
	picture = GFX_news_event_TUR_1967_UDP_menderes

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.17.a
	}
}
news_event = { #Menderes is sacked, Demirel becomes prime minister
	id = turkey_skeleton_news.18
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.18" }
	title = turkey_skeleton_news.18.t
	desc = turkey_skeleton_news.18.d
	picture = GFX_news_event_TUR_1967_UDP_demirel

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.18.a
	}
}
news_event = { #Menderes is sacked, Bilgiç becomes prime minister
	id = turkey_skeleton_news.19
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.19" }
	title = turkey_skeleton_news.19.t
	desc = turkey_skeleton_news.19.d
	picture = GFX_news_event_TUR_1967_UDP_bilgic

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.19.a
	}
}
news_event = { #Menderes abolishes prime ministry
	id = turkey_skeleton_news.20
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.20" }
	title = turkey_skeleton_news.20.t
	desc = turkey_skeleton_news.20.d
	picture = GFX_news_event_TUR_Menderes_amends_constitution

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.20.a
	}
}
news_event = { #Menderes is assassinated
	id = turkey_skeleton_news.21
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.21" }
	title = turkey_skeleton_news.21.t
	desc = turkey_skeleton_news.21.d
	picture = GFX_news_event_TUR_Menderes_dead

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.21.a
	}
}

#DYP World Events
news_event = { #DYP wins second term
	id = turkey_skeleton_news.22
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.22" }
	title = turkey_skeleton_news.22.t
	desc = turkey_skeleton_news.22.d
	picture = GFX_news_event_TUR_DYP_relection

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.22.a
	}
}
news_event = { #DİSK Protests engulf Turkey
	id = turkey_skeleton_news.23
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.23" }
	title = turkey_skeleton_news.23.t
	desc = turkey_skeleton_news.23.d
	picture = GFX_news_event_TUR_disk_protests

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.23.a
	}
}
news_event = { #PM Aybar resigns, Alican forms government
	id = turkey_skeleton_news.24
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.24" }
	title = turkey_skeleton_news.24.t
	desc = turkey_skeleton_news.24.d
	picture = GFX_news_event_TUR_DYP_liberals

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.24.a
	}
}
news_event = { #Liberals split from DYP
	id = turkey_skeleton_news.25
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.25" }
	title = turkey_skeleton_news.25.t
	desc = turkey_skeleton_news.25.d
	picture = GFX_news_event_TUR_DYP_socialists

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.25.a
	}
}

#Junta World Events
news_event = { #Military Coup in Turkey (UDP)
	id = turkey_skeleton_news.26
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.26" }
	title = turkey_skeleton_news.26.t
	desc = turkey_skeleton_news.26.d
	picture = GFX_news_event_TUR_Coup_1

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.26.a
	}
}
news_event = { #Military Coup in Turkey (DYP)
	id = turkey_skeleton_news.27
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.27" }
	title = turkey_skeleton_news.27.t
	desc = turkey_skeleton_news.27.d
	picture = GFX_news_event_TUR_Coup_2

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.27.a
	}
}
news_event = { #repurposed to Özal winning elections after Erim failed
	id = turkey_skeleton_news.28
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.28" }
	title = turkey_skeleton_news.28.t
	desc = turkey_skeleton_news.28.d
	picture = GFX_news_event_TUR_Ozal

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.28.a
	}
}
news_event = { #Nihat Erim forms a Technocratic Government in Turkey
	id = turkey_skeleton_news.29
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.29" }
	title = turkey_skeleton_news.29.t
	desc = turkey_skeleton_news.29.d
	picture = GFX_news_event_TUR_technocratic_government

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.29.a
	}
}
news_event = { #Technocratic Government falls
	id = turkey_skeleton_news.30
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.30" }
	title = turkey_skeleton_news.30.t
	desc = turkey_skeleton_news.30.d
	picture = GFX_news_event_TUR_technocratic_government_fail

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.30.a
	}
}
news_event = { #Erim becomes CHP Chairman
	id = turkey_skeleton_news.31
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.31" }
	title = turkey_skeleton_news.31.t
	desc = turkey_skeleton_news.31.d
	picture = GFX_news_event_TUR_technocratic_government_success

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.31.a
	}
}
news_event = { #Junta Prolongs their tenure
	id = turkey_skeleton_news.32
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.32" }
	title = turkey_skeleton_news.32.t
	desc = turkey_skeleton_news.32.d
	picture = GFX_news_event_TUR_junta_prolonged

	is_triggered_only = yes

	option = {
		trigger = {
			OR = {
				has_government = progressivism
				has_government = liberalism
				has_government = liberal_conservatism
				has_government = conservatism
				has_government = paternalism
			}
		}
		name = turkey_skeleton_news.32.a
	}
	option = {
		trigger = {
			NOT = {
				OR = {
					has_government = progressivism
					has_government = liberalism
					has_government = liberal_conservatism
					has_government = conservatism
					has_government = paternalism
				}
			}
		}
		name = turkey_skeleton_news.32.b
	}
}
news_event = { #Türkeş succeeds Sunay, Founder Assembly gathered
	id = turkey_skeleton_news.33
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.33" }
	title = turkey_skeleton_news.33.t
	desc = turkey_skeleton_news.33.d
	picture = GFX_news_event_TUR_turkes_leadership

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.33.a
	}
}

#RadKem World Events
news_event = { #Rouge Generals are Defeated
	id = turkey_skeleton_news.34
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.34" }
	title = turkey_skeleton_news.34.t
	desc = turkey_skeleton_news.34.d
	picture = GFX_news_event_TUR_radkem_consolidation

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.34.a
	}
}
news_event = { #Military Memorandum against Government
	id = turkey_skeleton_news.35
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.35" }
	title = turkey_skeleton_news.35.t
	desc = turkey_skeleton_news.35.d
	picture = GFX_news_event_TUR_radkem_failure

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.35.a
	}
}
news_event = { #Atay Government ousted, İnönü reasserts control
	id = turkey_skeleton_news.36
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.36" }
	title = turkey_skeleton_news.36.t
	desc = turkey_skeleton_news.36.d
	picture = GFX_news_event_TUR_radkem_atay_ousted

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.36.a
	}
}
news_event = { #İnönü Resigns, Atay becomes president
	id = turkey_skeleton_news.37
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.37" }
	title = turkey_skeleton_news.37.t
	desc = turkey_skeleton_news.37.d
	picture = GFX_news_event_TUR_radkem_atay_president

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.37.a
	}
}
news_event = { #Atay dies, Yön faction succeeds him
	id = turkey_skeleton_news.38
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.38" }
	title = turkey_skeleton_news.38.t
	desc = turkey_skeleton_news.38.d
	picture = GFX_news_event_TUR_radkem_yon_succession

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.38.a
	}
}
news_event = { #Atay dies, Ülkü faction succeeds him
	id = turkey_skeleton_news.39
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.39" }
	title = turkey_skeleton_news.39.t
	desc = turkey_skeleton_news.39.d
	picture = GFX_news_event_TUR_radkem_ulku_succession

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.39.a
	}
}

#1971 Elections
news_event = { #CHP/DSP wins 
	id = turkey_skeleton_news.40
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.40" }
	title = turkey_skeleton_news.40.t
	desc = turkey_skeleton_news.40.d
	picture = GFX_news_event_TUR_1971_ecevit

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.40.a
	}
}
news_event = { #CHP/CGP wins 
	id = turkey_skeleton_news.41
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.41" }
	title = turkey_skeleton_news.41.t
	desc = turkey_skeleton_news.41.d
	picture = GFX_news_event_TUR_1971_Feyzioglu

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.41.a
	}
}
news_event = { #UDP/AP wins 
	id = turkey_skeleton_news.42
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.42" }
	title = turkey_skeleton_news.42.t
	desc = turkey_skeleton_news.42.d
	picture = GFX_news_event_TUR_1971_Demirel

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.42.a
	}
}
news_event = { #UDP/MMP wins 
	id = turkey_skeleton_news.43
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.43" }
	title = turkey_skeleton_news.43.t
	desc = turkey_skeleton_news.43.d
	picture = GFX_news_event_TUR_1971_Bilgic

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.43.a
	}
}
news_event = { #DYP/IDP wins
	id = turkey_skeleton_news.44
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.44" }
	title = turkey_skeleton_news.44.t
	desc = turkey_skeleton_news.44.d
	picture = GFX_news_event_TUR_1971_Alican

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.44.a
	}
}
news_event = { #DYP/TİP wins - Electoral Deadlock
	id = turkey_skeleton_news.45
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.45" }
	title = turkey_skeleton_news.45.t
	desc = turkey_skeleton_news.45.d
	picture = GFX_news_event_TUR_1971_TIP_deadlock

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.45.a
	}
}
news_event = { #DYP/TİP wins - Government forms
	id = turkey_skeleton_news.46
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.46" }
	title = turkey_skeleton_news.46.t
	desc = turkey_skeleton_news.46.d
	picture = GFX_news_event_TUR_1971_TIP_compromise

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.46.a
	}
}
news_event = { #DYP/TİP wins - Revolution happens (only if Aybar was PM all the time)
	id = turkey_skeleton_news.47
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.47" }
	title = turkey_skeleton_news.47.t
	desc = turkey_skeleton_news.47.d
	picture = GFX_news_event_TUR_TIP_revolution

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.47.a
	}
}

news_event = { #SDP Wins - post RadKem failure
	id = turkey_skeleton_news.48
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.48" }
	title = turkey_skeleton_news.48.t
	desc = turkey_skeleton_news.48.d
	picture = GFX_news_event_TUR_SDP

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.48.a
	}
}
news_event = { #DCP Wins - post RadKem failure
	id = turkey_skeleton_news.49
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.49" }
	title = turkey_skeleton_news.49.t
	desc = turkey_skeleton_news.49.d
	picture = GFX_news_event_TUR_DCP

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.49.a
	}
}

news_event = { #Turkey achieves nuclear weaponry
	id = turkey_skeleton_news.50
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_skeleton_news.50" }
	title = turkey_skeleton_news.50.t
	desc = turkey_skeleton_news.50.d
	picture = GFX_news_event_TUR_turkey_nukes

	is_triggered_only = yes

	option = {
		name = turkey_skeleton_news.50.a
	}
}


#Section 3: factions
add_namespace = turkey_faction_skeleton

country_event = { # OFN Application
	id = turkey_faction_skeleton.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_faction_skeleton.1" }
	title = turkey_faction_skeleton.1.t
	desc = turkey_faction_skeleton.1.d
	picture = GFX_report_event_TUR_invitation
	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		hidden_effect = { 
			TUR = { add_ideas = OFN_Observer }
			if = {
				limit = {
					SNS = {
						is_subject_of = TUR
					}
				}
				SNS = { add_ideas = OFN_Observer }
			}
			if = {
				limit = {
					BKU = {
						is_subject_of = TUR
					}
				}
				BKU = { add_ideas = OFN_Observer }
			}
			if = {
				limit = {
					ARM = {
						is_subject_of = TUR
					}
				}
				ARM = { add_ideas = OFN_Observer }
			}
		}
	}
	option = {
		name = turkey_faction_skeleton.1.a
	}
}
country_event = { # Pakt Application
	id = turkey_faction_skeleton.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_faction_skeleton.2" }
	title = turkey_faction_skeleton.2.t
	desc = turkey_faction_skeleton.2.d
	picture = GFX_report_event_TUR_invitation
	is_triggered_only = yes
	fire_only_once = yes
	
	trigger = {
		NOT = {
			has_global_flag = german_civil_war_goeringvic
		}
	}

	immediate = {
		hidden_effect = { 
			TUR = { 
				add_ideas = Pakt_Observer
			}
			if = {
				limit = {
					SNS = { is_subject_of = TUR }
				}
				SNS = { add_ideas = Pakt_Observer }
			}
			if = {
				limit = {
					BKU = { is_subject_of = TUR }
				}
				BKU = { add_ideas = Pakt_Observer }
			}
			if = {
				limit = {
					ARM = { is_subject_of = TUR }
				}
				ARM = { add_ideas = Pakt_Observer }
			}
		}
	}
	option = {
		name = turkey_faction_skeleton.2.a
	}
}
country_event = { # Sphere Application
	id = turkey_faction_skeleton.3
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_faction_skeleton.3" }
	title = turkey_faction_skeleton.3.t
	desc = turkey_faction_skeleton.3.d
	picture = GFX_report_event_TUR_invitation
	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		hidden_effect = { 
			TUR = { add_ideas = Sphere_Observer }
			if = {
				limit = {
					SNS = { is_subject_of = TUR }
				}
				SNS = { add_ideas = Sphere_Observer }
			}
			if = {
				limit = {
					BKU = { is_subject_of = TUR }
				}
				BKU = { add_ideas = Sphere_Observer }
			}
			if = {
				limit = {
					ARM = { is_subject_of = TUR }
				}
				ARM = { add_ideas = Sphere_Observer }
			}
		}
	}
	option = {
		name = turkey_faction_skeleton.3.a
	}
}

country_event = { # Deciding event
	id = turkey_faction_skeleton.11
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey_faction_skeleton.11" }
	title = turkey_faction_skeleton.11.t
	desc = turkey_faction_skeleton.11.d
	picture = GFX_report_event_TUR_invitation
	is_triggered_only = yes
	fire_only_once = yes
	hidden = yes
	
	option = { # OFN
		name = turkey_faction_skeleton.11.a
		ai_chance = {
			base = 1
			modifier = {
				AND = {
					check_variable = { USA.TotalScore > JAP.TotalScore }
					check_variable = { USA.TotalScore > GER.TotalScore }
				}
				add = 20
			}
			modifier = {
				OR = {
					has_country_flag = TUR_UDP_gov #Menderes included
					has_country_flag = TUR_CHP_gov
					has_country_flag = TUR_DYP_gov
					AND = {
						has_country_flag = TUR_Junta_gov
						has_country_flag = TUR_Erim_gov
					}
				}
				add = 30
			}
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = TUR_FACTION
						option = TUR_FACTION_SPHERE
					}
					has_game_rule = {
						rule = TUR_FACTION
						option = TUR_FACTION_PAKT
					}
					has_game_rule = {
						rule = TUR_FACTION
						option = TUR_FACTION_NEUTRAL
					}
					AND = {
						has_country_flag = TUR_Junta_gov
						NOT = { has_country_flag = TUR_Erim_gov }
					}
					has_country_flag = TUR_RadKem_gov
				}
			}
		}
		
		USA = {
			country_event = {
				id = turkey_faction_skeleton.1
				days = 1
			}
		}
		
	}
	option = { # pakt
		name = turkey_faction_skeleton.11.b
		ai_chance = {
			base = 1
			modifier = {
				AND = {
					check_variable = { GER.TotalScore > USA.TotalScore }
					check_variable = { GER.TotalScore > JAP.TotalScore }
				}
				add = 20
			}
			modifier = {
				OR = {
					has_country_flag = TUR_UDP_gov #Menderes included
					has_country_flag = TUR_CHP_gov
					AND = {
						has_country_flag = TUR_Junta_gov
						has_country_flag = TUR_Erim_gov
					}
				}
				add = 20
			}
			modifier = { #Menderes gets more chance
				has_country_flag = TUR_Menderes_ascendant
				add = 20
			}
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = TUR_FACTION
						option = TUR_FACTION_OFN
					}
					has_game_rule = {
						rule = TUR_FACTION
						option = TUR_FACTION_SPHERE
					}
					has_game_rule = {
						rule = TUR_FACTION
						option = TUR_FACTION_NEUTRAL
					}
					has_country_flag = TUR_DYP_gov
					AND = {
						has_country_flag = TUR_Junta_gov
						NOT = { has_country_flag = TUR_Erim_gov }
					}
					has_country_flag = TUR_RadKem_gov
				}
			}
		}
		
		GER = {
			country_event = {
				id = turkey_faction_skeleton.2
				days = 1
			}
		}
		
	}
	
	option = { # sphere
		name = turkey_faction_skeleton.11.c
		ai_chance = {
			base = 1
			modifier = {
				AND = {
					check_variable = { JAP.TotalScore > USA.TotalScore }
					check_variable = { JAP.TotalScore > GER.TotalScore }
				}
				add = 20
			}
			modifier = {
				OR = {
					has_country_flag = TUR_UDP_gov #Menderes included
					has_country_flag = TUR_CHP_gov
					AND = {
						has_country_flag = TUR_Junta_gov
						has_country_flag = TUR_Erim_gov
					}
				}
				add = 20
			}
			modifier = { #Erim gets more chance
				has_country_flag = TUR_Erim_gov
				add = 20
			}
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = TUR_FACTION
						option = TUR_FACTION_OFN
					}
					has_game_rule = {
						rule = TUR_FACTION
						option = TUR_FACTION_PAKT
					}
					has_game_rule = {
						rule = TUR_FACTION
						option = TUR_FACTION_NEUTRAL
					}
					has_country_flag = TUR_DYP_gov
					AND = {
						has_country_flag = TUR_Junta_gov
						NOT = { has_country_flag = TUR_Erim_gov }
					}
					has_country_flag = TUR_RadKem_gov
				}
			}
		}
		
		JAP = {
			country_event = {
				id = turkey_faction_skeleton.3
				days = 1
			}
		}
		
	}
	option = { # none
		name = turkey_faction_skeleton.11.e
		ai_chance = {
			base = 30
			modifier = {
				factor = 0
				OR = {
					has_game_rule ={
						rule = TUR_FACTION
						option = TUR_FACTION_OFN
					}
					has_game_rule ={
						rule = TUR_FACTION
						option = TUR_FACTION_SPHERE
					}
					has_game_rule ={
						rule = TUR_FACTION
						option = TUR_FACTION_PAKT
					}
				}
			}
		}
	}
}

### End of Turkey Skeleton Codes. Below are the spicy stuff:tm: ###

####Syrians Rise Up https://www.youtube.com/watch?v=CcX5w-K2e-Y&
country_event = {
	id = turkey.26
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey.26" }
	title = turkey.26.t
	desc = turkey.26.d
	picture = GFX_report_event_GER_nazi_moon
	is_triggered_only = yes

	fire_only_once = yes
	immediate = {
		782 = {
			set_demilitarized_zone = no
		}
		554 = {
			set_demilitarized_zone = no
		}
		553 = {
			set_demilitarized_zone = no
		}
		677 = {
			set_demilitarized_zone = no
		}
		680 = {
			set_demilitarized_zone = no
		}
		1240 = {
			set_demilitarized_zone = no
		}
		1241 = {
			set_demilitarized_zone = no
		}
		1242 = {
			set_demilitarized_zone = no
		}
		1370 = {
			set_demilitarized_zone = no
		}
		1371 = {
			set_demilitarized_zone = no
		}
		1372 = {
			set_demilitarized_zone = no
		}
		1450 = {
			set_demilitarized_zone = no
		}
		470 = {
			set_demilitarized_zone = no
		}
		1447 = {
			set_demilitarized_zone = no
		}
		TUR = {
			hidden_effect = {
				country_event = {
					id = turkey.30
					days = 30
				}
			}
		}
		ITA = {
			country_event = {
				id = ITAOIL.7
				days = 8
			}
		}
	}
	option = {
		name = turkey.26.a
		set_global_flag = Syrian_Revolt
		every_country = {
			limit = { is_ai = no }
			news_event = {
				id = WORLD.937
				days = 2
			}
		}
		SYR = {
			if = { #Spawn Syria, if the DYP hasn't already.
				limit = {
					country_exists = SNS
					NOT = { country_exists = SYR }
				}
				transfer_state = 782
				transfer_state = 554
				transfer_state = 680
				transfer_state = 1241
				transfer_state = 1242
				transfer_state = 1370
				transfer_state = 1371
				transfer_state = 470
				transfer_state = 1447
				transfer_state = 1450
				if = {
					limit = {
						NOT = {
							OR = {
								TUR = { controls_state = 781 }
								BKU = { controls_state = 781 }
							}
						}
					}
					transfer_state = 1243
					transfer_state = 1446
					transfer_state = 2148
					transfer_state = 677
					transfer_state = 1449
				}
				if = {
					limit = {
						SNS = { controls_state = 553 }
					}
					transfer_state = 553
					transfer_state = 2149
					transfer_state = 1240
					transfer_state = 1369
					transfer_state = 2151
					transfer_state = 2150
				}
				every_owned_state = {
					add_core_of = SYR
					remove_core_of = SNS
				}
				set_country_flag = BaathistCountry
				load_oob = SYR_uprising

				random_list = {
					1 = { #Shishakli
						modifier = {
							factor = 0
							OR = {
								has_game_rule = { rule = SYR_POLITICS_REVOLUTION option = SYR_POLITICS_REVOLUTION_AFLAQ }
								has_game_rule = { rule = SYR_POLITICS_REVOLUTION option = SYR_POLITICS_REVOLUTION_JADID }
								has_game_rule = { rule = SYR_POLITICS_REVOLUTION option = SYR_POLITICS_REVOLUTION_HAFEZ }
								has_game_rule = { rule = SYR_POLITICS_REVOLUTION option = SYR_POLITICS_REVOLUTION_ZIAD }
							}
						}
						set_politics = {
							ruling_party = paternalism
						}
						add_popularity = {
							ideology = paternalism
							popularity = 0.3
						}
					}
					3 = { #Assad or Hariri
						modifier = {
							factor = 0
							OR = {
								has_game_rule = { rule = SYR_POLITICS_REVOLUTION option = SYR_POLITICS_REVOLUTION_JADID }
								has_game_rule = { rule = SYR_POLITICS_REVOLUTION option = SYR_POLITICS_REVOLUTION_ADIB }
								has_game_rule = { rule = SYR_POLITICS_REVOLUTION option = SYR_POLITICS_REVOLUTION_AFLAQ }
							}
						}

						set_politics = {
							ruling_party = despotism
						}
						add_popularity = {
							ideology = despotism
							popularity = 0.3
						}
						random_list = {
							2 = {
								modifier = {
									factor = 0
									has_game_rule = { rule = SYR_POLITICS_REVOLUTION option = SYR_POLITICS_REVOLUTION_ZIAD }
								}
								promote_character = SYR_Hafez_al_Assad
							} #Assad
							1 = {
								modifier = {
									factor = 0
									has_game_rule = { rule = SYR_POLITICS_REVOLUTION option = SYR_POLITICS_REVOLUTION_HAFEZ }
								}
								promote_character = SYR_Ziad_al_Hariri
							} #Hariri
						}
					}
					1 = { #Jadid
						modifier = {
							factor = 0
							OR = {
								has_game_rule = { rule = SYR_POLITICS_REVOLUTION option = SYR_POLITICS_REVOLUTION_AFLAQ }
								has_game_rule = { rule = SYR_POLITICS_REVOLUTION option = SYR_POLITICS_REVOLUTION_ADIB }
								has_game_rule = { rule = SYR_POLITICS_REVOLUTION option = SYR_POLITICS_REVOLUTION_HAFEZ }
								has_game_rule = { rule = SYR_POLITICS_REVOLUTION option = SYR_POLITICS_REVOLUTION_ZIAD }
							}
						}
						set_politics = {
							ruling_party = communist
						}
						add_popularity = {
							ideology = communist
							popularity = 0.3
						}
					}
					1 = { #Aflaq
						modifier = {
							factor = 0
							OR = {
								has_game_rule = { rule = SYR_POLITICS_REVOLUTION option = SYR_POLITICS_REVOLUTION_JADID }
								has_game_rule = { rule = SYR_POLITICS_REVOLUTION option = SYR_POLITICS_REVOLUTION_ADIB }
								has_game_rule = { rule = SYR_POLITICS_REVOLUTION option = SYR_POLITICS_REVOLUTION_HAFEZ }
								has_game_rule = { rule = SYR_POLITICS_REVOLUTION option = SYR_POLITICS_REVOLUTION_ZIAD }
							}
						}
						set_politics = {
							ruling_party = socialist
						}
						add_popularity = {
							ideology = socialist
							popularity = 0.3
						}
					}
				}
				if = {
					limit = { has_government = paternalism }
					set_temp_variable = { TNO_economy_type_temp = token:Econ_Type_Capitalism }
					econ_type_change = yes
				}
				else = {
					set_temp_variable = { TNO_economy_type_temp = token:Econ_Type_Planned } 
					econ_type_change = yes
				}
			}
			else_if = {
				limit = {
					country_exists = SNS
					country_exists = SYR
				}
				SNS = {
					every_owned_state = {
						SYR = {
							transfer_state = PREV
						}
					}
				}
			}

			country_event = {
				id = OIL.5
				days = 2
			}

			set_country_flag = UAR_can_join
			country_event = { id = Syria.1 days = 70 }
		}

		if = {
			limit = {
				country_exists = BKU
			}
			TUR = {
				annex_country = { target = BKU transfer_troops = yes }
				every_owned_state = {
					remove_core_of = BKU
					add_core_of = TUR
				}
			}
			IRQ = {
				transfer_state = 1993
				1993 = {
					add_core_of = IRQ
					remove_core_of = TUR
					remove_claim_by = IRQ
				}
			}
		}

		if = { #Habash gets a jumpstart on the UAS if he's formed the pan-arab state
			limit = {
				PAL = {
					has_government = communist
					has_country_flag = PAL_APR
				}
			}
			PAL = {
				set_country_flag = UAR_can_form
			}
		}

		if = { #Mano Campaign starts after OC
			limit = {
				OR = {
					has_global_flag = WAC_SCENARIO_1_PALF_VICTORY
					has_global_flag = WAC_SCENARIO_2_PALF_VICTORY
					has_global_flag = WAC_SCENARIO_3_PALF_VICTORY
				}
			}
			CAO = {
				country_event = { # Mano Campaign
					id = west_african_crisis.18
					days = 21
				}
			}
		}

		if = { # Paraguay and Santa Cruz invade Bolivia during the OC
			limit = {
				PAR = {
					OR = { # Paraguayan Bush War ended with FULNA defeated
						has_country_leader = { # Nazi
							character = PAR_Mutshuito_Villasboa
							ruling_only = yes
						}
						has_country_leader = {
							character = PAR_Federico_Chaves
							ruling_only = yes
						}
						has_country_leader = {
							character = PAR_Juan_Natalicio_Gonzalez
							ruling_only = yes
						}
					}
				}
			}
			PAR = {
				country_event = { # 12 Day War
					id = PAR_bolivia.1
					days = 40
				}
			}
		}

		#if = { #Russian wall oil crisis epilogue
		#	limit = {
		#		has_global_flag = german_civil_war_speervic
		#	}
		#	GER = {
		#		country_event = {
		#			id = speer_russianwall.6
		#		}
		#	}
		#}

		hidden_effect = { #Flavor events
			USA = {
				country_event = { id = OILflavor.2 days = 10 }
				country_event = { id = OILflavor.3 days = 20 }
				country_event = { id = kirk.31 days = 32 }
			}
			JAP = {
				country_event = { id = OILflavor.4 days = 35 }
			}
		}
	}
}

country_event = { #Surrender Event 3
	id = turkey.27
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey.27" }
	title = turkey.27.t
	desc = turkey.27.d
	picture = GFX_report_event_GER_nazi_moon
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = turkey.27.a
		white_peace = SYR
		if = {
			limit = {
				has_war_with = IRQ
			}
			white_peace = IRQ
		}
		if = {
			limit = {
				has_war_with = JOR
			}
			white_peace = JOR
		}
		if = {
			limit = {
				AND = {
					781 = {
						is_controlled_by = IRQ
					}
				}
			}
			IRQ = {
				transfer_state = 781
			}
		}
	}
}
###Syria chain starts
country_event = {
	id = turkey.28
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey.28" }
	title = turkey.28.t
	desc = turkey.28.d
	picture = GFX_report_event_GER_nazi_moon

	is_triggered_only = yes
	fire_only_once = yes
	trigger = { NOT = { has_global_flag = TNO_world_tension_WW3 } }

	option = {
		name = turkey.28.a #ono
		344 = {
			damage_building = { type = infrastructure damage = 0.6 }
		}
		350 = {
			damage_building = { type = infrastructure damage = 0.6 }
		}
		353 = {
			damage_building = { type = infrastructure damage = 0.6 }
		}
		352 = {
			damage_building = { type = infrastructure damage = 0.6 }
		}
		781 = {
			damage_building = { type = infrastructure damage = 0.6 }
		}
		hidden_effect = {
			TUR = {
				country_event = {
					id = turkey.29
					days = 10
				}
			}
		}
	}
}

###Syria chain progresses - oh fuck no
country_event = {
	id = turkey.29
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey.29" }
	title = turkey.29.t
	desc = turkey.29.d
	picture = GFX_report_event_GER_nazi_moon
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = turkey.29.a #ono
		if = {
			limit = {
				782 = {
					is_controlled_by = SNS
				}
			}
			782 = {
				set_demilitarized_zone = yes
			}
		}
		if = {
			limit = {
				554 = {
					is_controlled_by = SNS
				}
			}
			554 = {
				set_demilitarized_zone = yes
			}
		}
		if = {
			limit = {
				677 = {
					is_controlled_by = SNS
				}
			}
			677 = {
				set_demilitarized_zone = yes
			}
		}
		if = {
			limit = {
				680 = {
					is_controlled_by = SNS
				}
			}
			680 = {
				set_demilitarized_zone = yes
			}
		}
		if = {
			limit = {
				553 = {
					is_controlled_by = TUR
				}
			}
			553 = {
				set_demilitarized_zone = yes
			}
		}
		if = {
			limit = {
				1240 = {
					is_controlled_by = TUR
				}
			}
			1240 = {
				set_demilitarized_zone = yes
			}
		}
		if = {
			limit = {
				1241 = {
					is_controlled_by = TUR
				}
			}
			1241 = {
				set_demilitarized_zone = yes
			}
		}
		if = {
			limit = {
				1242 = {
					is_controlled_by = TUR
				}
			}
			1242 = {
				set_demilitarized_zone = yes
			}
		}
		if = {
			limit = {
				1243 = {
					is_controlled_by = TUR
				}
			}
			1243 = {
				set_demilitarized_zone = yes
			}
		}
		if = {
			limit = {
				1369 = {
					is_controlled_by = TUR
				}
			}
			1369 = {
				set_demilitarized_zone = yes
			}
		}
		if = {
			limit = {
				1370 = {
					is_controlled_by = TUR
				}
			}
			1370 = {
				set_demilitarized_zone = yes
			}
		}
		if = {
			limit = {
				1371 = {
					is_controlled_by = TUR
				}
			}
			1371 = {
				set_demilitarized_zone = yes
			}
		}
		hidden_effect = {
			TUR = {
				country_event = {
					id = turkey.26
					days = 10
				}
			}
		}
	}
}

country_event = { #Surrender Event
	id = turkey.30
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey.30" }
	title = turkey.30.t
	desc = turkey.30.d
	picture = GFX_report_event_GER_nazi_moon
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = turkey.30.a
		add_political_power = -50
		hidden_effect = {
			country_event = {
				id = turkey.31
				days = 30
			}
		}
	}
	option = {
		name = turkey.30.b
		white_peace = SYR
		if = {
			limit = {
				has_war_with = IRQ
			}
			white_peace = IRQ
		}
		if = {
			limit = {
				has_war_with = JOR
			}
			white_peace = JOR
		}
		if = {
			limit = {
				AND = {
					781 = {
						is_controlled_by = IRQ
					}
				}
			}
			IRQ = {
				transfer_state = 781
			}
		}
	}
}

country_event = { #Surrender Event 2
	id = turkey.31
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey.31" }
	title = turkey.31.t
	desc = turkey.31.d
	picture = GFX_report_event_GER_nazi_moon
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = turkey.31.a
		add_political_power = -50
		hidden_effect = {
			country_event = {
				id = turkey.27
				days = 30
			}
		}
	}
	option = {
		name = turkey.31.b
		white_peace = SYR
		if = {
			limit = {
				has_war_with = IRQ
			}
			white_peace = IRQ
		}
		if = {
			limit = {
				has_war_with = JOR
			}
			white_peace = JOR
		}
		if = {
			limit = {
				AND = {
					781 = {
						is_controlled_by = IRQ
					}
				}
			}
			IRQ = {
				transfer_state = 781
			}
		}
	}
}

country_event = { # Scorza's Italy propose A new Congress
	id = turkey.32
	immediate = { log = "[GetDateText]: [Root.GetName]: event turkey.32" }
	title = turkey.32.t
	desc = turkey.32.d
	picture = GFX_unknown
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = turkey.32.a
		ITA = { add_to_faction = TUR }
	}
	option = {
		name = turkey.32.b
		ITA = { give_guarantee = TUR }
		give_guarantee = ITA
	}

	option = {
		name = turkey.32.c
		ITA = {
			country_event = {
				id = scorza.50
				days = 1
				random_hours = 1
			}
		}
	}
}
