add_namespace = ukraine
#Ukraine Violates Minsk Protocol
country_event = {
	id = ukraine.1
	title = ukraine.1.t
	desc = ukraine.1.d
	picture = GFX_report_event_ukrainian_civil_war
	fire_only_once = yes
	is_triggered_only = yes
	trigger = {
		tag = SOV
	}
	option = {
		name = ukraine.1.o1
	}
}

#Ukraine Airlines Flight 752 Shot Down
country_event = {
	id = ukraine.2
	title = ukraine.2.t
	desc = ukraine.2.d
	picture = GFX_UKR_2020_plane_crash
	fire_only_once = yes
	is_triggered_only = yes
	trigger = {
		tag = UKR
	}
	option = {
		add_manpower = -11
		name = ukraine.2.o1
	}
}

#Russia Condemns Ukranian Neonazism
country_event = {
	id = ukraine.3
	title = ukraine.3.t
	desc = ukraine.3.d
	picture = GFX_report_event_ukrainian_civil_war
	fire_only_once = yes
	is_triggered_only = yes
	trigger = {
		tag = UKR
	}
	option = {
		name = ukraine.3.a
	}
}

#Russia's coming prepare for war
country_event = {
	id = ukraine.4
	title = ukraine.4.t
	desc = ukraine.4.d
	picture = GFX_UKR_preparing_for_war
	fire_only_once = yes
	is_triggered_only = yes
	trigger = {
		tag = UKR
	}
	option = {
		name = ukraine.4.a
		army_experience = 200
		226 = {
			add_building_construction = {
				type = bunker
				level = 2
				province = 9419
				instant_build = yes
			}
			add_building_construction = {
				type = bunker
				level = 2
				province = 11422
				instant_build = yes
			}
			add_building_construction = {
				type = bunker
				level = 2
				province = 11437
				instant_build = yes
			}
			add_building_construction = {
				type = bunker
				level = 2
				province = 9433
				instant_build = yes
			}
		}
		203 = {
			add_building_construction = {
				type = bunker
				level = 2
				province = 6478
				instant_build = yes
			}
			add_building_construction = {
				type = bunker
				level = 2
				province = 3468
				instant_build = yes
			}
			add_building_construction = {
				type = bunker
				level = 2
				province = 488
				instant_build = yes
			}
			add_building_construction = {
				type = bunker
				level = 2
				province = 11454
				instant_build = yes
			}
		}
		202 = {
			add_building_construction = {
				type = bunker
				level = 2
				province = 3494
				instant_build = yes
			}
			add_building_construction = {
				type = bunker
				level = 4
				province = 525
				instant_build = yes
			}
			add_building_construction = {
				type = bunker
				level = 2
				province = 3543
				instant_build = yes
			}
			add_building_construction = {
				type = bunker
				level = 2
				province = 958
				instant_build = yes
			}
		}
		random_owned_controlled_state = {
			add_building_construction = {
				type = arms_factory
				level = 2
				instant_build = yes
			}
		}
		random_owned_controlled_state = {
			add_building_construction = {
				type = arms_factory
				level = 2
				instant_build = yes
			}
		}
		random_owned_controlled_state = {
			add_building_construction = {
				type = arms_factory
				level = 2
				instant_build = yes
			}
		}
		random_owned_controlled_state = {
			add_building_construction = {
				type = arms_factory
				level = 3
				instant_build = yes
			}
		}
		load_oob = "UKR_territorial_defense"
		PLD = {
			army_experience = 50
			random_owned_controlled_state = {
				add_building_construction = {
					type = arms_factory
					level = 3
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				add_building_construction = {
					type = arms_factory
					level = 3
					instant_build = yes
				}
			}
		}
		ROM = {
			army_experience = 50
			random_owned_controlled_state = {
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
		}
	}
}

#Entry into NATO
country_event = {
	id = ukraine.5
	title = ukraine.5.t
	desc = ukraine.5.d
	picture = GFX_report_event_ukrainian_civil_war
	fire_only_once = yes
	is_triggered_only = yes
	trigger = {
		tag = UKR
	}
	option = {
		name = ukraine.5.a
		every_country = {
			limit = {
				has_country_flag = NATO_current_leader
			}
			add_to_faction = UKR
			add_to_faction = MOL
		}
		SOV = {
			#activate_mission = SOV_nato_war_deadline
			country_event = {
				id = russia.91
				days = 15
			}
		}
		GER = {
			country_event = {
				id = germany.243
				days = 15
			}
		}
		FRA = {
			country_event = {
				id = germany.243
				days = 15
			}
		}
		if = {
			limit = {
				has_government = social_liberal
			}
			recruit_character = UKR_volodymyr_zelenskyy
		}
		recruit_character = UKR_mariana_bezuglaya
		load_oob = "UKR_foreign_volunteers"
	}
}

#Belgorod Occupation Zone Established
country_event = {
	id = ukraine.6
	title = ukraine.6.t
	desc = ukraine.6.d
	picture = GFX_report_event_ukrainian_civil_war
	fire_only_once = yes
	is_triggered_only = yes
	trigger = {
		tag = UKR
	}
	option = {
		name = ukraine.6.a
		hidden_effect = {
			SOV = {
				country_event = {
					id = russia.109
					days = 50
				}
			}
			country_event = {
				id = ukraine.7
				days = 50
			}
			1283 = {
				add_dynamic_modifier = {
					modifier = UKR_russian_ghetto
				}
			}
			853 = {
				add_dynamic_modifier = {
					modifier = UKR_russian_ghetto
				}
			}
			1059 = {
				add_dynamic_modifier = {
					modifier = UKR_russian_ghetto
				}
			}
		}
	}
}

#Belgorod Terrorist Attack
country_event = {
	id = ukraine.7
	title = ukraine.7.t
	desc = ukraine.7.d
	picture = GFX_report_event_ukrainian_civil_war
	fire_only_once = yes
	is_triggered_only = yes
	trigger = {
		tag = UKR
	}
	option = {
		name = ukraine.7.a
		hidden_effect = {
			country_event = {
				id = ukraine.8
				days = 50
			}
		}
	}
}

#Belgorod Uprising
country_event = {
	id = ukraine.8
	title = ukraine.8.t
	desc = ukraine.8.d
	picture = GFX_report_event_ukrainian_civil_war
	fire_only_once = yes
	is_triggered_only = yes
	trigger = {
		tag = UKR
	}
	option = {
		name = ukraine.8.a
		hidden_effect = {
			UKR = {
				end_puppet = KBK
			}
			NEN = {
				add_state_core = 1283
				add_state_core = 240
				transfer_state = 1283
				load_oob = "NEN_2020"
				declare_war_on = {
					target = KBK
					type = annex_everything
				}
				add_ideas = SOV_new_russian_spring
			}
			sound_effect = enemy_declare_war
		}
	}
}

#Rostov Uprising Uprising
country_event = {
	id = ukraine.9
	title = ukraine.9.t
	desc = ukraine.9.d
	picture = GFX_report_event_ukrainian_civil_war
	fire_only_once = yes
	is_triggered_only = yes
	trigger = {
		tag = UKR
	}
	option = {
		name = ukraine.9.a
		hidden_effect = {
			UKR = {
				end_puppet = SHL
			}
			SHL = {
				load_oob = "SHL_2020"
			}
			MEL = {
				add_state_core = 218
				add_state_core = 853
				transfer_state = 853
				load_oob = "MEL_2020"
				declare_war_on = {
					target = SHL
					type = annex_everything
				}
				add_ideas = SOV_new_russian_spring
			}
			sound_effect = enemy_declare_war
		}
	}
}

#Sevastopol Uprising Uprising
country_event = {
	id = ukraine.10
	title = ukraine.10.t
	desc = ukraine.10.d
	picture = GFX_report_event_ukrainian_civil_war
	fire_only_once = yes
	is_triggered_only = yes
	trigger = {
		tag = UKR
	}
	option = {
		name = ukraine.10.a
		hidden_effect = {
			UKR = {
				end_puppet = BYA
			}
			BYA = {
				load_oob = "BYA_2020"
			}
			WLN = {
				add_state_core = 137
				add_state_core = 1059
				transfer_state = 1059
				load_oob = "WLN_2020"
				declare_war_on = {
					target = BYA
					type = annex_everything
				}
				add_ideas = SOV_new_russian_spring
			}
			sound_effect = enemy_declare_war
		}
	}
}

#debug event
country_event = {
	id = ukraine.11
	title = ukraine.11.t
	desc = ukraine.11.d
	picture = GFX_event_UKR_first_war_start
	fire_only_once = yes
	is_triggered_only = yes
	trigger = {
		tag = UKR
	}
	option = {
		name = ukraine.11.a
		activate_mission = UKR_special_military_operation_timer
		country_event = { id = ukrainewar.1 }
	}
}

#Ukraine Gaurentees Kuban
country_event = {
	id = ukraine.12
	title = ukraine.12.t
	desc = ukraine.12.d
	picture = GFX_report_event_ukrainian_civil_war
	fire_only_once = yes
	is_triggered_only = yes
	trigger = {
		tag = SOV
	}
	option = {
		name = ukraine.12.a
	}
}

#2024 Elections
country_event = {
	id = ukraine.13
	title = ukraine.13.t
	desc = ukraine.13.d
	picture = GFX_report_event_ukrainian_civil_war
	fire_only_once = yes
	is_triggered_only = yes
	trigger = {
		tag = UKR
	}
	option = {
		name = ukraine.13.a
		add_popularity = {
			ideology = social_liberal
			popularity = 0.15
		}
		remove_ideas = UKR_zelensky_growing_authoritarism
		add_ideas = UKR_zelensky_growing_authoritarism2
		news_event = {
			id = news.313
			hours = 4
		}
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				SOV = {
					OR = {
						has_completed_focus = SOV_putinism_with_human_face
						has_government = libertarian_socialist
					}
				}
			}
			modifier = {
				factor = 5
				country_exists = BLR
			}
			modifier = {
				factor = 0
				has_game_rule = {
					rule = UKR_election_24
					option = UKR_election_RUS_24
					}
			}
		}
	}
	option = {
		name = ukraine.13.b
		set_politics = {
			ruling_party = conservative
			elections_allowed = no
			last_election = "2012.12.17"
			election_frequency = 48
		}
		add_popularity = {
			ideology = conservative
			popularity = 0.25
		}
		remove_ideas = UKR_zelensky_growing_authoritarism
		add_ideas = UKR_poroshenko_plutocracy
		news_event = {
			id = news.314
			hours = 4
		}
		ai_chance = {
			base = 35
			modifier = {
				factor = 10
				SOV = {
					has_completed_focus = SOV_push_back_the_west
				}
			}
			modifier = {
				factor = 5
				SOV = {
					divisions_in_state = {
						size > 6
						state = 240
					}
				}
			}
			modifier = {
				factor = 0
				has_game_rule = {
					rule = UKR_election_24
					option = UKR_election_UKR_24
					}
			}
		}
	}
}

