### Crimean Tatars events ###
add_namespace = qirimlar

# Support of crimean tatars rebellion for Ukraine - create ukrainian puppet in Crimea
country_event = {
	id = qirimlar.1
	title = qirimlar.1.t
	desc = qirimlar.1.d
	picture = GFX_report_event_generic_peaceful_annexation
	
	is_triggered_only = yes

	option = {
		name = qirimlar.1.a
		ai_chance = {
			base = 100
		}
		activate_mission = UKR_concentrate_troops_in_the_south
	}
	option = {
		name = qirimlar.1.b
		CRM = { country_event = { id = crimea.15 days = 2 } }
		ai_chance = {
			base = 0
		}
	}	
}
# Ukraine agree and invade in Steppen Crimea
country_event = {
	id = qirimlar.2
	title = qirimlar.2.t
	desc = qirimlar.2.d
	
	is_triggered_only = yes

	option = {
		name = qirimlar.2.a
		CRM = { country_event = { id = qirimlar.3 days = 1 } }
	}
}
# Choice for russians - surrender or battle
country_event = {
	id = qirimlar.3
	title = qirimlar.3.t
	desc = qirimlar.3.d
	
	is_triggered_only = yes

	option = {
		name = qirimlar.3.a
		ai_chance = {
			base = 100
		}
		#save manpower for CRI
		delete_unit = { 
			state = 137             
			disband = yes 
		}
		delete_unit = { 
			state = 1051             
			disband = yes 
		}
		137 = { 
			add_core_of = CRI
			remove_claim_by = UKR 
			remove_core_of = CRM 
		}
		FROM = { country_event = { id = qirimlar.4 days = 1 } }
		UKR = { country_event = { id = qirimlar.4 days = 1 } }
		hidden_effect = {
			news_event = { id = news.566 hours = 36 }
		}
		if = {
			limit = {
				CRI = { is_ai = yes }
			}
			CRI = { change_tag_from = ROOT }
		}
		else = {
			custom_effect_tooltip = GAME_OVER_TT
		}
	}
	option = {
		name = qirimlar.3.b
		ai_chance = {
			base = 0
		}
		FROM = { complete_national_focus = CRI_self_defence_squads }
		1051 = { add_core_of = CRM }
		declare_war_on = {
			target = FROM
			type = take_state
			generator = { 1051 }
		}
	}	
}
# Russian troops and government retreated and evacuated
country_event = {
	id = qirimlar.4
	title = qirimlar.4.t
	desc = qirimlar.4.d
	picture = GFX_report_event_generic_peaceful_annexation
	
	is_triggered_only = yes

	option = {
		name = qirimlar.4.a
		if = {
			limit = { tag = CRI }
			annex_country = { target = FROM }
		}
	}
}
# Second Kurultai
country_event = {
	id = qirimlar.5
	title = qirimlar.5.t
	desc = qirimlar.5.d
	picture = GFX_report_event_second_kurultai
	
	is_triggered_only = yes

	option = {
		name = qirimlar.5.a
	}
}
# Change government
country_event = {
	id = qirimlar.6
	title = qirimlar.6.t
	desc = qirimlar.6.d
	picture = GFX_report_event_usa_election_generic
	
	is_triggered_only = yes

	option = {
		name = qirimlar.6.a
		ai_chance = {
			factor = 40
			modifier = {
				factor = 2
				TUR = { has_completed_focus = TUR_return_of_the_sultan }
			}
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = CRI_ai_behavior
						option = FASCIST
					}
					has_game_rule = {
						rule = CRI_ai_behavior
						option = COMMUNIST
					}
				}
			}
			modifier = {
				factor = 2
				is_subject_of = UKR
				UKR = { has_completed_focus = UKR_old_course }
			}
		}
		complete_national_focus = CRI_mejlis_of_traditionalists
	}
	option = {
		name = qirimlar.6.b
		ai_chance = {
			factor = 40
			modifier = {
				factor = 1.5
				TUR = { has_completed_focus = TUR_the_german_turkish_friendship_treaty }
			}
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = CRI_ai_behavior
						option = NEUTRALITY
					}
					has_game_rule = {
						rule = CRI_ai_behavior
						option = COMMUNIST
					}
				}
			}
			modifier = {
				factor = 2
				is_subject_of = UKR
				UKR = { has_completed_focus = UKR_revanchism }
			}
		}
		complete_national_focus = CRI_mejlis_of_nationalists
	}
	option = {
		name = qirimlar.6.c
		trigger = {
			country_exists = SOV
			SOV = {
				has_government = communism
				NOT = { has_war_with = ROOT }
			}
		}
		ai_chance = {
			factor = 20
			modifier = {
				factor = 0
				SOV = { has_civil_war = yes }
			}
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = CRI_ai_behavior
						option = NEUTRALITY
					}
					has_game_rule = {
						rule = CRI_ai_behavior
						option = FASCIST
					}
				}
			}
			modifier = {
				factor = 2
				is_subject_of = UKR
				UKR = { has_completed_focus = UKR_communism_propaganda }
			}
		}
		complete_national_focus = CRI_red_mejlis
	}
}
# House of Giray - restoration of khanate
country_event = {
	id = qirimlar.7
	title = qirimlar.7.t
	desc = qirimlar.7.d
	picture = GFX_report_event_usa_election_generic
	
	is_triggered_only = yes

	option = {
		name = qirimlar.7.a
		add_ideas = CRI_sultan_kadir_giray
		if = {
			limit = {
				is_subject = yes
			}
			add_autonomy_score = {
				value = 150
			}
		}
	}
}
# Kudashev and his volunteers
country_event = {
	id = qirimlar.8
	title = qirimlar.8.t
	desc = qirimlar.8.d
	
	trigger = {
		tag = CRI
		has_government = neutrality 
		has_completed_focus = CRI_house_of_giray
		SOV = { has_government = communism }
		NOT = {	country_exists = CRM }
	}

	fire_only_once = yes
	
	mean_time_to_happen = {	days = 30	}

	option = {
		name = qirimlar.8.a
		ai_chance = {
			factor = 70
		}
		hidden_effect = {
			CRM = {
				if = {
					limit = { has_character = CRM_nikolai_kudashev }
					CRM_nikolai_kudashev = { set_nationality = ROOT }
				}
			}
			add_corps_commander_role = {
				character = CRM_nikolai_kudashev
				traits = { cavalry_leader }
				skill = 2
				attack_skill = 3
				defense_skill = 2
				planning_skill = 1
				logistics_skill = 1
			}
		}
		add_power_balance_value = {
			id = CRI_power_balance
			value = 0.05
		}
		add_manpower = 500
		add_command_power = -15
	}
		
	option = {
		name = qirimlar.8.b
		ai_chance = {
			factor = 30
		}
	}
}
# Third kurultay is available
country_event = {
    id = qirimlar.9
    title = qirimlar.9.t
	desc = qirimlar.9.d
	picture = GFX_report_event_second_kurultai

	is_triggered_only = yes

	trigger = {
		NOT = { has_government = communism }
	}
   
	immediate = {
		if = {
			limit = { has_country_flag = CRI_two_years_after_second_kurultai }
			set_country_flag = CRI_two_years_after_third_kurultai
		}
		else = {
			set_country_flag = CRI_two_years_after_second_kurultai
			if = { limit = { is_subject_of = UKR } UKR = { country_event = qirimlar.64 } }
		}
	}
		

	option = {
		name = qirimlar.9.a
	}
}
# Makhnovists propose independent and white peace
country_event = {
	id = qirimlar.10
	title = qirimlar.10.t
	desc = qirimlar.10.d
	picture = GFX_report_event_makhnovists
	
	is_triggered_only = yes

	option = {
		name = qirimlar.10.a
		ai_chance = {
			factor = 70
			modifier = {
				factor = 10
				OR = {
					has_game_rule = {
						rule = UKR_ai_behavior
						option = ANARCHY_LEFT
					}
					has_game_rule = {
						rule = UKR_ai_behavior
						option = ANARCHY_RIGHT
					}
				}
			}
		}
		UKR = { end_puppet = CRI }
		white_peace = DKR
		add_political_power = -100
		UKR = { country_event = { id = qirimlar.11 hours = 6 } }
	}
	option = {
		name = qirimlar.10.b
		ai_chance = {
			factor = 30
		}
		FROM = { country_event = { id = qirimlar.12 hours = 6 } }
	}
}
# Crimea proclaime independent and separate peace with rebels
country_event = {
	id = qirimlar.11
	title = qirimlar.11.t
	desc = qirimlar.11.d
	picture = GFX_report_event_usa_election_generic
	
	is_triggered_only = yes

	option = {
		name = qirimlar.11.a
		ai_chance = {
			factor = 50
		}
		declare_war_on = {
			target = CRI
			type = puppet_wargoal_focus
		}
	}
	option = {
		name = qirimlar.11.b
		ai_chance = {
			factor = 50
		}
		add_political_power = -100
	}
}
# Crimean government refuse white peace
country_event = {
	id = qirimlar.12
	title = qirimlar.12.t
	desc = qirimlar.12.d
	picture = GFX_report_event_bakhchisaray_palace
	
	is_triggered_only = yes

	option = {
		name = qirimlar.12.a
	}
}
# Red terror - choice victim
country_event = {
	id = qirimlar.13
	title = qirimlar.13.t
	desc = qirimlar.13.d
	picture = GFX_report_event_soviet_purge_trial
	
	is_triggered_only = yes

	option = {
		name = qirimlar.13.a
		ai_chance = {
			factor = 50
		}
		retire_character = CRI_veli_ibraimov
	}
	option = {
		name = qirimlar.13.b
		ai_chance = {
			factor = 50
		}
		retire_character = CRI_ablyakim_gafarov
	}
}
# Amet-khan Sultan is ace
country_event = {
	id = qirimlar.14
	title = qirimlar.14.t
	desc = qirimlar.14.d
	picture = GFX_report_event_ametkhan_sultan
	
	trigger = {
		tag = CRI
		date > 1939.01.01
		has_war = yes
		has_air_experience > 29
		has_deployed_air_force_size = {
		    size > 29
		    type = fighter
		}
	}

	mean_time_to_happen = { days = 45 }

	fire_only_once = yes
	
	option = {
		name = qirimlar.14.a
		add_ace = {
			name = "Amet-khan"
			surname = "Sultan"
			callsign = "King of taran"
			type = fighter_unique
		}
		add_doctrine_cost_reduction = {
			name = qirimlar.14.t
			cost_reduction = 0.5
			uses = 1
			category = air_doctrine
		}
	}
}
# Alliance with Turkey - choice for Turkey
country_event = {
	id = qirimlar.15
	title = qirimlar.15.t
	desc = qirimlar.15.d
	
	is_triggered_only = yes

	option = {
		name = qirimlar.15.a
		ai_chance = {
			base = 100
		}
		effect_tooltip = {
			if = {
				limit = {
					is_in_faction = yes
					is_faction_leader = no 
				}
				give_guarantee = CRI
			}
			else = {
				add_to_faction = CRI
			}
		}
		FROM = { country_event = qirimlar.16 }
	}
	option = {
		name = qirimlar.15.b
		ai_chance = {
			base = 0
		}
		FROM = { country_event = qirimlar.17 }
	}
}
# Alliance with Turkey - agree
country_event = {
	id = qirimlar.16
	title = qirimlar.16.t
	desc = qirimlar.16.d
	
	is_triggered_only = yes

	option = {
		name = qirimlar.16.a
		if = {
			limit = { FROM = { is_in_faction = no }	}
			FROM = {
				create_faction = IstanbulPact
				add_to_faction = ROOT
			}
		}
		else_if = {
			limit = {
				FROM = { is_faction_leader = yes }
			}
			FROM = {
				add_to_faction = ROOT
			}
		}
		else_if = {
			limit = {
				FROM = { 
					is_in_faction = yes
					is_faction_leader = no 
				}
			}
			FROM = {
				give_guarantee = ROOT
			}
		}
	}
}
# Alliance with Turkey - refuse
country_event = {
	id = qirimlar.17
	title = qirimlar.17.t
	desc = qirimlar.17.d
	
	is_triggered_only = yes

	option = {
		name = qirimlar.17.a
	}
}
# Turkey demand protectorate for Crimea
country_event = {
	id = qirimlar.18
	title = qirimlar.18.t
	desc = qirimlar.18.d
	
	is_triggered_only = yes

	trigger = {
		NOT = { tag = TUR }
	}

	option = {
		name = qirimlar.18.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 1.5
				has_war = yes
			}
		}
		effect_tooltip = {
			TUR = { puppet = CRI }
		}
		TUR = { country_event = qirimlar.19 }
	}
	option = {
		name = qirimlar.18.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 2
				strength_ratio = {
					tag = TUR
					ratio > 1
				}
			}
		}
		TUR = { country_event = qirimlar.20 }
	}
}
# OVERLORD of CRI cede Crimea
country_event = {
	id = qirimlar.19
	title = qirimlar.19.t
	desc = qirimlar.19.d
	
	is_triggered_only = yes

	option = {
		name = qirimlar.19.a
		puppet = CRI
		set_autonomy = {
			target = CRI
			autonomous_state = autonomy_colony
			freedom_level = 0.5
		}
		CRI = { country_event = qirimlar.21 }
	}
}
# OVERLORD of CRI does not concede Crimea - choice for TUR
country_event = {
	id = qirimlar.20
	title = qirimlar.20.t
	desc = qirimlar.20.d
	
	is_triggered_only = yes

	option = {
		name = qirimlar.20.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 2
				CRI = {
					has_navy_size = { size > 3 }
				}
			}
			modifier = {
				factor = 2
				has_completed_focus = TUR_pivot_to_the_past
			}
		}
		puppet = CRI
		set_autonomy = {
			target = CRI
			autonomous_state = autonomy_colony
			freedom_level = 0.5
		}
		FROM = {
			add_state_claim = 137
			add_state_claim = 1051
		}
		declare_war_on = {
			target = FROM
			type = puppet_wargoal_focus
		}
		CRI = { 
			declare_war_on = {
				target = FROM
				type = puppet_wargoal_focus
			}
			country_event = qirimlar.22 
		} 
	}
	option = {
		name = qirimlar.20.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 1.5
				has_war = yes
			}
		}
		CRI = { country_event = qirimlar.23 }
		FROM = { country_event = qirimlar.23 }
	}
}
# CRI have a new OVERLORD - message fo CRI
country_event = {
	id = qirimlar.21
	title = qirimlar.21.t
	desc = qirimlar.21.d
	
	is_triggered_only = yes

	option = { #return previous government after puppeting
		name = qirimlar.21.a
		if = {
			limit = {
				NOT = { has_government = neutrality }
				has_completed_focus = CRI_mejlis_of_traditionalists
			}
			set_politics = {
				ruling_party = neutrality
				elections_allowed = no
			}
			add_popularity = {
				ideology = neutrality
				popularity = 0.50
			}
		}
		if = {
			limit = {
				NOT = { has_government = fascism }
				has_completed_focus = CRI_mejlis_of_nationalists
			}
			set_politics = {
				ruling_party = fascism
				elections_allowed = no
			}
			add_popularity = {
				ideology = fascism
				popularity = 0.50
			}
		}
		if = {
			limit = {
				NOT = { has_government = democratic }
				has_completed_focus = CRI_keep_government
			}
			set_politics = {
				ruling_party = democratic
				election_frequency = 48
				elections_allowed = yes
			}
			add_popularity = {
				ideology = democratic
				popularity = 0.50
			}
		}
	}
}
# CRI have a new OVERLORD and start war after previous - message fo CRI
country_event = {
	id = qirimlar.22
	title = qirimlar.22.t
	desc = qirimlar.22.d
	
	is_triggered_only = yes

	option = {
		name = qirimlar.22.a
		if = {
			limit = {
				NOT = { has_government = neutrality }
				has_completed_focus = CRI_mejlis_of_traditionalists
			}
			set_politics = {
				ruling_party = neutrality
				elections_allowed = no
			}
			add_popularity = {
				ideology = neutrality
				popularity = 0.50
			}
		}
		if = {
			limit = {
				NOT = { has_government = fascism }
				has_completed_focus = CRI_mejlis_of_nationalists
			}
			set_politics = {
				ruling_party = fascism
				elections_allowed = no
			}
			add_popularity = {
				ideology = fascism
				popularity = 0.50
			}
		}
		if = {
			limit = {
				NOT = { has_government = democratic }
				has_completed_focus = CRI_keep_government
			}
			set_politics = {
				ruling_party = democratic
				election_frequency = 48
				elections_allowed = yes
			}
			add_popularity = {
				ideology = democratic
				popularity = 0.50
			}
		}
	}
}
# TUR not ready to fight for Crimea
country_event = {
	id = qirimlar.23
	title = qirimlar.23.t
	desc = qirimlar.23.d
	
	is_triggered_only = yes

	option = {
		trigger = {
			tag = CRI
		}
		name = qirimlar.23.a
	}
	option = {
		trigger = {
			NOT = { tag = CRI }
		}
		name = qirimlar.23.b
	}
}
# Join Crimea to Comintern
country_event = {
	id = qirimlar.24
	title = qirimlar.24.t
	desc = qirimlar.24.d
	
	is_triggered_only = yes

	option = {
		name = qirimlar.24.a
		ai_chance = {
			base = 100
		}
		effect_tooltip = {
			if = {
				limit = {
					is_faction_leader = yes
				}
				add_to_faction = FROM
			}
			else = {
				puppet = FROM
			}
		}
		FROM = { country_event = qirimlar.25 }
	}
	option = {
		name = qirimlar.24.b
		ai_chance = {
			base = 0
		}
		FROM = { country_event = qirimlar.26 }
	}
}
# Join Crimea to Comintern - USSR agree
country_event = {
	id = qirimlar.25
	title = qirimlar.25.t
	desc = qirimlar.25.d
	
	is_triggered_only = yes

	option = {
		name = qirimlar.25.a
		if = {
			limit = { FROM = { is_in_faction = yes }	}
			FROM = {
				add_to_faction = ROOT
			}
		}
		else = {
			FROM = {
				puppet = ROOT
				set_autonomy = {
					target = CRI
					autonomous_state = autonomy_dominion
					freedom_level = 0.1
				}
			}
			hidden_effect = {
				set_cosmetic_tag = CRI_SOV
			}
		}
	}
}
# Join Crimea to Comintern - USSR refuse
country_event = {
	id = qirimlar.26
	title = qirimlar.26.t
	desc = qirimlar.26.d
	
	is_triggered_only = yes

	option = {
		name = qirimlar.26.a
	}
}
# Join Crimea to Comintern as subject of other country
country_event = {
	id = qirimlar.27
	title = qirimlar.27.t
	desc = qirimlar.27.d
	
	is_triggered_only = yes

	option = {
		name = qirimlar.27.a
		ai_chance = {
			base = 100
			modifier = {
				add = -100
				surrender_progress > 0.25
			}
		}
		effect_tooltip = {
			puppet = FROM
		}
		FROM = { country_event = qirimlar.28 }
	}
	option = {
		name = qirimlar.27.b
		ai_chance = {
			base = 0
			modifier = {
				add = 100
				surrender_progress > 0.25
			}
		}
		FROM = { country_event = qirimlar.26 }
	}
}
# Join Crimea to USSR - USSR agree
country_event = {
	id = qirimlar.28
	title = qirimlar.28.t
	desc = qirimlar.28.d
	
	is_triggered_only = yes

	option = {
		name = qirimlar.28.a
		OVERLORD = { country_event = { id = qirimlar.29 hours = 8 } }
		FROM = {
			puppet = ROOT
			set_autonomy = {
				target = CRI
				autonomous_state = autonomy_dominion
				freedom_level = 0.1
			}
		}
		hidden_effect = {
			set_cosmetic_tag = CRI_SOV
		}
	}
}
# Crimea join to USSR - reaction of former overlord
country_event = {
	id = qirimlar.29
	title = qirimlar.29.t
	desc = qirimlar.29.d
	picture = GFX_report_event_stalin_meeting
	
	is_triggered_only = yes

	trigger = { NOT = { has_war_with = SOV } }

	option = {
		name = qirimlar.29.a
		ai_chance = {
			factor = 60
			modifier = {
				factor = 1.5
				has_war = yes
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = SOV
					ratio < 0.75
				}
			}
		}
		add_political_power = -100
	}
	option = {
		name = qirimlar.29.b
		ai_chance = {
			factor = 40
		}
		add_war_support = 0.05
		create_wargoal = {
			type = puppet_wargoal_focus
			target = CRI
		}
		add_state_claim = 137
		add_state_claim = 1051
		random_other_country = {
			limit = {
				original_tag = SOV
				has_government = communism
			}
			country_event = qirimlar.30
		}
	}
}
# Former overlord of Crimea ready to fight for peninsula
country_event = {
	id = qirimlar.30
	title = qirimlar.30.t
	desc = qirimlar.30.d
	
	is_triggered_only = yes

	option = {
		name = qirimlar.30.a
		effect_tooltip = {
			FROM = {
				create_wargoal = {
					type = puppet_wargoal_focus
					target = CRI
				}
			}
		}
	}
}
# Crimea request support from USSR for annexation Kherson
country_event = {
	id = qirimlar.31
	title = qirimlar.31.t
	desc = qirimlar.31.d
	picture = GFX_report_event_stalin_meeting
	
	is_triggered_only = yes

	option = {
		name = qirimlar.31.a
		ai_chance = {
			base = 100
		}
		196 = {
			controller = {
				country_event = qirimlar.32
			}
		}
	}
	option = {
		name = qirimlar.31.b
		ai_chance = {
			base = 0
			modifier = {
				add = 50
				196 = {
					controller = {
						OR = {
							has_government = communism
							is_major = yes
						}
					}
				}
			}
			modifier = {
				add = 100
				surrender_progress > 0.25
			}
		}
		FROM = { country_event = qirimlar.33 }
	}
}
# Crimea request support from USSR for annexation Kherson - ultimatum for current controller
country_event = {
	id = qirimlar.32
	title = qirimlar.32.t
	desc = qirimlar.32.d
	picture = GFX_report_event_stalin_meeting
	
	is_triggered_only = yes

	option = {
		name = qirimlar.32.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 1.5
				has_war = yes
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = SOV
					ratio < 0.75
				}
			}
		}
		effect_tooltip = {
			CRI = { transfer_state = 196 }
		}
		CRI = { country_event = { id = qirimlar.34 days = 1 } }
	}
	option = {
		name = qirimlar.32.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				is_subject_of = SOV
			}
		}
		effect_tooltip = {
			FROM = {
				create_wargoal = {
					type = puppet_wargoal_focus
					target = ROOT
				}
			}
		}
		FROM = { country_event = { id = qirimlar.35 days = 1 } }
	}
}
# USSR refuse support territorial claims of Crimea
country_event = {
	id = qirimlar.33
	title = qirimlar.33.t
	desc = qirimlar.33.d
	
	is_triggered_only = yes

	option = {
		name = qirimlar.33.a
		if = {
			limit = {
				is_subject = yes
			}
			add_autonomy_score = {
				value = 200
			}
		}
	}
}
# FROM cede Kherson
country_event = {
	id = qirimlar.34
	title = qirimlar.34.t
	desc = qirimlar.34.d
	picture = GFX_report_event_generic_peaceful_annexation
	
	is_triggered_only = yes

	option = {
		name = qirimlar.34.a
		transfer_state = 196
		add_war_support = 0.05
		if = {
			limit = {
				is_subject = yes
			}
			add_autonomy_score = {
				value = -200
			}
		}
	}
}
# Controler of Kherson refuse ultimatum - wargoal for USSR
country_event = {
	id = qirimlar.35
	title = qirimlar.35.t
	desc = qirimlar.35.d
	
	is_triggered_only = yes

	option = {
		name = qirimlar.35.a
		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM
		}
	}
}
# Crimea propose USSR transfer Kherson
country_event = {
	id = qirimlar.36
	title = qirimlar.36.t
	desc = qirimlar.36.d
	picture = GFX_report_event_stalin_meeting
	
	is_triggered_only = yes

	option = {
		name = qirimlar.36.a
		ai_chance = {
			base = 100
		}
		effect_tooltip = {
			FROM = { transfer_state = 196 }
		}
		FROM = {
			country_event = qirimlar.37
		}
	}
	option = {
		name = qirimlar.36.b
		ai_chance = {
			base = 0
			modifier = {
				add = 100
				196 = {
					is_core_of = ROOT
				}
			}
		}
		FROM = { country_event = qirimlar.33 }
	}
}
# SOV cede Kherson
country_event = {
	id = qirimlar.37
	title = qirimlar.37.t
	desc = qirimlar.37.d
	picture = GFX_report_event_generic_peaceful_annexation
	
	is_triggered_only = yes

	option = {
		name = qirimlar.37.a
		transfer_state = 196
		if = {
			limit = {
				is_subject = yes
			}
			add_autonomy_score = {
				value = -200
			}
		}
	}
}
# Territory dispute for Kherson - decision for USSR
country_event = {
	id = qirimlar.38
	title = qirimlar.38.t
	desc = qirimlar.38.d
	picture = GFX_report_event_stalin_meeting
	
	is_triggered_only = yes

	option = {
		name = qirimlar.38.a
		ai_chance = {
			factor = 60
			modifier = {
				factor = 2
				196 = {
					controller = {
						is_subject = yes
					}
				}
			}
		}
		196 = {
			controller = {
				country_event = qirimlar.39
			}
		}
	}
	option = {
		name = qirimlar.38.b
		ai_chance = {
			factor = 40
			modifier = {
				factor = 1.5
				196 = {
					controller = {
						strength_ratio = {
							tag = CRI
							ratio > 1
						}
					}
				}
			}
		}
		FROM = { country_event = qirimlar.33 }
	}
}
# USSR support Crimean claims - decision for controller
country_event = {
	id = qirimlar.39
	title = qirimlar.39.t
	desc = qirimlar.39.d
	picture = GFX_report_event_stalin_meeting
	
	is_triggered_only = yes

	option = {
		name = qirimlar.39.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 2
				has_army_manpower = { size > 199999 }
			}
			modifier = {
				factor = 2
				196 = {
					NOT = { is_core_of = ROOT }
				}
			}
		}
		effect_tooltip = {
			CRI = { transfer_state = 196 }
		}
		CRI = { country_event = { id = qirimlar.34 days = 1 } }
	}
	option = {
		name = qirimlar.39.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				is_subject_of = SOV
			}
		}
		effect_tooltip = {
			FROM = {
				create_wargoal = {
					type = puppet_wargoal_focus
					target = ROOT
				}
			}
		}
		FROM = { country_event = { id = qirimlar.40 days = 1 } }
	}
}
# Allied controler of Kherson refuse Soviet demand - wargoal for USSR
country_event = {
	id = qirimlar.40
	title = qirimlar.40.t
	desc = qirimlar.40.d
	
	is_triggered_only = yes

	option = {
		name = qirimlar.40.a
		if = {
			limit = {
				FROM = { 
					is_subject = no 
					is_in_faction_with = SOV
				}
			}
			remove_from_faction = FROM
			create_wargoal = {
				type = puppet_wargoal_focus
				target = FROM
			}
		}
	}
}
# Third Kurultai as independent state
country_event = {
	id = qirimlar.41
	title = qirimlar.41.t
	desc = qirimlar.41.d
	picture = GFX_report_event_bakhchisaray_palace
	
	is_triggered_only = yes

	option = {
		name = qirimlar.41.a
		set_country_flag = CRI_secret_patch_is_allowed
		custom_effect_tooltip = CRI_secret_patch_tt
		hidden_effect = {
			load_focus_tree = {
				tree = crimean_tatars
				keep_completed = yes
			}
			mark_focus_tree_layout_dirty = yes
		}
	}
}
# Selection of five years plans
country_event = {
	id = qirimlar.42
	title = qirimlar.42.t
	desc = qirimlar.42.d
	picture = GFX_report_event_stalin_propaganda
	
	is_triggered_only = yes

	trigger = {
		has_capitulated = no
	}

	option = {
		name = qirimlar.42.a
		trigger = {
			NOT = { has_country_flag = CRI_plan_for_means_of_production_completed }
		}
		add_timed_idea = {
			idea = CRI_means_of_production
			days = 1825
		}
	}
	option = {
		name = qirimlar.42.b
		trigger = {
			NOT = { has_country_flag = CRI_plan_for_military_production_completed }
		}
		add_timed_idea = {
			idea = CRI_military_production
			days = 1825
		}
	}
	option = {
		name = qirimlar.42.c
		trigger = {
			NOT = { has_country_flag = CRI_plan_for_research_and_education_completed }
		}
		add_timed_idea = {
			idea = CRI_research_and_education
			days = 1825
		}
		add_war_support = -0.05
	}
	option = {
		name = qirimlar.42.e
		trigger = {
			NOT = { has_country_flag = CRI_plan_for_welfare_of_citizens_completed }
		}
		add_timed_idea = {
			idea = CRI_welfare_of_citizens
			days = 1825
		}
		add_stability = 0.05
	}
}
# Crimea ask Ukraine for guaranties and befriend
country_event = {
	id = qirimlar.43
	title = qirimlar.43.t
	desc = qirimlar.43.d
	picture = GFX_report_event_bakhchisaray_palace
	
	is_triggered_only = yes

	option = {
		name = qirimlar.43.a
		ai_chance = {
			factor = 90
			modifier = {
				factor = 0.5
				has_war = yes
			}
		}
		give_guarantee = FROM
		diplomatic_relation = {
			country = FROM
			relation = military_access
			active = yes
		}
		add_ai_strategy = {
			type = alliance
			id = FROM
			value = 200
		}
		FROM = { country_event = qirimlar.44 }
	}
	option = {
		name = qirimlar.43.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 10
				196 = { NOT = { is_owned_and_controlled_by = ROOT } }
			}
		}
		FROM = { country_event = qirimlar.45 }
	}
}
# Ukraine give guarantee
country_event = {
	id = qirimlar.44
	title = qirimlar.44.t
	desc = qirimlar.44.d
	
	is_triggered_only = yes

	option = {
		name = qirimlar.44.a
		add_ai_strategy = {
			type = alliance
			id = FROM
			value = 200
		}
	}
}
# Ukraine refuses to agree
country_event = {
	id = qirimlar.45
	title = qirimlar.45.t
	desc = qirimlar.45.d
	
	is_triggered_only = yes

	option = {
		name = qirimlar.45.a
	}
}
# Crimea request Ukrainian support for own independent
country_event = {
	id = qirimlar.46
	title = qirimlar.46.t
	desc = qirimlar.46.d
	picture = GFX_report_event_bakhchisaray_palace
	
	is_triggered_only = yes

	option = {
		name = qirimlar.46.a
		ai_chance = {
			factor = 90
			modifier = {
				factor = 0
				FROM = {
					OVERLORD = { is_in_faction_with = ROOT }
				}
			}
			modifier = {
				factor = 0.5
				has_war = yes
			}
			modifier = {
				factor = 0.5
				FROM = { NOT = { has_government = ROOT } }
			}
		}
		give_guarantee = FROM
		FROM = { country_event = qirimlar.47 }
	}
	option = {
		name = qirimlar.46.b
		ai_chance = {
			factor = 10
		}
		FROM = { country_event = qirimlar.45 }
	}
}
# Ukraine support us
country_event = {
	id = qirimlar.47
	title = qirimlar.47.t
	desc = qirimlar.47.d
	
	is_triggered_only = yes

	trigger = { is_subject = yes }

	option = {
		name = qirimlar.47.a
		OVERLORD = { 
			country_event = qirimlar.48 
			end_puppet = ROOT
		}
	}
}
# Crimea declare independent and has guaranties from Ukraine - choice for overlord
country_event = {
	id = qirimlar.48
	title = qirimlar.48.t
	desc = qirimlar.48.d
	picture = GFX_report_event_bakhchisaray_palace
	
	is_triggered_only = yes

	option = {
		name = qirimlar.48.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 2
				strength_ratio = {
					tag = UKR
					ratio > 1
				}
			}
			modifier = {
				factor = 0.25
				surrender_progress > 0.1
			}
			modifier = {
				factor = 0.5
				FROM = { num_divisions > 9 }
			}
		}
		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM
			expire = 60
		}
	}
	option = {
		name = qirimlar.48.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 1.5
				OR = {
					has_government = communism
					has_government = democratic
				}
			}
		}
		add_war_support = -0.05
	}
}
# Ukrainian autonomy in north
country_event = {
	id = qirimlar.49
	title = qirimlar.49.t
	desc = qirimlar.49.d
	picture = GFX_report_event_bakhchisaray_palace
	
	trigger = {
		tag = CRI
		is_subject_of = UKR
		1051 = { is_owned_and_controlled_by = CRI }
		OR = {
			has_completed_focus = CRI_keep_government
			has_completed_focus = CRI_change_government
		}
	}

	mean_time_to_happen = { days = 45 }

	fire_only_once = yes
	
	option = {
		name = qirimlar.49.a
		add_stability = 0.05
		add_autonomy_score = {
			value = -150
		}
	}
	option = {
		name = qirimlar.49.b
		add_political_power = -50
		add_autonomy_score = {
			value = 150
		}
	}
}
# Start event in 1939
country_event = {
	id = qirimlar.50
	title = qirimlar.50.t
	desc = qirimlar.50.d
	picture = GFX_report_event_bakhchisaray_palace
	
	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			1051 = { 
				add_core_of = CRI
				transfer_state_to = CRI
				remove_claim_by = UKR 
				remove_core_of = CRM 
			}
			137 = { 
				add_core_of = CRI
				remove_claim_by = UKR 
				remove_core_of = CRM 
			}
			UKR = {
				puppet = CRI
				set_autonomy = {
					target = CRI
					autonomous_state = autonomy_colony
					freedom_level = 0.5
				}
			}
			CRI = {
				set_politics = { ruling_party = democratic elections_allowed = yes }
				add_popularity = { ideology = democratic popularity = 0.5 }
				inherit_technology = CRM
				set_research_slots = 2
				country_event = { id = qirimlar.51 hours = 1 }
			}
		}
	}

	option = {
		name = qirimlar.50.a
		CRI = { 
			change_tag_from = ROOT 
		}
	}
}
# Start event in 1939 - choice path
country_event = {
	id = qirimlar.51
	title = qirimlar.51.t
	desc = qirimlar.51.d
	picture = GFX_report_event_bakhchisaray_palace

	is_triggered_only = yes
	immediate = {
		hidden_effect = {
			annex_country = { target = CRM transfer_troops = yes }
			complete_national_focus = CRI_self_defence_squads
			complete_national_focus = CRI_improve_self_defence
			complete_national_focus = CRI_inventory_of_economic
			unlock_national_focus = CRI_second_kurultai
			add_political_power = 500
			set_country_flag = CRI_two_years_after_second_kurultai
		}
	}

	option = {
		name = qirimlar.51.a
		ai_chance = {
			base = 0
			modifier = {
				add = 100
				has_game_rule = {
					rule = CRI_ai_behavior
					option = DEMOCRATIC
				}
			}
		}
		hidden_effect = {
			complete_national_focus = CRI_keep_government
			complete_national_focus = CRI_invite_russians_in_government
			complete_national_focus = CRI_new_constitution
			complete_national_focus = CRI_control_for_media
			complete_national_focus = CRI_form_national_guard
			complete_national_focus = CRI_jadid_education
		}
	}
	option = {
		name = qirimlar.51.b
		ai_chance = {
			base = 0
			modifier = {
				add = 100
				has_game_rule = {
					rule = CRI_ai_behavior
					option = FASCIST
				}
			}
		}
		hidden_effect = {
			unlock_national_focus = CRI_change_government
			complete_national_focus = CRI_mejlis_of_nationalists
			complete_national_focus = CRI_fair_land_distribution
			complete_national_focus = CRI_jadid_education
			complete_national_focus = CRI_house_for_turks
			complete_national_focus = CRI_pan_turkic_congress
			complete_national_focus = CRI_young_tatars
		}
	}
	option = {
		name = qirimlar.51.c
		ai_chance = {
			base = 0
			modifier = {
				add = 100
				has_game_rule = {
					rule = CRI_ai_behavior
					option = NEUTRALITY
				}
			}
		}
		hidden_effect = {
			unlock_national_focus = CRI_change_government
			complete_national_focus = CRI_mejlis_of_traditionalists
			complete_national_focus = CRI_education_in_madrasas
			complete_national_focus = CRI_recreate_muftiate
			complete_national_focus = CRI_house_for_turks
			complete_national_focus = CRI_house_of_giray
			complete_national_focus = CRI_khan_cavalry
		}
	}
	option = {
		name = qirimlar.51.e
		ai_chance = {
			base = 0
			modifier = {
				add = 100
				has_game_rule = {
					rule = CRI_ai_behavior
					option = COMMUNIST
				}
			}
		}
		hidden_effect = {
			unlock_national_focus = CRI_change_government
			complete_national_focus = CRI_red_mejlis
			complete_national_focus = CRI_red_terror
			complete_national_focus = CRI_collectivisation
			complete_national_focus = CRI_secularization
			complete_national_focus = CRI_international_support
		}
	}
}
# Dismantle the northern fortifications
country_event = {
	id = qirimlar.52
	title = qirimlar.52.t
	desc = qirimlar.52.d
	picture = GFX_report_event_bunker_01
	
	is_triggered_only = yes

	trigger = {
		is_subject_of = UKR
		1051 = { is_owned_and_controlled_by = CRI }
		196 = { is_owned_and_controlled_by = UKR }
	}

	option = {
		name = qirimlar.52.a
		ai_chance = {
			factor = 50
		}
		1051 = {
			add_extra_state_shared_building_slots = 1
			set_building_level = {
				type = bunker
				level = 0
				province = {
					all_provinces = yes
					level > 0
				}
			}
			set_building_level = {
				type = coastal_bunker
				province = {
					id = 9718
				}
				level = 0
			}
		}
	}
	option = {
		name = qirimlar.52.b
		ai_chance = {
			factor = 50
		}
		add_political_power = -50
		add_autonomy_score = {
			value = 100
		}
	}
}
# Secret negotiations with Turkey against USSR
country_event = {
	id = qirimlar.53
	title = qirimlar.53.t
	desc = qirimlar.53.d
	
	is_triggered_only = yes

	option = {
		name = qirimlar.53.a
		ai_chance = {
			factor = 30
			modifier = {
				factor = 2
				has_government = fascism
			}
		}
		if = {
			limit = {
				has_non_aggression_pact_with = SOV
			}
			diplomatic_relation = {
				country = SOV
				relation = non_aggression_pact
				active = no
			}
		}
		create_wargoal = {
			type = take_state_focus
			target = SOV
			generator = { 229 230 231 }
		}
		FROM = { country_event = qirimlar.54 }
	}
	option = {
		name = qirimlar.53.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 1.5
				has_government = FROM
			}
		}
		add_ai_strategy = {
			type = send_volunteers_desire
			id = CRI
			value = 200
		}
		add_ai_strategy = {
			type = support
			id = CRI
			value = 200
		}
		FROM = { country_event = qirimlar.55 }
	}
	option = {
		name = qirimlar.53.c
		ai_chance = {
			factor = 20
			modifier = {
				factor = 2
				has_war = yes
			}
		}
		FROM = { country_event = qirimlar.56 }
	}
}
# Secret negotiations with Turkey - accept war
country_event = {
	id = qirimlar.54
	title = qirimlar.54.t
	desc = qirimlar.54.d
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = {
		name = qirimlar.54.a
	}
}
# Secret negotiations with Turkey - agree for support
country_event = {
	id = qirimlar.55
	title = qirimlar.55.t
	desc = qirimlar.55.d
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = {
		name = qirimlar.55.a
	}
}
# Secret negotiations with Turkey - full refuse
country_event = {
	id = qirimlar.56
	title = qirimlar.56.t
	desc = qirimlar.56.d
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = {
		name = qirimlar.56.a
	}
}
# Access to Black Sea straits for Crimea
country_event = {
	id = qirimlar.57
	title = qirimlar.57.t
	desc = qirimlar.57.d
	
	is_triggered_only = yes

	option = {
		name = qirimlar.57.a
		ai_chance = {
			factor = 90
			modifier = {
				factor = 0
				FROM = { has_government = ROOT }
			}
		}
		FROM = { country_event = qirimlar.58 }
	}
	option = {
		name = qirimlar.57.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 3
				has_war = yes
			}
		}
		FROM = { country_event = qirimlar.59 }
	}
}
# Access to Black Sea straits - Turkey agree
country_event = {
	id = qirimlar.58
	title = qirimlar.58.t
	desc = qirimlar.58.d
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = {
		name = qirimlar.58.a
		if = {
			limit = { has_dlc = "Man the Guns" }
			diplomatic_relation = {
				country = TUR
				relation = docking_rights
				active = yes
			}
		}
		set_country_flag = UKR_has_access_for_black_sea_straits
	}
}
# Access to Black Sea straits - Turkey refuse
country_event = {
	id = qirimlar.59
	title = qirimlar.59.t
	desc = qirimlar.59.d

	is_triggered_only = yes

	option = {
		name = qirimlar.59.a
	}
}
# Secret negotiations with Poland against Ukraine
country_event = {
	id = qirimlar.60
	title = qirimlar.60.t
	desc = qirimlar.60.d
	
	is_triggered_only = yes

	option = {
		name = qirimlar.60.a
		ai_chance = {
			factor = 20
			modifier = {
				factor = 2
				has_government = fascism
			}
			modifier = {
				factor = 0.5
				UKR = { has_country_flag = UKR_consent_to_arrest_of_bandera }
			}
		}
		if = {
			limit = {
				has_non_aggression_pact_with = UKR
			}
			diplomatic_relation = {
				country = UKR
				relation = non_aggression_pact
				active = no
			}
		}
		create_wargoal = {
			type = take_state_focus
			target = UKR
			generator = { 194 198 199 201 }
		}
		FROM = { country_event = qirimlar.61 }
	}
	option = {
		name = qirimlar.60.b
		ai_chance = {
			factor = 40
			modifier = {
				factor = 1.5
				has_government = FROM
			}
		}
		add_ai_strategy = {
			type = send_volunteers_desire
			id = CRI
			value = 200
		}
		add_ai_strategy = {
			type = support
			id = CRI
			value = 200
		}
		FROM = { country_event = qirimlar.62 }
	}
	option = {
		name = qirimlar.60.c
		ai_chance = {
			factor = 40
			modifier = {
				factor = 2
				has_war = yes
			}
			modifier = {
				factor = 0
				OR = {
					91 = { is_owned_and_controlled_by = UKR }
					91 = { is_owned_and_controlled_by = WUA }
				}
			}
		}
		FROM = { country_event = qirimlar.63 }
	}
}
# Secret negotiations with Poland - accept war
country_event = {
	id = qirimlar.61
	title = qirimlar.61.t
	desc = qirimlar.61.d
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = {
		name = qirimlar.61.a
	}
}
# Secret negotiations with Poland - agree for support
country_event = {
	id = qirimlar.62
	title = qirimlar.62.t
	desc = qirimlar.62.d
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = {
		name = qirimlar.62.a
	}
}
# Secret negotiations with Poland - full refuse
country_event = {
	id = qirimlar.63
	title = qirimlar.63.t
	desc = qirimlar.63.d
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = {
		name = qirimlar.63.a
	}
}
# Third kurultay is available - message for Ukraine
country_event = {
	id = qirimlar.64
	title = qirimlar.64.t
	desc = qirimlar.64.d
	picture = GFX_report_event_swallows_nest

	is_triggered_only = yes

	option = {
		name = qirimlar.64.a
		set_country_flag = UKR_influence_on_crimean_political_choice
		unlock_decision_category_tooltip = UKR_retention_of_crimean_tatars
	}
}
# Ukrainian economic support for loyality
country_event = {
	id = qirimlar.65
	title = qirimlar.65.t
	desc = qirimlar.65.d

	is_triggered_only = yes

	option = {
		name = qirimlar.65.a
		if = {
			limit = {
				1051 = { 
					is_owned_and_controlled_by = CRI 
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
			}
			1051 = { 
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
	}
}
# Ukrainian army maneuvers for loyality
country_event = {
	id = qirimlar.66
	title = qirimlar.66.t
	desc = qirimlar.66.d

	is_triggered_only = yes

	option = {
		name = qirimlar.66.a
		army_experience = 10
	}
}