#Soviet Uprising
country_event = {
	id = ukraine.14
	title = ukraine.14.t
	desc = ukraine.14.d
	picture = GFX_report_event_ukrainian_civil_war
	fire_only_once = yes
	is_triggered_only = yes
	trigger = {
		tag = SOV
	}
	option = {
		name = ukraine.14.a
		add_popularity = {
			ideology = communist
			popularity = -0.05
		}
	}
}

#Kuban Uprising 
country_event = {
	id = ukraine.15
	title = ukraine.15.t
	desc = ukraine.15.d
	picture = GFX_report_event_ukrainian_civil_war
	fire_only_once = yes
	is_triggered_only = yes
	trigger = {
		tag = UKR
	}
	option = {
		name = ukraine.15.a
		STR = {
			add_state_core = 1330
			transfer_state = 1330
			load_oob = "STR_Uprising"
			add_ideas = SOV_new_russian_spring
		}
		FER = {
			declare_war_on = {
				target = STR
				type = annex_everything
			}
		}
	}
}

#Russian Revolts successful
country_event = {
	id = ukraine.16
	title = ukraine.16.t
	desc = ukraine.16.d
	picture = GFX_report_event_ukrainian_civil_war
	fire_only_once = yes
	is_triggered_only = yes
	trigger = {
		tag = UKR
	}
	option = {
		name = ukraine.16.a
		swap_ideas = {
			remove_idea = UKR_heorim_slava
			add_idea = UKR_russian_spring
		}
	}
}

#burdens of occupation
country_event = {
	id = ukraine.17
	title = ukraine.17.t
	desc = ukraine.17.d
	picture = GFX_report_event_ukrainian_civil_war
	fire_only_once = yes
	is_triggered_only = yes
	trigger = {
		tag = UKR
	}
	option = {
		#keeps everythings the same
		name = ukraine.17.a
		add_stability = -0.1
		add_war_support = -0.1
		227 = {
			add_compliance = -30
			add_resistance = 20
		}
		228 = {
			add_compliance = -30
			add_resistance = 20
		}
		ai_chance = {
			factor = 5
		}
	}
	option = {
		#ukies set up FAKE russian government doesnt change anything its ukr puppet
		name = ukraine.17.b
		trigger = {
			OR = {
				has_government = national_socialist
				has_government = fascist
				has_government = nationalist
			}
		}
		KBK = {
			set_politics = {
				ruling_party = national_socialist
				elections_allowed = no
			}
			KBK_Ilya_Ponomaryov_char = {
				remove_unit_leader_role = yes
			}
			KBK_Maksimilian_Andronnikov_char = {
				remove_unit_leader_role = yes
			}
			KBK_Andrey_Rudoy_char = {
				remove_unit_leader_role = yes
			}
			KBK_Konstantin_Syomin_char = {
				remove_unit_leader_role = yes
			}
			set_cosmetic_tag = SOV_nato
			set_popularities = {
				national_socialist = 40
				social_democrat = 18
				market_liberal = 11
				nationalist = 31
			}
			swap_ideas = {
				remove_idea = KBK_military_occupation
				add_idea = UKR_to_each_their_own
			}
		}
		news_event = {
			id = news.312
			hours = 6
		}
		add_stability = -0.05
		add_war_support = -0.05
		227 = {
			add_compliance = -30
			add_resistance = 20
		}
		228 = {
			add_compliance = -30
			add_resistance = 20
		}
		ai_chance = {
			factor = 10
		}
	}
	option = {
		#ukies set up FAKE russian government doesnt change anything its ukr puppet
		name = ukraine.17.c
		trigger = {
			OR = {
				has_government = authoritarian_democrat
				has_government = social_liberal
				has_government = market_liberal
				has_government = social_democrat
				has_government = conservative
			}
		}
		KBK = {
			set_politics = {
				ruling_party = fascist
				elections_allowed = no
			}
			set_cosmetic_tag = SOV_ponomaryov
			KBK_Denis_Kapustin_char = {
				remove_unit_leader_role = yes
			}
			KBK_Andrey_Rudoy_char = {
				remove_unit_leader_role = yes
			}
			KBK_Konstantin_Syomin_char = {
				remove_unit_leader_role = yes
			}
			set_popularities = {
				national_socialist = 11
				authoritarian_democrat = 18
				fascist = 40
				nationalist = 31
			}
			swap_ideas = {
				remove_idea = KBK_military_occupation
				add_idea = UKR_to_each_their_own
			}
		}
		news_event = {
			id = news.312
			hours = 6
		}
		add_stability = -0.05
		add_war_support = -0.05
		227 = {
			add_compliance = -30
			add_resistance = 20
		}
		228 = {
			add_compliance = -30
			add_resistance = 20
		}
		ai_chance = {
			factor = 15
		}
	}
	option = {
		#ukies set up FAKE russian government doesnt change anything its ukr puppet
		name = ukraine.17.d
		trigger = {
			OR = {
				has_government = authoritarian_democrat
				has_government = social_liberal
				has_government = market_liberal
				has_government = social_democrat
				has_government = conservative
			}
		}
		KBK = {
			set_politics = {
				ruling_party = social_liberal
				elections_allowed = no
			}
			set_cosmetic_tag = SOV_ponomaryov
			KBK_Denis_Kapustin_char = {
				remove_unit_leader_role = yes
			}
			KBK_Andrey_Rudoy_char = {
				remove_unit_leader_role = yes
			}
			KBK_Konstantin_Syomin_char = {
				remove_unit_leader_role = yes
			}
			set_popularities = {
				social_liberal = 40
				social_democrat = 18
				market_liberal = 11
				nationalist = 31
			}
			swap_ideas = {
				remove_idea = KBK_military_occupation
				add_idea = UKR_to_each_their_own
			}
		}
		news_event = {
			id = news.312
			hours = 6
		}
		add_stability = -0.05
		add_war_support = -0.05
		227 = {
			add_compliance = -30
			add_resistance = 20
		}
		228 = {
			add_compliance = -30
			add_resistance = 20
		}
		ai_chance = {
			factor = 15
		}
	}
	option = {
		#ukies set up FAKE russian government doesnt change anything its ukr puppet
		name = ukraine.17.e
		trigger = {
			OR = {
				has_government = libertarian_socialist
				has_government = communist
				has_government = totalitarian_socialist
			}
		}
		KBK = {
			set_politics = {
				ruling_party = libertarian_socialist
				elections_allowed = no
			}
			set_cosmetic_tag = SOV_soc_colab
			KBK_Ilya_Ponomaryov_char = {
				remove_unit_leader_role = yes
			}
			KBK_Maksimilian_Andronnikov_char = {
				remove_unit_leader_role = yes
			}
			KBK_Denis_Kapustin_char = {
				remove_unit_leader_role = yes
			}
			set_popularities = {
				libertarian_socialist = 35
				totalitarian_socialist = 29
				communist = 36
			}
			swap_ideas = {
				remove_idea = KBK_military_occupation
				add_idea = UKR_to_each_their_own
			}
		}
		news_event = {
			id = news.312
			hours = 6
		}
		add_stability = -0.05
		add_war_support = -0.05
		227 = {
			add_compliance = -30
			add_resistance = 20
		}
		228 = {
			add_compliance = -30
			add_resistance = 20
		}
		ai_chance = {
			factor = 15
		}
	}
	option = {
		#ukies set up FAKE russian government doesnt change anything its ukr puppet
		name = ukraine.17.f
		trigger = {
			OR = {
				has_government = libertarian_socialist
				has_government = communist
				has_government = totalitarian_socialist
			}
		}
		KBK = {
			set_politics = {
				ruling_party = communist
				elections_allowed = no
			}
			set_cosmetic_tag = SOV_soc_colab
			KBK_Ilya_Ponomaryov_char = {
				remove_unit_leader_role = yes
			}
			KBK_Maksimilian_Andronnikov_char = {
				remove_unit_leader_role = yes
			}
			KBK_Denis_Kapustin_char = {
				remove_unit_leader_role = yes
			}
			set_popularities = {
				libertarian_socialist = 35
				totalitarian_socialist = 29
				communist = 36
			}
			swap_ideas = {
				remove_idea = KBK_military_occupation
				add_idea = UKR_to_each_their_own
			}
		}
		news_event = {
			id = news.312
			hours = 6
		}
		add_stability = -0.05
		add_war_support = -0.05
		227 = {
			add_compliance = -30
			add_resistance = 20
		}
		228 = {
			add_compliance = -30
			add_resistance = 20
		}
		ai_chance = {
			factor = 15
		}
	}
	option = {
		#ukies set up FAKE russian government doesnt change anything its ukr puppet
		name = ukraine.17.g
		trigger = {
			OR = {
				has_government = libertarian_socialist
				has_government = communist
				has_government = totalitarian_socialist
			}
		}
		KBK = {
			set_politics = {
				ruling_party = totalitarian_socialist
				elections_allowed = no
			}
			set_cosmetic_tag = SOV_soc_colab
			KBK_Ilya_Ponomaryov_char = {
				remove_unit_leader_role = yes
			}
			KBK_Maksimilian_Andronnikov_char = {
				remove_unit_leader_role = yes
			}
			KBK_Denis_Kapustin_char = {
				remove_unit_leader_role = yes
			}
			set_popularities = {
				libertarian_socialist = 35
				totalitarian_socialist = 29
				communist = 36
			}
			swap_ideas = {
				remove_idea = KBK_military_occupation
				add_idea = UKR_to_each_their_own
			}
		}
		news_event = {
			id = news.312
			hours = 6
		}
		add_stability = -0.05
		add_war_support = -0.05
		227 = {
			add_compliance = -30
			add_resistance = 20
		}
		228 = {
			add_compliance = -30
			add_resistance = 20
		}
		ai_chance = {
			factor = 15
		}
	}
}

#Russian Revolts successful
country_event = {
	id = ukraine.18
	title = ukraine.18.t
	desc = ukraine.18.d
	picture = GFX_report_event_ukrainian_civil_war
	fire_only_once = yes
	is_triggered_only = yes
	trigger = {
		tag = UKR
	}
	option = {
		name = ukraine.18.a
		add_timed_idea = {
			idea = FER_derussification
			days = 365
		}
	}
}

#Donbass Revolt 2
country_event = {
	id = ukraine.19
	title = ukraine.19.t
	desc = ukraine.19.d
	picture = GFX_report_event_ukrainian_civil_war
	fire_only_once = yes
	is_triggered_only = yes
	trigger = {
		tag = UKR
	}
	option = {
		name = ukraine.19.a
		hidden_effect = {
			NOV = {
				set_cosmetic_tag = NOV_second_revolt
				add_country_leader_role = {
					character = NOV_alexander_khodakovsky
					promote_leader = yes
					country_leader = {
						ideology = ethno_nationalism
						expire = "1.1.1.1"
						traits = { }
					}
				}
			}
			NOV = {
				transfer_state = 228
				declare_war_on = {
					target = UKR
					type = annex_everything
				}
				load_oob = "NOV_second_revolt_army"
				add_ideas = SOV_new_russian_spring
			}
			every_country = {
				limit = {
					OR = {
						is_in_faction_with = GER
						original_tag = GER
					}
				}
				add_ideas = i_dont_wanna_join_ally
			}
			sound_effect = enemy_declare_war
		}
	}
}

#Разведывательный отчёт: Анализ действий РФ
country_event = {
	id = ukraine.800
	title = ukraine.800.t
	desc = ukraine.800.d
	picture = GFX_UKR_report_RF_attack2014
	fire_only_once = yes
	is_triggered_only = yes
	trigger = {
		tag = UKR
	}
	option = {
		name = ukraine.800.a
		add_ideas = UKR_budanov
	}
}

# События добровольцев из захваченных стран для Украины
# Казахстан
country_event = {
	id = ukraine.820
	title = ukraine.820.t
	desc = ukraine.820.d
	picture = GFX_event_UKR_KAZ_volunteers
	
	is_triggered_only = no
	fire_only_once = yes
	
	trigger = {
		tag = UKR
		has_country_flag = ukraine_supported_KAZ
		SOV = { has_war_with = UKR }
		NOT = { has_country_flag = kazakh_volunteers_arrived }
	}
	
	mean_time_to_happen = {
		days = 35
	}

	option = {
		name = ukraine.820.a
		set_country_flag = kazakh_volunteers_arrived
		custom_effect_tooltip = kazakh_volunteers_tooltip

		
		division_template = {
			name = "Казахские Добровольцы"
			regiments = {
				special_forces = { x = 0 y = 0 }
				special_forces = { x = 0 y = 1 }
				mechanized = { x = 0 y = 2 }
				special_forces = { x = 1 y = 0 }
				special_forces = { x = 1 y = 1 }
				mechanized = { x = 1 y = 2 }
			}
			support = {
				recon = { x = 0 y = 0 }
				engineer = { x = 0 y = 1 }
				anti_tank = { x = 0 y = 2 }
				artillery = { x = 0 y = 3 }
			}
		}
		
		random_owned_controlled_state = {
			limit = { is_core_of = UKR }
			create_unit = {
				division = "name = \"Казахский Батальон Свободы\" division_template = \"Казахские Добровольцы\" start_experience_factor = 0.75 start_equipment_factor = 0.8" 
				owner = ROOT
			}
		}
		
		add_war_support = 0.02
		add_stability = 0.01
		add_command_power = 5
		add_manpower = 3000
	}

}

# Узбекистан
country_event = {
	id = ukraine.821
	title = ukraine.821.t
	desc = ukraine.821.d
	picture = GFX_event_UKR_UZB_volunteers
	
	is_triggered_only = no
	fire_only_once = yes
	
	trigger = {
		tag = UKR
		has_country_flag = ukraine_supported_UZB
		SOV = { has_war_with = UKR }
		NOT = { has_country_flag = uzbek_volunteers_arrived }
	}
	
	mean_time_to_happen = {
		days = 45
	}

	option = {
		name = ukraine.821.a
		set_country_flag = uzbek_volunteers_arrived
		custom_effect_tooltip = uzbek_volunteers_tooltip
		
		division_template = {
			name = "Узбекские Добровольцы"
			regiments = {
				infantry = { x = 0 y = 0 }
				infantry = { x = 0 y = 1 }
				infantry = { x = 0 y = 2 }
				motorized = { x = 1 y = 0 }
			}
			support = {
				field_hospital = { x = 0 y = 0 }
				anti_tank = { x = 0 y = 1 }
			}
		}
		
		random_owned_controlled_state = {
			limit = { is_core_of = UKR }
			create_unit = {
				division = "name = \"Батальон Тимура\" division_template = \"Узбекские Добровольцы\" start_experience_factor = 0.7 start_equipment_factor = 0.75" 
				owner = ROOT
			}
		}
		
		add_war_support = 0.01
		add_command_power = 5
		add_manpower = 1250
	}
}

# Грузия
country_event = {
	id = ukraine.822
	title = ukraine.822.t
	desc = ukraine.822.d
	picture = GFX_event_UKR_GEO_volunteers
	
	is_triggered_only = no
	fire_only_once = yes
	
	trigger = {
		tag = UKR
		has_country_flag = ukraine_supported_GEO
		SOV = { has_war_with = UKR }
		NOT = { has_country_flag = georgian_volunteers_arrived }
	}

	mean_time_to_happen = {
		days = 25
	}
	
	option = {
		name = ukraine.822.a
		set_country_flag = georgian_volunteers_arrived
		custom_effect_tooltip = georgian_volunteers_tooltip
		
		division_template = {
			name = "Грузинский Легион"
			regiments = {
				motorized = { x = 0 y = 0 }
				motorized = { x = 0 y = 1 }
				motorized = { x = 0 y = 2 }
				mechanized = { x = 1 y = 0 }
				mechanized = { x = 1 y = 1 }
			}
			support = {
				artillery = { x = 0 y = 0 }
				mot_recon = { x = 0 y = 1 }
				field_hospital = { x = 0 y = 2 }
			}
		}
		
		random_owned_controlled_state = {
			limit = { is_core_of = UKR }
			create_unit = {
				division = "name = \"Грузинский Легион Свободы\" division_template = \"Грузинский Легион\" start_experience_factor = 0.85 start_equipment_factor = 0.85" 
				owner = ROOT
			}
		}
		
		add_war_support = 0.02
		add_stability = 0.01
		add_command_power = 5
		add_manpower = 2800
	}
}

# Беларусь
country_event = {
	id = ukraine.823
	title = ukraine.823.t
	desc = ukraine.823.d
	picture = GFX_event_UKR_BEL_volunteers
	
	is_triggered_only = no
	fire_only_once = yes
	
	trigger = {
		tag = UKR
		OR = {
			has_country_flag = ukraine_supported_BLR
			has_country_flag = UKR_influencing_BLR
		}
		SOV = { has_war_with = UKR }
		NOT = { has_country_flag = belarusian_volunteers_arrived }
	}

	mean_time_to_happen = {
		days = 10
	}

	
	option = {
		name = ukraine.823.a
		set_country_flag = belarusian_volunteers_arrived
		custom_effect_tooltip = belarusian_volunteers_tooltip
		
		division_template = {
			name = "Белорусские Добровольцы"
			regiments = {
				motorized = { x = 0 y = 0 }
				motorized = { x = 0 y = 1 }
				motorized = { x = 0 y = 2 }
				mechanized = { x = 1 y = 0 }
				mechanized = { x = 1 y = 1 }
				mechanized = { x = 1 y = 2 }
			}
			support = {
				engineer = { x = 0 y = 0 }
				maintenance_company = { x = 0 y = 1 }
				signal_company = { x = 0 y = 2 }
				field_hospital = { x = 0 y = 3 }
				mot_recon = { x = 0 y = 4 }
			}
		}
		
		random_owned_controlled_state = {
			limit = { is_core_of = UKR }
			create_unit = {
				division = "name = \"Белорусский Полк Кастуся Калиновского\" division_template = \"Белорусские Добровольцы\" start_experience_factor = 0.95 start_equipment_factor = 0.9" 
				owner = ROOT
			}
		}
		
		add_war_support = 0.02
		add_stability = 0.01
		add_command_power = 5
		add_manpower = 3500
	}
}

# Азербайджан
country_event = {
	id = ukraine.824
	title = ukraine.824.t
	desc = ukraine.824.d
	picture = GFX_event_UKR_AZB_volunteers
	
	is_triggered_only = no
	fire_only_once = yes
	
	trigger = {
		tag = UKR
		has_country_flag = ukraine_supported_AZE
		SOV = { has_war_with = UKR }
		NOT = { has_country_flag = azerbaijani_volunteers_arrived }
	}
	mean_time_to_happen = {
		days = 50
	}
	option = {
		name = ukraine.824.a
		set_country_flag = azerbaijani_volunteers_arrived
		custom_effect_tooltip = azerbaijani_volunteers_tooltip
		
		division_template = {
			name = "Азербайджанские Специалисты"
			regiments = {
				mechanized = { x = 0 y = 0 }
				mechanized = { x = 0 y = 1 }
				motorized = { x = 1 y = 0 }
				motorized = { x = 1 y = 1 }
			}
			support = {
				artillery = { x = 0 y = 0 }
				anti_tank = { x = 0 y = 1 }
				field_hospital = { x = 0 y = 2 }
			}
		}
		
		random_owned_controlled_state = {
			limit = { is_core_of = UKR }
			create_unit = {
				division = "name = \"Азербайджанская Бригада\" division_template = \"Азербайджанские Специалисты\" start_experience_factor = 0.8 start_equipment_factor = 0.85" 
				owner = ROOT
			}
		}
		
		add_war_support = 0.01
		add_stability = 0.01
		add_command_power = 10
		add_manpower = 2000
	}
}

# Таджикистан
country_event = {
	id = ukraine.825
	title = ukraine.825.t
	desc = ukraine.825.d
	picture = GFX_event_UKR_TAD_volunteers
	
	is_triggered_only = no
	fire_only_once = yes
	
	trigger = {
		tag = UKR
		has_country_flag = ukraine_supported_TAJ
		SOV = { has_war_with = UKR }
		NOT = { has_country_flag = tajik_volunteers_arrived }
	}

	mean_time_to_happen = {
		days = 60
	}
	option = {
		name = ukraine.825.a
		set_country_flag = tajik_volunteers_arrived
		custom_effect_tooltip = tajik_volunteers_tooltip
		
		division_template = {
			name = "Таджикские Горные Стрелки"
			regiments = {
				motorized = { x = 0 y = 0 }
				motorized = { x = 0 y = 1 }
				motorized = { x = 0 y = 2 }
				mechanized = { x = 1 y = 0 }
				mechanized = { x = 1 y = 1 }
			}
			support = {
				recon = { x = 0 y = 0 }
				engineer = { x = 0 y = 1 }
			}
		}
		
		random_owned_controlled_state = {
			limit = { is_core_of = UKR }
			create_unit = {
				division = "name = \"Таджикский Батальон Сопротивления\" division_template = \"Таджикские Горные Стрелки\" start_experience_factor = 0.5 start_equipment_factor = 0.7" 
				owner = ROOT
			}
		}
		
		add_war_support = 0.01
		add_command_power = 5
		add_manpower = 1300
	}
}

# Армения
country_event = {
	id = ukraine.828
	title = ukraine.828.t
	desc = ukraine.828.d
	picture = GFX_event_UKR_ARM_volunteers
	
	is_triggered_only = no
	fire_only_once = yes
	
	trigger = {
		tag = UKR
		has_country_flag = ukraine_supported_ARM
		SOV = { has_war_with = UKR }
		NOT = { has_country_flag = armenian_volunteers_arrived }
	}
	
	option = {
		name = ukraine.828.a
		set_country_flag = armenian_volunteers_arrived
		custom_effect_tooltip = armenian_volunteers_tooltip
		
		division_template = {
			name = "Армянские Горные Стрелки"
			regiments = {
				infantry = { x = 0 y = 0 }
				infantry = { x = 0 y = 1 }
				infantry = { x = 0 y = 2 }
				artillery_brigade = { x = 1 y = 0 }
				artillery_brigade = { x = 1 y = 1 }
				anti_tank_brigade = { x = 2 y = 0 }
			}
			support = {
				engineer = { x = 0 y = 0 }
				recon = { x = 0 y = 1 }
				field_hospital = { x = 0 y = 2 }
			}
		}
		
		random_owned_controlled_state = {
			limit = { is_core_of = UKR }
			create_unit = {
				division = "name = \"Армянский Батальон Арарат\" division_template = \"Армянские Горные Стрелки\" start_experience_factor = 0.85 start_equipment_factor = 0.85" 
				owner = ROOT
			}
		}
		
		add_war_support = 0.02
		add_stability = 0.01
		add_command_power = 5
		add_manpower = 2500
	}
}

# Туркменистан
country_event = {
	id = ukraine.829
	title = ukraine.829.t
	desc = ukraine.829.d
	picture = GFX_event_UKR_volunteers
	
	is_triggered_only = no
	fire_only_once = yes
	
	trigger = {
		tag = UKR
		has_country_flag = ukraine_supported_TMS
		SOV = { has_war_with = UKR }
		NOT = { has_country_flag = turkmen_volunteers_arrived }
	}
	
	option = {
		name = ukraine.829.a
		set_country_flag = turkmen_volunteers_arrived
		custom_effect_tooltip = turkmen_volunteers_tooltip
		
		division_template = {
			name = "Туркменские Добровольцы"
			regiments = {
				motorized = { x = 0 y = 0 }
				motorized = { x = 0 y = 1 }
				motorized = { x = 0 y = 2 }
				light_armor = { x = 1 y = 0 }
				light_armor = { x = 1 y = 1 }
			}
			support = {
				mot_recon = { x = 0 y = 0 }
				maintenance_company = { x = 0 y = 1 }
			}
		}
		
		random_owned_controlled_state = {
			limit = { is_core_of = UKR }
			create_unit = {
				division = "name = \"Туркменский Мобильный Отряд\" division_template = \"Туркменские Добровольцы\" start_experience_factor = 0.45 start_equipment_factor = 0.8" 
				owner = ROOT
			}
		}
		
		add_war_support = 0.01
		add_command_power = 5
		add_manpower = 1800
	}
}

# Кыргызстан
country_event = {
	id = ukraine.830
	title = ukraine.830.t
	desc = ukraine.830.d
	picture = GFX_event_UKR_volunteers
	
	is_triggered_only = no
	fire_only_once = yes
	
	trigger = {
		tag = UKR
		has_country_flag = ukraine_supported_KYR
		SOV = { has_war_with = UKR }
		NOT = { has_country_flag = kyrgyz_volunteers_arrived }
	}
	
	option = {
		name = ukraine.830.a
		set_country_flag = kyrgyz_volunteers_arrived
		custom_effect_tooltip = kyrgyz_volunteers_tooltip
		
		division_template = {
			name = "Кыргызские Горные Егеря"
			regiments = {
				infantry = { x = 0 y = 0 }
				infantry = { x = 0 y = 1 }
				infantry = { x = 0 y = 2 }
				infantry = { x = 1 y = 0 }
				infantry = { x = 1 y = 1 }
				anti_tank_brigade = { x = 2 y = 0 }
			}
			support = {
				engineer = { x = 0 y = 0 }
				artillery = { x = 0 y = 1 }
			}
		}
		
		random_owned_controlled_state = {
			limit = { is_core_of = UKR }
			create_unit = {
				division = "name = \"Кыргызский Горный Батальон\" division_template = \"Кыргызские Горные Егеря\" start_experience_factor = 0.55 start_equipment_factor = 0.75" 
				owner = ROOT
			}
		}
		
		add_war_support = 0.01
		add_command_power = 5
		add_manpower = 2000
	}
}





#Путь к независимости
country_event = {
	id = ukraine.100
	title = ukraine.100.t
	desc = ukraine.100.d
	picture = GFX_UKR_independence
	trigger = {
		tag = UKR
	}
	
	is_triggered_only = yes
	
	option = {
		name = ukraine.100.a
		add_stability = 0.05
		add_war_support = 0.03
		custom_effect_tooltip = UKR_path_to_independence_tt
	}
}

# Нарушение Будапештского меморандума
country_event = {
	id = ukraine.105
	title = ukraine.105.t
	desc = ukraine.105.d
	picture = GFX_UKR_budapest_memorandum
	trigger = {
		tag = UKR
	}
	
	is_triggered_only = yes
	
	option = {
		name = ukraine.105.a
		add_war_support = 0.01
		add_stability = 0.01
		hidden_effect = {
			news_event = { id = ukraine_news.1 days = 1 }
		}
	}
	option = {
		name = ukraine.105.b
		add_political_power = 25
		add_stability = -0.01
		add_war_support = 0.05
		add_popularity = {
			ideology = totalitarian_socialist
			popularity = 0.01
		}
		add_popularity = {
			ideology = nationalist
			popularity = 0.02
		}
		add_popularity = {
			ideology = fascist
			popularity = 0.03
		}
	}
}

# Экономика на 2020 год
country_event = {
	id = ukraine.106
	title = ukraine.106.t
	desc = ukraine.106.d
	picture = GFX_UKR_status_economy
	trigger = {
		tag = UKR
	}
	
	is_triggered_only = yes
	
	option = {
		name = ukraine.106.a
		add_political_power = -65
		add_stability = 0.03
		add_timed_idea = {
			idea = UKR_government_anti_corruption
			days = 210
		}
	
	}
	option = {
		name = ukraine.106.b
		add_stability = -0.03
		add_political_power = 10
		random_owned_controlled_state = {
			limit = {
				industrial_complex > 0
			}
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}
	}
}

# Верховная рада и олигархи
country_event = {
	id = ukraine.107
	title = ukraine.107.t
	desc = ukraine.107.d
	picture = GFX_UKR_rada_oligarchy
	trigger = {
		tag = UKR
	}
	
	is_triggered_only = yes
	
	option = {
		name = ukraine.107.a
		add_stability = -0.02
		add_political_power = -75
		add_popularity = {
			ideology = libertarian_socialist
			popularity = 0.05
			}
		add_popularity = {
			ideology = market_liberal
			popularity = 0.02
			}
		swap_ideas = {
			remove_idea = UKR_government_corruption
			add_idea = UKR_government_corruption_low
		}	
	}
	option = {
		name = ukraine.107.b
		add_stability = 0.01
		add_political_power = 25
		add_popularity = {
			ideology = conservative
			popularity = 0.04
		}
		add_popularity = {
			ideology = authoritarian_democrat
			popularity = 0.02
		}
	}
}

# Президентские выборы
country_event = {
	id = ukraine.108
	title = ukraine.108.t
	desc = ukraine.108.d
	picture = GFX_UKR_2019_election
	trigger = {
		tag = UKR
	}
	
	is_triggered_only = yes
	
	option = {
		name = ukraine.108.a #Зеленский побеждает
		add_stability = 0.05
		add_political_power = 75
		#UKR_zelensky_elected_tt
	}
}

# Дипломатическая активность
country_event = {
	id = ukraine.110
	title = ukraine.110.t
	desc = ukraine.110.d
	picture = GFX_UKR_diplomat
	trigger = {
		tag = UKR
	}
	
	is_triggered_only = yes
	
	option = {
		name = ukraine.110.a
		USA = {
			add_opinion_modifier = {
				target = UKR
				modifier = diplomatic_treaty_ukr
			}
		}
		custom_effect_tooltip = UKR_diplomatic_offensive_tt
	}
	option = {
		name = ukraine.110.b
		ENG = {
			add_opinion_modifier = {
				target = UKR
				modifier = diplomatic_treaty_ukr
			}
		}
		FRA = {
			add_opinion_modifier = {
				target = UKR
				modifier = diplomatic_treaty_ukr
			}
		}
		GER = {
				add_opinion_modifier = {
					target = UKR
					modifier = diplomatic_treaty_ukr
				}
			}
		custom_effect_tooltip = UKR_european_partnership_tt
	}
}

#COVID

country_event = {
	id = ukraine.400
	title = ukraine.400.t
	desc = ukraine.400.d
	picture = GFX_Generic_COVID1

	fire_only_once = yes

	trigger = {
		tag = UKR
	}

	mean_time_to_happen = { 
		days = 48
		modifier = {
			factor = 0.9
		}
	}
	
	option = {
		name = ukraine.400.a
		add_timed_idea = {
			idea = UKR_covid_crisis
			days = 730
		}
		custom_effect_tooltip = UKR_covid_tt
	}
}

country_event = {
	id = ukraine.401
	title = ukraine.401.t
	desc = ukraine.401.d
	picture = GFX_Generic_COVID1
	
	is_triggered_only = yes

	trigger = {
		tag = UKR
		UKR = {
			has_country_flag = UKR_COVID_ongoing
			date > 2022.01.01
		}
	}
	
	option = {
		name = ukraine.401.a
		remove_idea = UKR_covid_crisis
		clr_country_flag = UKR_COVID_ongoing
		custom_effect_tooltip = UKR_covid_over_tt
	}
}

#UKR_decommunization
# События декоммунизации для Украины

country_event = {
	id = ukraine.1000
	title = ukraine.1000.t
	desc = ukraine.1000.d
	picture = GFX_event_UKR_decommunization_start
	
	is_triggered_only = yes
	
	immediate = {
		set_variable = { UKR_radical_score = 0 }
		set_variable = { UKR_moderate_score = 0 }
	}
	
	option = {
		name = ukraine.1000.a
		custom_effect_tooltip = UKR_decommunization_begin_tt
		set_country_flag = UKR_decommunization_begin
	}
}

# Событие 1: Цифровой архив репрессий
country_event = {
	id = ukraine.1001
	title = ukraine.1001.t
	desc = ukraine.1001.d
	picture = GFX_event_UKR_decommunization_int
	
	is_triggered_only = yes
	
	# Вариант 1: Полный цифровой архив со свободным доступом
	option = {
		name = ukraine.1001.a
		ai_chance = {
			factor = 25
		}
		
		add_stability = -0.02
		add_political_power = -25
		add_popularity = {
			ideology = totalitarian_socialist
			popularity = -0.04
		}
		add_popularity = {
			ideology = communist
			popularity = -0.01
		}
		
		add_to_variable = { UKR_radical_score = 3 }
		set_country_flag = UKR_repressions_archive_completed
		
		custom_effect_tooltip = UKR_full_archive_access_tt
	}
	
	# Вариант 2: Умеренный подход - Часть это личные данные и они не должны уйти в открытый доступ
	option = {
		name = ukraine.1001.b
		ai_chance = {
			factor = 60
		}
		
		add_stability = 0.02
		add_political_power = -10

		add_popularity = {
			ideology = totalitarian_socialist
			popularity = -0.01
		}
		add_popularity = {
			ideology = communist
			popularity = -0.01
		}
		
		add_to_variable = { UKR_moderate_score = 1 }
		set_country_flag = UKR_repressions_archive_completed
		
		custom_effect_tooltip = UKR_moderate_archive_access_tt
	}

	# Вариант 3: Оставить все как есть
	option = {
		name = ukraine.1001.c
		ai_chance = {
			factor = 15
		}
		add_stability = 0.01

		add_popularity = {
			ideology = totalitarian_socialist
			popularity = 0.02
		}
		add_popularity = {
			ideology = communist
			popularity = 0.01
		}
		add_popularity = {
			ideology = authoritarian_democrat
			popularity = 0.03
		}

		set_country_flag = UKR_repressions_archive_completed
		
		custom_effect_tooltip = UKR_nope_archive_access_tt
	}
}

# Событие 2: Демонтаж советских памятников
country_event = {
	id = ukraine.1002
	title = ukraine.1002.t
	desc = ukraine.1002.d
	picture = GFX_event_UKR_decommunization_lenin_fall
	
	is_triggered_only = yes
	
	# Вариант 1: Полный демонтаж всех памятников
	option = {
		name = ukraine.1002.a
		
		add_stability = -0.02
		add_war_support = -0.01
		add_political_power = -20
			set_temp_variable = {
				var = income_var_temp
				value = -0.5
			}
			add_income = yes

		add_popularity = {
			ideology = totalitarian_socialist
			popularity = -0.03
		}
		add_popularity = {
			ideology = communist
			popularity = -0.02
		}
		add_popularity = {
			ideology = libertarian_socialist
			popularity = -0.01
		}

		add_to_variable = { UKR_radical_score = 3 }
		
		custom_effect_tooltip = UKR_full_monuments_removal_tt
		set_country_flag = UKR_monuments_completed
	}
	
	# Вариант 2 (альтернативный): Радикальный подход - толпа уничтожает
	option = {
		name = ukraine.1002.b
		
		add_stability = -0.08
		add_war_support = 0.01
		add_political_power = -15

		set_temp_variable = {
				var = income_var_temp
				value = -0.3
			}
			add_income = yes

		add_popularity = {
			ideology = totalitarian_socialist
			popularity = -0.05
		}
		add_popularity = {
			ideology = communist
			popularity = -0.04
		}
		add_popularity = {
			ideology = libertarian_socialist
			popularity = -0.03
		}
		add_popularity = {
			ideology = fascist
			popularity = 0.02
		}

		add_to_variable = { UKR_radical_score = 4 }
		set_country_flag = UKR_monuments_completed
		
		custom_effect_tooltip = UKR_crowd_monuments_removal_tt
	}
	
	# Вариант 3: Избирательный демонтаж - только те кто совершал преступления
	option = {
		name = ukraine.1002.c
		
		add_stability = 0.02
		add_political_power = -25

		set_temp_variable = {
				var = income_var_temp
				value = -0.1
			}
			add_income = yes

		add_popularity = {
			ideology = totalitarian_socialist
			popularity = -0.02
		}
		add_popularity = {
			ideology = communist
			popularity = -0.01
		}
		

		add_to_variable = { UKR_moderate_score = 2 }
		
		custom_effect_tooltip = UKR_selective_monuments_removal_tt
		set_country_flag = UKR_monuments_completed
	}
	
	# Вариант 4 Оставить все как есть
	option = {
		name = ukraine.1002.m
		
		add_stability = 0.01
		add_political_power = -5
		
		set_country_flag = UKR_monuments_completed
		
		custom_effect_tooltip = UKR_keep_monuments_tt
	}
}

# Событие 3: Открытие архивов КГБ
country_event = {
	id = ukraine.1003
	title = ukraine.1003.t
	desc = ukraine.1003.d
	picture = GFX_event_UKR_decommunization_soviet_documents
	
	is_triggered_only = yes
	
	# Вариант 1: Полное раскрытие всех архивов
	option = {
		name = ukraine.1003.a
		
		add_stability = -0.03
		add_political_power = -40
		add_war_support = -0.01

		add_popularity = {
			ideology = totalitarian_socialist
			popularity = -0.02
		}
		add_popularity = {
			ideology = authoritarian_democrat
			popularity = -0.04
		}
		add_popularity = {
			ideology = nationalist
			popularity = -0.02
		}

		add_to_variable = { UKR_radical_score = 3 }
		
		set_country_flag = UKR_archives_completed
		custom_effect_tooltip = UKR_full_archives_tt
	}
	
	# Вариант 2: Только общественные образовательные организации и историкам
	option = {
		name = ukraine.1003.b
		
		add_stability = 0.02
		add_war_support = 0.01
		add_political_power = -5
		
		add_to_variable = { UKR_moderate_score = 1 }
		set_country_flag = UKR_archives_completed
		
		custom_effect_tooltip = UKR_historians_archives_tt
	}
	
	# Вариант 3: Ограниченный доступ к архивам у масс
	option = {
		name = ukraine.1003.c
		
		add_stability = 0.01
		add_political_power = -15

		add_popularity = {
			ideology = totalitarian_socialist
			popularity = -0.02
		}
		add_popularity = {
			ideology = communist
			popularity = -0.01
		}

		add_to_variable = { UKR_moderate_score = 2 }
		
		set_country_flag = UKR_archives_completed
		custom_effect_tooltip = UKR_limited_archives_tt
	}
	
	# Вариант 4 (альтернативный): Тайна есть тайна. Увеличить срок государственной тайны.
	option = {
		name = ukraine.1003.m

		add_popularity = {
			ideology = authoritarian_democrat
			popularity = 0.03
		}
		add_popularity = {
			ideology = totalitarian_socialist
			popularity = 0.02
		}
		add_political_power = -10
		
		set_country_flag = UKR_archives_completed
		
		custom_effect_tooltip = UKR_keep_archives_secret_tt
	}
}

# Событие 4: Реформа исторического образования
country_event = {
	id = ukraine.1004
	title = ukraine.1004.t
	desc = ukraine.1004.d
	picture = GFX_event_UKR_decommunization_school
	
	is_triggered_only = yes
	
	# Вариант 1: Полное переписывание истории - РСФСР окупировала Украину!
	option = {
		name = ukraine.1004.a
		
		add_stability = -0.04
		add_political_power = -25

		add_popularity = {
			ideology = fascist
			popularity = 0.03
		}
		add_popularity = {
			ideology = totalitarian_socialist
			popularity = -0.04
		}
		add_popularity = {
			ideology = communist
			popularity = -0.03
		}
		add_popularity = {
			ideology = social_democrat
			popularity = -0.02
		}

		set_temp_variable = {
				var = income_var_temp
				value = -0.25
			}
			add_income = yes
		
		add_to_variable = { UKR_radical_score = 4 }
		
		set_country_flag = UKR_education_completed
		custom_effect_tooltip = UKR_radical_education_reform_tt
	}
	
	# Вариант 2 Оставить все как есть
	option = {
		name = ukraine.1004.b
		
		add_stability = -0.01
		add_political_power = -5

		add_popularity = {
			ideology = communist
			popularity = 0.01
		}
		
		set_country_flag = UKR_education_completed
		
		custom_effect_tooltip = UKR_no_education_reform_tt
	}
	
	# Вариант 3: Объективный подход к истории
	option = {
		name = ukraine.1004.c
		
		add_stability = 0.03
		add_political_power = -15

		add_popularity = {
			ideology = totalitarian_socialist
			popularity = -0.03
		}
		add_popularity = {
			ideology = communist
			popularity = -0.01
		}
		add_popularity = {
			ideology = fascist
			popularity = -0.01
		}
		add_popularity = {
			ideology = national_socialist
			popularity = -0.02
		}

		set_temp_variable = {
				var = income_var_temp
				value = -0.1
			}
			add_income = yes

		add_to_variable = { UKR_moderate_score = 1 }
		
		set_country_flag = UKR_education_completed
		custom_effect_tooltip = UKR_balanced_education_reform_tt
	}
	
	# Вариант 4 Умеренный подход - подчекнуть преступления и репрессий
	option = {
		name = ukraine.1004.m
		
		add_stability = 0.03
		add_war_support = 0.02
		add_political_power = -15
		add_popularity = {
			ideology = totalitarian_socialist
			popularity = -0.04
		}
		add_popularity = {
			ideology = communist
			popularity = -0.01
		}
		
		set_temp_variable = {
				var = income_var_temp
				value = -0.1
			}
			add_income = yes

		add_to_variable = { UKR_moderate_score = 2 }
		add_to_variable = { UKR_radical_score = 1 }
		set_country_flag = UKR_education_completed
		
		custom_effect_tooltip = UKR_emphasis_crimes_education_tt
	}
}

# Событие 5: Институт национальной памяти
country_event = {
	id = ukraine.1005
	title = ukraine.1005.t
	desc = ukraine.1005.d
	picture = GFX_event_UKR_decommunization_memoryl
	
	is_triggered_only = yes
	
	# Вариант 1: Институт как инструмент декоммунизации и европеизации
	option = {
		name = ukraine.1005.a
		
		add_stability = 0.02
		add_ideas = UKR_national_memory_institute_radical

		set_temp_variable = {
				var = income_var_temp
				value = -0.8
			}
			add_income = yes

		add_popularity = {
			ideology = totalitarian_socialist
			popularity = -0.02
		}
		add_popularity = {
			ideology = communist
			popularity = -0.01
		}
		add_popularity = {
			ideology = libertarian_socialist
			popularity = -0.01
		}
		add_popularity = {
			ideology = social_democrat
			popularity = -0.01
		}

		add_to_variable = { UKR_radical_score = 2 }
		
		set_country_flag = UKR_memory_institute_completed
		custom_effect_tooltip = UKR_european_memory_tt
	}
	
	# Вариант 2 Пустая трата денег - отказ
	option = {
		name = ukraine.1005.b
		
		set_country_flag = UKR_memory_institute_completed
		custom_effect_tooltip = UKR_no_memory_institute_tt
	}
	
	# Вариант 3: Институт как средство исторической объективности
	option = {
		name = ukraine.1005.c
		
		add_stability = 0.01
		add_war_support = 0.01

		add_popularity = {
			ideology = totalitarian_socialist
			popularity = -0.01
		}
		add_popularity = {
			ideology = communist
			popularity = -0.01
		}
		add_popularity = {
			ideology = fascist
			popularity = -0.01
		}
		add_popularity = {
			ideology = national_socialist
			popularity = -0.01
		}

		set_temp_variable = {
				var = income_var_temp
				value = -0.8
			}
			add_income = yes

		add_ideas = UKR_national_memory_institute_moderate
		
		add_to_variable = { UKR_moderate_score = 3 }
		set_country_flag = UKR_memory_institute_completed
		custom_effect_tooltip = UKR_objective_memory_tt
	}
	
	# Вариант 4: Институт посвященный голодомору
	option = {
		name = ukraine.1005.m
		
		add_stability = 0.01
		add_war_support = 0.03
		add_political_power = 15

		add_popularity = {
			ideology = totalitarian_socialist
			popularity = -0.03
		}
		add_popularity = {
			ideology = communist
			popularity = -0.01
		}

		set_temp_variable = {
				var = income_var_temp
				value = -0.8
			}
			add_income = yes

		add_ideas = UKR_national_memory_institute_moderate_Holodomor
		
		add_to_variable = { UKR_moderate_score = 2 }
		add_to_variable = { UKR_radical_score = 1 }
		set_country_flag = UKR_memory_institute_completed
		
		custom_effect_tooltip = UKR_holodomor_memory_tt
	}
}

# Финальное событие для подведения итогов
country_event = {
	id = ukraine.1006
	title = ukraine.1006.t
	desc = ukraine.1006.d
	picture = GFX_event_UKR_decommunization_over

	fire_only_once = yes
	
	trigger = {
		has_country_flag = UKR_repressions_archive_completed
		has_country_flag = UKR_monuments_completed
		has_country_flag = UKR_archives_completed
		has_country_flag = UKR_education_completed
		has_country_flag = UKR_memory_institute_completed
		NOT = { has_country_flag = UKR_over_decommunization }
	}
	
	mean_time_to_happen = {
		days = 10
	}

	immediate {
		has_country_flag = UKR_over_decommunization
	}
	
	# Радикальная декоммунизация завершена
	option = {
		name = ukraine.1006.a
		trigger = {
			check_variable = { UKR_radical_score > 9 }
		}
		
		add_stability = 0.08
		add_war_support = 0.08
		add_political_power = 150
		add_timed_idea = {
				idea = UKR_radical_decommunization_complete
				days = 365
			}
		 
		custom_effect_tooltip = UKR_radical_path_completed_tt
	}
	
	# Умеренная декоммунизация завершена
	option = {
		name = ukraine.1006.b
		trigger = {
			check_variable = { UKR_moderate_score > 7 }
			NOT = { check_variable = { UKR_radical_score > 9 } }
		}
		
		add_stability = 0.08
		add_war_support = 0.05
		add_political_power = 100
		add_timed_idea = {
				idea = UKR_moderate_decommunization_complete
				days = 365
			}
		
		custom_effect_tooltip = UKR_moderate_path_completed_tt
	}
	
	# Смешанный подход
	option = {
		name = ukraine.1006.c
		trigger = {
			NOT = { check_variable = { UKR_radical_score > 9 } }
			check_variable = { UKR_moderate_score > 5 }
		}
		
		add_stability = 0.05
		add_war_support = 0.03
		add_political_power = 50
		add_timed_idea = {
				idea = UKR_mixed_decommunization_outcome
				days = 365
			}
		
		custom_effect_tooltip = UKR_mixed_path_completed_tt
	}

	# Провал
	option = {
		name = ukraine.1006.m
		
		add_stability = -0.02
		add_war_support = -0.03
		add_political_power = -20

		add_popularity = {
			ideology = totalitarian_socialist
			popularity = 0.04
		}

		add_popularity = {
			ideology = communist
			popularity = 0.01
		}

		add_popularity = {
			ideology = authoritarian_democrat
			popularity = 0.08
		}

		add_popularity = {
			ideology = national_socialist
			popularity = 0.03
		}
		
		custom_effect_tooltip = UKR_bad_path_completed_tt
	}
}

#Сотрудничества Беларуси и Украины
country_event = {
	id = ukraine.500 
	title = ukraine.500.t
	desc = ukraine.500.d
	picture = GFX_UKR_help_BLR

	fire_only_once = yes

	is_triggered_only = no

	trigger = {
		tag = UKR
		BLR = {
			exists = yes
			is_subject = no
			has_idea = BLR_Democratization_of_Belarus_idea
			OR = {
				has_country_flag = BLR_maidan
				ruling_party = social_democrat
				has_party = { party = social_democrat popularity > 0.4 }
			}
		}
		NOT = {
			has_country_flag = ukraine_belarus_initial_cooperation	
		}
	}

	immediate = {
		set_country_flag = ukraine_belarus_initial_cooperation
	}

	mean_time_to_happen = { 
		days = 30
	}


	option = {
		name = ukraine.500.a
		add_political_power = -25
		UKR = {
			add_timed_idea = {
				idea = UKR_idea_belarus_cooperation 
				days = 365
			}

			add_opinion_modifier = {
				target = BLR
				modifier = diplomatic_treaty_ukr
				}
		}
		BLR = {
			add_timed_idea = {
				idea = UKR_idea_belarus_cooperation 
				days = 365
			}
			add_opinion_modifier = {
				target = UKR
				modifier = diplomatic_treaty_ukr
				}
		}
		ai_chance = { factor = 95 }

		
		set_country_flag = ukraine_supported_belarus 
		#news_event = { id = ukraine.500 } # Триггерим следующее событие об углублении сотрудничества

		set_temp_variable = {
				var = income_var_temp
				value = -5
			}
			add_income = yes
	}
	option = {
		name = ukraine.500.b
		add_war_support = 0.02
		ai_chance = { factor = 5 }
	}
}

country_event = {
	id = ukraine.501
	title = ukraine.501.t
	desc = ukraine.501.d
	picture = GFX_event_UKR_BLR_military_cooperation

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = UKR
		BLR = {
			ruling_party = social_democrat
		}
		has_country_flag = ukraine_supported_belarus
		NOT = has_country_flag = ukraine_belarus_deep_cooperation 
	}

	immediate = {
		set_country_flag = ukraine_belarus_deep_cooperation
	}

	mean_time_to_happen = { 
		days = 120
		modifier = {
			factor = 0.8
		}
	}


	option = {
		name = ukraine.501.a
		ai_chance = { factor = 92 }
		UKR = {
			add_war_support = 0.05
			army_experience = 25
			
			add_timed_idea = {
				idea = UKR_belarus_military_cooperation
				days = 365
			}
			set_temp_variable = {
				var = military_development_var_temp
				value = 0.10
			}
			add_military_development = yes

			add_opinion_modifier = {
				target = BLR
				modifier = military_cooperation
				}

		}
		BLR = {
			add_war_support = 0.08
			army_experience = 40
			set_temp_variable = {
				var = military_development_var_temp
				value = 0.25
			}
			add_timed_idea = {
				idea = UKR_belarus_military_cooperation
				days = 365
			}

			add_opinion_modifier = {
				target = UKR
				modifier = military_cooperation
				}
		}
	}
	option = {
		name = ukraine.501.b
		ai_chance = { factor = 5 }
	}
}

country_event = {
	id = ukraine.502
	title = ukraine.502.t
	desc = ukraine.502.d
	picture = GFX_event_UKR_BLR_liberation_allianc
	
	is_triggered_only = no

	fire_only_once = yes

	trigger = {
		tag = UKR
		BLR = {
			has_idea = GER_scars_of_nato_war
			is_subject = no
		}
		NOT = {
			has_country_flag = ukraine_belarus_liberation_cooperation
		}
	}

	immediate = {
		set_country_flag = ukraine_belarus_liberation_cooperation
	}

	mean_time_to_happen = { 
		days = 20
		modifier = {
			factor = 0.8
		}
	}

	option = {
		name = ukraine.502.a # Предложить тесный союз
		add_political_power = -20
		UKR = {
			add_timed_idea = {
				idea = UKR_idea_belarus_construct
				days = 730
			}

			add_opinion_modifier = {
				target = BLR
				modifier = diplomatic_treaty_ukr
			}
		}
		BLR = {
			add_timed_idea = {
				idea = UKR_idea_belarus_construct
				days = 730
			}
			add_opinion_modifier = {
				target = UKR
				modifier = diplomatic_treaty_ukr
			}
		}
		custom_effect_tooltip = belarus_mutual_defense_pact_tooltip
		add_stability = 0.02
		add_war_support = 0.01
		ai_chance = { factor = 98 }
		
		set_country_flag = ukraine_supported_liberated_belarus
		
		set_temp_variable = {
			var = income_var_temp
			value = -25
		}
		add_income = yes
	}
	
	option = {
		name = ukraine.502.b # Ограничиться формальным признанием
		add_political_power = 15
		add_popularity = {
			ideology = national_socialist
			popularity = 0.02
		}
		add_popularity = {
			ideology = fascist
			popularity = 0.01
		}
		ai_chance = { 
			factor = 2
			modifier = {
				factor = 2
				has_stability < 0.4
			}
		}
	}
}



# Министры
country_event = {
	id = ukraine.300
	title = ukraine.300.t
	desc = ukraine.300.d
	picture = GFX_UKR_ministr_avakov_scandal

	trigger = {
		tag = UKR
		has_idea = UKR_avakov
	}

	mean_time_to_happen = { 
		days = 60
		modifier = {
			factor = 1
		}
	}
	option = {
		name = ukraine.300.a 
		add_stability = -0.05 
		add_political_power = -30

		hidden_effect = {
			set_country_flag = ukraine_avakov_resignation_pending 
			UKR = {
				country_event = { id = ukraine.301 days = 45 }
			}
		}
	}
}
country_event = {
	id = ukraine.301
	title = ukraine.301.t
	desc = ukraine.301.d
	picture = GFX_UKR_ministr_avakov_leave

	is_triggered_only = yes

	trigger = {
		tag = UKR
		has_idea = UKR_avakov
		has_country_flag = ukraine_avakov_resignation_pending
	}
	immediate = {
		clr_country_flag = ukraine_avakov_resignation_pending
	}
	option = {
		name = ukraine.301.a
		add_political_power = -40
		remove_ideas = UKR_avakov
		add_ideas = UKR_monastyrsky
	}
}
