# Author(s): Birdy, LordBogdanoff
add_namespace = ukraine_news
add_namespace = ukraine_revolution
add_namespace = ukraine_coup
add_namespace = ukraine_our_ukraine
add_namespace = ukraine_kuchma
add_namespace = ukraine_regions
add_namespace = ukraine_maidan_west
add_namespace = ukraine_maidan_east
add_namespace = ukraine_maidan
add_namespace = ukraine_maidan_crm_annex
add_namespace = ukraine_maidan_overthrow
add_namespace = ukraine_congress
add_namespace = ukraine_nato_help
add_namespace = ukraine_hur
add_namespace = ukraine_poroh
add_namespace = ukraine_kolom
add_namespace = ukraine_kommi
add_namespace = ukraine_rada
add_namespace = ukraine_union
add_namespace = ukraine_nazbol
add_namespace = ukraine_tech
add_namespace = ukraine_parliament
add_namespace = ukr_sabotage
add_namespace = subject_ukr
add_namespace = ukr_zelenskiy
add_namespace = ukraine_amber
### MDAU Events ###
add_namespace = ukr_history
add_namespace = ukr_economy_rate
add_namespace = ukraine_nuclear_power_plants
add_namespace = ukraine_armed_forces_tragedy_event
add_namespace = ukraine_warehouse_explosions
add_namespace = ukraine_reorganize_navy_restore_1124
add_namespace = ukraine_reorganize_navy_choose_future_corvette
add_namespace = ukraine_reorganize_navy_buy_lithuanian_1124
add_namespace = ukraine_reorganize_navy_finish_project_133
add_namespace = ukraine_reorganize_navy_maintain_1135
add_namespace = ukraine_reorganize_navy_maintain_1241
add_namespace = ukraine_reorganize_navy_finish_11451
add_namespace = ukraine_reorganize_navy_finish_ukrayina
add_namespace = ukraine_reorganize_navy_maintain_641_submarine
add_namespace = ukraine_reorganize_navy_repair_rivne
add_namespace = ukraine_reorganize_navy_repair_support_ships
add_namespace = ukraine_reorganize_navy_build_simferopol_recon_ship
add_namespace = ukraine_modernize_sov_equipment_brdm_2_modernization
add_namespace = ukr_modernize_sov_equipment_t55_reactivation_program
add_namespace = ukraine_develop_btr3
add_namespace = ukraine_develop_btr4
add_namespace = ukraine_develop_2s22
##############MAIDAN##############
#Start Protest
country_event = {
	id = ukraine_maidan_west.1
	title = ukraine_maidan_west.1.t
	desc = ukraine_maidan_west.1.d
	picture = GFX_maidan3
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_west.1.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_west.1.a executed"
		set_party_index_to_ruling_party = yes
		set_temp_variable = { party_popularity_increase = -0.02 }
		change_relative_party_popularity = yes
		add_stability = -0.01
		hidden_effect = {
			country_event = { id = ukraine_maidan_west.2 days = 10 }
		}
	}
}
#Palatki v kieve
country_event = {
	id = ukraine_maidan_west.2
	title = ukraine_maidan_west.2.t
	desc = ukraine_maidan_west.2.d
	picture = GFX_maidan2
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_west.2.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_west.2.a executed"
		set_party_index_to_ruling_party = yes
		set_temp_variable = { party_popularity_increase = -0.03 }
		change_relative_party_popularity = yes
		add_stability = -0.03
		hidden_effect = {
			country_event = { id = ukraine_maidan_west.3 days = 10 }
		}
	}
}
#Try Razgon
country_event = {
	id = ukraine_maidan_west.3
	title = ukraine_maidan_west.3.t
	desc = ukraine_maidan_west.3.d
	picture = GFX_maidan1
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_west.3.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_west.3.a executed"
		trigger = { has_completed_focus = UKR_party_regions_berkut_extreme_training }
		add_stability = -0.06
		hidden_effect = {
			country_event = { id = ukraine_maidan_west.4 days = 10 }
		}
	}

	option = {
		name = ukraine_maidan_west.3.b
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_west.3.b executed"
		add_stability = -0.01
		trigger = { NOT = { has_completed_focus = UKR_party_regions_berkut_extreme_training } }
		hidden_effect = {
			country_event = { id = ukraine_maidan_west.5 days = 10 }
		}
	}
}
#Silovoi Razgon
country_event = {
	id = ukraine_maidan_west.4
	title = ukraine_maidan_west.4.t
	desc = ukraine_maidan_west.4.d
	picture = GFX_maidan1
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_west.4.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_west.4.a executed"
		set_party_index_to_ruling_party = yes
		set_temp_variable = { party_popularity_increase = -0.05 }
		change_relative_party_popularity = yes
		hidden_effect = {
			country_event = { id = ukraine_maidan_west.13 days = 10 }
		}
	}
}
#Not Razgon
country_event = {
	id = ukraine_maidan_west.5
	title = ukraine_maidan_west.5.t
	desc = ukraine_maidan_west.5.d
	picture = GFX_maidan4
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_west.5.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_west.5.a executed"
		set_party_index_to_ruling_party = yes
		set_temp_variable = { party_popularity_increase = -0.03 }
		change_relative_party_popularity = yes
		add_stability = -0.01
		hidden_effect = {
			country_event = { id = ukraine_maidan_west.6 days = 10 }
		}
	}
}
#Not Razgon Try negotiate
country_event = {
	id = ukraine_maidan_west.6
	title = ukraine_maidan_west.6.t
	desc = ukraine_maidan_west.6.d
	picture = GFX_maidan4
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_west.6.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_west.6.a executed"
		set_party_index_to_ruling_party = yes
		set_temp_variable = { party_popularity_increase = -0.04 }
		change_relative_party_popularity = yes
		add_stability = -0.02
		hidden_effect = {
			country_event = { id = ukraine_maidan_west.7 days = 10 }
		}
	}
}
#Not Razgon Loose power
country_event = {
	id = ukraine_maidan_west.7
	title = ukraine_maidan_west.7.t
	desc = ukraine_maidan_west.7.d
	picture = GFX_maidan4
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_west.7.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_west.7.a executed"
		set_party_index_to_ruling_party = yes
		set_temp_variable = { party_popularity_increase = -0.06 }
		change_relative_party_popularity = yes
		add_stability = -0.07
		hidden_effect = {
			country_event = { id = ukraine_maidan_west.8 days = 10 }
		}
	}
}
#Not Razgon New Government
country_event = {
	id = ukraine_maidan_west.8
	title = ukraine_maidan_west.8.t
	desc = ukraine_maidan_west.8.d
	picture = GFX_verkhovna_rada_vote
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_west.8.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_west.8.a executed"
		country_event = ukraine_maidan_overthrow.1
	}
}
#Not Razgon Rise Donbass
country_event = {
	id = ukraine_maidan_west.10
	title = ukraine_maidan_west.10.t
	desc = ukraine_maidan_west.10.d
	picture = GFX_donetsk_protests
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_west.10.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_west.10.a executed"
		ai_chance = {
			base = 40
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		release = DPR
		DPR = {
			drop_cosmetic_tag = yes
			clear_variable = dynamic_flag_variant
			set_cosmetic_tag = DPR_donbass
			clr_country_flag = dynamic_flag
			set_country_flag = UKR_subject_agree
			if = {
				limit = { UKR = { owns_state = 1075 } }
				transfer_state = 1075
				add_state_core = 1075
			}
			if = {
				limit = { UKR = { owns_state = 1076 } }
				transfer_state = 1076
				add_state_core = 1076
			}
		}
		set_autonomy = {
			target = DPR
			autonomy_state = autonomy_republic_ukr
		}
		DPR = {
			if = {
				limit = { NOT = { has_idea = UKR_republic_ukr } }
				add_ideas = UKR_republic_ukr
			}
		}
	}

	option = {
		name = ukraine_maidan_west.10.b
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_west.10.b executed"
		ai_chance = {
			base = 60
			modifier = {
				add = 100
				is_historical_focus_on = yes
			}
		}
		UKR_spawn_donbass_war = yes
		hidden_effect = {
			declare_war_on = {
				target = LPR
				type = annex_everything
			}
			declare_war_on = {
				target = DPR
				type = annex_everything
			}
			if = {
				limit = { NOT = { has_completed_focus = UKR_finance_vv } }
				country_event = { id = ukraine_maidan_west.11 days = 2 }
			}
			if = {
				limit = { NOT = { has_completed_focus = UKR_sbu_alpha } }
				country_event = { id = ukraine_maidan_west.12 days = 2 }
			}
		}
	}
}
#Not Razgon Rise Kharkiv
country_event = {
	id = ukraine_maidan_west.11
	title = ukraine_maidan_west.11.t
	desc = ukraine_maidan_west.11.d
	picture = GFX_kharkiv_protests
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_west.11.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_west.11.a executed"
		hidden_effect = { UKR_spawn_HPR_war = yes }
	}
}
#Not Razgon Rise Odessa
country_event = {
	id = ukraine_maidan_west.12
	title = ukraine_maidan_west.12.t
	desc = ukraine_maidan_west.12.d
	picture = GFX_odessa_protests
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_west.12.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_west.12.a executed"
		hidden_effect = { UKR_spawn_OPR_war = yes }
	}
}
#Silovoi Razgon Continue
country_event = {
	id = ukraine_maidan_west.13
	title = ukraine_maidan_west.13.t
	desc = ukraine_maidan_west.13.d
	picture = GFX_maidan1
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_west.13.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_west.13.a executed"
		set_party_index_to_ruling_party = yes
		set_temp_variable = { party_popularity_increase = -0.04 }
		change_relative_party_popularity = yes
		hidden_effect = {
			country_event = { id = ukraine_maidan_west.14 days = 10 }
		}
	}
}
#Silovoi Razgon Radicalisation
country_event = {
	id = ukraine_maidan_west.14
	title = ukraine_maidan_west.14.t
	desc = ukraine_maidan_west.14.d
	picture = GFX_maidan5
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_west.14.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_west.14.a executed"
		set_party_index_to_ruling_party = yes
		set_temp_variable = { party_popularity_increase = -0.04 }
		change_relative_party_popularity = yes
		hidden_effect = {
			country_event = { id = ukraine_maidan_west.15 days = 10 }
		}
	}
}
#Silovoi Razgon Use Army
country_event = {
	id = ukraine_maidan_west.15
	title = ukraine_maidan_west.15.t
	desc = ukraine_maidan_west.15.d
	picture = GFX_maidan8
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_west.15.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_west.15.a executed"
		set_party_index_to_ruling_party = yes
		set_temp_variable = { party_popularity_increase = -0.04 }
		change_relative_party_popularity = yes
		hidden_effect = {
			country_event = { id = ukraine_maidan_west.16 days = 10 }
		}
	}
}
#Silovoi Razgon Army Result
country_event = {
	id = ukraine_maidan_west.16
	title = ukraine_maidan_west.16.t
	desc = ukraine_maidan_west.16.d
	picture = GFX_ukr_army
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_west.16.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_west.16.a executed"
		trigger = { check_variable = { UKR_army_reform_level > 4 } }
		hidden_effect = {
			country_event = { id = ukraine_maidan_west.17 days = 10 }
		}
	}

	option = {
		name = ukraine_maidan_west.16.b
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_west.16.b executed"
		trigger = { check_variable = { UKR_army_reform_level < 5 } }
		hidden_effect = {
			country_event = { id = ukraine_maidan_west.20 days = 10 }
		}
	}
}
#Silovoi Razgon Army Kiyv Battle
country_event = {
	id = ukraine_maidan_west.17
	title = ukraine_maidan_west.17.t
	desc = ukraine_maidan_west.17.d
	picture = GFX_ukrainian_civil_war
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_west.17.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_west.17.a executed"
		set_party_index_to_ruling_party = yes
		set_temp_variable = { party_popularity_increase = -0.09 }
		change_relative_party_popularity = yes
		hidden_effect = {
			country_event = { id = ukraine_maidan_west.18 days = 10 }
		}
	}
}
#Silovoi Razgon Army Galicia Against
country_event = {
	id = ukraine_maidan_west.18
	title = ukraine_maidan_west.18.t
	desc = ukraine_maidan_west.18.d
	picture = GFX_ukrainian_civil_war
	is_triggered_only = yes

	option = { name = ukraine_maidan_west.18.a }
}
#Silovoi Razgon Army Loose
country_event = {
	id = ukraine_maidan_west.20
	title = ukraine_maidan_west.20.t
	desc = ukraine_maidan_west.20.d
	picture = GFX_maidan5
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_west.20.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_west.20.a executed"
		set_party_index_to_ruling_party = yes
		set_temp_variable = { party_popularity_increase = -0.09 }
		change_relative_party_popularity = yes
		hidden_effect = {
			country_event = { id = ukraine_maidan_west.21 days = 10 }
		}
	}
}
#Silovoi Razgon Army Snipers
country_event = {
	id = ukraine_maidan_west.21
	title = ukraine_maidan_west.21.t
	desc = ukraine_maidan_west.21.d
	picture = GFX_maidan1
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_west.21.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_west.21.a executed"
		set_party_index_to_ruling_party = yes
		set_temp_variable = { party_popularity_increase = -0.07 }
		change_relative_party_popularity = yes
		hidden_effect = {
			country_event = { id = ukraine_maidan_west.22 days = 10 }
		}
	}
}
#Silovoi Razgon Army Razval Government
country_event = {
	id = ukraine_maidan_west.22
	title = ukraine_maidan_west.22.t
	desc = ukraine_maidan_west.22.d
	picture = GFX_maidan5
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_west.22.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_west.22.a executed"
		hidden_effect = {
			country_event = { id = ukraine_maidan_west.23 days = 10 }
		}
	}
}
#Silovoi Razgon Army Give Power
country_event = {
	id = ukraine_maidan_west.23
	title = ukraine_maidan_west.23.t
	desc = ukraine_maidan_west.23.d
	picture = GFX_verkhovna_rada_vote
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_west.23.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_west.23.a executed"
		hidden_effect = {
			if = {
				limit = {
					OR = {
						has_government = communism
						AND = {
							has_completed_focus = UKR_full_nazbol_transition
							nationalist_monarchists_are_in_power = yes
						}
					}
				}
				random_list = {
					20 = {
						set_popularities = {
							democratic = 10
							neutrality = 0
							fascism = 0
							communism = 0
							nationalist = 90
						}
						set_temp_variable = { rul_party_temp = 21 }
						set_temp_variable = { disable_elections = 1 }
						change_ruling_party_effect = yes
						set_temp_variable = { party_index = 21 }
						set_temp_variable = { party_popularity_multiplier = 1.5 }
						scale_party_popularity = yes
						retire_country_leader = yes
					}
					40 = {
						set_popularities = {
							democratic = 90
							neutrality = 0
							fascism = 0
							communism = 0
							nationalist = 10
						}
						set_temp_variable = { rul_party_temp = 1 }
						set_temp_variable = { disable_elections = 2 }
						change_ruling_party_effect = yes
						set_temp_variable = { current_cons_popularity = party_pop_array^1 }
						multiply_temp_variable = { current_cons_popularity = 0.5 }
						add_to_variable = { party_pop_array^1 = current_cons_popularity }
						recalculate_party = yes
						retire_country_leader = yes
					}
					40 = {
						set_popularities = {
							democratic = 0
							neutrality = 90
							fascism = 0
							communism = 0
							nationalist = 10
						}
						set_temp_variable = { rul_party_temp = 16 }
						change_ruling_party_effect = yes
						set_temp_variable = { party_index = 16 }
						set_temp_variable = { party_popularity_multiplier = 1.5 }
						scale_party_popularity = yes
						retire_country_leader = yes
					}
				}
			}
			country_event = { id = ukraine_maidan_west.10 days = 10 }
		}
	}
}
##########EAST MAIDAN##########
#Start Protest
country_event = {
	id = ukraine_maidan_east.1
	title = ukraine_maidan_east.1.t
	desc = ukraine_maidan_east.1.d
	picture = GFX_ukr_bluemaidan
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_east.1.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.1.a executed"
		hidden_effect = {
			country_event = { id = ukraine_maidan_east.2 days = 10 }
		}
	}
}
#Deputats Vostok
country_event = {
	id = ukraine_maidan_east.2
	title = ukraine_maidan_east.2.t
	desc = ukraine_maidan_east.2.d
	picture = GFX_ukr_bluemaidan
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_east.2.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.2.a executed"
		hidden_effect = {
			country_event = { id = ukraine_maidan_east.4 days = 10 }
		}
	}
}
#Try negotiate
country_event = {
	id = ukraine_maidan_east.4
	title = ukraine_maidan_east.4.t
	desc = ukraine_maidan_east.4.d
	picture = GFX_negotiations
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_east.4.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.4.a executed"
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		hidden_effect = {
			country_event = { id = ukraine_maidan_east.6 days = 10 }
		}
	}

	option = {
		name = ukraine_maidan_east.4.b
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.4.b executed"
		ai_chance = {
			base = 50
			modifier = {
				add = 100
				is_historical_focus_on = yes
			}
		}
		hidden_effect = {
			country_event = { id = ukraine_maidan_east.5 days = 10 }
		}
	}
}
#Negotiate Loss
country_event = {
	id = ukraine_maidan_east.5
	title = ukraine_maidan_east.5.t
	desc = ukraine_maidan_east.5.d
	picture = GFX_negotiations
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_east.5.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.5.a executed"
		hidden_effect = {
			country_event = { id = ukraine_maidan_east.7 days = 10 }
		}
	}
}
#Organize Opolchenie
country_event = {
	id = ukraine_maidan_east.7
	title = ukraine_maidan_east.7.t
	desc = ukraine_maidan_east.7.d
	picture = GFX_ukr_bluemaidan
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_east.7.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.7.a executed"
		hidden_effect = {
			country_event = { id = ukraine_maidan_east.8 days = 2 }
		}
	}
}
#Choose Strike
country_event = {
	id = ukraine_maidan_east.8
	title = ukraine_maidan_east.8.t
	desc = ukraine_maidan_east.8.d
	picture = GFX_maidan8
	is_triggered_only = yes

	#Odessa
	option = {
		name = ukraine_maidan_east.8.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.8.a executed"
		trigger = {
			has_completed_focus = UKR_party_regions_berkut_extreme_training
			owns_state = 1086
		}
		hidden_effect = {
			if = {
				limit = { date > 2013.12.31 }
				country_event = { id = ukraine_maidan_east.9 days = 12 }
			}
			else = { set_country_flag = UKR_maidan_east_odessa_deferred }
		}
	}

	#Donbass and Kharkiv
	option = {
		name = ukraine_maidan_east.8.b
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.8.b executed"
		trigger = { has_completed_focus = UKR_party_regions_berkut_extreme_training }
		hidden_effect = {
			if = {
				limit = { date > 2013.12.31 }
				country_event = { id = ukraine_maidan_east.10 days = 12 }
			}
			else = { set_country_flag = UKR_maidan_east_donbass_deferred }
		}
	}

	#Prepare More Forces
	option = {
		name = ukraine_maidan_east.8.c
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.8.c executed"
		trigger = { NOT = { has_completed_focus = UKR_party_regions_berkut_extreme_training } }
		hidden_effect = {
			if = {
				limit = { date > 2013.12.31 }
				country_event = { id = ukraine_maidan_east.11 days = 12 }
			}
			else = { set_country_flag = UKR_maidan_east_prepare_deferred }
		}
	}
}
#Odessa Done(DPR and LPR rises)
country_event = {
	id = ukraine_maidan_east.9
	title = ukraine_maidan_east.9.t
	desc = ukraine_maidan_east.9.d
	picture = GFX_donetsk_protests
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_east.9.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.9.a executed"
		UKR_spawn_donbass_war = yes
		hidden_effect = {
			DPR = {
				declare_war_on = {
					target = UKR
					type = annex_everything
				}
			}
			LPR = {
				declare_war_on = {
					target = UKR
					type = annex_everything
				}
			}
			country_event = { id = ukraine_maidan_east.12 days = 3 }
			if = {
				limit = { NOT = { has_completed_focus = UKR_finance_vv } }
				country_event = { id = ukraine_maidan_east.13 days = 4 }
			}
		}
		if = {
			limit = { owns_state = 669 }
			set_country_flag = UKR_crimea_2014_chain_active
			SOV = { country_event = { id = ukraine_maidan.1 days = 1 } }
			custom_effect_tooltip = TT_IF_THEY_ACCEPT
			effect_tooltip = {
				SOV = {
					669 = { add_core_of = SOV }
					set_autonomy = { target = CRM autonomy_state = autonomy_republic_rf }
				}
			}
			custom_effect_tooltip = TT_IF_THEY_REJECT
			effect_tooltip = { SOV = { add_state_core = 669 } }
		}
	}
}
#Odessa Done(Conceq)
country_event = {
	id = ukraine_maidan_east.12
	title = ukraine_maidan_east.12.t
	desc = ukraine_maidan_east.12.d
	picture = GFX_ukr_bluemaidan
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_east.12.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.12.a executed"
		set_temp_variable = { party_popularity_increase = -0.15 }
		set_temp_variable = { temp_outlook_increase = -0.15 }
		change_relative_party_popularity = yes
		add_stability = -0.10
		hidden_effect = { UKR_change_ukraine_nati = yes }
	}
}
#Odessa Done(HPR rises)
country_event = {
	id = ukraine_maidan_east.13
	title = ukraine_maidan_east.13.t
	desc = ukraine_maidan_east.13.d
	picture = GFX_kharkiv_protests
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_east.13.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.13.a executed"
		hidden_effect = { UKR_spawn_HPR_war = yes }
	}
}
#Go to Donbass
country_event = {
	id = ukraine_maidan_east.10
	title = ukraine_maidan_east.10.t
	desc = ukraine_maidan_east.10.d
	picture = GFX_maidan8
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_east.10.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.10.a executed"
		hidden_effect = {
			country_event = { id = ukraine_maidan_east.17 days = 6 }
			if = {
				limit = { NOT = { has_completed_focus = UKR_sbu_alpha } }
				country_event = { id = ukraine_maidan_east.18 days = 2 }
			}
		}
	}
}
#Donbass Done(LPR DPR Rises)
country_event = {
	id = ukraine_maidan_east.17
	title = ukraine_maidan_east.17.t
	desc = ukraine_maidan_east.17.d
	picture = GFX_donetsk_protests
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_east.17.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.17.a executed"
		UKR_spawn_donbass_war = yes
		hidden_effect = {
			DPR = {
				declare_war_on = {
					target = UKR
					type = annex_everything
				}
			}
			LPR = {
				declare_war_on = {
					target = UKR
					type = annex_everything
				}
			}
		}
		set_country_flag = UKR_crimea_2014_chain_active
		SOV = {
			country_event = { id = ukraine_maidan.1 days = 3 }
		}
		custom_effect_tooltip = TT_IF_THEY_ACCEPT
		effect_tooltip = {
			SOV = {
				669 = { add_core_of = SOV }
				set_autonomy = { target = CRM autonomy_state = autonomy_republic_rf }
			}
		}
		custom_effect_tooltip = TT_IF_THEY_REJECT
		effect_tooltip = { SOV = { add_state_core = 669 } }
	}
}
#Donbass Done(OPR Rises)
country_event = {
	id = ukraine_maidan_east.18
	title = ukraine_maidan_east.18.t
	desc = ukraine_maidan_east.18.d
	picture = GFX_odessa_protests
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_east.18.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.18.a executed"
		hidden_effect = { UKR_spawn_OPR_war = yes }
	}
}
#Prepare More Forces(All Rises)
country_event = {
	id = ukraine_maidan_east.11
	title = ukraine_maidan_east.11.t
	desc = ukraine_maidan_east.11.d
	picture = GFX_ukr_army
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_east.11.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.11.a executed"
		set_country_flag = UKR_crimea_2014_chain_active
		CRM = {
			set_country_flag = UKR_subject_agree
			set_country_flag = SOV_subject_republic
			set_country_flag = UKR_crimea_bund
		}
		SOV = {
			country_event = { id = ukraine_maidan.1 days = 3 }
		}
		custom_effect_tooltip = TT_IF_THEY_ACCEPT
		effect_tooltip = {
			SOV = {
				669 = { add_core_of = SOV }
				set_autonomy = { target = CRM autonomy_state = autonomy_republic_rf }
			}
		}
		custom_effect_tooltip = TT_IF_THEY_REJECT
		effect_tooltip = { SOV = { add_state_core = 669 } }
		add_timed_idea = { idea = UKR_maidan_temporary_attack_idea days = 465 }
		hidden_effect = {
			if = {
				limit = { UKR = { owns_state = 696 } }
				UKR_spawn_HPR_war = yes
			}
			if = {
				limit = { UKR = { owns_state = 695 } }
				UKR_spawn_OPR_war = yes
			}
		}
		UKR_spawn_donbass_war = yes
		DPR = {
			declare_war_on = {
				target = UKR
				type = annex_everything
			}
		}
		LPR = {
			declare_war_on = {
				target = UKR
				type = annex_everything
			}
		}
		hidden_effect = {
			country_event = { id = ukraine_maidan_east.19 days = 6 }
		}
	}
}
#Prepare More Forces(Unstable)
country_event = {
	id = ukraine_maidan_east.19
	title = ukraine_maidan_east.19.t
	desc = ukraine_maidan_east.19.d
	picture = GFX_maidan6
	is_triggered_only = yes

	#You are Eastern with Army
	option = {
		name = ukraine_maidan_east.19.a
		trigger = {
			check_variable = { UKR_army_reform_level > 4 }
			OR = {
				has_government = communism
				neutrality_neutral_social_are_in_power = yes
				AND = {
					has_completed_focus = UKR_full_nazbol_transition
					nationalist_monarchists_are_in_power = yes
				}
			}
		}
	}

	#You are Eastern without Army
	option = {
		name = ukraine_maidan_east.19.b
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.19.b executed"
		trigger = {
			check_variable = { UKR_army_reform_level < 5 }
			OR = {
				has_government = communism
				neutrality_neutral_social_are_in_power = yes
				AND = {
					has_completed_focus = UKR_full_nazbol_transition
					nationalist_monarchists_are_in_power = yes
				}
			}
		}
		hidden_effect = {
			country_event = { id = ukraine_maidan_east.21 days = 3 }
		}
	}

	#You are Western
	option = {
		name = ukraine_maidan_east.19.c
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.19.c executed"
		trigger = {
			OR = {
				has_government = democratic
				nationalist_fascist_are_in_power = yes
				neutrality_neutral_libertarians_are_in_power = yes
			}
		}
		hidden_effect = {
			country_event = { id = ukraine_maidan_east.22 days = 3 }
		}
	}
}
#Prepare More Forces(Rise All Nationalist)
country_event = {
	id = ukraine_maidan_east.21
	title = ukraine_maidan_east.21.t
	desc = ukraine_maidan_east.21.d
	picture = GFX_maidan1
	is_triggered_only = yes

	#We are sami
	option = { name = ukraine_maidan_east.21.a }

	#Russia help
	option = {
		name = ukraine_maidan_east.21.b
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.21.b executed"
		SOV = {
			country_event = { id = ukraine_maidan_east.23 days = 3 }
		}
	}
}
#Prepare More Forces(Not Rise)
country_event = {
	id = ukraine_maidan_east.22
	title = ukraine_maidan_east.22.t
	desc = ukraine_maidan_east.22.d
	picture = GFX_maidan2
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_east.22.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.22.a executed"
		add_stability = -0.10
		set_party_index_to_ruling_party = yes
		set_temp_variable = { party_popularity_increase = -0.15 }
		set_temp_variable = { temp_outlook_increase = -0.15 }
		change_relative_party_popularity = yes
	}
}
#Prepare More Forces(Russia help)
country_event = {
	id = ukraine_maidan_east.23
	title = ukraine_maidan_east.23.t
	desc = ukraine_maidan_east.23.d
	picture = GFX_sov_special_o
	is_triggered_only = yes

	#Agree
	option = {
		name = ukraine_maidan_east.23.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.23.a executed"
		country_event = { id = ukraine_maidan_east.24 days = 1 }
	}

	#No
	option = {
		name = ukraine_maidan_east.23.b
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.23.b executed"
		UKR = {
			country_event = { id = ukraine_maidan_east.25 days = 1 }
		}
	}
}
#Prepare More Forces(Russia help choose)
country_event = {
	id = ukraine_maidan_east.24
	title = ukraine_maidan_east.24.t
	desc = ukraine_maidan_east.24.d
	picture = GFX_sov_kto_start
	is_triggered_only = yes

	#Send OMON
	option = {
		name = ukraine_maidan_east.24.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.24.a executed"
		trigger = { has_completed_focus = SOV_alpha_omon_exp }
		set_temp_variable = { percent_change = 1.03 }
		set_temp_variable = { tag_index = SOV }
		set_temp_variable = { influence_target = UKR }
		change_influence_percentage = yes
		UKR = { add_ideas = UKR_russia_help_battalions }
	}

	#Send Rosguard
	option = {
		name = ukraine_maidan_east.24.b
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.24.b executed"
		trigger = { has_completed_focus = SOV_rosgvardia }
		set_temp_variable = { percent_change = 2.03 }
		set_temp_variable = { tag_index = SOV }
		set_temp_variable = { influence_target = UKR }
		change_influence_percentage = yes
		UKR = {
			add_ideas = UKR_russia_help_battalions
			hidden_effect = {
				division_template = {
					name = "Rosgvardia"
					is_locked = yes
					regiments = {
						Militia_Bat = { x = 0 y = 0 }
						Militia_Bat = { x = 0 y = 1 }
						Militia_Bat = { x = 1 y = 0 }
						Militia_Bat = { x = 1 y = 1 }
						Militia_Bat = { x = 1 y = 2 }
						Militia_Bat = { x = 2 y = 1 }
						Arty_Bat = { x = 2 y = 0 }
						Arty_Bat = { x = 2 y = 1 }
						Arty_Bat = { x = 2 y = 2 }
					}
					support = {
						Mot_Recce_Comp = { x = 0 y = 0 }
						L_Engi_Comp = { x = 0 y = 1 }
					}
				}
				random_owned_controlled_state = {
					limit = { ROOT = { has_full_control_of_state = PREV } }
					prioritize = { 698 }
					create_unit = {
						division = "name = \"117th Separate Operational Brigade\" division_template = \"Rosgvardia\" start_experience_factor = 0.9"
						owner = UKR
					}
				}
				random_owned_controlled_state = {
					limit = { ROOT = { has_full_control_of_state = PREV } }
					prioritize = { 698 }
					create_unit = {
						division = "name = \"118th Separate Operational Brigade\" division_template = \"Rosgvardia\" start_experience_factor = 0.9"
						owner = UKR
					}
				}
			}
		}
	}

	#Send Wagner
	option = {
		name = ukraine_maidan_east.24.c
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.24.c executed"
		trigger = { has_completed_focus = SOV_slavic_corps }
		set_temp_variable = { percent_change = 4.03 }
		set_temp_variable = { tag_index = SOV }
		set_temp_variable = { influence_target = UKR }
		change_influence_percentage = yes
		UKR = {
			add_ideas = UKR_russia_help_battalions
			hidden_effect = {
				division_template = {
					name = "Wagner Light Unit"
					is_locked = yes
					regiments = {
						L_Inf_Bat = { x = 0 y = 0 }
						L_Inf_Bat = { x = 0 y = 1 }
						L_Inf_Bat = { x = 0 y = 2 }
						L_Inf_Bat = { x = 0 y = 3 }
						Arty_Bat = { x = 0 y = 4 }
						L_Inf_Bat = { x = 1 y = 0 }
						L_Inf_Bat = { x = 1 y = 1 }
						L_Inf_Bat = { x = 1 y = 2 }
						L_Inf_Bat = { x = 1 y = 3 }
						Arty_Bat = { x = 1 y = 4 }
					}
					support = {
						L_Recce_Comp = { x = 0 y = 0 }
						L_Engi_Comp = { x = 0 y = 1 }
					}
					priority = 2
				}
				random_owned_controlled_state = {
					limit = { ROOT = { has_full_control_of_state = PREV } }
					prioritize = { 698 }
					create_unit = {
						division = "name = \"Wagner Light Unit Brigade\" division_template = \"Wagner Light Unit\" start_experience_factor = 0.9"
						owner = UKR
					}
				}
				random_owned_controlled_state = {
					limit = { ROOT = { has_full_control_of_state = PREV } }
					prioritize = { 698 }
					create_unit = {
						division = "name = \"Wagner Light Unit Brigade\" division_template = \"Wagner Light Unit\" start_experience_factor = 0.9"
						owner = UKR
					}
				}
			}
		}
	}
}

#Prepare More Forces(Russia not help)
country_event = {
	id = ukraine_maidan_east.25
	title = ukraine_maidan_east.25.t
	desc = ukraine_maidan_east.25.d
	picture = GFX_t90
	is_triggered_only = yes

	option = { name = ukraine_maidan_east.25.a }
}
#Negotiate Win
country_event = {
	id = ukraine_maidan_east.6
	title = ukraine_maidan_east.6.t
	desc = ukraine_maidan_east.6.d
	picture = GFX_negotiations
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_east.6.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.6.a executed"
		hidden_effect = {
			country_event = { id = ukraine_maidan_east.26 days = 10 }
		}
	}
}
#Negotiate Federalisation or Not
country_event = {
	id = ukraine_maidan_east.26
	title = ukraine_maidan_east.26.t
	desc = ukraine_maidan_east.26.d
	picture = GFX_ukr_federalisation_dumbass
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_east.26.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.26.a executed"
		hidden_effect = {
			country_event = { id = ukraine_maidan_east.27 days = 2 }
		}
	}

	option = {
		name = ukraine_maidan_east.26.b
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.26.b executed"
		hidden_effect = {
			country_event = { id = ukraine_maidan_east.5 days = 10 }
		}
	}
}
#Negotiate Federalisation YES
country_event = {
	id = ukraine_maidan_east.27
	title = ukraine_maidan_east.27.t
	desc = ukraine_maidan_east.27.d
	picture = GFX_ukr_federalisation_dumbass
	is_triggered_only = yes

	option = {
		name = ukraine_maidan_east.27.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_east.27.a executed"
		add_stability = 0.15
		DPR = {
			drop_cosmetic_tag = yes
			clear_variable = dynamic_flag_variant
			set_cosmetic_tag = DPR_donbass
			clr_country_flag = dynamic_flag
			set_country_flag = UKR_subject_agree
			if = {
				limit = { UKR = { owns_state = 1030 } }
				transfer_state = 1030
				add_state_core = 1030
			}
			if = {
				limit = { UKR = { owns_state = 693 } }
				transfer_state = 693
				add_state_core = 693
			}
			if = {
				limit = { UKR = { owns_state = 1075 } }
				transfer_state = 1075
				add_state_core = 1075
			}
			if = {
				limit = { UKR = { owns_state = 1076 } }
				transfer_state = 1076
				add_state_core = 1076
			}
		}
		set_autonomy = {
			target = DPR
			autonomy_state = autonomy_republic_ukr
		}
		DPR = {
			if = {
				limit = { NOT = { has_idea = UKR_republic_ukr } }
				add_ideas = UKR_republic_ukr
			}
		}
		set_temp_variable = { percent_change = 10.03 }
		set_temp_variable = { tag_index = UKR }
		set_temp_variable = { influence_target = DPR }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = -10.03 }
		set_temp_variable = { tag_index = SOV }
		set_temp_variable = { influence_target = DPR }
		change_influence_percentage = yes
	}
}
##########MAIN MAIDAN##########
##Annexation of Crimea if the Russian Player doesn't already Own the Crimea
country_event = {
	id = ukraine_maidan.1
	title = ukraine_maidan.1.t
	desc = ukraine_maidan.1.d
	picture = GFX_russia_crimea_troops
	is_triggered_only = yes

	trigger = {
		UKR = {
			country_exists = UKR
			NOT = { country_exists = CRM }
			owns_state = 669
			NOT = { has_country_flag = UKR_crimea_2004_departed }
		}
	}

	option = { ##Submit to Russian Pressure
		name = ukraine_maidan.1.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan.1.a executed"
		trigger = {
			NOT = { country_exists = CRM }
			UKR = {
				owns_state = 669
				NOT = { has_country_flag = UKR_crimea_2004_departed }
			}
		}
		UKR = { set_country_flag = UKR_crimea_2014_chain_active }
		add_named_threat = { threat = 5 name = threat_SOV_annexiation_of_crimea }
		669 = {
			add_core_of = SOV
		}
		country_event = { id = ukraine_maidan.2 days = 1 }
		hidden_effect = {
			UKR = { release = CRM }
			669 = { add_core_of = UKR }
			CRM = {
				set_country_flag = UKR_crimea_bund
				set_country_flag = SOV_subject_republic
				set_country_flag = UKR_subject_agree
				set_country_flag = SUB_russ_polit
				update_party_name = yes
			}
			set_autonomy = {
				target = CRM
				autonomy_state = autonomy_republic_rf
			}
			UKR = { add_opinion_modifier = { target = SOV modifier = annexed_ukraine } }
			reverse_add_opinion_modifier = { target = UKR modifier = annexed_ukraine_trade }
			CRM = {
				add_ideas = DPR_bivaluta
			}
		}
		ai_chance = {
			base = 50
			modifier = {
				add = 2
				SOV = { has_reactionary_government_or_in_coalition = yes }
			}
			modifier = {
				add = 2
				is_historical_focus_on = yes
			}
		}
	}

	option = { ##Crimea is Ukrainian!
		name = ukraine_maidan.1.b
		log = "[GetDateText]: [This.GetName]: ukraine_maidan.1.b executed"
		trigger = {
			NOT = { country_exists = CRM }
			UKR = {
				owns_state = 669
				NOT = { has_country_flag = UKR_crimea_2004_departed }
			}
		}
		UKR = { set_country_flag = UKR_crimea_2014_chain_active }
		add_state_core = 669
		country_event = ukraine_maidan.3
		hidden_effect = {
			UKR = { release = CRM }
			669 = { add_core_of = UKR }
			CRM = {
				set_country_flag = UKR_crimea_bund
				set_country_flag = UKR_subject_agree
				set_country_flag = SOV_subject_republic
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				UKR = {
					OR = {
						has_war_with = NOV
						has_war_with = DPR
						has_war_with = LPR
					}
				}
				add = 15
			}
			modifier = {
				add = 2
				is_historical_focus_on = no
			}
			modifier = {
				add = 2
				UKR = { has_government = communism }
			}
			modifier = {
				add = 0.5
				UKR = { has_government = democratic }
			}
			modifier = {
				add = 0
				OR = {
					UKR = { has_idea = EU_member }
					UKR = { has_idea = NATO_member }
				}
			}
		}
	}
}
#Russia Annexes Crimea
country_event = {
	id = ukraine_maidan.2
	title = ukraine_maidan.2.t
	desc = ukraine_maidan.2.d
	picture = GFX_russia_crimea_troops
	is_triggered_only = yes

	trigger = { UKR = { has_country_flag = UKR_crimea_2014_chain_active } }

	option = {
		name = ukraine_maidan.2.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan.2.a executed"
		add_opinion_modifier = { target = UKR modifier = rival }
		reverse_add_opinion_modifier = { target = SOV modifier = rival }
		add_war_support = 0.05
		UKR = {
			country_event = { id = ukraine_maidan_crm_annex.1 days = 2 }
		}
		CRM = {
			set_country_flag = SOV_subject_republic
			set_country_flag = SUB_russ_polit
			update_party_name = yes
		}
		set_autonomy = {
			target = CRM
			autonomy_state = autonomy_republic_rf
		}
		custom_effect_tooltip = SOV_subjectsepar_minus_tt
		hidden_effect = {
			CRM = { add_ideas = SUB_small_taxes }
			set_temp_variable = { modify_subjectnalogs = 3 }
			modify_subjectnalogs_support = yes
			SUB_separatism_minus_subject = yes
		}
		news_event = ukraine_news.8
	}
}

#Ukrainian answer to Crimea Annexation
country_event = {
	id = ukraine_maidan_crm_annex.1
	title = ukraine_maidan_crm_annex.1.t
	desc = ukraine_maidan_crm_annex.1.d
	picture = GFX_russia_crimea_troops
	is_triggered_only = yes

	trigger = { has_country_flag = UKR_crimea_2014_chain_active }

	option = {
		name = ukraine_maidan_crm_annex.1.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_crm_annex.1.a executed"
		clr_country_flag = UKR_crimea_2014_chain_active
		ai_chance = { base = 100 }
	}

	option = {
		name = ukraine_maidan_crm_annex.1.b
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_crm_annex.1.b executed"
		clr_country_flag = UKR_crimea_2014_chain_active
		ai_chance = {
			base = 0
			modifier = {
				add = 10
				has_war_with = SOV
			}
			modifier = {
				add = 5
				has_idea = NATO_member
			}
		}
		declare_war_on = {
			target = CRM
			type = annex_everything
		}
	}
}

#Russia Denies the People of Crimea
country_event = {
	id = ukraine_maidan.3
	title = ukraine_maidan.3.t
	desc = ukraine_maidan.3.d
	picture = GFX_negotiations
	is_triggered_only = yes

	trigger = { UKR = { has_country_flag = UKR_crimea_2014_chain_active } }

	option = {
		name = ukraine_maidan.3.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan.3.a executed"
		UKR = { clr_country_flag = UKR_crimea_2014_chain_active }
		add_opinion_modifier = { target = SOV modifier = has_expressed_loyalty }
		reverse_add_opinion_modifier = { target = SOV modifier = has_expressed_loyalty }
		add_stability = 0.05
	}
}
###Minsk Agreements
country_event = {
	id = ukraine_maidan.4
	title = ukraine_maidan.4.t
	desc = ukraine_maidan.4.d
	picture = GFX_negotiations
	is_triggered_only = yes

	trigger = {
		OR = {
			DPR = { has_war_with = UKR }
			HPR = { has_war_with = UKR }
			LPR = { has_war_with = UKR }
			OPR = { has_war_with = UKR }
			country_exists = DPR
			country_exists = LPR
			country_exists = HPR
			country_exists = OPR
		}
	}

	option = {
		name = ukraine_maidan.4.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan.4.a executed"
		remove_ideas = UKR_civil_war
		donetsk_minsk_control = yes
		kharkiv_minsk_control = yes
		lugansk_minsk_control = yes
		odessa_minsk_control = yes
		if = {
			limit = {
				country_exists = DPR
				DPR = { has_war_with = UKR }
			}
			UKR = { white_peace = DPR }
		}
		if = {
			limit = {
				country_exists = LPR
				LPR = { has_war_with = UKR }
			}
			UKR = { white_peace = LPR }
		}
		if = {
			limit = {
				country_exists = HPR
				HPR = { has_war_with = UKR }
			}
			UKR = { white_peace = HPR }
		}
		if = {
			limit = {
				country_exists = OPR
				OPR = { has_war_with = UKR }
			}
			UKR = { white_peace = OPR }
		}
		ai_chance = {
			base = 70
			modifier = {
				add = 25
				surrender_progress > 0.1
			}
		}
	}

	option = {
		name = ukraine_maidan.4.b
		ai_chance = {
			base = 30
			modifier = {
				add = -25
				surrender_progress > 0.1
			}
		}
	}
}
###OSCE Observers (UKR and republics)
country_event = {
	id = ukraine_maidan.6
	title = ukraine_maidan.6.t
	desc = ukraine_maidan.6.d
	picture = GFX_obse_ukr
	is_triggered_only = yes

	option = {
		name = ukraine_maidan.6.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan.6.a executed"
		if = {
			limit = { original_tag = UKR }
			add_ideas = UKR_poroh_osce_ukr
		}
		else = { add_ideas = UKR_poroh_osce_donbass }
		ai_chance = { base = 100 }
	}
}
###Minsk Federalisation
country_event = {
	id = ukraine_maidan.8
	title = ukraine_maidan.8.t
	desc = ukraine_maidan.8.d
	picture = GFX_ukr_federalisation_dumbass
	is_triggered_only = yes

	option = {
		name = ukraine_maidan.8.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan.8.a executed"
		UKR = {
			set_autonomy = {
				target = ROOT
				autonomy_state = autonomy_republic_ukr
			}
		}
		if = {
			limit = { NOT = { has_idea = UKR_republic_ukr } }
			add_ideas = UKR_republic_ukr
		}
		ai_chance = {
			base = 5
			modifier = {
				add = 40
				surrender_progress > 0.3
			}
			modifier = {
				add = 20
				has_opinion = { target = FROM value > 0 }
			}
		}
	}

	option = {
		name = ukraine_maidan.8.b
		ai_chance = {
			base = 95
			modifier = {
				add = -40
				surrender_progress > 0.3
			}
			modifier = {
				add = -20
				has_opinion = { target = FROM value > 0 }
			}
		}
	}
}
###Work with RF
country_event = {
	id = ukraine_maidan.9
	title = ukraine_maidan.9.t
	desc = ukraine_maidan.9.d
	picture = GFX_negotiations
	is_triggered_only = yes

	option = {
		name = ukraine_maidan.9.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan.9.a executed"
		increase_economic_growth = yes
		set_temp_variable = { percent_change = 5.03 }
		set_temp_variable = { tag_index = SOV }
		set_temp_variable = { influence_target = UKR }
		change_influence_percentage = yes
	}
}
###Choose Reform
country_event = {
	id = ukraine_maidan.16
	title = ukraine_maidan.16.t
	desc = ukraine_maidan.16.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = ukraine_maidan.16.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan.16.a executed"
		trigger = {
			OR = {
				has_idea = UKR_land_reform_idea
				has_idea = UKR_land_reform_idea1
				has_idea = UKR_land_reform_idea2
				has_idea = UKR_land_reform_idea3
			}
		}
		UKR_idea_lands_reforms_plus = yes
		set_temp_variable = { treasury_change = -7.5 }
		modify_treasury_effect = yes
		add_political_power = -60
	}

	option = {
		name = ukraine_maidan.16.b
		log = "[GetDateText]: [This.GetName]: ukraine_maidan.16.b executed"
		trigger = {
			check_variable = { UKR_roads_level > 1 }
			check_variable = { UKR_roads_level < 6 }
		}
		UKR_idea_ukraine_infrastructure = yes
		set_temp_variable = { treasury_change = -15.5 }
		modify_treasury_effect = yes
	}

	option = {
		name = ukraine_maidan.16.c
		log = "[GetDateText]: [This.GetName]: ukraine_maidan.16.c executed"
		add_to_variable = { UKR_verkhovna_support = 35 }
		clamp_variable = { var = UKR_verkhovna_support min = 0 max = 450 }
		custom_effect_tooltip = UKR_gain_some_seats_TT
		add_political_power = -120
	}
}
###Party choice
country_event = {
	id = ukraine_maidan_overthrow.1
	title = ukraine_maidan_overthrow.1.t
	desc = ukraine_maidan_overthrow.1.d
	picture = GFX_maidan3
	is_triggered_only = yes

	option = {
		clr_country_flag = UKR_maidan_go_western
		clr_country_flag = UKR_maidan_go_emerging
		clr_country_flag = UKR_maidan_go_non_aligned
		clr_country_flag = UKR_maidan_go_nationalist
		name = ukraine_maidan_overthrow.1.a
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_overthrow.1.a executed"
		set_country_flag = UKR_maidan_go_western
		hidden_effect = { country_event = ukraine_maidan_overthrow.2 }
		ai_chance = {
			base = 70
			modifier = {
				add = 100
				UKR_ai_historical_path = yes
			}
		}
	}

	option = {
		clr_country_flag = UKR_maidan_go_western
		clr_country_flag = UKR_maidan_go_emerging
		clr_country_flag = UKR_maidan_go_non_aligned
		clr_country_flag = UKR_maidan_go_nationalist
		name = ukraine_maidan_overthrow.1.b
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_overthrow.1.b executed"
		set_country_flag = UKR_maidan_go_emerging
		hidden_effect = { country_event = ukraine_maidan_overthrow.2 }
		ai_chance = {
			base = 30
			modifier = {
				factor = 0
				UKR_ai_historical_path = yes
			}
		}
	}

	option = {
		clr_country_flag = UKR_maidan_go_western
		clr_country_flag = UKR_maidan_go_emerging
		clr_country_flag = UKR_maidan_go_non_aligned
		clr_country_flag = UKR_maidan_go_nationalist
		name = ukraine_maidan_overthrow.1.c
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_overthrow.1.c executed"
		set_country_flag = UKR_maidan_go_non_aligned
		hidden_effect = { country_event = ukraine_maidan_overthrow.2 }
		ai_chance = {
			base = 5
			modifier = {
				factor = 0
				UKR_ai_historical_path = yes
			}
		}
	}

	option = {
		clr_country_flag = UKR_maidan_go_western
		clr_country_flag = UKR_maidan_go_emerging
		clr_country_flag = UKR_maidan_go_non_aligned
		clr_country_flag = UKR_maidan_go_nationalist
		name = ukraine_maidan_overthrow.1.e
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_overthrow.1.e executed"
		set_country_flag = UKR_maidan_go_nationalist
		hidden_effect = { country_event = ukraine_maidan_overthrow.2 }
		ai_chance = {
			base = 2
			modifier = {
				factor = 0
				UKR_ai_historical_path = yes
			}
		}
	}
}

country_event = {
	id = ukraine_maidan_overthrow.2
	title = ukraine_maidan_overthrow.2.t
	desc = ukraine_maidan_overthrow.2.d
	picture = GFX_maidan3
	is_triggered_only = yes
	fire_only_once = no

	option = {
		name = "[liberalism_L]"
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_overthrow.2.liberalism executed"
		ai_chance = {
			base = 70
			modifier = {
				add = 200
				UKR_ai_historical_path = yes
			}
		}
		set_temp_variable = { rul_party_temp = 1 }
		set_temp_variable = { disable_elections = 0 }
		change_ruling_party_effect = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.10 }
		set_temp_variable = { temp_outlook_increase = 0.10 }
		change_relative_party_popularity = yes
		hidden_effect = { UKR_start_republic_wave = yes }
		trigger = { has_country_flag = UKR_maidan_go_western }
	}

	option = {
		name = "[socialism_L]"
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_overthrow.2.socialism executed"
		ai_chance = {
			base = 30
			modifier = {
				factor = 0
				UKR_ai_historical_path = yes
			}
		}
		set_temp_variable = { rul_party_temp = 0 }
		set_temp_variable = { disable_elections = 0 }
		change_ruling_party_effect = yes
		set_temp_variable = { add_col_one = 16 }
		add_coalition_members_effect = yes
		set_temp_variable = { party_index = 0 }
		set_temp_variable = { party_popularity_increase = 0.10 }
		set_temp_variable = { temp_outlook_increase = 0.10 }
		change_relative_party_popularity = yes
		hidden_effect = { UKR_start_republic_wave = yes }
		trigger = { has_country_flag = UKR_maidan_go_western has_country_flag = UKR_zelensky_formed }
	}

	option = {
		name = "[communist_state_L]"
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_overthrow.2.communist_state executed"
		ai_chance = {
			base = 25
			modifier = {
				factor = 0
				UKR_ai_historical_path = yes
			}
		}
		set_temp_variable = { rul_party_temp = 4 }
		set_temp_variable = { disable_elections = 1 }
		change_ruling_party_effect = yes
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = 0.10 }
		set_temp_variable = { temp_outlook_increase = 0.10 }
		change_relative_party_popularity = yes
		hidden_effect = { UKR_start_republic_wave = yes }
		trigger = { has_country_flag = UKR_maidan_go_emerging }
	}

	option = {
		name = "[Conservative_L]"
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_overthrow.2.conservative executed"
		ai_chance = {
			base = 50
			modifier = {
				add = 200
				UKR_ai_historical_path = yes
			}
		}
		set_temp_variable = { rul_party_temp = 6 }
		set_temp_variable = { disable_elections = 0 }
		change_ruling_party_effect = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.10 }
		set_temp_variable = { temp_outlook_increase = 0.10 }
		change_relative_party_popularity = yes
		hidden_effect = { UKR_start_republic_wave = yes }
		trigger = { has_country_flag = UKR_maidan_go_emerging }
	}

	option = {
		name = "[Autocracy_L]"
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_overthrow.2.autocracy executed"
		ai_chance = {
			base = 25
			modifier = {
				factor = 0
				UKR_ai_historical_path = yes
			}
		}
		set_temp_variable = { rul_party_temp = 7 }
		set_temp_variable = { disable_elections = 1 }
		change_ruling_party_effect = yes
		set_temp_variable = { party_index = 7 }
		set_temp_variable = { party_popularity_increase = 0.10 }
		set_temp_variable = { temp_outlook_increase = 0.10 }
		change_relative_party_popularity = yes
		hidden_effect = { UKR_start_republic_wave = yes }
		trigger = { has_country_flag = UKR_maidan_go_emerging }
	}

	option = {
		name = "[Neutral_Libertarian_L]"
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_overthrow.2.neutral_libertarian executed"
		ai_chance = { base = 50 }
		set_temp_variable = { rul_party_temp = 16 }
		set_temp_variable = { disable_elections = 0 }
		change_ruling_party_effect = yes
		set_temp_variable = { party_index = 16 }
		set_temp_variable = { party_popularity_increase = 0.10 }
		set_temp_variable = { temp_outlook_increase = 0.10 }
		change_relative_party_popularity = yes
		hidden_effect = { UKR_start_republic_wave = yes }
		trigger = { has_country_flag = UKR_maidan_go_non_aligned }
	}

	option = {
		name = "[neutral_Social_L]"
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_overthrow.2.neutral_social executed"
		ai_chance = { base = 50 }
		set_temp_variable = { rul_party_temp = 18 }
		set_temp_variable = { disable_elections = 0 }
		change_ruling_party_effect = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = 0.10 }
		set_temp_variable = { temp_outlook_increase = 0.10 }
		hidden_effect = { UKR_start_republic_wave = yes }
		change_relative_party_popularity = yes
		trigger = { has_country_flag = UKR_maidan_go_non_aligned }
	}

	option = {
		name = "[Nat_Fascism_L]"
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_overthrow.2.nat_fascism executed"
		ai_chance = {
			base = 100
			modifier = {
				factor = 0
				UKR_ai_historical_path = yes
			}
		}
		set_temp_variable = { rul_party_temp = 21 }
		set_temp_variable = { disable_elections = 1 }
		change_ruling_party_effect = yes
		set_temp_variable = { party_index = 21 }
		set_temp_variable = { party_popularity_increase = 0.10 }
		set_temp_variable = { temp_outlook_increase = 0.10 }
		change_relative_party_popularity = yes
		hidden_effect = { UKR_start_republic_wave = yes }
		trigger = { has_country_flag = UKR_maidan_go_nationalist }
	}

	option = {
		name = ukraine_maidan_overthrow.2.e
		log = "[GetDateText]: [This.GetName]: ukraine_maidan_overthrow.2.e executed"
		ai_chance = { base = 0 }
		country_event = ukraine_maidan_overthrow.1
	}
}



##########NEWS##########
###Ukrainian Civil War!
news_event = {
	id = ukraine_news.7
	title = ukraine_news.7.t
	desc = ukraine_news.7.d
	picture = GFX_news_ukraine_civil_war
	is_triggered_only = yes

	option = {
		name = ukraine_news.7.a
		trigger = { tag = UKR }
	}

	option = {
		name = ukraine_news.7.b
		trigger = {
			OR = {
				tag = NOV
				tag = DPR
				tag = LPR
			}
		}
	}

	option = {
		name = ukraine_news.7.c
		trigger = {
			NOT = { tag = UKR }
			NOT = { tag = NOV }
			NOT = { tag = DPR }
			NOT = { tag = LPR }
		}
	}
}
##Annexation of the Crimea
news_event = {
	id = ukraine_news.8
	title = ukraine_news.8.t
	desc = ukraine_news.8.d
	picture = GFX_russia_crimea_news
	is_triggered_only = yes

	option = {
		name = ukraine_news.8.a
		trigger = { tag = UKR }
	}

	option = {
		name = ukraine_news.8.b
		trigger = {
			OR = {
				tag = SOV
				tag = NOV
				tag = DPR
				tag = LPR
			}
		}
	}

	option = {
		name = ukraine_news.8.c
		trigger = {
			NOT = { tag = UKR }
			NOT = { tag = SOV }
			NOT = { tag = NOV }
			NOT = { tag = DPR }
			NOT = { tag = LPR }
		}
	}
}
##############KUCHMA##############
#Prepare for Protest
country_event = {
	id = ukraine_kuchma.2
	title = ukraine_kuchma.2.t
	desc = ukraine_kuchma.2.d
	picture = GFX_ukr_orange_maidan
	is_triggered_only = yes

	option = {
		name = ukraine_kuchma.2.a
		log = "[GetDateText]: [This.GetName]: ukraine_kuchma.2.a executed"
		ai_chance = {
			base = 40
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		add_political_power = -45
		if = {
			limit = { NOT = { has_country_flag = ukr_revoult_bilo } }
			set_temp_variable = { tension_change = 3 }
			UKR_add_political_tension = yes
		}
	}

	option = {
		name = ukraine_kuchma.2.b
		log = "[GetDateText]: [This.GetName]: ukraine_kuchma.2.b executed"
		ai_chance = {
			base = 60
			modifier = {
				add = 100
				is_historical_focus_on = yes
			}
		}
		if = {
			limit = { NOT = { has_country_flag = ukr_revoult_bilo } }
			set_temp_variable = { tension_change = 1 }
			UKR_add_political_tension = yes
		}
	}
}
#Friend with Donbass
country_event = {
	id = ukraine_kuchma.12
	title = ukraine_kuchma.12.t
	desc = ukraine_kuchma.12.d
	picture = GFX_ukr_donbass
	is_triggered_only = yes

	option = {
		name = ukraine_kuchma.12.a
		log = "[GetDateText]: [This.GetName]: ukraine_kuchma.12.a executed"
		ai_chance = {
			base = 60
			modifier = {
				add = 100
				is_historical_focus_on = yes
			}
		}
		add_political_power = -75
		if = {
			limit = { NOT = { has_country_flag = ukr_revoult_bilo } }
			set_temp_variable = { tension_change = 3 }
			UKR_add_political_tension = yes
		}
	}

	option = {
		name = ukraine_kuchma.12.b
		log = "[GetDateText]: [This.GetName]: ukraine_kuchma.12.b executed"
		ai_chance = {
			base = 40
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		if = {
			limit = { NOT = { has_country_flag = ukr_revoult_bilo } }
			set_temp_variable = { tension_change = 5 }
			UKR_add_political_tension = yes
		}
	}
}
#Non-historic try to stay
country_event = {
	id = ukraine_kuchma.13
	title = ukraine_kuchma.13.t
	desc = ukraine_kuchma.13.d
	picture = GFX_ukr_bluemaidan
	is_triggered_only = yes

	option = { name = ukraine_kuchma.13.a }
}
#AI fallback for the 2004 Orange Revolution
country_event = {
	id = ukraine_revolution.1
	title = ukraine_revolution.1.t
	desc = ukraine_revolution.1.d
	picture = GFX_ukr_orange_maidan
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		is_ai = yes
		neutrality_neutral_conservatism_are_in_power = yes
		NOT = { has_country_flag = UKR_orange_2004_started }
		NOT = { has_country_flag = UKR_orange_2004_resolved }
		NOT = { has_country_flag = UKR_orange_maidan_2004 }
		NOT = { has_country_flag = UKR_western_crisis_2004 }
		NOT = { has_country_flag = UKR_seuar_rise }
		NOT = { has_completed_focus = UKR_negotiate_orange_maidan }
		NOT = { has_completed_focus = UKR_lyvochkin }
	}

	option = {
		name = ukraine_revolution.1.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.1.a executed"
		set_country_flag = UKR_orange_2004_started
		country_event = { id = ukraine_kuchma.14 days = 1 }
		ai_chance = { base = 100 }
	}
}
#Severodonetsk Congress
country_event = {
	id = ukraine_revolution.10
	title = ukraine_revolution.10.t
	desc = ukraine_revolution.10.d
	picture = GFX_ukr_bluemaidan
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		has_country_flag = UKR_orange_maidan_2004
		has_country_flag = UKR_seuar_rise
		date > 2004.8.31
		country_exists = SOV
		UKR_pro_russian_support_30 = yes
	}

	option = {
		name = ukraine_revolution.10.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.10.a executed"
		set_country_flag = UKR_seuar_congress_only
		set_temp_variable = { percent_change = 5 }
		set_temp_variable = { tag_index = SOV }
		set_temp_variable = { influence_target = UKR }
		change_influence_percentage = yes
		set_temp_variable = { tension_change = 5 }
		UKR_add_political_tension = yes
		hidden_effect = {
			if = {
				limit = { NOT = { has_country_flag = UKR_provisional_flavor_congress_queued } }
				set_country_flag = UKR_provisional_flavor_congress_queued
				country_event = { id = ukraine_revolution.50 days = 1 }
			}
		}
		ai_chance = {
			base = 80
			modifier = {
				add = 160
				is_historical_focus_on = yes
			}
		}
	}

	option = {
		name = ukraine_revolution.10.b
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.10.b executed"
		set_country_flag = UKR_seuar_autonomy_requested
		set_country_flag = UKR_seuar_struggle_active
		set_country_flag = UKR_seuar_resolution_scheduled
		set_power_balance = {
			id = UKR_seuar_balance
			left_side = UKR_seuar_kyiv_control
			right_side = UKR_seuar_autonomy_side
			set_value = 0
		}
		add_timed_idea = {
			idea = UKR_seuar_autonomy_movement
			days = 120
		}
		set_temp_variable = { tension_change = 12 }
		UKR_add_political_tension = yes
		hidden_effect = {
			if = {
				limit = { NOT = { has_country_flag = UKR_provisional_flavor_congress_queued } }
				set_country_flag = UKR_provisional_flavor_congress_queued
				country_event = { id = ukraine_revolution.50 days = 1 }
			}
			country_event = { id = ukraine_revolution.11 days = 120 }
		}
		ai_chance = {
			base = 20
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
			modifier = {
				add = 30
				has_global_flag = UKR_REGIONS_FOCUS_PATH
			}
		}
	}
}
#Resolve the SEUAR autonomy struggle
country_event = {
	id = ukraine_revolution.11
	title = ukraine_revolution.11.t
	desc = ukraine_revolution.11.d
	picture = GFX_ukr_bluemaidan
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		has_country_flag = UKR_seuar_autonomy_requested
		has_country_flag = UKR_seuar_struggle_active
		has_country_flag = UKR_seuar_resolution_scheduled
		has_power_balance = { id = UKR_seuar_balance }
	}

	option = {
		name = ukraine_revolution.11.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.11.a executed"
		hidden_effect = {
			if = {
				limit = { power_balance_value = { id = UKR_seuar_balance value > 0.25 } }
				country_event = { id = ukraine_revolution.12 days = 1 }
			}
			else_if = {
				limit = { power_balance_value = { id = UKR_seuar_balance value < -0.25 } }
				set_country_flag = UKR_seuar_suppressed
				set_country_flag = UKR_seuar_legacy
				set_temp_variable = { tension_change = 10 }
				UKR_add_political_tension = yes
				UKR_end_seuar_struggle = yes
			}
			else = {
				if = {
					limit = { NOT = { has_country_flag = UKR_seuar_congress_only } }
					set_country_flag = UKR_seuar_congress_only
					set_country_flag = UKR_seuar_legacy
				}
				set_temp_variable = { tension_change = 2 }
				UKR_add_political_tension = yes
				UKR_end_seuar_struggle = yes
			}
		}
	}
}
#Activate the South-Eastern Ukrainian Autonomous Republic
country_event = {
	id = ukraine_revolution.12
	title = ukraine_revolution.12.t
	desc = ukraine_revolution.12.d
	picture = GFX_ukr_bluemaidan
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		has_country_flag = UKR_seuar_autonomy_requested
		has_country_flag = UKR_seuar_struggle_active
	}

	option = {
		name = ukraine_revolution.12.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.12.a executed"
		if = {
			limit = { NOT = { country_exists = SEU } }
			693 = { add_core_of = SEU }
			release = SEU
		}
		if = {
			limit = { country_exists = SEU }
			SEU = {
				set_country_flag = UKR_subject_agree
				set_country_flag = UKR_provisional_republic_focus_setup
				if = {
					limit = { NOT = { has_focus_tree = ukr_provisional_republic_focus } }
					load_focus_tree = { tree = ukr_provisional_republic_focus keep_completed = yes }
				}
				if = {
					limit = { NOT = { has_country_leader = { name = "Viktor Yanukovych" } } }
					create_country_leader = {
						name = "Viktor Yanukovych"
						picture = "gfx/leaders/UKR/Viktor_Yanukovych.dds"
						ideology = Conservative
						traits = {
							emerging_Conservative
							pro_russia
							cautious
						}
					}
				}
				if = {
					limit = { UKR = { owns_state = 693 } }
					transfer_state = 693
				}
				if = {
					limit = { UKR = { owns_state = 1030 } }
					transfer_state = 1030
				}
				if = {
					limit = { UKR = { owns_state = 1075 } }
					transfer_state = 1075
				}
				if = {
					limit = { UKR = { owns_state = 1076 } }
					transfer_state = 1076
				}
				add_state_core = 693
				add_state_core = 1030
				add_state_core = 1075
				add_state_core = 1076
				add_state_core = 696
				add_state_core = 694
				add_state_core = 1087
				add_state_core = 1085
				add_state_core = 1086
				add_state_core = 695
				add_ideas = UKR_republic_ukr
				if = {
					limit = { is_ai = yes }
					give_AI_templates = yes
				}
			}
			set_autonomy = {
				target = SEU
				autonomy_state = autonomy_republic_ukr
			}
		}
		set_country_flag = UKR_seuar_autonomy_declared
		set_country_flag = UKR_seuar_legacy
		UKR_end_seuar_struggle = yes
	}
}
#Peaceful reintegration of SEUAR
country_event = {
	id = ukraine_revolution.13
	title = ukraine_revolution.13.t
	desc = ukraine_revolution.13.d
	picture = GFX_negotiations
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		country_exists = SEU
		SEU = {
			is_subject_of = UKR
			has_autonomy_state = autonomy_republic_ukr
		}
		NOT = { has_war_with = SEU }
	}

	option = {
		name = ukraine_revolution.13.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.13.a executed"
		annex_country = { target = SEU transfer_troops = yes }
		UKR_cleanup_seu_rework = yes
		set_country_flag = UKR_seuar_reintegrated
		add_timed_idea = {
			idea = UKR_constitutional_compromise_idea
			days = 365
		}
		set_temp_variable = { tension_change = -15 }
		UKR_add_political_tension = yes
		if = {
			limit = { country_exists = SOV }
			SOV = {
				add_opinion_modifier = { target = UKR modifier = recent_actions_positive }
				set_temp_variable = { percent_change = 10 }
				set_temp_variable = { tag_index = SOV }
				set_temp_variable = { influence_target = UKR }
				change_influence_percentage = yes
			}
		}
	}
}
#SEUAR Border War ceasefire
country_event = {
	id = ukraine_revolution.14
	title = ukraine_revolution.14.t
	desc = ukraine_revolution.14.d
	picture = GFX_negotiations
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		country_exists = SEU
		has_country_flag = UKR_seuar_border_war
		has_war_with = SEU
		NOT = { has_country_flag = UKR_seuar_ceasefire_offered }
	}

	option = {
		name = ukraine_revolution.14.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.14.a executed"
		set_country_flag = UKR_seuar_ceasefire_offered
		white_peace = SEU
		ai_chance = {
			base = 80
			modifier = {
				add = 20
				is_historical_focus_on = yes
			}
		}
	}

	option = {
		name = ukraine_revolution.14.b
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.14.b executed"
		set_country_flag = UKR_seuar_ceasefire_offered
		ai_chance = {
			base = 20
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}
#Russian intervention in the SEUAR Border War
country_event = {
	id = ukraine_revolution.15
	title = ukraine_revolution.15.t
	desc = ukraine_revolution.15.d
	picture = GFX_ukr_army
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = SOV
		country_exists = SOV
		country_exists = UKR
		country_exists = SEU
		NOT = { is_in_faction_with = UKR }
		UKR = { has_war_with = SEU }
	}

	option = {
		name = ukraine_revolution.15.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.15.a executed"
		add_to_war = {
			targeted_alliance = SEU
			enemy = UKR
			hostility_reason = asked_to_join
		}
		set_country_flag = SOV_backed_seuar
		ai_chance = {
			base = 5
			modifier = {
				add = 15
				UKR = { has_country_flag = UKR_used_seuar_specops }
			}
			modifier = {
				add = 15
				has_country_flag = SOV_seuar_escalation
			}
			modifier = {
				add = 10
				strength_ratio = {
					tag = UKR
					ratio > 2
				}
			}
			modifier = {
				add = 15
				strength_ratio = {
					tag = UKR
					ratio > 3
				}
			}
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	option = {
		name = ukraine_revolution.15.b
		ai_chance = {
			base = 95
			modifier = {
				add = 100
				is_historical_focus_on = yes
			}
		}
	}
}
#Start the SEUAR Border War
country_event = {
	id = ukraine_revolution.16
	title = ukraine_revolution.16.t
	desc = ukraine_revolution.16.d
	picture = GFX_ukr_army
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		country_exists = SEU
		has_country_flag = UKR_seuar_force_used
		SEU = {
			is_subject_of = UKR
			has_autonomy_state = autonomy_republic_ukr
		}
		NOT = { has_war_with = SEU }
	}

	option = {
		name = ukraine_revolution.16.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.16.a executed"
		set_autonomy = {
			target = SEU
			autonomy_state = autonomy_free
		}
		set_country_flag = UKR_seuar_border_war
		set_temp_variable = { tension_change = 15 }
		UKR_add_political_tension = yes
		SEU = { SEU_maidan_create_army = yes }
		declare_war_on = {
			target = SEU
			type = annex_everything
		}
		hidden_effect = {
			country_event = { id = ukraine_revolution.14 days = 120 }
			if = {
				limit = { country_exists = SOV }
				SOV = { country_event = { id = ukraine_revolution.15 days = 7 } }
			}
		}
	}
}
#Resolve the 2004 western autonomy crisis
country_event = {
	id = ukraine_revolution.17
	title = ukraine_revolution.17.t
	desc = ukraine_revolution.17.d
	picture = GFX_ukr_orange_maidan
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		has_country_flag = UKR_western_crisis_2004
	}

	option = {
		name = ukraine_revolution.17.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.17.a executed"
		add_political_power = -50
		if = {
			limit = { has_idea = UKR_western_crisis_idea }
			remove_ideas = UKR_western_crisis_idea
		}
		set_temp_variable = { tension_change = -8 }
		UKR_add_political_tension = yes
		ai_chance = {
			base = 70
			modifier = {
				add = 60
				is_historical_focus_on = yes
			}
		}
	}

	option = {
		name = ukraine_revolution.17.b
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.17.b executed"
		add_stability = -0.03
		if = {
			limit = { has_idea = UKR_western_crisis_idea }
			remove_ideas = UKR_western_crisis_idea
		}
		set_temp_variable = { tension_change = 5 }
		UKR_add_political_tension = yes
		ai_chance = { base = 30 }
	}
}
#2013 Association dispatch
country_event = {
	id = ukraine_revolution.19
	is_triggered_only = yes
	hidden = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		NOT = { has_country_flag = ukr_revoult_bilo }
	}

	immediate = {
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.19 executed"
		if = {
			limit = { has_country_flag = UKR_association_decided }
			if = {
				limit = {
					NOT = { has_country_flag = UKR_association_recheck_scheduled }
					NOT = { has_country_flag = UKR_association_recheck_done }
				}
				set_country_flag = UKR_association_recheck_scheduled
				country_event = ukraine_revolution.21
			}
		}
		else = { country_event = ukraine_revolution.20 }
	}
}
#2013 Association decision
country_event = {
	id = ukraine_revolution.20
	title = ukraine_revolution.20.t
	desc = ukraine_revolution.20.d
	picture = GFX_ukr_es
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		date > 2013.10.31
		NOT = { has_country_flag = UKR_association_decided }
		NOT = { has_country_flag = ukr_revoult_bilo }
	}

	option = {
		name = ukraine_revolution.20.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.20.a executed"
		set_country_flag = UKR_association_decided
		UKR_wve_rivlary_alignment_to_the_east = yes
		set_temp_variable = { modify_europeanism = -0.1 }
		set_temp_variable = { modify_europeanism_target = ROOT }
		europeanism_change = yes
		hidden_effect = { UKR_start_euromaidan = yes }
		ai_chance = {
			base = 0
			modifier = {
				add = 100
				OR = {
					UKR_ai_regions_path = yes
					has_country_leader = {
						name = "Viktor Yanukovych"
						ruling_only = yes
					}
				}
			}
			modifier = {
				add = 50
				emerging_reactionaries_are_in_power = yes
			}
		}
	}

	option = {
		name = ukraine_revolution.20.b
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.20.b executed"
		set_country_flag = UKR_association_decided
		set_country_flag = UKR_association_recheck_scheduled
		UKR_wve_rivlary_alignment_to_the_west = yes
		set_temp_variable = { modify_europeanism = 0.1 }
		set_temp_variable = { modify_europeanism_target = ROOT }
		europeanism_change = yes
		set_temp_variable = { tension_change = 20 }
		UKR_add_political_tension = yes
		if = {
			limit = { country_exists = SOV }
			SOV = { add_opinion_modifier = { target = UKR modifier = recent_actions_negative } }
		}
		hidden_effect = {
			country_event = { id = ukraine_revolution.21 days = 400 }
		}
		ai_chance = {
			base = 100
			modifier = {
				factor = 0
				UKR_ai_regions_path = yes
			}
		}
	}
}
#Association agreement recheck
country_event = {
	id = ukraine_revolution.21
	title = ukraine_revolution.21.t
	desc = ukraine_revolution.21.d
	picture = GFX_ukr_es
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		date > 2013.10.31
		has_country_flag = UKR_association_recheck_scheduled
		NOT = { has_country_flag = UKR_association_recheck_done }
		NOT = { has_country_flag = ukr_revoult_bilo }
	}

	option = {
		name = ukraine_revolution.21.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.21.a executed"
		clr_country_flag = UKR_association_recheck_scheduled
		set_country_flag = UKR_association_recheck_done
		UKR_setup_euromaidan_severity = yes
		if = {
			limit = { check_variable = { UKR_political_tension > 60 } }
			UKR_start_euromaidan = yes
		}
		ai_chance = { base = 100 }
	}
}
#2014 regional republic and council wave
country_event = {
	id = ukraine_revolution.40
	title = ukraine_revolution.40.t
	desc = ukraine_revolution.40.d
	picture = GFX_donetsk_protests
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		has_country_flag = UKR_republic_wave_active
		NOT = { has_country_flag = UKR_republic_wave_donetsk_done }
	}

	option = {
		name = ukraine_revolution.40.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.40.a executed"
		set_country_flag = UKR_republic_wave_donetsk_done
		set_country_flag = UKR_republic_council_donetsk
		693 = { add_compliance = 4 add_resistance = -2 }
		1030 = { add_compliance = 4 add_resistance = -2 }
		add_stability = 0.02
		set_temp_variable = { tension_change = -5 }
		UKR_add_political_tension = yes
		country_event = { id = ukraine_revolution.41 days = 3 }
		ai_chance = {
			base = 80
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	option = {
		name = ukraine_revolution.40.b
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.40.b executed"
		set_country_flag = UKR_republic_wave_donetsk_done
		693 = { add_resistance = 6 add_compliance = -2 }
		1030 = { add_resistance = 6 add_compliance = -2 }
		add_stability = -0.05
		set_temp_variable = { tension_change = 10 }
		UKR_add_political_tension = yes
		country_event = { id = ukraine_revolution.41 days = 3 }
		ai_chance = {
			base = 15
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	option = {
		name = ukraine_revolution.40.c
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.40.c executed"
		trigger = {
			OR = {
				owns_state = 693
				owns_state = 1030
			}
			NOT = { has_war_with = DPR }
			OR = {
				NOT = { country_exists = DPR }
				DPR = { UKR_novorossiya_participant_eligible = yes }
			}
		}
		set_country_flag = UKR_republic_wave_donetsk_done
		set_country_flag = UKR_republic_donetsk_emerged
		UKR_prepare_DPR_wave = yes
		set_temp_variable = { tension_change = 14 }
		UKR_add_political_tension = yes
		country_event = { id = ukraine_revolution.41 days = 3 }
		ai_chance = {
			base = 5
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	option = {
		name = ukraine_revolution.40.e
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.40.e executed"
		trigger = {
			NOT = { country_exists = DPR }
			NOT = { country_exists = LPR }
			OR = {
				owns_state = 693
				owns_state = 1030
			}
		}
		set_country_flag = UKR_republic_wave_donetsk_done
		set_country_flag = UKR_republic_wave_luhansk_done
		UKR_spawn_donbass_war = yes
		hidden_effect = {
			declare_war_on = {
				target = LPR
				type = annex_everything
			}
			declare_war_on = {
				target = DPR
				type = annex_everything
			}
		}
		country_event = { id = ukraine_revolution.42 days = 3 }
		ai_chance = {
			base = 10
			modifier = {
				add = 100
				is_historical_focus_on = yes
			}
		}
	}
}
country_event = {
	id = ukraine_revolution.41
	title = ukraine_revolution.41.t
	desc = ukraine_revolution.41.d
	picture = GFX_donetsk_protests
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		has_country_flag = UKR_republic_wave_active
		has_country_flag = UKR_republic_wave_donetsk_done
		NOT = { has_country_flag = UKR_republic_wave_luhansk_done }
	}

	option = {
		name = ukraine_revolution.41.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.41.a executed"
		set_country_flag = UKR_republic_wave_luhansk_done
		set_country_flag = UKR_republic_council_luhansk
		1075 = { add_compliance = 4 add_resistance = -2 }
		1076 = { add_compliance = 4 add_resistance = -2 }
		add_stability = 0.02
		set_temp_variable = { tension_change = -5 }
		UKR_add_political_tension = yes
		country_event = { id = ukraine_revolution.42 days = 3 }
		ai_chance = {
			base = 80
			modifier = {
				add = 100
				is_historical_focus_on = yes
			}
		}
	}

	option = {
		name = ukraine_revolution.41.b
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.41.b executed"
		set_country_flag = UKR_republic_wave_luhansk_done
		1075 = { add_resistance = 6 add_compliance = -2 }
		1076 = { add_resistance = 6 add_compliance = -2 }
		add_stability = -0.05
		set_temp_variable = { tension_change = 10 }
		UKR_add_political_tension = yes
		country_event = { id = ukraine_revolution.42 days = 3 }
		ai_chance = { base = 15 }
	}

	option = {
		name = ukraine_revolution.41.c
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.41.c executed"
		trigger = {
			OR = {
				owns_state = 1075
				owns_state = 1076
			}
			NOT = { has_war_with = LPR }
			OR = {
				NOT = { country_exists = LPR }
				LPR = { UKR_novorossiya_participant_eligible = yes }
			}
		}
		set_country_flag = UKR_republic_wave_luhansk_done
		set_country_flag = UKR_republic_luhansk_emerged
		UKR_prepare_LPR_wave = yes
		set_temp_variable = { tension_change = 14 }
		UKR_add_political_tension = yes
		country_event = { id = ukraine_revolution.42 days = 3 }
		ai_chance = {
			base = 5
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}
country_event = {
	id = ukraine_revolution.42
	title = ukraine_revolution.42.t
	desc = ukraine_revolution.42.d
	picture = GFX_crimea_protests
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		has_country_flag = UKR_republic_wave_active
		has_country_flag = UKR_republic_wave_luhansk_done
		NOT = { has_country_flag = UKR_republic_wave_crimea_done }
	}

	option = {
		name = ukraine_revolution.42.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.42.a executed"
		set_country_flag = UKR_republic_wave_crimea_done
		set_country_flag = UKR_republic_council_crimea
		if = {
			limit = {
				owns_state = 669
				NOT = { country_exists = CRM }
				NOT = { has_country_flag = UKR_crimea_2004_departed }
			}
			669 = { add_compliance = 4 add_resistance = -2 }
		}
		add_stability = 0.02
		set_temp_variable = { tension_change = -5 }
		UKR_add_political_tension = yes
		UKR_setup_euromaidan_severity = yes
		if = {
			limit = { has_country_flag = UKR_euromaidan_severe }
			country_event = { id = ukraine_revolution.43 days = 3 }
		}
		else = { UKR_finish_republic_wave = yes }
		ai_chance = {
			base = 80
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	option = {
		name = ukraine_revolution.42.b
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.42.b executed"
		set_country_flag = UKR_republic_wave_crimea_done
		if = {
			limit = {
				owns_state = 669
				NOT = { country_exists = CRM }
				NOT = { has_country_flag = UKR_crimea_2004_departed }
			}
			669 = { add_resistance = 6 add_compliance = -2 }
		}
		add_stability = -0.05
		set_temp_variable = { tension_change = 10 }
		UKR_add_political_tension = yes
		UKR_setup_euromaidan_severity = yes
		if = {
			limit = { has_country_flag = UKR_euromaidan_severe }
			country_event = { id = ukraine_revolution.43 days = 3 }
		}
		else = { UKR_finish_republic_wave = yes }
		ai_chance = { base = 15 }
	}

	option = {
		name = ukraine_revolution.42.c
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.42.c executed"
		trigger = {
			owns_state = 669
			NOT = { country_exists = CRM }
			NOT = { has_country_flag = UKR_crimea_2004_departed }
			NOT = { has_country_flag = UKR_crimea_2014_chain_active }
		}
		set_country_flag = UKR_republic_wave_crimea_done
		if = {
			limit = { country_exists = SOV }
			set_country_flag = UKR_crimea_2014_chain_active
			SOV = { country_event = { id = ukraine_maidan.1 days = 1 } }
		}
		else = { set_country_flag = UKR_republic_council_crimea }
		set_temp_variable = { tension_change = 8 }
		UKR_add_political_tension = yes
		UKR_setup_euromaidan_severity = yes
		if = {
			limit = { has_country_flag = UKR_euromaidan_severe }
			country_event = { id = ukraine_revolution.43 days = 3 }
		}
		else = { UKR_finish_republic_wave = yes }
		ai_chance = {
			base = 5
			modifier = {
				add = 100
				is_historical_focus_on = yes
			}
		}
	}
}
country_event = {
	id = ukraine_revolution.43
	title = ukraine_revolution.43.t
	desc = ukraine_revolution.43.d
	picture = GFX_kharkiv_protests
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		has_country_flag = UKR_republic_wave_active
		has_country_flag = UKR_republic_wave_crimea_done
		NOT = { has_country_flag = UKR_republic_wave_kharkiv_done }
	}

	option = {
		name = ukraine_revolution.43.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.43.a executed"
		set_country_flag = UKR_republic_wave_kharkiv_done
		set_country_flag = UKR_republic_council_kharkiv
		696 = { add_compliance = 4 add_resistance = -2 }
		add_stability = 0.02
		set_temp_variable = { tension_change = -4 }
		UKR_add_political_tension = yes
		country_event = { id = ukraine_revolution.44 days = 3 }
		ai_chance = {
			base = 80
			modifier = {
				add = 100
				is_historical_focus_on = yes
			}
		}
	}

	option = {
		name = ukraine_revolution.43.b
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.43.b executed"
		set_country_flag = UKR_republic_wave_kharkiv_done
		696 = { add_resistance = 6 add_compliance = -2 }
		add_stability = -0.05
		set_temp_variable = { tension_change = 8 }
		UKR_add_political_tension = yes
		country_event = { id = ukraine_revolution.44 days = 3 }
		ai_chance = { base = 15 }
	}

	option = {
		name = ukraine_revolution.43.c
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.43.c executed"
		set_country_flag = UKR_republic_wave_kharkiv_done
		set_country_flag = UKR_republic_council_kharkiv
		696 = { add_compliance = 1 add_resistance = 2 }
		set_temp_variable = { tension_change = 6 }
		UKR_add_political_tension = yes
		country_event = { id = ukraine_revolution.44 days = 3 }
		ai_chance = {
			base = 5
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}
country_event = {
	id = ukraine_revolution.44
	title = ukraine_revolution.44.t
	desc = ukraine_revolution.44.d
	picture = GFX_ukr_bluemaidan
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		has_country_flag = UKR_republic_wave_active
		has_country_flag = UKR_republic_wave_kharkiv_done
		NOT = { has_country_flag = UKR_republic_wave_zaporizhzhia_done }
	}

	option = {
		name = ukraine_revolution.44.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.44.a executed"
		set_country_flag = UKR_republic_wave_zaporizhzhia_done
		set_country_flag = UKR_republic_council_zaporizhzhia
		694 = { add_compliance = 4 add_resistance = -2 }
		add_stability = 0.02
		set_temp_variable = { tension_change = -4 }
		UKR_add_political_tension = yes
		country_event = { id = ukraine_revolution.45 days = 3 }
		ai_chance = {
			base = 80
			modifier = {
				add = 100
				is_historical_focus_on = yes
			}
		}
	}

	option = {
		name = ukraine_revolution.44.b
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.44.b executed"
		set_country_flag = UKR_republic_wave_zaporizhzhia_done
		694 = { add_resistance = 6 add_compliance = -2 }
		add_stability = -0.05
		set_temp_variable = { tension_change = 8 }
		UKR_add_political_tension = yes
		country_event = { id = ukraine_revolution.45 days = 3 }
		ai_chance = { base = 15 }
	}

	option = {
		name = ukraine_revolution.44.c
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.44.c executed"
		set_country_flag = UKR_republic_wave_zaporizhzhia_done
		set_country_flag = UKR_republic_council_zaporizhzhia
		694 = { add_compliance = 1 add_resistance = 2 }
		set_temp_variable = { tension_change = 6 }
		UKR_add_political_tension = yes
		country_event = { id = ukraine_revolution.45 days = 3 }
		ai_chance = {
			base = 5
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}
country_event = {
	id = ukraine_revolution.45
	title = ukraine_revolution.45.t
	desc = ukraine_revolution.45.d
	picture = GFX_ukr_bluemaidan
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		has_country_flag = UKR_republic_wave_zaporizhzhia_done
		NOT = { has_country_flag = UKR_republic_wave_south_done }
	}

	option = {
		name = ukraine_revolution.45.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.45.a executed"
		set_country_flag = UKR_republic_wave_south_done
		set_country_flag = UKR_republic_council_south
		1085 = { add_compliance = 4 add_resistance = -2 }
		1086 = { add_compliance = 4 add_resistance = -2 }
		add_stability = 0.02
		set_temp_variable = { tension_change = -4 }
		UKR_add_political_tension = yes
		country_event = { id = ukraine_revolution.46 days = 3 }
		ai_chance = {
			base = 80
			modifier = {
				add = 100
				is_historical_focus_on = yes
			}
		}
	}

	option = {
		name = ukraine_revolution.45.b
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.45.b executed"
		set_country_flag = UKR_republic_wave_south_done
		1085 = { add_resistance = 6 add_compliance = -2 }
		1086 = { add_resistance = 6 add_compliance = -2 }
		add_stability = -0.05
		set_temp_variable = { tension_change = 8 }
		UKR_add_political_tension = yes
		country_event = { id = ukraine_revolution.46 days = 3 }
		ai_chance = { base = 15 }
	}

	option = {
		name = ukraine_revolution.45.c
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.45.c executed"
		set_country_flag = UKR_republic_wave_south_done
		set_country_flag = UKR_republic_council_south
		1085 = { add_compliance = 1 add_resistance = 2 }
		1086 = { add_compliance = 1 add_resistance = 2 }
		set_temp_variable = { tension_change = 6 }
		UKR_add_political_tension = yes
		country_event = { id = ukraine_revolution.46 days = 3 }
		ai_chance = {
			base = 5
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}
country_event = {
	id = ukraine_revolution.46
	title = ukraine_revolution.46.t
	desc = ukraine_revolution.46.d
	picture = GFX_odessa_protests
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		has_country_flag = UKR_republic_wave_active
		has_country_flag = UKR_republic_wave_south_done
		NOT = { has_country_flag = UKR_republic_wave_odessa_done }
	}

	option = {
		name = ukraine_revolution.46.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.46.a executed"
		set_country_flag = UKR_republic_wave_odessa_done
		set_country_flag = UKR_republic_council_odessa
		695 = { add_compliance = 4 add_resistance = -2 }
		333 = { add_compliance = 4 add_resistance = -2 }
		add_stability = 0.02
		set_temp_variable = { tension_change = -4 }
		UKR_add_political_tension = yes
		country_event = { id = ukraine_revolution.47 days = 3 }
		ai_chance = {
			base = 80
			modifier = {
				add = 100
				is_historical_focus_on = yes
			}
		}
	}

	option = {
		name = ukraine_revolution.46.b
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.46.b executed"
		set_country_flag = UKR_republic_wave_odessa_done
		695 = { add_resistance = 6 add_compliance = -2 }
		333 = { add_resistance = 6 add_compliance = -2 }
		add_stability = -0.05
		set_temp_variable = { tension_change = 8 }
		UKR_add_political_tension = yes
		country_event = { id = ukraine_revolution.47 days = 3 }
		ai_chance = { base = 15 }
	}

	option = {
		name = ukraine_revolution.46.c
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.46.c executed"
		trigger = {
			owns_state = 695
			NOT = { has_war_with = OPR }
			OR = {
				NOT = { country_exists = OPR }
				OPR = { UKR_novorossiya_participant_eligible = yes }
			}
		}
		set_country_flag = UKR_republic_wave_odessa_done
		set_country_flag = UKR_republic_odessa_emerged
		UKR_prepare_OPR_wave = yes
		set_temp_variable = { tension_change = 12 }
		UKR_add_political_tension = yes
		country_event = { id = ukraine_revolution.47 days = 3 }
		ai_chance = {
			base = 5
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}
country_event = {
	id = ukraine_revolution.47
	title = ukraine_revolution.47.t
	desc = ukraine_revolution.47.d
	picture = GFX_ukr_bluemaidan
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		has_country_flag = UKR_republic_wave_active
		has_country_flag = UKR_republic_wave_odessa_done
		NOT = { has_country_flag = UKR_republic_wave_dnipro_done }
	}

	option = {
		name = ukraine_revolution.47.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.47.a executed"
		set_country_flag = UKR_republic_wave_dnipro_done
		set_country_flag = UKR_republic_council_dnipro
		1087 = { add_compliance = 4 add_resistance = -2 }
		add_stability = 0.02
		set_temp_variable = { tension_change = -4 }
		UKR_add_political_tension = yes
		country_event = { id = ukraine_revolution.48 days = 3 }
		ai_chance = {
			base = 80
			modifier = {
				add = 100
				is_historical_focus_on = yes
			}
		}
	}

	option = {
		name = ukraine_revolution.47.b
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.47.b executed"
		set_country_flag = UKR_republic_wave_dnipro_done
		1087 = { add_resistance = 6 add_compliance = -2 }
		add_stability = -0.05
		set_temp_variable = { tension_change = 8 }
		UKR_add_political_tension = yes
		country_event = { id = ukraine_revolution.48 days = 3 }
		ai_chance = { base = 15 }
	}

	option = {
		name = ukraine_revolution.47.c
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.47.c executed"
		trigger = {
			owns_state = 1087
			NOT = { has_war_with = DRP }
			NOT = { has_country_flag = UKR_kolomoisky_dnipro_autonomy }
			OR = {
				NOT = { country_exists = DRP }
				DRP = { UKR_novorossiya_participant_eligible = yes }
			}
		}
		set_country_flag = UKR_republic_wave_dnipro_done
		set_country_flag = UKR_republic_dnipro_emerged
		UKR_prepare_DRP_wave = yes
		set_temp_variable = { tension_change = 12 }
		UKR_add_political_tension = yes
		country_event = { id = ukraine_revolution.48 days = 3 }
		ai_chance = {
			base = 5
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}
country_event = {
	id = ukraine_revolution.48
	title = ukraine_revolution.48.t
	desc = ukraine_revolution.48.d
	picture = GFX_ukr_bluemaidan
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		has_country_flag = UKR_republic_wave_active
		has_country_flag = UKR_republic_wave_dnipro_done
		NOT = { has_country_flag = UKR_republic_wave_sumy_done }
	}

	option = {
		name = ukraine_revolution.48.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.48.a executed"
		set_country_flag = UKR_republic_wave_sumy_done
		set_country_flag = UKR_republic_council_sumy
		1088 = { add_compliance = 4 add_resistance = -2 }
		add_stability = 0.02
		set_temp_variable = { tension_change = -4 }
		UKR_add_political_tension = yes
		UKR_finish_republic_wave = yes
		ai_chance = {
			base = 80
			modifier = {
				add = 100
				is_historical_focus_on = yes
			}
		}
	}

	option = {
		name = ukraine_revolution.48.b
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.48.b executed"
		set_country_flag = UKR_republic_wave_sumy_done
		1088 = { add_resistance = 6 add_compliance = -2 }
		add_stability = -0.05
		set_temp_variable = { tension_change = 8 }
		UKR_add_political_tension = yes
		UKR_finish_republic_wave = yes
		ai_chance = { base = 15 }
	}

	option = {
		name = ukraine_revolution.48.c
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.48.c executed"
		set_country_flag = UKR_republic_wave_sumy_done
		set_country_flag = UKR_republic_council_sumy
		1088 = { add_compliance = 1 add_resistance = 2 }
		set_temp_variable = { tension_change = 6 }
		UKR_add_political_tension = yes
		UKR_finish_republic_wave = yes
		ai_chance = {
			base = 5
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}
#Novorossiya consolidation and status
country_event = {
	id = ukraine_revolution.49
	title = ukraine_revolution.49.t
	desc = ukraine_revolution.49.d
	picture = GFX_donetsk_protests
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		country_exists = NOV
		has_country_flag = UKR_novorossiya_formed
		NOV = {
			UKR_novorossiya_participant_eligible = yes
			OR = {
				owns_state = 693
				owns_state = 1030
			}
			OR = {
				owns_state = 1075
				owns_state = 1076
			}
		}
	}

	option = {
		name = ukraine_revolution.49.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.49.a executed"
		trigger = { NOV = { UKR_novorossiya_participant_eligible = yes } }
		UKR_accept_novorossiya = yes
		UKR_queue_provisional_novorossiya_flavor = yes
		ai_chance = {
			base = 80
			modifier = {
				add = 100
				is_historical_focus_on = yes
			}
		}
	}

	option = {
		name = ukraine_revolution.49.b
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.49.b executed"
		trigger = { NOV = { UKR_novorossiya_participant_eligible = yes } }
		if = {
			limit = { NOV = { is_subject_of = UKR } }
			set_autonomy = {
				target = NOV
				autonomy_state = autonomy_free
			}
		}
		NOV = { clr_country_flag = UKR_subject_agree }
		set_temp_variable = { tension_change = 8 }
		UKR_add_political_tension = yes
		UKR_queue_provisional_novorossiya_flavor = yes
		ai_chance = { base = 15 }
	}

	option = {
		name = ukraine_revolution.49.c
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.49.c executed"
		trigger = { NOV = { UKR_novorossiya_participant_eligible = yes } }
		set_temp_variable = { tension_change = 20 }
		UKR_add_political_tension = yes
		UKR_queue_provisional_novorossiya_flavor = yes
		declare_war_on = {
			target = NOV
			type = annex_everything
		}
		ai_chance = { base = 5 }
	}
}
#Provisional republic milestones
country_event = {
	id = ukraine_revolution.50
	title = ukraine_revolution.50.t
	desc = ukraine_revolution.50.d
	picture = GFX_ukr_bluemaidan
	is_triggered_only = yes
	fire_only_once = yes

	minor_flavor = yes
	trigger = {
		tag = UKR
		country_exists = UKR
		has_country_flag = UKR_provisional_flavor_congress_queued
		NOT = { has_country_flag = UKR_provisional_flavor_congress_seen }
	}

	option = {
		name = ukraine_revolution.50.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.50.a executed"
		set_country_flag = UKR_provisional_flavor_congress_seen
	}
}
country_event = {
	id = ukraine_revolution.51
	title = ukraine_revolution.51.t
	desc = ukraine_revolution.51.d
	picture = GFX_donetsk_protests
	is_triggered_only = yes
	fire_only_once = yes

	minor_flavor = yes
	trigger = {
		tag = UKR
		country_exists = UKR
		has_country_flag = UKR_provisional_flavor_wave_queued
		NOT = { has_country_flag = UKR_provisional_flavor_wave_seen }
	}

	option = {
		name = ukraine_revolution.51.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.51.a executed"
		set_country_flag = UKR_provisional_flavor_wave_seen
	}
}
country_event = {
	id = ukraine_revolution.52
	title = ukraine_revolution.52.t
	desc = ukraine_revolution.52.d
	picture = GFX_donetsk_protests
	is_triggered_only = yes
	fire_only_once = yes

	minor_flavor = yes
	trigger = {
		tag = DPR
		country_exists = DPR
		has_country_flag = UKR_provisional_flavor_first_republic_queued
		NOT = { has_country_flag = UKR_provisional_flavor_first_republic_seen }
	}

	option = {
		name = ukraine_revolution.52.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.52.a executed"
		set_country_flag = UKR_provisional_flavor_first_republic_seen
	}
}
country_event = {
	id = ukraine_revolution.53
	title = ukraine_revolution.53.t
	desc = ukraine_revolution.53.d
	picture = GFX_negotiations
	is_triggered_only = yes
	fire_only_once = yes

	minor_flavor = yes
	trigger = {
		tag = UKR
		country_exists = UKR
		has_country_flag = UKR_provisional_flavor_crimea_queued
		NOT = { has_country_flag = UKR_provisional_flavor_crimea_seen }
	}

	option = {
		name = ukraine_revolution.53.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.53.a executed"
		set_country_flag = UKR_provisional_flavor_crimea_seen
	}
}
country_event = {
	id = ukraine_revolution.54
	title = ukraine_revolution.54.t
	desc = ukraine_revolution.54.d
	picture = GFX_donetsk_protests
	is_triggered_only = yes
	fire_only_once = yes

	minor_flavor = yes
	trigger = {
		tag = UKR
		country_exists = UKR
		has_country_flag = UKR_provisional_flavor_novorossiya_queued
		NOT = { has_country_flag = UKR_provisional_flavor_novorossiya_seen }
	}

	option = {
		name = ukraine_revolution.54.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.54.a executed"
		set_country_flag = UKR_provisional_flavor_novorossiya_seen
	}
}
#Free Territory identity
country_event = {
	id = ukraine_revolution.55
	title = ukraine_revolution.55.t
	desc = ukraine_revolution.55.d
	picture = GFX_donetsk_protests
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = NOV
		owns_state = 694
		emerging_anarchist_communism_are_in_power = yes
	}

	option = {
		name = ukraine_revolution.55.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.55.a executed"
		drop_cosmetic_tag = yes
		clear_variable = dynamic_flag_variant
		set_cosmetic_tag = NOV_free_territory
		clr_country_flag = dynamic_flag
		ai_chance = { base = 10 }
	}

	option = {
		name = ukraine_revolution.55.b
		ai_chance = { base = 90 }
	}
}
#2004 Crimean status referendum
country_event = {
	id = ukraine_revolution.30
	title = ukraine_revolution.30.t
	desc = ukraine_revolution.30.d
	picture = GFX_negotiations
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		owns_state = 669
		has_country_flag = UKR_crimea_2004_resolution
		NOT = { has_country_flag = UKR_crimea_2004_resolved }
	}

	option = {
		name = ukraine_revolution.30.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.30.a executed"
		set_country_flag = UKR_crimea_2004_pending
		custom_effect_tooltip = UKR_crimea_2004_permit_tt
		hidden_effect = {
			SOV = {
				country_event = { id = ukraine_revolution.31 days = 1 }
			}
		}
		ai_chance = {
			base = 20
			modifier = {
				add = 30
				has_global_flag = UKR_REGIONS_FOCUS_PATH
			}
		}
	}

	option = {
		name = ukraine_revolution.30.b
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.30.b executed"
		set_country_flag = UKR_crimea_referendum_suppressed
		set_country_flag = UKR_crimea_2004_resolved
		set_country_flag = UKR_crimea_2004_legacy
		clr_country_flag = UKR_crimea_2004_pending
		clr_country_flag = UKR_crimea_2004_departed
		set_temp_variable = { tension_change = 10 }
		UKR_add_political_tension = yes
		hidden_effect = {
			SOV = {
				country_event = { id = ukraine_revolution.33 days = 1 }
			}
		}
		ai_chance = {
			base = 80
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
	}
}
#Soviet response to the 2004 Crimean referendum
country_event = {
	id = ukraine_revolution.31
	title = ukraine_revolution.31.t
	desc = ukraine_revolution.31.d
	picture = GFX_negotiations
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = SOV
		country_exists = UKR
		UKR = { has_country_flag = UKR_crimea_2004_pending }
	}

	option = {
		name = ukraine_revolution.31.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.31.a executed"
		custom_effect_tooltip = UKR_crimea_2004_restrain_tt
		hidden_effect = {
			if = {
				limit = {
					NOT = { country_exists = CRM }
					UKR = { owns_state = 669 }
				}
				UKR = { release = CRM }
				669 = { add_core_of = UKR }
			}
			if = {
				limit = {
					country_exists = CRM
					NOT = { UKR = { owns_state = 669 } }
					CRM = { owns_state = 669 }
				}
				CRM = {
					set_country_flag = UKR_subject_agree
					set_country_flag = CRM_2004_content_unlocked
					add_ideas = UKR_republic_ukr
				}
				UKR = {
					set_autonomy = {
						target = CRM
						autonomy_state = autonomy_republic_ukr
					}
					clr_country_flag = UKR_crimea_2004_pending
					set_country_flag = UKR_crimea_2004_resolved
					set_country_flag = UKR_crimea_2004_legacy
					set_country_flag = UKR_crimea_2004_restrained
					clr_country_flag = UKR_crimea_2004_departed
					set_temp_variable = { tension_change = -5 }
					UKR_add_political_tension = yes
					UKR_queue_provisional_crimea_flavor = yes
				}
			}
			else = {
				UKR = {
					clr_country_flag = UKR_crimea_2004_pending
					set_country_flag = UKR_crimea_2004_resolved
					set_country_flag = UKR_crimea_2004_legacy
					set_country_flag = UKR_crimea_2004_release_failed
					clr_country_flag = UKR_crimea_2004_departed
					UKR_queue_provisional_crimea_flavor = yes
				}
			}
		}
		ai_chance = {
			base = 80
			modifier = {
				factor = 3
				is_historical_focus_on = yes
			}
		}
	}

	option = {
		name = ukraine_revolution.31.b
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.31.b executed"
		set_country_flag = SOV_crimea_2004_underwritten
		custom_effect_tooltip = UKR_crimea_2004_underwrite_tt
		hidden_effect = {
			if = {
				limit = {
					NOT = { country_exists = CRM }
					UKR = { owns_state = 669 }
				}
				UKR = { release = CRM }
				669 = { add_core_of = UKR }
			}
			if = {
				limit = {
					country_exists = CRM
					owns_state = 1112
					NOT = { UKR = { owns_state = 669 } }
					CRM = {
						owns_state = 669
						NOT = { owns_state = 1112 }
					}
				}
				country_event = { id = ukraine_revolution.32 days = 1 }
			}
			else = {
				clr_country_flag = SOV_crimea_2004_underwritten
				UKR = {
					clr_country_flag = UKR_crimea_2004_pending
					set_country_flag = UKR_crimea_2004_resolved
					set_country_flag = UKR_crimea_2004_legacy
					set_country_flag = UKR_crimea_2004_release_failed
					clr_country_flag = UKR_crimea_2004_departed
					UKR_queue_provisional_crimea_flavor = yes
				}
			}
		}
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
			modifier = {
				add = 20
				strength_ratio = {
					tag = UKR
					ratio > 3
				}
			}
		}
	}
}
#2004 Crimean referendum outcome
country_event = {
	id = ukraine_revolution.32
	title = ukraine_revolution.32.t
	desc = ukraine_revolution.32.d
	picture = GFX_russia_crimea_troops
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = SOV
		country_exists = UKR
		country_exists = CRM
		has_country_flag = SOV_crimea_2004_underwritten
		CRM = { owns_state = 669 }
	}

	option = {
		name = ukraine_revolution.32.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.32.a executed"
		CRM = {
			set_country_flag = UKR_subject_agree
			set_country_flag = SOV_subject_republic
			set_country_flag = SUB_russ_polit
			set_country_flag = CRM_2004_content_unlocked
			add_ideas = SUB_small_taxes
		}
		set_autonomy = {
			target = CRM
			autonomy_state = autonomy_republic_rf
		}
		clr_country_flag = SOV_crimea_2004_underwritten
		UKR = {
			clr_country_flag = UKR_crimea_2004_pending
			set_country_flag = UKR_crimea_2004_resolved
			set_country_flag = UKR_crimea_2004_legacy
			set_country_flag = UKR_crimea_2004_departed
			set_country_flag = UKR_crimea_2004_protectorate
			set_temp_variable = { tension_change = 8 }
			UKR_add_political_tension = yes
			UKR_queue_provisional_crimea_flavor = yes
		}
		ai_chance = { base = 60 }
	}

	option = {
		name = ukraine_revolution.32.b
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.32.b executed"
		add_named_threat = { threat = 5 name = threat_SOV_annexiation_of_crimea }
		transfer_state = 669
		669 = { add_core_of = SOV }
		clr_country_flag = SOV_crimea_2004_underwritten
		UKR = {
			clr_country_flag = UKR_crimea_2004_pending
			set_country_flag = UKR_crimea_2004_resolved
			set_country_flag = UKR_crimea_2004_legacy
			set_country_flag = UKR_crimea_2004_departed
			set_country_flag = UKR_crimea_2004_annexed
			set_temp_variable = { tension_change = 15 }
			UKR_add_political_tension = yes
			UKR_queue_provisional_crimea_flavor = yes
		}
		ai_chance = {
			base = 20
			modifier = {
				add = 20
				strength_ratio = {
					tag = UKR
					ratio > 3
				}
			}
		}
	}
}
#Soviet response to the dissolved Crimean council
country_event = {
	id = ukraine_revolution.33
	title = ukraine_revolution.33.t
	desc = ukraine_revolution.33.d
	picture = GFX_negotiations
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = SOV
		country_exists = SOV
		country_exists = UKR
		UKR = {
			has_country_flag = UKR_crimea_referendum_suppressed
			has_country_flag = UKR_crimea_2004_resolved
		}
	}

	option = {
		name = ukraine_revolution.33.a
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.33.a executed"
		add_opinion_modifier = { target = UKR modifier = recent_actions_negative }
		add_named_threat = { threat = 1 name = threat_SOV_annexiation_of_crimea }
		UKR = {
			set_temp_variable = { tension_change = 2 }
			UKR_add_political_tension = yes
			UKR_queue_provisional_crimea_flavor = yes
		}
		ai_chance = {
			base = 0
			modifier = {
				add = 20
				is_historical_focus_on = no
			}
		}
	}

	option = {
		name = ukraine_revolution.33.b
		log = "[GetDateText]: [This.GetName]: ukraine_revolution.33.b executed"
		UKR = {
			set_temp_variable = { tension_change = -1 }
			UKR_add_political_tension = yes
			UKR_queue_provisional_crimea_flavor = yes
		}
		ai_chance = { base = 100 }
	}
}
#Protests in the Southeast
country_event = {
	id = ukraine_kuchma.14
	title = ukraine_kuchma.14.t
	desc = ukraine_kuchma.14.d
	picture = GFX_ukr_bluemaidan
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		has_country_flag = UKR_orange_2004_started
		date > 2004.8.31
	}

	option = {
		name = ukraine_kuchma.14.a
		log = "[GetDateText]: [This.GetName]: ukraine_kuchma.14.a executed"
		set_country_flag = UKR_orange_maidan_2004
		hidden_effect = {
			if = {
				limit = { country_exists = SOV }
				SOV = { country_event = { id = ukraine_kuchma.15 days = 10 } }
			}
			else = {
				set_country_flag = UKR_orange_2004_resolved
				set_temp_variable = { tension_change = 5 }
				UKR_add_political_tension = yes
			}
		}
		custom_effect_tooltip = TT_IF_THEY_ACCEPT
		effect_tooltip = { custom_effect_tooltip = UKR_seuar_sov_support_tt }
		custom_effect_tooltip = TT_IF_THEY_REJECT
		effect_tooltip = { custom_effect_tooltip = UKR_seuar_sov_decline_tt }
		ai_chance = { base = 100 }
	}
}
#Blue Maidan in Ukraine
country_event = {
	id = ukraine_kuchma.15
	title = ukraine_kuchma.15.t
	desc = ukraine_kuchma.15.d
	picture = GFX_ukr_bluemaidan
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = SOV
		country_exists = SOV
		date > 2004.8.31
		UKR = {
			country_exists = UKR
			has_country_flag = UKR_orange_maidan_2004
		}
	}

	option = {
		name = ukraine_kuchma.15.a
		log = "[GetDateText]: [This.GetName]: ukraine_kuchma.15.a executed"
		set_country_flag = SOV_backed_seuar
		add_political_power = -50
		set_temp_variable = { treasury_change = -5 }
		modify_treasury_effect = yes
		set_temp_variable = { percent_change = 8 }
		set_temp_variable = { tag_index = SOV }
		set_temp_variable = { influence_target = UKR }
		change_influence_percentage = yes
		hidden_effect = {
			UKR = { country_event = { id = ukraine_kuchma.16 days = 10 } }
		}
		custom_effect_tooltip = TT_IF_WE_ACCEPT
		effect_tooltip = { custom_effect_tooltip = UKR_seuar_sov_support_tt }
		ai_chance = {
			base = 60
			modifier = {
				add = 100
				is_historical_focus_on = yes
			}
		}
	}

	option = {
		name = ukraine_kuchma.15.b
		log = "[GetDateText]: [This.GetName]: ukraine_kuchma.15.b executed"
		UKR = {
			set_country_flag = UKR_orange_2004_resolved
			set_temp_variable = { tension_change = 5 }
			UKR_add_political_tension = yes
		}
		custom_effect_tooltip = TT_IF_WE_DECLINE
		effect_tooltip = { custom_effect_tooltip = UKR_seuar_sov_decline_tt }
		ai_chance = {
			base = 40
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}
#Government of the Southeast
country_event = {
	id = ukraine_kuchma.16
	title = ukraine_kuchma.16.t
	desc = ukraine_kuchma.16.d
	picture = GFX_ukr_bluemaidan
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		has_country_flag = UKR_orange_maidan_2004
		date > 2004.8.31
	}

	option = {
		name = ukraine_kuchma.16.a
		log = "[GetDateText]: [This.GetName]: ukraine_kuchma.16.a executed"
		hidden_effect = { country_event = { id = ukraine_kuchma.17 days = 15 } }
		ai_chance = { base = 100 }
	}
}
#Blue Revolution
country_event = {
	id = ukraine_kuchma.17
	title = ukraine_kuchma.17.t
	desc = ukraine_kuchma.17.d
	picture = GFX_ukr_bluemaidan
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		has_country_flag = UKR_orange_maidan_2004
		date > 2004.8.31
	}

	option = {
		name = ukraine_kuchma.17.a
		log = "[GetDateText]: [This.GetName]: ukraine_kuchma.17.a executed"
		set_country_flag = UKR_seuar_rise
		set_country_flag = UKR_orange_2004_resolved
		if = {
			limit = { has_idea = UKR_crisis_political4 }
			remove_ideas = UKR_crisis_political4
		}
		hidden_effect = { country_event = { id = ukraine_revolution.10 days = 7 } }
		ai_chance = { base = 100 }
	}
}
#Protests in Galicia
country_event = {
	id = ukraine_kuchma.18
	title = ukraine_kuchma.18.t
	desc = ukraine_kuchma.18.d
	picture = GFX_ukr_orange_maidan
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		has_country_flag = UKR_orange_2004_started
		date > 2004.8.31
	}

	option = {
		name = ukraine_kuchma.18.a
		log = "[GetDateText]: [This.GetName]: ukraine_kuchma.18.a executed"
		hidden_effect = {
			if = {
				limit = { country_exists = POL }
				POL = { country_event = { id = ukraine_kuchma.19 days = 15 } }
			}
			else = {
				set_country_flag = UKR_orange_2004_resolved
				set_temp_variable = { tension_change = 5 }
				UKR_add_political_tension = yes
			}
		}
		custom_effect_tooltip = TT_IF_THEY_ACCEPT
		effect_tooltip = { custom_effect_tooltip = UKR_western_poland_support_tt }
		custom_effect_tooltip = TT_IF_THEY_REJECT
		effect_tooltip = { custom_effect_tooltip = UKR_western_poland_decline_tt }
		ai_chance = { base = 100 }
	}
}
#Red Maidan in Ukraine
country_event = {
	id = ukraine_kuchma.19
	title = ukraine_kuchma.19.t
	desc = ukraine_kuchma.19.d
	picture = GFX_ukr_orange_maidan
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = POL
		country_exists = POL
		UKR = {
			country_exists = UKR
			has_country_flag = UKR_orange_2004_started
		}
	}

	option = {
		name = ukraine_kuchma.19.a
		log = "[GetDateText]: [This.GetName]: ukraine_kuchma.19.a executed"
		add_political_power = -100
		set_temp_variable = { treasury_change = -10 }
		modify_treasury_effect = yes
		set_temp_variable = { percent_change = 5 }
		set_temp_variable = { tag_index = POL }
		set_temp_variable = { influence_target = UKR }
		change_influence_percentage = yes
		hidden_effect = {
			UKR = { country_event = { id = ukraine_kuchma.20 days = 15 } }
		}
		custom_effect_tooltip = TT_IF_WE_ACCEPT
		effect_tooltip = { custom_effect_tooltip = UKR_western_poland_support_tt }
		ai_chance = {
			base = 80
			modifier = {
				add = 100
				is_historical_focus_on = yes
			}
		}
	}

	option = {
		name = ukraine_kuchma.19.b
		log = "[GetDateText]: [This.GetName]: ukraine_kuchma.19.b executed"
		UKR = {
			set_country_flag = UKR_orange_2004_resolved
			set_temp_variable = { tension_change = 2 }
			UKR_add_political_tension = yes
		}
		custom_effect_tooltip = TT_IF_WE_DECLINE
		effect_tooltip = { custom_effect_tooltip = UKR_western_poland_decline_tt }
		ai_chance = {
			base = 20
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}
#Government of Western Ukraine
country_event = {
	id = ukraine_kuchma.20
	title = ukraine_kuchma.20.t
	desc = ukraine_kuchma.20.d
	picture = GFX_ukr_orange_maidan
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		has_country_flag = UKR_orange_2004_started
	}

	option = {
		name = ukraine_kuchma.20.a
		log = "[GetDateText]: [This.GetName]: ukraine_kuchma.20.a executed"
		hidden_effect = { country_event = { id = ukraine_kuchma.21 days = 15 } }
		ai_chance = { base = 100 }
	}
}
#Red Revolution
country_event = {
	id = ukraine_kuchma.21
	title = ukraine_kuchma.21.t
	desc = ukraine_kuchma.21.d
	picture = GFX_ukr_orange_maidan
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		country_exists = UKR
		has_country_flag = UKR_orange_2004_started
	}

	option = {
		name = ukraine_kuchma.21.a
		log = "[GetDateText]: [This.GetName]: ukraine_kuchma.21.a executed"
		set_country_flag = UKR_western_crisis_2004
		set_country_flag = UKR_orange_2004_resolved
		if = {
			limit = { has_idea = UKR_crisis_political4 }
			remove_ideas = UKR_crisis_political4
		}
		add_timed_idea = {
			idea = UKR_western_crisis_idea
			days = 180
		}
		set_temp_variable = { tension_change = 10 }
		UKR_add_political_tension = yes
		hidden_effect = { country_event = { id = ukraine_revolution.17 days = 150 } }
		ai_chance = { base = 100 }
	}
}
#2021 Ukraine coup failure (prelude to Z)
country_event = {
	id = ukraine_coup.1
	title = ukraine_coup.1.t
	desc = ukraine_coup.1.d
	picture = GFX_UKR_generic
	is_triggered_only = yes

	option = {
		name = ukraine_coup.1.a
		log = "[GetDateText]: [This.GetName]: ukraine_coup.1.a"
		add_opinion_modifier = { target = SOV modifier = imminent_danger_to_national_security }
		add_war_support = 0.10
		SOV = {
			country_event = { id = russia.35 days = 1 }
		}
	}
}
#Ukraine coup lead to Civil War
country_event = {
	id = ukraine_coup.2
	title = ukraine_coup.2.t
	desc = ukraine_coup.2.d
	picture = GFX_russia_crimea_troops
	is_triggered_only = yes

	option = {
		name = ukraine_coup.2.a
		log = "[GetDateText]: [This.GetName]: ukraine_coup.2.a"
		add_stability = -0.20
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = party_pop_array^6 }
		change_relative_party_popularity = yes
		set_temp_variable = { rul_party_temp = 6 }
		set_temp_variable = { disable_elections = 1 }
		set_temp_variable = { col_one = 6 }
		change_ruling_party_effect = yes
		create_country_leader = {
			name = "Viktor Medvedchuk"
			picture = "Viktor_Medvedchuk_new.dds"
			ideology = Autocracy
			traits = {
				emerging_Conservative
				inexperienced
				stubborn
			}
		}
		hidden_effect = {
			start_civil_war = {
				ruling_party = ROOT
				ideology = nationalist
				size = 0.3
				capital = 700
				states = { 701 700 1111 1247 335 699 1249 1250 }
				set_cosmetic_tag = UKR_AUTH_SS_nationalist
				set_variable = { dynamic_flag_variant = 8 }
				set_popularities = {
					democratic = 20
					neutrality = 5
					fascism = 0
					communism = 5
					nationalist = 70
				}
				set_temp_variable = { rul_party_temp = 20 }
				set_temp_variable = { disable_elections = 1 }
				change_ruling_party_effect = yes
				set_temp_variable = { party_index = 20 }
				set_temp_variable = { party_popularity_multiplier = 1.5 }
				scale_party_popularity = yes
			}
		}
		SOV = {
			country_event = { id = russia.34 days = 1 }
		}
	}
}
#######OUR UKRAINE#######
country_event = {
	id = ukraine_our_ukraine.1
	title = ukraine_our_ukraine.1.t
	desc = ukraine_our_ukraine.1.d
	picture = GFX_verkhovna_rada_vote
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukraine_our_ukraine.1.a
		log = "[GetDateText]: [This.GetName]: ukraine_our_ukraine.1.a executed"
		add_ideas = UKR_our_ukraine_secretariat_of_president
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = ukraine_our_ukraine.2
	title = ukraine_our_ukraine.2.t
	desc = ukraine_our_ukraine.2.d
	picture = GFX_verkhovna_rada_vote
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukraine_our_ukraine.2.a
		log = "[GetDateText]: [This.GetName]: ukraine_our_ukraine.2.a executed"
		add_popularity = {
			ideology = nationalist
			popularity = 0.05
		}
		add_war_support = 0.03
		add_ideas = UKR_our_ukraine_ukrainian_institute_of_national_memory
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = ukraine_our_ukraine.4
	title = ukraine_our_ukraine.4.t
	desc = ukraine_our_ukraine.4.d
	picture = GFX_paris_convention
	is_triggered_only = yes

	option = {
		name = ukraine_our_ukraine.4.a
		log = "[GetDateText]: [This.GetName]: ukraine_our_ukraine.4.a executed"
		set_temp_variable = { treasury_change = -11 }
		modify_treasury_effect = yes
		add_to_variable = { int_investments = 3.50 }
		set_temp_variable = { percent_change = 3.03 }
		set_temp_variable = { tag_index = ROOT }
		set_temp_variable = { influence_target = UKR }
		change_influence_percentage = yes
		FROM = {
			country_event = {
				id = ukraine_our_ukraine.5
				days = 1
			}
		}
		ai_chance = {
			base = 50
			modifier = {
				has_opinion = { target = UKR value > 30 }
				add = 50
			}
		}
	}

	option = {
		name = ukraine_our_ukraine.4.b
		log = "[GetDateText]: [This.GetName]: ukraine_our_ukraine.4.b executed"
		hidden_effect = {
			FROM = {
				country_event = {
					id = ukraine_our_ukraine.6
					days = 1
				}
			}
		}
		ai_chance = {
			base = 50
			modifier = {
				has_opinion = { target = UKR value < 30 }
				add = 50
			}
		}
	}
}

country_event = {
	id = ukraine_our_ukraine.5
	title = ukraine_our_ukraine.5.t
	desc = ukraine_our_ukraine.5.d
	picture = GFX_paris_convention
	is_triggered_only = yes

	option = {
		name = ukraine_our_ukraine.5.a
		log = "[GetDateText]: [This.GetName]: ukraine_our_ukraine.5.a executed"
		random_owned_controlled_state = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}
	}
}

country_event = {
	id = ukraine_our_ukraine.6
	title = ukraine_our_ukraine.6.t
	desc = ukraine_our_ukraine.6.d
	picture = GFX_paris_convention
	is_triggered_only = yes

	option = { name = ukraine_our_ukraine.6.a }
}

country_event = {
	id = ukraine_our_ukraine.7
	title = ukraine_our_ukraine.7.t
	desc = ukraine_our_ukraine.7.d
	picture = GFX_negotiations
	is_triggered_only = yes

	option = {
		name = ukraine_our_ukraine.7.a
		log = "[GetDateText]: [This.GetName]: ukraine_our_ukraine.7.a executed"
		ai_chance = {
			base = 60
			modifier = {
				add = 25
				has_opinion = { target = FROM value > 0 }
			}
			modifier = {
				add = -40
				has_opinion = { target = FROM value < 0 }
			}
		}
		set_temp_variable = { percent_change = 5.03 }
		set_temp_variable = { tag_index = SOV }
		set_temp_variable = { influence_target = UKR }
		change_influence_percentage = yes
		UKR = { UKR_idea_ukraine_gas = yes }
		UKR_idea_russia_gas = yes
		UKR = { country_event = { id = ukraine_our_ukraine.8 days = 1 } }
	}

	option = {
		name = ukraine_our_ukraine.7.b
		log = "[GetDateText]: [This.GetName]: ukraine_our_ukraine.7.b executed"
		ai_chance = {
			base = 40
			modifier = {
				add = -25
				has_opinion = { target = FROM value > 0 }
			}
			modifier = {
				add = 40
				has_opinion = { target = FROM value < 0 }
			}
		}
		set_temp_variable = { percent_change = -5.03 }
		set_temp_variable = { tag_index = SOV }
		set_temp_variable = { influence_target = UKR }
		change_influence_percentage = yes
		UKR = { country_event = { id = ukraine_our_ukraine.9 days = 1 } }
	}
}
country_event = {
	id = ukraine_our_ukraine.8
	title = ukraine_our_ukraine.8.t
	desc = ukraine_our_ukraine.8.d
	picture = GFX_negotiations
	is_triggered_only = yes

	option = { name = ukraine_our_ukraine.8.a }
}
country_event = {
	id = ukraine_our_ukraine.9
	title = ukraine_our_ukraine.9.t
	desc = ukraine_our_ukraine.9.d
	picture = GFX_negotiations
	is_triggered_only = yes

	option = { name = ukraine_our_ukraine.9.a }
}
#Bucharest Summit
country_event = {
	id = ukraine_our_ukraine.10
	title = ukraine_our_ukraine.10.t
	desc = ukraine_our_ukraine.10.d
	picture = GFX_NATO_picture
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukraine_our_ukraine.10.a
		log = "[GetDateText]: [This.GetName]: ukraine_our_ukraine.10.a executed"
		ai_chance = {
			base = 70
			modifier = {
				add = 100
				is_historical_focus_on = yes
			}
		}
		set_temp_variable = { modify_europeanism = 0.05 }
		set_temp_variable = { modify_europeanism_target = ROOT }
		europeanism_change = yes
		add_opinion_modifier = {
			target = USA
			modifier = recent_actions_positive
		}
	}

	option = {
		name = ukraine_our_ukraine.10.b
		log = "[GetDateText]: [This.GetName]: ukraine_our_ukraine.10.b executed"
		ai_chance = {
			base = 30
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		set_temp_variable = { modify_europeanism = -0.05 }
		set_temp_variable = { modify_europeanism_target = ROOT }
		europeanism_change = yes
		add_opinion_modifier = {
			target = USA
			modifier = recent_actions_negative
		}
	}
}
#######PARTY OF REGION#######
#Russian Investition
country_event = {
	id = ukraine_regions.7
	title = ukraine_regions.7.t
	desc = ukraine_regions.7.d
	picture = GFX_stock_market
	is_triggered_only = yes

	option = {
		name = ukraine_regions.7.a
		log = "[GetDateText]: [This.GetName]: ukraine_regions.7.a executed"
		ai_chance = {
			base = 60
			modifier = {
				add = 25
				has_opinion = { target = FROM value > 0 }
			}
			modifier = {
				add = -40
				has_opinion = { target = FROM value < 0 }
			}
		}
		UKR = { country_event = { id = ukraine_regions.8 days = 1 } }
	}

	option = {
		name = ukraine_regions.7.b
		log = "[GetDateText]: [This.GetName]: ukraine_regions.7.b executed"
		ai_chance = {
			base = 40
			modifier = {
				add = -25
				has_opinion = { target = FROM value > 0 }
			}
			modifier = {
				add = 40
				has_opinion = { target = FROM value < 0 }
			}
		}
		UKR = { country_event = { id = ukraine_regions.9 days = 1 } }
	}
}
#Russian Investition Agree
country_event = {
	id = ukraine_regions.8
	title = ukraine_regions.8.t
	desc = ukraine_regions.8.d
	picture = GFX_stock_market
	is_triggered_only = yes

	option = {
		name = ukraine_regions.8.a
		log = "[GetDateText]: [This.GetName]: ukraine_regions.8.a executed"
		one_random_industrial_complex = yes
		set_temp_variable = { percent_change = 1.03 }
		set_temp_variable = { tag_index = SOV }
		set_temp_variable = { influence_target = UKR }
		change_influence_percentage = yes
	}
}
#Russian Investition Disagree
country_event = {
	id = ukraine_regions.9
	title = ukraine_regions.9.t
	desc = ukraine_regions.9.d
	picture = GFX_stock_market
	is_triggered_only = yes

	option = {
		name = ukraine_regions.9.a
		log = "[GetDateText]: [This.GetName]: ukraine_regions.9.a executed"
		set_temp_variable = { percent_change = -1.23 }
		set_temp_variable = { tag_index = SOV }
		set_temp_variable = { influence_target = UKR }
		change_influence_percentage = yes
	}
}
#SNG
country_event = {
	id = ukraine_regions.10
	title = ukraine_regions.10.t
	desc = ukraine_regions.10.d
	picture = GFX_ukr_cis
	is_triggered_only = yes

	option = {
		name = ukraine_regions.10.a
		log = "[GetDateText]: [This.GetName]: ukraine_regions.10.a executed"
		ai_chance = {
			base = 55
			modifier = {
				add = 20
				is_historical_focus_on = yes
			}
		}
		UKR_wve_rivlary_alignment_to_the_east = yes
		set_temp_variable = { modify_europeanism = -0.1 }
		set_temp_variable = { modify_europeanism_target = ROOT }
		europeanism_change = yes
	}

	option = {
		name = ukraine_regions.10.b
		log = "[GetDateText]: [This.GetName]: ukraine_regions.10.b executed"
		ai_chance = {
			base = 45
			modifier = {
				add = -20
				is_historical_focus_on = yes
			}
		}
		UKR_wve_rivlary_alignment_to_the_west = yes
		set_temp_variable = { modify_europeanism = 0.1 }
		set_temp_variable = { modify_europeanism_target = ROOT }
		europeanism_change = yes
	}
}
#Negotiate Europe
country_event = {
	id = ukraine_regions.11
	title = ukraine_regions.11.t
	desc = ukraine_regions.11.d
	picture = GFX_ukr_es
	is_triggered_only = yes

	option = {
		name = ukraine_regions.11.a
		log = "[GetDateText]: [This.GetName]: ukraine_regions.11.a executed"
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				UKR_ai_regions_path = yes
			}
		}
		UKR_wve_rivlary_alignment_to_the_west = yes
		set_temp_variable = { modify_europeanism = 0.1 }
		set_temp_variable = { modify_europeanism_target = ROOT }
		europeanism_change = yes
		if = {
			limit = { tag = UKR }
			set_country_flag = UKR_association_decided
		}
		if = {
			limit = {
				tag = UKR
				date > 2013.10.31
				NOT = { has_country_flag = UKR_association_recheck_scheduled }
				NOT = { has_country_flag = UKR_association_recheck_done }
			}
			set_country_flag = UKR_association_recheck_scheduled
			set_temp_variable = { tension_change = 20 }
			UKR_add_political_tension = yes
			hidden_effect = {
				country_event = { id = ukraine_revolution.21 days = 400 }
			}
		}
	}

	option = {
		name = ukraine_regions.11.b
		log = "[GetDateText]: [This.GetName]: ukraine_regions.11.b executed"
		ai_chance = {
			base = 50
			modifier = {
				add = 100
				UKR_ai_regions_path = yes
			}
		}
		UKR_wve_rivlary_alignment_to_the_east = yes
		set_temp_variable = { modify_europeanism = -0.1 }
		set_temp_variable = { modify_europeanism_target = ROOT }
		europeanism_change = yes
		if = {
			limit = { tag = UKR }
			set_country_flag = UKR_association_decided
		}
		if = {
			limit = {
				tag = UKR
				date > 2013.10.31
			}
			hidden_effect = { UKR_start_euromaidan = yes }
		}
	}
}
#Donbass Choose
country_event = {
	id = ukraine_regions.12
	title = ukraine_regions.12.t
	desc = ukraine_regions.12.d
	picture = GFX_ukr_donbass
	is_triggered_only = yes

	option = {
		name = ukraine_regions.12.a
		log = "[GetDateText]: [This.GetName]: ukraine_regions.12.a executed"
		ai_chance = {
			base = 35
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		UKR = { release = DPR }
		add_stability = 0.15
		DPR = {
			drop_cosmetic_tag = yes
			clear_variable = dynamic_flag_variant
			set_cosmetic_tag = DPR_donbass
			clr_country_flag = dynamic_flag
			set_country_flag = UKR_subject_agree
			transfer_state = 1076
			transfer_state = 1075
			transfer_state = 693
			transfer_state = 1030
			if = {
				limit = { UKR = { owns_state = 1030 } }
				DPR = { transfer_state = 1030 }
			}
			if = {
				limit = { UKR = { owns_state = 693 } }
				DPR = { transfer_state = 693 }
			}
			if = {
				limit = { UKR = { owns_state = 1075 } }
				DPR = { transfer_state = 1075 }
			}
			if = {
				limit = { UKR = { owns_state = 1076 } }
				DPR = { transfer_state = 1076 }
			}
			LPR = { every_core_state = { add_core_of = DPR } }
		}
		UKR = {
			set_autonomy = {
				target = DPR
				autonomy_state = autonomy_republic_ukr
			}
		}
		DPR = {
			if = {
				limit = { NOT = { has_idea = UKR_republic_ukr } }
				add_ideas = UKR_republic_ukr
			}
		}
	}

	option = {
		name = ukraine_regions.12.b
		ai_chance = {
			base = 65
			modifier = {
				add = 100
				is_historical_focus_on = yes
			}
		}
	}
}
#Kharkiv Pact
country_event = {
	id = ukraine_regions.13
	title = ukraine_regions.13.t
	desc = ukraine_regions.13.d
	picture = GFX_negotiations
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukraine_regions.13.a
		log = "[GetDateText]: [This.GetName]: ukraine_regions.13.a executed"
		ai_chance = {
			base = 80
			modifier = {
				add = 100
				is_historical_focus_on = yes
			}
		}
		add_opinion_modifier = {
			target = SOV
			modifier = recent_actions_positive
		}
		set_temp_variable = { treasury_change = 3 }
		modify_treasury_effect = yes
		UKR_wve_rivlary_alignment_to_the_east = yes
		set_temp_variable = { modify_europeanism = -0.05 }
		set_temp_variable = { modify_europeanism_target = ROOT }
		europeanism_change = yes
	}

	option = {
		name = ukraine_regions.13.b
		log = "[GetDateText]: [This.GetName]: ukraine_regions.13.b executed"
		ai_chance = {
			base = 20
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		add_opinion_modifier = {
			target = SOV
			modifier = recent_actions_negative
		}
		set_temp_variable = { treasury_change = -3 }
		modify_treasury_effect = yes
		UKR_wve_rivlary_alignment_to_the_west = yes
		set_temp_variable = { modify_europeanism = 0.05 }
		set_temp_variable = { modify_europeanism_target = ROOT }
		europeanism_change = yes
	}
}
#Tymoshenko Arrest
country_event = {
	id = ukraine_regions.14
	title = ukraine_regions.14.t
	desc = ukraine_regions.14.d
	picture = GFX_ukr_imopeachment
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukraine_regions.14.a
		log = "[GetDateText]: [This.GetName]: ukraine_regions.14.a executed"
		ai_chance = {
			base = 75
			modifier = {
				add = 100
				is_historical_focus_on = yes
			}
		}
		add_stability = 0.02
		add_popularity = {
			ideology = democratic
			popularity = -0.02
		}
		add_opinion_modifier = {
			target = GER
			modifier = recent_actions_negative
		}
		add_opinion_modifier = {
			target = FRA
			modifier = recent_actions_negative
		}
		add_opinion_modifier = {
			target = POL
			modifier = recent_actions_negative
		}
	}

	option = {
		name = ukraine_regions.14.b
		log = "[GetDateText]: [This.GetName]: ukraine_regions.14.b executed"
		ai_chance = {
			base = 25
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		add_stability = -0.02
		add_popularity = {
			ideology = democratic
			popularity = 0.02
		}
		add_opinion_modifier = {
			target = GER
			modifier = recent_actions_positive
		}
		add_opinion_modifier = {
			target = FRA
			modifier = recent_actions_positive
		}
		add_opinion_modifier = {
			target = POL
			modifier = recent_actions_positive
		}
	}
}
#Kivalov-Kolesnichenko Language Law
country_event = {
	id = ukraine_regions.15
	title = ukraine_regions.15.t
	desc = ukraine_regions.15.d
	picture = GFX_verkhovna_rada_vote
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukraine_regions.15.a
		log = "[GetDateText]: [This.GetName]: ukraine_regions.15.a executed"
		ai_chance = {
			base = 80
			modifier = {
				add = 100
				is_historical_focus_on = yes
			}
		}
		set_temp_variable = { tension_change = 5 }
		UKR_add_political_tension = yes
		UKR_wve_rivlary_alignment_to_the_east = yes
		set_temp_variable = { modify_europeanism = -0.05 }
		set_temp_variable = { modify_europeanism_target = ROOT }
		europeanism_change = yes
	}

	option = {
		name = ukraine_regions.15.b
		log = "[GetDateText]: [This.GetName]: ukraine_regions.15.b executed"
		ai_chance = {
			base = 20
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		add_stability = -0.02
		UKR_wve_rivlary_alignment_to_the_west = yes
		set_temp_variable = { modify_europeanism = 0.05 }
		set_temp_variable = { modify_europeanism_target = ROOT }
		europeanism_change = yes
	}
}
##############CONGRESS OF NATIONALISTS##############
#We take Crimea
country_event = {
	id = ukraine_congress.2
	title = ukraine_congress.2.t
	desc = ukraine_congress.2.d
	picture = GFX_eastern_europe
	is_triggered_only = yes

	trigger = { date > 2013.12.31 }

	option = {
		name = ukraine_congress.2.a
		log = "[GetDateText]: [This.GetName]: ukraine_congress.2.a executed"
		UKR = { transfer_state = 1112 }
	}
}
#Open Conversation about a Baltic Black Sea Alliance
country_event = {
	id = ukraine_congress.10
	title = ukraine_congress.10.t
	desc = ukraine_congress.10.d
	picture = GFX_eastern_europe
	is_triggered_only = yes

	#Accept the Open Dialogue
	option = {
		name = ukraine_congress.10.a
		log = "[GetDateText]: [This.GetName]: ukraine_congress.10.a executed"
		set_country_flag = supported_the_baltic_black_sea_union
		add_to_array = { global.baltic_black_sea_union_member = ROOT }
		UKR = { country_event = diplomatic_response.1 }
		ai_chance = {
			base = 100
			modifier = {
				is_subject = yes
				add = -100
			}
		}
	}

	#Fuck off Ukraine lil bitch
	option = {
		name = ukraine_congress.10.b
		log = "[GetDateText]: [This.GetName]: ukraine_congress.10.b executed"
		set_country_flag = did_not_support_the_baltic_black_sea_union
		UKR = { country_event = diplomatic_response.2 }
		ai_chance = {
			base = 0
			modifier = {
				is_subject = yes
				add = 100
			}
		}
	}
}

# Invited Country to the Alliance
country_event = {
	id = ukraine_congress.11
	title = ukraine_congress.11.t
	desc = ukraine_congress.11.d
	picture = GFX_eastern_europe
	is_triggered_only = yes

	option = {
		name = ukraine_congress.11.a
		log = "[GetDateText]: [This.GetName]: ukraine_congress.11.a executed"
		if = {
			limit = { has_idea = NATO_member }
			NATO_leave = yes
		}
		if = {
			limit = { is_in_faction = yes NOT = { original_tag = UKR } }
			leave_faction = yes
		}
		UKR = {
			add_to_faction = ROOT
			country_event = diplomatic_response.1
		}
		hidden_effect = {
			if = {
				limit = {
					OR = {
						has_country_flag = supported_the_baltic_black_sea_union
						has_country_flag = did_not_support_the_baltic_black_sea_union
					}
				}
				clr_country_flag = supported_the_baltic_black_sea_union
				clr_country_flag = did_not_support_the_baltic_black_sea_union
			}
		}
		ai_chance = {
			base = 100
			modifier = {
				is_subject = yes
				add = -100
			}
		}
	}

	option = {
		name = ukraine_congress.11.b
		log = "[GetDateText]: [This.GetName]: ukraine_congress.11.b executed"
		UKR = { country_event = diplomatic_response.2 }
		hidden_effect = {
			if = {
				limit = {
					OR = {
						has_country_flag = supported_the_baltic_black_sea_union
						has_country_flag = did_not_support_the_baltic_black_sea_union
					}
				}
				clr_country_flag = supported_the_baltic_black_sea_union
				clr_country_flag = did_not_support_the_baltic_black_sea_union
			}
		}
		ai_chance = {
			base = 0
			modifier = {
				is_subject = yes
				add = 100
			}
		}
	}
}
##############NATO##############
country_event = {
	id = ukraine_nato_help.1
	title = ukraine_nato_help.1.t
	desc = ukraine_nato_help.1.d
	picture = GFX_NATO_picture
	is_triggered_only = yes

	minor_flavor = yes
	trigger = { check_variable = { UKR_aid_report_donors^num > 0 } }

	option = {
		name = ukraine_nato_help.1.a
		log = "[GetDateText]: [This.GetName]: ukraine_nato_help.1.a executed"
		if = {
			limit = { check_variable = { UKR_aid_report_money > 0 } }
			custom_effect_tooltip = UKR_aid_report_money_tt
		}
		if = {
			limit = { check_variable = { UKR_aid_report_infantry > 0 } }
			effect_tooltip = { add_equipment_to_stockpile = { type = infantry_weapons_type amount = UKR_aid_report_infantry } }
		}
		if = {
			limit = { check_variable = { UKR_aid_report_cnc > 0 } }
			effect_tooltip = { add_equipment_to_stockpile = { type = cnc_equipment_type amount = UKR_aid_report_cnc } }
		}
		if = {
			limit = { check_variable = { UKR_aid_report_lat > 0 } }
			effect_tooltip = { add_equipment_to_stockpile = { type = L_AT_Equipment amount = UKR_aid_report_lat } }
		}
		if = {
			limit = { check_variable = { UKR_aid_report_aa > 0 } }
			effect_tooltip = { add_equipment_to_stockpile = { type = AA_Equipment amount = UKR_aid_report_aa } }
		}
		if = {
			limit = { check_variable = { UKR_aid_report_hat > 0 } }
			effect_tooltip = { add_equipment_to_stockpile = { type = H_AT_Equipment amount = UKR_aid_report_hat } }
		}
		if = {
			limit = { check_variable = { UKR_aid_report_artillery > 0 } }
			effect_tooltip = { add_equipment_to_stockpile = { type = artillery_equipment amount = UKR_aid_report_artillery } }
		}
		if = {
			limit = { check_variable = { UKR_aid_report_util > 0 } }
			effect_tooltip = { add_equipment_to_stockpile = { type = util_vehicle_type amount = UKR_aid_report_util } }
		}
		if = {
			limit = { check_variable = { UKR_aid_report_apc > 0 } }
			effect_tooltip = { add_equipment_to_stockpile = { type = medium_tank_amphibious_chassis amount = UKR_aid_report_apc } }
		}
		if = {
			limit = { check_variable = { UKR_aid_report_ifv > 0 } }
			effect_tooltip = { add_equipment_to_stockpile = { type = medium_tank_flame_chassis amount = UKR_aid_report_ifv } }
		}
		if = {
			limit = { check_variable = { UKR_aid_report_spart > 0 } }
			effect_tooltip = { add_equipment_to_stockpile = { type = medium_tank_artillery_chassis amount = UKR_aid_report_spart } }
		}
		if = {
			limit = { check_variable = { UKR_aid_report_mbt > 0 } }
			effect_tooltip = { add_equipment_to_stockpile = { type = medium_tank_chassis amount = UKR_aid_report_mbt } }
		}
		if = {
			limit = { check_variable = { UKR_aid_report_mbt_aa > 0 } }
			effect_tooltip = { add_equipment_to_stockpile = { type = medium_tank_aa_chassis amount = UKR_aid_report_mbt_aa } }
		}
		if = {
			limit = { check_variable = { UKR_aid_report_fighters > 0 } }
			if = {
				limit = { has_dlc = "By Blood Alone" }
				effect_tooltip = { add_equipment_to_stockpile = { variant_name = "F-15C Eagle" type = medium_plane_fighter_airframe_2 amount = UKR_aid_report_fighters } }
			}
			else = {
				effect_tooltip = { add_equipment_to_stockpile = { type = MR_Fighter2 amount = UKR_aid_report_fighters } }
			}
		}
		if = {
			limit = { check_variable = { UKR_aid_report_strike > 0 } }
			if = {
				limit = { has_dlc = "By Blood Alone" }
				effect_tooltip = { add_equipment_to_stockpile = { variant_name = "F-16C Fighting Falcon" type = small_plane_strike_airframe_2 amount = UKR_aid_report_strike } }
			}
			else = {
				effect_tooltip = { add_equipment_to_stockpile = { type = small_plane_strike_airframe amount = UKR_aid_report_strike } }
			}
		}
		hidden_effect = { UKR_clear_nato_aid_report = yes }
	}
}
##############HUR##############
#Belarus Attack
country_event = {
	id = ukraine_hur.1
	title = ukraine_hur.1.t
	desc = ukraine_hur.1.d
	picture = GFX_special_forces
	is_triggered_only = yes

	option = {
		name = ukraine_hur.1.a
		log = "[GetDateText]: [This.GetName]: ukraine_hur.1.a executed"
		UKR_HUR_battalions_belarus = yes
	}
}
#Belarus Attack
country_event = {
	id = ukraine_hur.3
	title = ukraine_hur.3.t
	desc = ukraine_hur.3.d
	picture = GFX_special_forces
	is_triggered_only = yes

	option = {
		name = ukraine_hur.3.a
		log = "[GetDateText]: [This.GetName]: ukraine_hur.3.a executed"
		UKR_HUR_battalions_poland = yes
	}
}
#Kuban Attack
country_event = {
	id = ukraine_hur.4
	title = ukraine_hur.4.t
	desc = ukraine_hur.4.d
	picture = GFX_special_forces
	is_triggered_only = yes

	option = {
		name = ukraine_hur.4.a
		log = "[GetDateText]: [This.GetName]: ukraine_hur.4.a executed"
		declare_war_on = {
			target = SOV
			type = annex_everything
		}
		UKR_HUR_battalions_kuban = yes
	}
}
#Crimea Attack
country_event = {
	id = ukraine_hur.5
	title = ukraine_hur.5.t
	desc = ukraine_hur.5.d
	picture = GFX_special_forces
	is_triggered_only = yes

	option = {
		name = ukraine_hur.5.a
		log = "[GetDateText]: [This.GetName]: ukraine_hur.5.a executed"
		declare_war_on = {
			target = SOV
			type = annex_everything
		}
		UKR_HUR_battalions_crimea = yes
	}
}
#Chechnya Attack
country_event = {
	id = ukraine_hur.6
	title = ukraine_hur.6.t
	desc = ukraine_hur.6.d
	picture = GFX_special_forces
	is_triggered_only = yes

	option = {
		name = ukraine_hur.6.a
		log = "[GetDateText]: [This.GetName]: ukraine_hur.6.a executed"
		declare_war_on = {
			target = SOV
			type = annex_everything
		}
		UKR_HUR_battalions_chechnya = yes
	}
}
#Dagestan Attack
country_event = {
	id = ukraine_hur.7
	title = ukraine_hur.7.t
	desc = ukraine_hur.7.d
	picture = GFX_special_forces
	is_triggered_only = yes

	option = {
		name = ukraine_hur.7.a
		log = "[GetDateText]: [This.GetName]: ukraine_hur.7.a executed"
		declare_war_on = {
			target = SOV
			type = annex_everything
		}
		UKR_HUR_battalions_dagestan = yes
	}
}
#Kuban Attack(Commies)
country_event = {
	id = ukraine_hur.8
	title = ukraine_hur.8.t
	desc = ukraine_hur.8.d
	picture = GFX_special_forces
	is_triggered_only = yes

	option = {
		name = ukraine_hur.8.a
		log = "[GetDateText]: [This.GetName]: ukraine_hur.8.a executed"
		declare_war_on = {
			target = SOV
			type = annex_everything
		}
		UKR_HUR_battalions_cuban = yes
	}
}
#Belgorod Attack
country_event = {
	id = ukraine_hur.9
	title = ukraine_hur.9.t
	desc = ukraine_hur.9.d
	picture = GFX_special_forces
	is_triggered_only = yes

	option = {
		name = ukraine_hur.9.a
		log = "[GetDateText]: [This.GetName]: ukraine_hur.9.a executed"
		declare_war_on = {
			target = SOV
			type = annex_everything
		}
		UKR_HUR_battalions_belgorod = yes
	}
}
#Tatarstan Attack
country_event = {
	id = ukraine_hur.10
	title = ukraine_hur.10.t
	desc = ukraine_hur.10.d
	picture = GFX_special_forces
	is_triggered_only = yes

	option = {
		name = ukraine_hur.10.a
		log = "[GetDateText]: [This.GetName]: ukraine_hur.10.a executed"
		declare_war_on = {
			target = SOV
			type = annex_everything
		}
		UKR_HUR_battalions_tatarstan = yes
	}
}
#Far East Attack
country_event = {
	id = ukraine_hur.11
	title = ukraine_hur.11.t
	desc = ukraine_hur.11.d
	picture = GFX_special_forces
	is_triggered_only = yes

	option = {
		name = ukraine_hur.11.a
		log = "[GetDateText]: [This.GetName]: ukraine_hur.11.a executed"
		drop_cosmetic_tag = yes
		clear_variable = dynamic_flag_variant
		set_cosmetic_tag = FAR_green_klin
		FAR = {
			if = {
				limit = { NOT = { check_variable = { ruling_party = 21 } } }
				set_temp_variable = { rul_party_temp = 21 }
				set_temp_variable = { disable_elections = 1 }
				change_ruling_party_effect = yes
			}
		}
		declare_war_on = {
			target = SOV
			type = take_core_state
		}
		UKR_HUR_battalions_vladivostok = yes
	}
}
#Silesia Attack
country_event = {
	id = ukraine_hur.12
	title = ukraine_hur.12.t
	desc = ukraine_hur.12.d
	picture = GFX_special_forces
	is_triggered_only = yes

	option = {
		name = ukraine_hur.12.a
		log = "[GetDateText]: [This.GetName]: ukraine_hur.12.a executed"
		SIL = {
			if = {
				limit = { NOT = { check_variable = { ruling_party = 4 } } }
				set_temp_variable = { rul_party_temp = 4 }
				set_temp_variable = { disable_elections = 1 }
				change_ruling_party_effect = yes
			}
		}
		declare_war_on = {
			target = POL
			type = take_core_state
		}
		UKR_HUR_battalions_silesia = yes
	}
}
#Kashubia Attack
country_event = {
	id = ukraine_hur.13
	title = ukraine_hur.13.t
	desc = ukraine_hur.13.d
	picture = GFX_special_forces
	is_triggered_only = yes

	option = {
		name = ukraine_hur.13.a
		log = "[GetDateText]: [This.GetName]: ukraine_hur.13.a executed"
		KSH = {
			if = {
				limit = { NOT = { check_variable = { ruling_party = 4 } } }
				set_temp_variable = { rul_party_temp = 4 }
				set_temp_variable = { disable_elections = 1 }
				change_ruling_party_effect = yes
			}
		}
		declare_war_on = {
			target = KSH
			type = take_core_state
		}
		UKR_HUR_battalions_kashubia = yes
	}
}
##############POROSHENKO##############
#Belarus non agress
country_event = {
	id = ukraine_poroh.1
	title = ukraine_poroh.1.t
	desc = ukraine_poroh.1.d
	picture = GFX_poroh_belarus_pact
	is_triggered_only = yes

	option = {
		name = ukraine_poroh.1.a
		log = "[GetDateText]: [This.GetName]: ukraine_poroh.1.a executed"
		ai_chance = {
			base = 50
			modifier = {
				add = 30
				has_opinion = { target = FROM value > 0 }
			}
			modifier = {
				add = -40
				has_opinion = { target = FROM value < 0 }
			}
		}
		diplomatic_relation = {
			country = UKR
			relation = non_aggression_pact
		}
		UKR = { country_event = ukraine_poroh.2 }
	}

	option = {
		name = ukraine_poroh.1.b
		log = "[GetDateText]: [This.GetName]: ukraine_poroh.1.b executed"
		ai_chance = {
			base = 50
			modifier = {
				add = -30
				has_opinion = { target = FROM value > 0 }
			}
			modifier = {
				add = 40
				has_opinion = { target = FROM value < 0 }
			}
		}
		UKR = { country_event = ukraine_poroh.3 }
	}
}
#Belarus non agress agree
country_event = {
	id = ukraine_poroh.2
	title = ukraine_poroh.2.t
	desc = ukraine_poroh.2.d
	picture = GFX_poroh_belarus_pact
	is_triggered_only = yes

	option = {
		name = ukraine_poroh.2.a
		log = "[GetDateText]: [This.GetName]: ukraine_poroh.2.a executed"
		diplomatic_relation = {
			country = BLR
			relation = non_aggression_pact
		}
	}
}
#Belarus non agress
country_event = {
	id = ukraine_poroh.3
	title = ukraine_poroh.3.t
	desc = ukraine_poroh.3.d
	picture = GFX_poroh_belarus_pact
	is_triggered_only = yes

	option = { name = ukraine_poroh.3.a }
}
#Greece Kefalia
country_event = {
	id = ukraine_poroh.4
	title = ukraine_poroh.4.t
	desc = ukraine_poroh.4.d
	picture = GFX_poroh_cerkov
	is_triggered_only = yes

	option = {
		name = ukraine_poroh.4.a
		log = "[GetDateText]: [This.GetName]: ukraine_poroh.4.a executed"
		UKR = { country_event = ukraine_poroh.5 }
	}

	option = {
		name = ukraine_poroh.4.b
		log = "[GetDateText]: [This.GetName]: ukraine_poroh.4.b executed"
		UKR = { country_event = ukraine_poroh.6 }
	}
}
#Greece Kefalia Agree
country_event = {
	id = ukraine_poroh.5
	title = ukraine_poroh.5.t
	desc = ukraine_poroh.5.d
	picture = GFX_poroh_cerkov
	is_triggered_only = yes

	option = {
		name = ukraine_poroh.5.a
		log = "[GetDateText]: [This.GetName]: ukraine_poroh.5.a executed"
		set_country_flag = UKR_kefalia_agree
	}
}
#Greece Kefalia Disagree
country_event = {
	id = ukraine_poroh.6
	title = ukraine_poroh.6.t
	desc = ukraine_poroh.6.d
	picture = GFX_poroh_cerkov
	is_triggered_only = yes

	option = { name = ukraine_poroh.6.a }
}
#Visegrad Co op
country_event = {
	id = ukraine_poroh.7
	title = ukraine_poroh.7.t
	desc = ukraine_poroh.7.d
	picture = GFX_visegrad_ukr
	is_triggered_only = yes

	option = {
		name = ukraine_poroh.7.a
		log = "[GetDateText]: [This.GetName]: ukraine_poroh.7.a executed"
		ai_chance = {
			base = 50
			modifier = {
				add = 30
				has_opinion = { target = FROM value > 0 }
			}
			modifier = {
				add = -40
				has_opinion = { target = FROM value < 0 }
			}
		}
		set_temp_variable = { percent_change = 3 }
		set_temp_variable = { tag_index = ROOT }
		set_temp_variable = { influence_target = UKR }
		change_influence_percentage = yes
		add_opinion_modifier = {
			target = UKR
			modifier = improve_trade
		}
		reverse_add_opinion_modifier = {
			target = UKR
			modifier = improve_trade
		}
		UKR = { country_event = ukraine_poroh.8 }
	}

	option = {
		name = ukraine_poroh.7.b
		log = "[GetDateText]: [This.GetName]: ukraine_poroh.7.b executed"
		ai_chance = {
			base = 50
			modifier = {
				add = -30
				has_opinion = { target = FROM value > 0 }
			}
			modifier = {
				add = 40
				has_opinion = { target = FROM value < 0 }
			}
		}
		UKR = { country_event = ukraine_poroh.9 }
	}
}
#Visegrad Co op Agree
country_event = {
	id = ukraine_poroh.8
	title = ukraine_poroh.8.t
	desc = ukraine_poroh.8.d
	picture = GFX_visegrad_ukr
	is_triggered_only = yes

	option = {
		name = ukraine_poroh.8.a
		log = "[GetDateText]: [This.GetName]: ukraine_poroh.8.a executed"
		add_opinion_modifier = {
			target = FROM
			modifier = improve_trade
		}
		reverse_add_opinion_modifier = {
			target = FROM
			modifier = improve_trade
		}
		set_temp_variable = { int_investment_change = 1 }
		modify_international_investment_effect = yes
	}
}
#Visegrad Co op Disagree
country_event = {
	id = ukraine_poroh.9
	title = ukraine_poroh.9.t
	desc = ukraine_poroh.9.d
	picture = GFX_visegrad_ukr
	is_triggered_only = yes

	option = { name = ukraine_poroh.9.a }
}
##############KOLOMOISKYI##############
#Start Republic
country_event = {
	id = ukraine_kolom.1
	title = ukraine_kolom.1.t
	desc = ukraine_kolom.1.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = ukraine_kolom.1.a
		log = "[GetDateText]: [This.GetName]: ukraine_kolom.1.a executed"
		hidden_effect = {
			delete_unit_template_and_units = {
				division_template = "Donbass-Ukraine Battalion"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Police Regiment"
				disband = yes
			}
			DRP = {
				transfer_state = 1087
				add_state_core = 1087
				country_event = ukraine_kolom.2
			}
			set_country_flag = UKR_kolomoisky_dnipro_autonomy
		}
		declare_war_on = {
			target = DRP
			type = annex_everything
		}
	}

	option = {
		name = ukraine_kolom.1.b
		log = "[GetDateText]: [This.GetName]: ukraine_kolom.1.a executed"
		hidden_effect = {
			delete_unit_template_and_units = {
				division_template = "Donbass-Ukraine Battalion"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Aidar Battalion"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Police Regiment"
				disband = yes
			}
			DRP = {
				transfer_state = 1087
				add_state_core = 1087
				country_event = ukraine_kolom.2
			}
			set_country_flag = UKR_kolomoisky_dnipro_autonomy
		}
		UKR = {
			set_autonomy = {
				target = DRP
				autonomy_state = autonomy_republic_ukr
			}
		}
	}
}
#Army Republic
country_event = {
	id = ukraine_kolom.2
	title = ukraine_kolom.2.t
	desc = ukraine_kolom.2.d
	is_triggered_only = yes

	option = {
		name = ukraine_kolom.2.a
		log = "[GetDateText]: [This.GetName]: ukraine_kolom.2.a executed"
		hidden_effect = {
			create_country_leader = {
				name = "Igor Kolomoisky"
				picture = "gfx/leaders/UKR/ukr_kolom.dds"
				expire = "2025.1.1"
				ideology = oligarchism
				traits = {
					neutrality_oligarchism
					rational
				}
			}
			division_template = {
				name = "Donbass-Ukraine Battalion"
				regiments = {
					Special_Forces = { x = 0 y = 0 }
					Special_Forces = { x = 0 y = 1 }
					Special_Forces = { x = 0 y = 2 }
				}
				support = {
					L_Engi_Comp = { x = 0 y = 0 }
					L_Recce_Comp = { x = 0 y = 0 }
				}
				priority = 2
			}
			1087 = {
				create_unit = {
					division = "name = \"Donbass-Ukraine Battalion\" division_template = \"Donbass-Ukraine Battalion\" start_experience_factor = 0.1"
					prioritize_location = 11437
					owner = DRP
				}
			}
		}
		division_template = {
			name = "Aidar Battalion"
			regiments = {
				Arm_Inf_Bat = { x = 0 y = 0 }
				Mech_Inf_Bat = { x = 0 y = 1 }
				Mech_Inf_Bat = { x = 0 y = 2 }
				Mot_Inf_Bat = { x = 1 y = 0 }
				Mot_Inf_Bat = { x = 1 y = 1 }
			}
			support = {
				Arty_Battery = { x = 0 y = 0 }
			}
		}
		1087 = {
			create_unit = {
				division = "name = \"Aidar Battalion\" division_template = \"Aidar Battalion\" start_experience_factor = 0.1"
				prioritize_location = 11437
				owner = DRP
			}
		}
		division_template = {
			name = "Police Regiment"
			regiments = {
				Militia_Bat = { x = 0 y = 0 }
				Militia_Bat = { x = 0 y = 1 }
			}
			support = {
				Mot_Recce_Comp = { x = 0 y = 0 }
				L_Engi_Comp = { x = 0 y = 1 }
			}
		}
		1087 = {
			create_unit = {
				division = "name = \"Police Regiment Dnipro-1\" division_template = \"Police Regiment\" start_experience_factor = 0.1"
				prioritize_location = 11437
				owner = DRP
			}
		}
	}
}
##############KOMMUNISTS##############
# Russia give me please nuclear
country_event = {
	id = ukraine_kommi.1
	title = ukraine_kommi.1.t
	desc = ukraine_kommi.1.d
	picture = GFX_weapons_arms1
	is_triggered_only = yes

	option = {
		name = ukraine_kommi.1.a
		log = "[GetDateText]: [This.GetName]: ukraine_kommi.1.a executed"
		ai_chance = {
			base = 5
			modifier = {
				add = 45
				date > 2015.01.01
			}
			modifier = {
				add = 25
				date > 2020.01.01
			}
			modifier = {
				add = 20
				emerging_communist_state_are_in_power = yes
			}
			modifier = {
				add = -60
				has_war = yes
			}
		}
		if = {
			limit = { has_dlc = "Gotterdammerung" UKR = { nuclear_grant_allowed = yes } }
			send_equipment = {
				type = nuclear_missile_equipment
				amount = 15
				target = UKR
			}
		}
		set_temp_variable = { percent_change = 2.03 }
		set_temp_variable = { tag_index = SOV }
		set_temp_variable = { influence_target = UKR }
		change_influence_percentage = yes
		UKR = { country_event = ukraine_kommi.2 }
	}

	option = {
		name = ukraine_kommi.1.b
		log = "[GetDateText]: [This.GetName]: ukraine_kommi.1.b executed"
		ai_chance = {
			base = 95
			modifier = {
				add = -45
				date > 2015.01.01
			}
			modifier = {
				add = -25
				date > 2020.01.01
			}
			modifier = {
				add = -20
				emerging_communist_state_are_in_power = yes
			}
		}
		UKR = { country_event = ukraine_kommi.2 }
	}
}

# Russia give nuclear missiles pls
country_event = {
	id = ukraine_kommi.2
	title = ukraine_kommi.2.t
	desc = ukraine_kommi.2.d
	picture = GFX_weapons_arms1
	is_triggered_only = yes

	option = {
		name = ukraine_kommi.2.a
		log = "[GetDateText]: [This.GetName]: ukraine_kommi.2.a executed"
		add_equipment_to_stockpile = {
			type = guided_missile_equipment_4
			amount = 15
		}
		if = {
			limit = { nuclear_grant_allowed = yes }
			add_equipment_to_stockpile = {
				type = nuclear_missile_equipment_4
				amount = 15
			}
		}
		set_temp_variable = { percent_change = 2.03 }
		set_temp_variable = { tag_index = SOV }
		set_temp_variable = { influence_target = UKR }
		change_influence_percentage = yes
	}
}

#Revoult Subject our puppet
country_event = {
	id = ukraine_kommi.4
	title = ukraine_kommi.4.t
	desc = ukraine_kommi.4.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = ukraine_kommi.4.a
		log = "[GetDateText]: [This.GetName]: ukraine_kommi.4.a executed"
		UKR = {
			if = {
				limit = { has_global_flag = GAME_RULE_allow_colored_puppets }
				set_autonomy = {
					target = ROOT
					autonomy_state = autonomy_associated_state_colored
					end_wars = no
					end_civil_wars = no
				}
			}
			else = {
				set_autonomy = {
					target = ROOT
					autonomy_state = autonomy_associated_state
					end_wars = no
					end_civil_wars = no
				}
			}
		}
	}
}
#Friendship
country_event = {
	id = ukraine_kommi.5
	title = ukraine_kommi.5.t
	desc = ukraine_kommi.5.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = {
		name = ukraine_kommi.5.a
		log = "[GetDateText]: [This.GetName]: ukraine_kommi.5.a executed"
		ai_chance = {
			base = 20
			modifier = {
				add = 40
				date > 2010.01.01
			}
			modifier = {
				add = 20
				date > 2015.01.01
			}
			modifier = {
				add = 20
				emerging_communist_state_are_in_power = yes
			}
		}
		diplomatic_relation = {
			country = UKR
			relation = non_aggression_pact
			active = yes
		}
		give_military_access = UKR
		add_opinion_modifier = {
			target = UKR
			modifier = military_cooperation
		}
		UKR = { country_event = ukraine_kommi.6 }
	}

	option = {
		name = ukraine_kommi.5.b
		log = "[GetDateText]: [This.GetName]: ukraine_kommi.5.b executed"
		ai_chance = {
			base = 80
			modifier = {
				add = -40
				date > 2010.01.01
			}
			modifier = {
				add = -20
				date > 2015.01.01
			}
			modifier = {
				add = -20
				emerging_communist_state_are_in_power = yes
			}
		}
		UKR = { country_event = ukraine_kommi.7 }
	}
}
#Friendship agree
country_event = {
	id = ukraine_kommi.6
	title = ukraine_kommi.6.t
	desc = ukraine_kommi.6.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = {
		name = ukraine_kommi.6.a
		log = "[GetDateText]: [This.GetName]: ukraine_kommi.6.a executed"
		diplomatic_relation = {
			country = FROM
			relation = non_aggression_pact
			active = yes
		}
		give_military_access = FROM
		add_opinion_modifier = {
			target = FROM
			modifier = military_cooperation
		}
	}
}
#Friendship agree
country_event = {
	id = ukraine_kommi.7
	title = ukraine_kommi.7.t
	desc = ukraine_kommi.7.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = { name = ukraine_kommi.7.a }
}
#Create Union Soc Dem
country_event = {
	id = ukraine_kommi.8
	title = ukraine_kommi.8.t
	desc = ukraine_kommi.8.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = ukraine_kommi.8.a
		log = "[GetDateText]: [This.GetName]: ukraine_kommi.8.a executed"
		if = {
			limit = {
				OR = {
					tag = PMR
					AND = {
						tag = HUN
						date > 2013.12.31
						country_exists = UKR
						NOT = { has_war_with = UKR }
						all_core_state = {
							is_owned_by = HUN
							is_controlled_by = HUN
						}
					}
				}
			}
			UKR = {
				if = {
					limit = { NOT = { has_cosmetic_tag = UKR_union_dem_neutrality } }
					drop_cosmetic_tag = yes
					clear_variable = dynamic_flag_variant
					set_cosmetic_tag = UKR_union_dem_neutrality
				}
			}
		}
		if = {
			limit = { tag = PMR }
			UKR = {
				add_political_power = -100
				set_temp_variable = { treasury_change = -8 }
				modify_treasury_effect = yes
				annex_country = { target = PMR transfer_troops = yes }
				PMR = { every_core_state = { add_core_of = UKR } }
				hidden_effect = {
					add_to_variable = { treasury = PMR.treasury }
					add_to_variable = { debt = PMR.debt }
					add_to_variable = { int_investments = PMR.int_investments }
				}
			}
		}
		if = {
			limit = {
				tag = HUN
				date > 2013.12.31
				country_exists = UKR
				NOT = { has_war_with = UKR }
				all_core_state = {
					is_owned_by = HUN
					is_controlled_by = HUN
				}
			}
			UKR = {
				add_political_power = -100
				set_temp_variable = { treasury_change = -8 }
				modify_treasury_effect = yes
				annex_country = { target = HUN transfer_troops = yes }
				HUN = { every_core_state = { add_core_of = UKR } }
				hidden_effect = {
					add_to_variable = { treasury = HUN.treasury }
					add_to_variable = { debt = HUN.debt }
					add_to_variable = { int_investments = HUN.int_investments }
				}
			}
		}
		if = {
			limit = { tag = BLR }
			UKR = {
				add_political_power = -100
				set_temp_variable = { treasury_change = -8 }
				modify_treasury_effect = yes
				annex_country = { target = BLR transfer_troops = yes }
				BLR = { every_core_state = { add_core_of = UKR } }
				hidden_effect = {
					add_to_variable = { treasury = BLR.treasury }
					add_to_variable = { debt = BLR.debt }
					add_to_variable = { int_investments = BLR.int_investments }
				}
			}
		}
		if = {
			limit = { tag = MLV }
			UKR = {
				add_political_power = -100
				set_temp_variable = { treasury_change = -8 }
				modify_treasury_effect = yes
				annex_country = { target = MLV transfer_troops = yes }
				MLV = { every_core_state = { add_core_of = UKR } }
				hidden_effect = {
					add_to_variable = { treasury = MLV.treasury }
					add_to_variable = { debt = MLV.debt }
					add_to_variable = { int_investments = MLV.int_investments }
				}
			}
		}
		ai_chance = {
			base = 40
			modifier = {
				add = 30
				has_opinion = { target = FROM value > 50 }
			}
			modifier = {
				add = -30
				has_opinion = { target = FROM value < 0 }
			}
			modifier = {
				add = 20
				has_government = communism
			}
		}
	}

	option = {
		name = ukraine_kommi.8.b
		log = "[GetDateText]: [This.GetName]: ukraine_kommi.8.b executed"
		UKR = { country_event = ukraine_kommi.9 }
		ai_chance = {
			base = 60
			modifier = {
				add = -30
				has_opinion = { target = FROM value > 50 }
			}
			modifier = {
				add = 30
				has_opinion = { target = FROM value < 0 }
			}
			modifier = {
				add = -20
				has_government = communism
			}
		}
	}
}
#They Disagree Union Soc Dem
country_event = {
	id = ukraine_kommi.9
	title = ukraine_kommi.9.t
	desc = ukraine_kommi.9.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	option = { name = ukraine_kommi.9.a }
}
#Protect Help
country_event = {
	id = ukraine_kommi.10
	title = ukraine_kommi.10.t
	desc = ukraine_kommi.10.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = ukraine_kommi.10.a
		log = "[GetDateText]: [This.GetName]: ukraine_kommi.10.a executed"
		ai_chance = {
			base = 10
			modifier = {
				add = 40
				date > 2015.01.01
			}
			modifier = {
				add = 25
				date > 2020.01.01
			}
			modifier = {
				add = 15
				emerging_communist_state_are_in_power = yes
			}
			modifier = {
				add = -30
				has_war = yes
			}
		}
		give_guarantee = UKR
		UKR = { country_event = ukraine_kommi.11 }
	}

	option = {
		name = ukraine_kommi.10.b
		log = "[GetDateText]: [This.GetName]: ukraine_kommi.10.b executed"
		ai_chance = {
			base = 90
			modifier = {
				add = -40
				date > 2015.01.01
			}
			modifier = {
				add = -25
				date > 2020.01.01
			}
			modifier = {
				add = -15
				emerging_communist_state_are_in_power = yes
			}
		}
		UKR = { country_event = ukraine_kommi.12 }
	}
}
#Protect Help Agree
country_event = {
	id = ukraine_kommi.11
	title = ukraine_kommi.11.t
	desc = ukraine_kommi.11.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = ukraine_kommi.11.a
		log = "[GetDateText]: [This.GetName]: ukraine_kommi.11.a executed"
		give_guarantee = SOV
	}
}
#Protect Help Disagree
country_event = {
	id = ukraine_kommi.12
	title = ukraine_kommi.12.t
	desc = ukraine_kommi.12.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = { name = ukraine_kommi.12.a }
}
#Gas Oil with Russia
country_event = {
	id = ukraine_kommi.13
	title = ukraine_kommi.13.t
	desc = ukraine_kommi.13.d
	picture = GFX_negotiations
	is_triggered_only = yes

	option = {
		name = ukraine_kommi.13.a
		log = "[GetDateText]: [This.GetName]: ukraine_kommi.13.a executed"
		ai_chance = {
			base = 30
			modifier = {
				add = 30
				date > 2008.01.01
			}
			modifier = {
				add = 20
				date > 2015.01.01
			}
			modifier = {
				add = 10
				emerging_communist_state_are_in_power = yes
			}
		}
		set_temp_variable = { percent_change = 5.03 }
		set_temp_variable = { tag_index = SOV }
		set_temp_variable = { influence_target = UKR }
		change_influence_percentage = yes
		UKR = { UKR_idea_ukraine_gas = yes }
		UKR_idea_russia_gas = yes
		UKR = { country_event = { id = ukraine_kommi.14 days = 1 } }
	}

	option = {
		name = ukraine_kommi.13.b
		log = "[GetDateText]: [This.GetName]: ukraine_kommi.13.b executed"
		ai_chance = {
			base = 70
			modifier = {
				add = -30
				date > 2008.01.01
			}
			modifier = {
				add = -20
				date > 2015.01.01
			}
			modifier = {
				add = -10
				emerging_communist_state_are_in_power = yes
			}
		}
		set_temp_variable = { percent_change = -5.03 }
		set_temp_variable = { tag_index = SOV }
		set_temp_variable = { influence_target = UKR }
		change_influence_percentage = yes
		UKR = { country_event = { id = ukraine_kommi.15 days = 1 } }
	}
}
country_event = {
	id = ukraine_kommi.14
	title = ukraine_kommi.14.t
	desc = ukraine_kommi.14.d
	picture = GFX_negotiations
	is_triggered_only = yes

	option = { name = ukraine_kommi.14.a }
}
country_event = {
	id = ukraine_kommi.15
	title = ukraine_kommi.15.t
	desc = ukraine_kommi.15.d
	picture = GFX_negotiations
	is_triggered_only = yes

	option = { name = ukraine_kommi.15.a }
}
#Russia notified of communist uprising sponsored by Ukraine
country_event = {
	id = ukraine_kommi.16
	title = ukraine_kommi.16.t
	desc = ukraine_kommi.16.d
	picture = GFX_ukrainian_civil_war
	is_triggered_only = yes

	option = {
		name = ukraine_kommi.16.a
		log = "[GetDateText]: [This.GetName]: ukraine_kommi.16.a executed"
		add_opinion_modifier = {
			target = UKR
			modifier = bad_revoult
		}
	}
}
#Full Union State proposal to Russia
country_event = {
	id = ukraine_union.1
	title = ukraine_union.1.t
	desc = ukraine_union.1.d
	picture = GFX_eastern_europe
	is_triggered_only = yes

	option = {
		name = ukraine_union.1.a
		log = "[GetDateText]: [This.GetName]: ukraine_union.1.a executed"
		custom_effect_tooltip = BLR_Union_state_created_TT
		SOV = { every_core_state = { add_core_of = UKR } }
		FROM = {
			set_capital = {
				state = 652
				remember_old_capital = no
			}
			add_stability = -0.15
			add_war_support = -0.10
			add_political_power = -500
			inherit_technology = SOV
			annex_country = { target = SOV transfer_troops = yes }
			set_temp_variable = { percent_change = 25 }
			change_domestic_influence_percentage = yes
			hidden_effect = {
				if = {
					limit = { CHE = { is_subject_of = SOV } }
					annex_country = { target = CHE transfer_troops = yes }
					add_to_variable = { treasury = CHE.treasury }
					add_to_variable = { debt = CHE.debt }
					add_to_variable = { int_investments = CHE.int_investments }
				}
				if = {
					limit = { BSH = { is_subject_of = SOV } }
					annex_country = { target = BSH transfer_troops = yes }
					add_to_variable = { treasury = BSH.treasury }
					add_to_variable = { debt = BSH.debt }
					add_to_variable = { int_investments = BSH.int_investments }
				}
				if = {
					limit = { DPR = { is_subject_of = SOV } }
					annex_country = { target = DPR transfer_troops = yes }
					add_to_variable = { treasury = DPR.treasury }
					add_to_variable = { debt = DPR.debt }
					add_to_variable = { int_investments = DPR.int_investments }
				}
				if = {
					limit = { LPR = { is_subject_of = SOV } }
					annex_country = { target = LPR transfer_troops = yes }
					add_to_variable = { treasury = LPR.treasury }
					add_to_variable = { debt = LPR.debt }
					add_to_variable = { int_investments = LPR.int_investments }
				}
				if = {
					limit = { BLR = { is_subject_of = SOV } }
					annex_country = { target = BLR transfer_troops = yes }
					add_to_variable = { treasury = BLR.treasury }
					add_to_variable = { debt = BLR.debt }
					add_to_variable = { int_investments = BLR.int_investments }
				}
				add_to_variable = { treasury = SOV.treasury }
				add_to_variable = { debt = SOV.debt }
				add_to_variable = { int_investments = SOV.int_investments }
				set_variable = { tag_to_grab = SOV }
				update_missile_satellite_inventory = yes
			}
		}
		ai_chance = {
			base = 10
			modifier = {
				add = 30
				has_opinion = { target = FROM value > 100 }
			}
			modifier = {
				add = 15
				has_opinion = { target = FROM value > 50 }
			}
			modifier = {
				add = 20
				has_government = FROM
			}
			modifier = {
				add = -30
				has_opinion = { target = FROM value < 0 }
			}
		}
	}

	option = {
		name = ukraine_union.1.b
		log = "[GetDateText]: [This.GetName]: ukraine_union.1.b executed"
		FROM = { country_event = { id = ukraine_union.2 days = 1 } }
		ai_chance = {
			base = 90
			modifier = {
				add = -30
				has_opinion = { target = FROM value > 100 }
			}
			modifier = {
				add = -15
				has_opinion = { target = FROM value > 50 }
			}
			modifier = {
				add = -20
				has_government = FROM
			}
			modifier = {
				add = 30
				has_opinion = { target = FROM value < 0 }
			}
		}
	}
}
#Russia refused the union state
country_event = {
	id = ukraine_union.2
	title = ukraine_union.2.t
	desc = ukraine_union.2.d
	picture = GFX_eastern_europe
	is_triggered_only = yes

	option = { name = ukraine_union.2.a }
}
#Join NATO alongside Russia proposal
country_event = {
	id = ukraine_union.3
	title = ukraine_union.3.t
	desc = ukraine_union.3.d
	picture = GFX_NATO_picture
	is_triggered_only = yes

	option = {
		name = ukraine_union.3.a
		log = "[GetDateText]: [This.GetName]: ukraine_union.3.a executed"
		leave_faction = yes
		if = {
			limit = { has_idea = CSTO_member }
			CSTO_leave = yes
		}
		NATO_join_via_event = yes
		UKR = {
			if = {
				limit = { NOT = { has_country_flag = ukr_revoult_bilo } }
				set_temp_variable = { tension_change = 3 }
				UKR_add_political_tension = yes
			}
		}
		ai_chance = {
			base = 10
			modifier = {
				add = 25
				has_opinion = { target = FROM value > 100 }
			}
			modifier = {
				add = 15
				has_opinion = { target = FROM value > 50 }
			}
			modifier = {
				add = 20
				has_government = democratic
			}
			modifier = {
				add = -30
				has_opinion = { target = FROM value < 0 }
			}
		}
	}

	option = {
		name = ukraine_union.3.b
		log = "[GetDateText]: [This.GetName]: ukraine_union.3.b executed"
		FROM = { country_event = { id = ukraine_union.4 days = 1 } }
		ai_chance = {
			base = 90
			modifier = {
				add = -25
				has_opinion = { target = FROM value > 100 }
			}
			modifier = {
				add = -15
				has_opinion = { target = FROM value > 50 }
			}
			modifier = {
				add = -20
				has_government = democratic
			}
			modifier = {
				add = 30
				has_opinion = { target = FROM value < 0 }
			}
		}
	}
}
#Russia refused to join NATO alongside us
country_event = {
	id = ukraine_union.4
	title = ukraine_union.4.t
	desc = ukraine_union.4.d
	picture = GFX_NATO_picture
	is_triggered_only = yes

	option = { name = ukraine_union.4.a }
}
#Rada Coalitions
country_event = {
	id = ukraine_rada.1
	title = ukraine_rada.1.t
	desc = ukraine_rada.1.d
	picture = GFX_verkhovna_rada_vote
	is_triggered_only = yes

	option = {
		name = ukraine_rada.1.a
		log = "[GetDateText]: [This.GetName]: ukraine_rada.1.a executed"
		set_temp_variable = { add_col_one = 4 }
		add_coalition_members_effect = yes
	}

	option = { name = ukraine_rada.1.b }
}
country_event = {
	id = ukraine_rada.2
	title = ukraine_rada.2.t
	desc = ukraine_rada.2.d
	picture = GFX_verkhovna_rada_vote
	is_triggered_only = yes

	option = {
		name = ukraine_rada.2.a
		log = "[GetDateText]: [This.GetName]: ukraine_rada.2.a executed"
		set_temp_variable = { add_col_one = 18 }
		add_coalition_members_effect = yes
	}

	option = { name = ukraine_rada.2.b }
}
##############NAZBOLS##############
#Puppet
country_event = {
	id = ukraine_nazbol.1
	title = ukraine_nazbol.1.t
	desc = ukraine_nazbol.1.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = {
		name = ukraine_nazbol.1.a
		log = "[GetDateText]: [This.GetName]: ukraine_nazbol.1.a executed"
		if = {
			limit = { has_global_flag = GAME_RULE_allow_colored_puppets }
			set_autonomy = {
				target = ROOT
				autonomy_state = autonomy_autonomous_state_colored
				end_wars = no
				end_civil_wars = no
			}
		}
		else = {
			set_autonomy = {
				target = ROOT
				autonomy_state = autonomy_autonomous_state
				end_wars = no
				end_civil_wars = no
			}
		}
	}

	option = { name = ukraine_nazbol.1.b }
}
#Puppet
country_event = {
	id = ukraine_nazbol.2
	title = ukraine_nazbol.2.t
	desc = ukraine_nazbol.2.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = ukraine_nazbol.2.a
		log = "[GetDateText]: [This.GetName]: ukraine_nazbol.2.a executed"
		UKR = { country_event = ukraine_nazbol.1 }
	}
}
#We under attack(Slavic countries)
country_event = {
	id = ukraine_nazbol.3
	title = ukraine_nazbol.3.t
	desc = ukraine_nazbol.3.d
	picture = GFX_nazbol_revoult
	is_triggered_only = yes

	option = {
		name = ukraine_nazbol.3.a
		log = "[GetDateText]: [This.GetName]: ukraine_nazbol.3.a executed"
		add_opinion_modifier = {
			target = UKR
			modifier = recent_actions_negative
		}
	}
}
#Ros Empire
country_event = {
	id = ukraine_nazbol.4
	title = ukraine_nazbol.4.t
	desc = ukraine_nazbol.4.d
	picture = GFX_russian_march
	is_triggered_only = yes

	option = {
		name = ukraine_nazbol.4.a
		log = "[GetDateText]: [This.GetName]: ukraine_nazbol.4.a executed"
		country_event = ukraine_nazbol.5
		add_opinion_modifier = {
			target = UKR
			modifier = recent_actions_positive
		}
		add_opinion_modifier = {
			target = POL
			modifier = recent_actions_negative
		}
		add_opinion_modifier = {
			target = ENG
			modifier = recent_actions_negative
		}
		add_opinion_modifier = {
			target = FIN
			modifier = recent_actions_negative
		}
		add_opinion_modifier = {
			target = FRA
			modifier = recent_actions_negative
		}
		add_opinion_modifier = {
			target = GER
			modifier = recent_actions_negative
		}
		add_opinion_modifier = {
			target = USA
			modifier = recent_actions_negative
		}
	}

	option = {
		name = ukraine_nazbol.4.b
		log = "[GetDateText]: [This.GetName]: ukraine_nazbol.4.b executed"
		country_event = ukraine_nazbol.6
		add_opinion_modifier = {
			target = UKR
			modifier = recent_actions_negative
		}
		add_opinion_modifier = {
			target = POL
			modifier = recent_actions_positive
		}
		add_opinion_modifier = {
			target = ENG
			modifier = recent_actions_positive
		}
		add_opinion_modifier = {
			target = FIN
			modifier = recent_actions_positive
		}
		add_opinion_modifier = {
			target = FRA
			modifier = recent_actions_positive
		}
		add_opinion_modifier = {
			target = GER
			modifier = recent_actions_positive
		}
		add_opinion_modifier = {
			target = USA
			modifier = recent_actions_positive
		}
	}
}
#Ros Empire
country_event = {
	id = ukraine_nazbol.5
	title = ukraine_nazbol.5.t
	desc = ukraine_nazbol.5.d
	picture = GFX_russian_march
	is_triggered_only = yes

	option = {
		name = ukraine_nazbol.5.a
		log = "[GetDateText]: [This.GetName]: ukraine_nazbol.5.a executed"
		add_opinion_modifier = {
			target = SOV
			modifier = recent_actions_positive
		}
	}
}
#Ros Empire
country_event = {
	id = ukraine_nazbol.6
	title = ukraine_nazbol.6.t
	desc = ukraine_nazbol.6.d
	picture = GFX_russian_march
	is_triggered_only = yes

	option = {
		name = ukraine_nazbol.6.a
		log = "[GetDateText]: [This.GetName]: ukraine_nazbol.6.a executed"
		add_opinion_modifier = {
			target = SOV
			modifier = recent_actions_negative
		}
	}
}

country_event = { # Pro Russian victory
	id = ukraine_parliament.100
	title = ukraine_parliament.100.t
	desc = ukraine_parliament.100.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.100.a
		log = "[GetDateText]: [This.GetName]: ukraine_parliament.100.a executed"
		UKR_verkhovna_rada_election_east_victory = yes
	}
}

country_event = { # Pro Western victory
	id = ukraine_parliament.200
	title = ukraine_parliament.200.t
	desc = ukraine_parliament.200.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.200.a
		log = "[GetDateText]: [This.GetName]: ukraine_parliament.200.a executed"
		UKR_verkhovna_rada_election_west_victory = yes
	}
}

country_event = { # Pro Ukrainian victory
	id = ukraine_parliament.300
	title = ukraine_parliament.300.t
	desc = ukraine_parliament.300.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.300.a
		log = "[GetDateText]: [This.GetName]: ukraine_parliament.300.a executed"
		UKR_verkhovna_rada_election_ukrainian_victory = yes
	}
}

country_event = { # Election
	id = ukraine_parliament.400
	title = ukraine_parliament.400.t
	desc = ukraine_parliament.400.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.400.a
		log = "[GetDateText]: [This.GetName]: ukraine_parliament.400.a executed"
		UKR_do_math_boi = yes
		UKR_election_parliament = yes
	}
}
country_event = { #Parliament approves bureaucracy increase
	id = ukraine_parliament.1
	title = ukraine_parliament.1.t
	desc = ukraine_parliament.1.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.1.a
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.1.a executed"
		increase_centralization = yes
		ai_chance = { base = 3 }
	}
}

country_event = { #Parliament denies bureaucracy increase
	id = ukraine_parliament.2
	title = ukraine_parliament.2.t
	desc = ukraine_parliament.2.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.2.a
		ai_chance = { base = 3 }
	}

	option = {
		name = ukraine_parliament.2.b #Maybe a little bribe will change it up...
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.2.b executed"
		increase_centralization = yes
		add_political_power = -200
		set_temp_variable = { treasury_change = -25.00 }
		modify_treasury_effect = yes
		random = {
			chance = 30
			increase_corruption = yes
		}
		ai_chance = {
			base = 3
		}
	}
}

country_event = { #Parliament approves bureaucracy decrease
	id = ukraine_parliament.3
	title = ukraine_parliament.3.t
	desc = ukraine_parliament.3.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.3.a
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.3.a executed"
		decrease_centralization = yes
		ai_chance = { base = 3 }
	}
}

country_event = { #Parliament denies bureaucracy decrease
	id = ukraine_parliament.4
	title = ukraine_parliament.4.t
	desc = ukraine_parliament.4.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.4.a
		ai_chance = { base = 3 }
	}

	option = {
		name = ukraine_parliament.4.b #Maybe a little bribe will change it up...
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.4.b executed"
		decrease_centralization = yes
		add_political_power = -200
		set_temp_variable = { treasury_change = -25.00 }
		modify_treasury_effect = yes
		random = {
			chance = 30
			increase_corruption = yes
		}
		ai_chance = {
			base = 3
		}
	}
}

country_event = { #Parliament approves military spending increase
	id = ukraine_parliament.5
	title = ukraine_parliament.5.t
	desc = ukraine_parliament.5.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.5.a
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.5.a executed"
		increase_military_spending = yes
		ai_chance = { base = 3 }
	}
}

country_event = { #Parliament denies military spending increase
	id = ukraine_parliament.7
	title = ukraine_parliament.7.t
	desc = ukraine_parliament.7.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.7.a
		ai_chance = { base = 3 }
	}

	option = {
		name = ukraine_parliament.7.b #Maybe a little bribe will change it up...
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.7.b executed"
		increase_military_spending = yes
		add_political_power = -200
		set_temp_variable = { treasury_change = -25.00 }
		modify_treasury_effect = yes
		random = {
			chance = 30
			increase_corruption = yes
		}
		ai_chance = {
			base = 3
		}
	}
}

country_event = { #Parliament approves military spending decrease
	id = ukraine_parliament.8
	title = ukraine_parliament.8.t
	desc = ukraine_parliament.8.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.8.a
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.8.a executed"
		decrease_military_spending = yes
		ai_chance = { base = 3 }
	}
}

country_event = { #Parliament denies military spending increase
	id = ukraine_parliament.9
	title = ukraine_parliament.9.t
	desc = ukraine_parliament.9.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.9.a
		ai_chance = { base = 3 }
	}

	option = {
		name = ukraine_parliament.9.b #Maybe a little bribe will change it up...
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.9.b executed"
		decrease_military_spending = yes
		add_political_power = -200
		set_temp_variable = { treasury_change = -25.00 }
		modify_treasury_effect = yes
		random = {
			chance = 30
			increase_corruption = yes
		}
		ai_chance = {
			base = 3
		}
	}
}

country_event = { #Parliament approves security spending increase
	id = ukraine_parliament.10
	title = ukraine_parliament.10.t
	desc = ukraine_parliament.10.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.10.a
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.10.a executed"
		increase_policing_budget = yes
		ai_chance = { base = 3 }
	}
}

country_event = { #Parliament denies military spending increase
	id = ukraine_parliament.11
	title = ukraine_parliament.11.t
	desc = ukraine_parliament.11.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.11.a
		ai_chance = { base = 3 }
	}

	option = {
		name = ukraine_parliament.11.b #Maybe a little bribe will change it up...
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.11.b executed"
		increase_policing_budget = yes
		add_political_power = -200
		set_temp_variable = { treasury_change = -25.00 }
		modify_treasury_effect = yes
		random = {
			chance = 30
			increase_corruption = yes
		}
		ai_chance = {
			base = 3
		}
	}
}

country_event = { #Parliament approves security spending increase
	id = ukraine_parliament.12
	title = ukraine_parliament.12.t
	desc = ukraine_parliament.12.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.12.a
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.12.a executed"
		decrease_policing_budget = yes
		ai_chance = { base = 3 }
	}
}

country_event = { #Parliament denies policing spending increase
	id = ukraine_parliament.14
	title = ukraine_parliament.14.t
	desc = ukraine_parliament.14.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.14.a
		ai_chance = { base = 3 }
	}

	option = {
		name = ukraine_parliament.14.b #Maybe a little bribe will change it up...
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.14.b executed"
		decrease_policing_budget = yes
		add_political_power = -200
		set_temp_variable = { treasury_change = -25.00 }
		modify_treasury_effect = yes
		random = {
			chance = 30
			increase_corruption = yes
		}
		ai_chance = {
			base = 3
		}
	}
}

country_event = { #Parliament approves education spending increase
	id = ukraine_parliament.15
	title = ukraine_parliament.15.t
	desc = ukraine_parliament.15.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.15.a
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.15.a executed"
		increase_education_budget = yes
		ai_chance = { base = 3 }
	}
}

country_event = { #Parliament denies education spending increase
	id = ukraine_parliament.16
	title = ukraine_parliament.16.t
	desc = ukraine_parliament.16.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.16.a
		ai_chance = { base = 3 }
	}

	option = {
		name = ukraine_parliament.16.b #Maybe a little bribe will change it up...
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.16.b executed"
		increase_education_budget = yes
		add_political_power = -200
		set_temp_variable = { treasury_change = -25.00 }
		modify_treasury_effect = yes
		random = {
			chance = 30
			increase_corruption = yes
		}
		ai_chance = {
			base = 3
		}
	}
}

country_event = { #Parliament approves education spending decrease
	id = ukraine_parliament.17
	title = ukraine_parliament.17.t
	desc = ukraine_parliament.17.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.17.a
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.17.a executed"
		decrease_education_budget = yes
		ai_chance = { base = 3 }
	}
}

country_event = { #Parliament denies education spending decrease
	id = ukraine_parliament.18
	title = ukraine_parliament.18.t
	desc = ukraine_parliament.18.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.18.a
		ai_chance = { base = 3 }
	}

	option = {
		name = ukraine_parliament.18.b #Maybe a little bribe will change it up...
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.18.b executed"
		decrease_education_budget = yes
		add_political_power = -200
		set_temp_variable = { treasury_change = -25.00 }
		modify_treasury_effect = yes
		random = {
			chance = 30
			increase_corruption = yes
		}
		ai_chance = {
			base = 3
		}
	}
}

country_event = { #Parliament approves healthcare spending increase
	id = ukraine_parliament.19
	title = ukraine_parliament.19.t
	desc = ukraine_parliament.19.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.19.a
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.19.a executed"
		increase_healthcare_budget = yes
		ai_chance = { base = 3 }
	}
}

country_event = { #Parliament denies education spending increase
	id = ukraine_parliament.20
	title = ukraine_parliament.20.t
	desc = ukraine_parliament.20.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.20.a
		ai_chance = { base = 3 }
	}

	option = {
		name = ukraine_parliament.20.b #Maybe a little bribe will change it up...
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.20.b executed"
		increase_healthcare_budget = yes
		add_political_power = -200
		set_temp_variable = { treasury_change = -25.00 }
		modify_treasury_effect = yes
		random = {
			chance = 30
			increase_corruption = yes
		}
		ai_chance = {
			base = 3
		}
	}
}

country_event = { #Parliament approves healthcare spending decrease
	id = ukraine_parliament.21
	title = ukraine_parliament.21.t
	desc = ukraine_parliament.21.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.21.a
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.22.a executed"
		decrease_healthcare_budget = yes
		ai_chance = { base = 3 }
	}
}

country_event = { #Parliament denies healthcare spending increase
	id = ukraine_parliament.22
	title = ukraine_parliament.22.t
	desc = ukraine_parliament.22.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.22.a
		ai_chance = { base = 3 }
	}

	option = {
		name = ukraine_parliament.22.b #Maybe a little bribe will change it up...
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.22.b executed"
		decrease_healthcare_budget = yes
		add_political_power = -200
		set_temp_variable = { treasury_change = -25.00 }
		modify_treasury_effect = yes
		random = {
			chance = 30
			increase_corruption = yes
		}
		ai_chance = {
			base = 3
		}
	}
}

country_event = { #Parliament approves pension spending increase
	id = ukraine_parliament.23
	title = ukraine_parliament.23.t
	desc = ukraine_parliament.23.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.23.a
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.23.a executed"
		increase_social_spending = yes
		ai_chance = { base = 3 }
	}
}

country_event = { #Parliament denies pension spending increase
	id = ukraine_parliament.24
	title = ukraine_parliament.24.t
	desc = ukraine_parliament.24.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.24.a
		ai_chance = { base = 3 }
	}

	option = {
		name = ukraine_parliament.24.b #Maybe a little bribe will change it up...
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.24.b executed"
		increase_social_spending = yes
		add_political_power = -200
		set_temp_variable = { treasury_change = -25.00 }
		modify_treasury_effect = yes
		random = {
			chance = 30
			increase_corruption = yes
		}
		ai_chance = {
			base = 3
		}
	}
}

country_event = { #Parliament approves pension spending decrease
	id = ukraine_parliament.25
	title = ukraine_parliament.25.t
	desc = ukraine_parliament.25.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.25.a
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.25.a executed"
		decrease_social_spending = yes
		ai_chance = { base = 3 }
	}
}

country_event = { #Parliament denies pension spending decrease
	id = ukraine_parliament.26
	title = ukraine_parliament.26.t
	desc = ukraine_parliament.26.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_parliament.26.a
		ai_chance = { base = 3 }
	}

	option = {
		name = ukraine_parliament.26.b #Maybe a little bribe will change it up...
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.26.b executed"
		decrease_social_spending = yes
		add_political_power = -200
		set_temp_variable = { treasury_change = -25.00 }
		modify_treasury_effect = yes
		random = {
			chance = 30
			increase_corruption = yes
		}
		ai_chance = {
			base = 3
		}
	}
}

# RANDOM EVENTS #
country_event = { # Several members of Parliament go in opposition
	id = ukraine_parliament.30
	title = ukraine_parliament.30.t
	desc = ukraine_parliament.30.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = {
		original_tag = UKR
		NOT = {
			OR = {
				has_country_flag = UKR_dissolved_verkhovna
				check_variable = { UKR_verkhovna_control_selected = 3 }
			}
		}
	}

	option = {
		name = ukraine_parliament.30.a #Quite Sad
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.30.a executed"
		custom_effect_tooltip = UKR_lose_some_seats_TT
		add_to_variable = { UKR_verkhovna_support = -10 }
		clamp_variable = { var = UKR_verkhovna_support min = 0 max = 450 }
		ai_chance = {
			base = 3
		}
	}

	option = {
		name = ukraine_parliament.30.b #Maybe their pockets need a little filling up..
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.30.b executed"
		set_temp_variable = { treasury_change = -10.00 }
		modify_treasury_effect = yes
		ai_chance = {
			base = 3
		}
	}
}
#
country_event = { # Several members of Parliament support us
	id = ukraine_parliament.31
	title = ukraine_parliament.31.t
	desc = ukraine_parliament.31.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = {
		original_tag = UKR
		NOT = {
			OR = {
				has_country_flag = UKR_dissolved_verkhovna
				check_variable = { UKR_verkhovna_control_selected = 3 }
			}
		}
	}

	option = {
		name = ukraine_parliament.31.a #Good
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.31.a executed"
		custom_effect_tooltip = UKR_gain_some_seats_TT
		add_to_variable = { UKR_verkhovna_support = 5 }
		clamp_variable = { var = UKR_verkhovna_support min = 0 max = 450 }
		ai_chance = {
			base = 3
		}
	}
}
#
country_event = { # Parliament wants to increase funding for Local Buildings
	id = ukraine_parliament.32
	title = ukraine_parliament.32.t
	desc = ukraine_parliament.32.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = {
		original_tag = UKR
		NOT = {
			OR = {
				has_country_flag = UKR_dissolved_verkhovna
				check_variable = { UKR_verkhovna_control_selected = 3 }
			}
		}
	}

	option = {
		name = ukraine_parliament.32.a #Okay
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.32.a executed"
		set_temp_variable = { treasury_change = -12 }
		modify_treasury_effect = yes
		custom_effect_tooltip = UKR_gain_some_seats_TT
		add_to_variable = { UKR_verkhovna_support = 5 }
		clamp_variable = { var = UKR_verkhovna_support min = 0 max = 450 }
		random_owned_controlled_state = {
			add_extra_state_shared_building_slots = 3
		}
		ai_chance = {
			base = 3
		}
	}

	option = {
		name = ukraine_parliament.32.b #No
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.32.a executed"
		set_temp_variable = { treasury_change = 15 }
		modify_treasury_effect = yes
		custom_effect_tooltip = UKR_lose_some_seats_TT
		add_to_variable = { UKR_verkhovna_support = -3 }
		ai_chance = {
			base = 3
		}
	}
}
#
country_event = { # Parliament opposition questions our administration
	id = ukraine_parliament.33
	title = ukraine_parliament.33.t
	desc = ukraine_parliament.33.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = {
		original_tag = UKR
		NOT = {
			OR = {
				has_country_flag = UKR_dissolved_verkhovna
				check_variable = { UKR_verkhovna_control_selected = 3 }
			}
		}
	}

	option = {
		name = ukraine_parliament.33.a #Okay
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.33.a executed"
		custom_effect_tooltip = UKR_lose_some_seats_TT
		add_to_variable = { UKR_verkhovna_support = -3 }
		set_party_index_to_ruling_party = yes
		set_temp_variable = { party_popularity_increase = -0.05 }
		set_temp_variable = { temp_outlook_increase = -0.05 }
		change_relative_party_popularity = yes
		ai_chance = {
			base = 3
		}
	}

	option = {
		name = ukraine_parliament.33.b #Win them over
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.33.b executed"
		add_political_power = -150
		custom_effect_tooltip = UKR_gain_some_seats_TT
		add_to_variable = { UKR_verkhovna_support = 2 }
		set_party_index_to_ruling_party = yes
		set_temp_variable = { party_popularity_increase = 0.03 }
		set_temp_variable = { temp_outlook_increase = 0.03 }
		change_relative_party_popularity = yes
		ai_chance = {
			base = 3
		}
	}
}
#
country_event = { # Parliament demands higher healthcare
	id = ukraine_parliament.34
	title = ukraine_parliament.34.t
	desc = ukraine_parliament.34.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = {
		original_tag = UKR
		NOT = {
			OR = {
				check_variable = { UKR_verkhovna_control_selected = 3 }
				has_country_flag = UKR_dissolved_verkhovna
				has_idea = health_06
			}
		}
	}

	option = {
		name = ukraine_parliament.34.a #Okay
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.34.a executed"
		increase_healthcare_budget = yes
		custom_effect_tooltip = UKR_gain_some_seats_TT
		add_to_variable = { UKR_verkhovna_support = 5 }
		clamp_variable = { var = UKR_verkhovna_support min = 0 max = 450 }
		set_party_index_to_ruling_party = yes
		ai_chance = {
			base = 3
		}
	}

	option = {
		name = ukraine_parliament.34.b #Win them over
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.34.b executed"
		custom_effect_tooltip = UKR_lose_some_seats_TT
		add_to_variable = { UKR_verkhovna_support = -10 }
		clamp_variable = { var = UKR_verkhovna_support min = 0 max = 450 }
		set_party_index_to_ruling_party = yes
		ai_chance = {
			base = 3
		}
	}
}
#
country_event = { # Parliament demands higher pensions
	id = ukraine_parliament.35
	title = ukraine_parliament.35.t
	desc = ukraine_parliament.35.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = {
		original_tag = UKR
		NOT = {
			OR = {
				has_idea = social_06
				check_variable = { UKR_verkhovna_control_selected = 3 }
				has_country_flag = UKR_dissolved_verkhovna
			}
		}
	}

	option = {
		name = ukraine_parliament.35.a #Okay
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.35.a executed"
		increase_social_spending = yes
		custom_effect_tooltip = UKR_gain_some_seats_TT
		add_to_variable = { UKR_verkhovna_support = 5 }
		clamp_variable = { var = UKR_verkhovna_support min = 0 max = 450 }
		set_party_index_to_ruling_party = yes
		ai_chance = {
			base = 3
		}
	}

	option = {
		name = ukraine_parliament.35.b #Win them over
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.35.b executed"
		custom_effect_tooltip = UKR_lose_some_seats_TT
		add_to_variable = { UKR_verkhovna_support = -10 }
		clamp_variable = { var = UKR_verkhovna_support min = 0 max = 450 }
		set_party_index_to_ruling_party = yes
		ai_chance = {
			base = 3
		}
	}
}
#
country_event = { # Parliament demands higher security funding
	id = ukraine_parliament.36
	title = ukraine_parliament.36.t
	desc = ukraine_parliament.36.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = {
		original_tag = UKR
		NOT = {
			OR = {
				check_variable = { UKR_verkhovna_control_selected = 3 }
				has_country_flag = UKR_dissolved_verkhovna
				has_idea = police_05
			}
		}
	}

	option = {
		name = ukraine_parliament.36.a #Okay
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.36.a executed"
		increase_policing_budget = yes
		custom_effect_tooltip = UKR_gain_some_seats_TT
		add_to_variable = { UKR_verkhovna_support = 5 }
		clamp_variable = { var = UKR_verkhovna_support min = 0 max = 450 }
		set_party_index_to_ruling_party = yes
		ai_chance = {
			base = 3
		}
	}

	option = {
		name = ukraine_parliament.36.b #Win them over
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.36.b executed"
		custom_effect_tooltip = UKR_lose_some_seats_TT
		add_to_variable = { UKR_verkhovna_support = -10 }
		clamp_variable = { var = UKR_verkhovna_support min = 0 max = 450 }
		set_party_index_to_ruling_party = yes
		ai_chance = {
			base = 3
		}
	}
}
#
country_event = { # Parliament demands higher education funding
	id = ukraine_parliament.37
	title = ukraine_parliament.37.t
	desc = ukraine_parliament.37.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = {
		original_tag = UKR
		NOT = {
			OR = {
				has_idea = edu_05
				check_variable = { UKR_verkhovna_control_selected = 3 }
				has_country_flag = UKR_dissolved_verkhovna
			}
		}
	}

	option = {
		name = ukraine_parliament.37.a #Okay
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.37.a executed"
		increase_education_budget = yes
		custom_effect_tooltip = UKR_gain_some_seats_TT
		add_to_variable = { UKR_verkhovna_support = 5 }
		clamp_variable = { var = UKR_verkhovna_support min = 0 max = 450 }
		set_party_index_to_ruling_party = yes
		ai_chance = {
			base = 3
		}
	}

	option = {
		name = ukraine_parliament.37.b #Win them over
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.37.b executed"
		custom_effect_tooltip = UKR_lose_some_seats_TT
		add_to_variable = { UKR_verkhovna_support = -10 }
		clamp_variable = { var = UKR_verkhovna_support min = 0 max = 450 }
		set_party_index_to_ruling_party = yes
		ai_chance = {
			base = 3
		}
	}
}
country_event = { # Parliament demands higher military funding
	id = ukraine_parliament.38
	title = ukraine_parliament.38.t
	desc = ukraine_parliament.38.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes

	trigger = {
		original_tag = UKR
		NOT = {
			OR = {
				has_idea = defence_08
				check_variable = { UKR_verkhovna_control_selected = 3 }
				has_country_flag = UKR_dissolved_verkhovna
			}
		}
	}

	option = {
		name = ukraine_parliament.38.a #Okay
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.38.a executed"
		increase_military_spending = yes
		custom_effect_tooltip = UKR_gain_some_seats_TT
		add_to_variable = { UKR_verkhovna_support = 5 }
		clamp_variable = { var = UKR_verkhovna_support min = 0 max = 450 }
		set_party_index_to_ruling_party = yes
		ai_chance = {
			base = 3
		}
	}

	option = {
		name = ukraine_parliament.38.b #Win them over
		log = "[GetDateText]: [This.GetName]:ukraine_parliament.38.b executed"
		custom_effect_tooltip = UKR_lose_some_seats_TT
		add_to_variable = { UKR_verkhovna_support = -10 }
		clamp_variable = { var = UKR_verkhovna_support min = 0 max = 450 }
		set_party_index_to_ruling_party = yes
		ai_chance = {
			base = 3
		}
	}
}
country_event = {
	id = ukr_sabotage.1
	title = ukr_sabotage.1.t
	desc = ukr_sabotage.1.d
	picture = GFX_UKR_stockpile_sabotage
	is_triggered_only = yes

	option = {
		name = ukr_sabotage.1.a
		log = "[GetDateText]: [This.GetName]:ukr_sabotage.1.a executed"
		add_equipment_to_stockpile = {
			type = medium_tank_chassis
			amount = -20
		}
		add_equipment_to_stockpile = {
			type = medium_tank_flame_chassis
			amount = -20
		}
		add_equipment_to_stockpile = {
			type = medium_tank_amphibious_chassis
			amount = -20
		}
	}
}
country_event = {
	id = ukr_sabotage.2
	title = ukr_sabotage.2.t
	desc = ukr_sabotage.2.d
	picture = GFX_UKR_stockpile_sabotage
	is_triggered_only = yes

	option = {
		name = ukr_sabotage.2.a
		log = "[GetDateText]: [This.GetName]:ukr_sabotage.2.a executed"
		add_equipment_to_stockpile = {
			type = infantry_weapons_type
			amount = -1000
		}
		add_equipment_to_stockpile = {
			type = cnc_equipment_type
			amount = -100
		}
		add_equipment_to_stockpile = {
			type = util_vehicle_type
			amount = -25
		}
	}
}
country_event = {
	id = ukr_sabotage.3
	title = ukr_sabotage.3.t
	desc = ukr_sabotage.3.d
	picture = GFX_UKR_factory_sabotage
	is_triggered_only = yes

	option = {
		name = ukr_sabotage.3.a
		log = "[GetDateText]: [This.GetName]:ukr_sabotage.3.a executed"
		random_owned_controlled_state = {
			limit = {
				non_damaged_building_level = {
					building = arms_factory
					level > 2
				}
			}
			set_temp_variable = { three_hit_chance = 10 }
			set_temp_variable = { two_hit_chance = 10 }
			set_temp_variable = { one_hit_chance = 10 }
			if = {
				limit = {
					non_damaged_building_level = {
						building = anti_air_building
						level > 4
					}
				}
				multiply_temp_variable = { three_hit_chance = 0.1 }
				multiply_temp_variable = { two_hit_chance = 0.3 }
			}
			else_if = {
				limit = {
					non_damaged_building_level = {
						building = anti_air_building
						level > 2
					}
				}
				multiply_temp_variable = { three_hit_chance = 0.3 }
				multiply_temp_variable = { two_hit_chance = 0.5 }
			}
			else_if = {
				limit = {
					non_damaged_building_level = {
						building = anti_air_building
						level > 0
					}
				}
				multiply_temp_variable = { three_hit_chance = 0.5 }
				multiply_temp_variable = { two_hit_chance = 0.8 }
			}
			random_list = {
				three_hit_chance = {
					damage_building = {
						type = arms_factory
						damage = 3
					}
				}
				two_hit_chance = {
					damage_building = {
						type = arms_factory
						damage = 2
					}
				}
				one_hit_chance = {
					damage_building = {
						type = arms_factory
						damage = 1
					}
				}
			}
		}
	}
}
#Buildings
country_event = {
	id = subject_ukr.1
	title = subject_ukr.1.t
	desc = subject_ukr.1.d
	picture = GFX_sovfed
	is_triggered_only = yes

	option = {
		name = subject_ukr.1.a
		log = "[GetDateText]: [This.GetName]: subject_ukr.1.a executed"
		FROM = { country_event = { id = subject_ukr.2 days = 1 } }
		set_temp_variable = { percent_change = 6 }
		UKR_patron_offer_accepted = yes
		ai_chance = { base = 50 }
	}

	option = {
		name = subject_ukr.1.b
		log = "[GetDateText]: [This.GetName]: subject_ukr.1.b executed"
		FROM = { country_event = { id = subject_ukr.3 days = 1 } }
		set_temp_variable = { percent_change = -6 }
		UKR_patron_offer_declined = yes
		ai_chance = { base = 50 }
	}
}
#Buildings Gives
country_event = {
	id = subject_ukr.2
	title = subject_ukr.2.t
	desc = subject_ukr.2.d
	picture = GFX_sovfed
	is_triggered_only = yes

	timeout_days = 2
	option = {
		name = subject_ukr.2.a
		log = "[GetDateText]: [This.GetName]: subject_ukr.2.a executed"
		set_temp_variable = { modify_subjectavtoritet = -38 }
		modify_subjectavtoritet_support = yes
		one_random_industrial_complex = yes
		one_random_fossil_fuel_powerplant = yes
		ai_chance = { base = 100 }
	}
}
#Buildings Not Gives
country_event = {
	id = subject_ukr.3
	title = subject_ukr.3.t
	desc = subject_ukr.3.d
	picture = GFX_sovfed
	is_triggered_only = yes

	option = {
		name = subject_ukr.3.a
		log = "[GetDateText]: [This.GetName]: subject_ukr.3.a executed"
		set_temp_variable = { modify_subjectavtoritet = -21 }
		modify_subjectavtoritet_support = yes
	}
}
#Subsidies
country_event = {
	id = subject_ukr.4
	title = subject_ukr.4.t
	desc = subject_ukr.4.d
	picture = GFX_sovfed
	is_triggered_only = yes

	option = {
		name = subject_ukr.4.a
		log = "[GetDateText]: [This.GetName]: subject_ukr.4.a executed"
		FROM = { country_event = { id = subject_ukr.5 days = 1 } }
		set_temp_variable = { treasury_change = -10 }
		modify_treasury_effect = yes
		set_temp_variable = { percent_change = 3 }
		UKR_patron_offer_accepted = yes
		ai_chance = { base = 50 }
	}

	option = {
		name = subject_ukr.4.b
		log = "[GetDateText]: [This.GetName]: subject_ukr.4.b executed"
		FROM = { country_event = { id = subject_ukr.6 days = 1 } }
		set_temp_variable = { percent_change = -3 }
		UKR_patron_offer_declined = yes
		ai_chance = { base = 50 }
	}
}
#Subsidies Gives
country_event = {
	id = subject_ukr.5
	title = subject_ukr.5.t
	desc = subject_ukr.5.d
	picture = GFX_sovfed
	is_triggered_only = yes

	timeout_days = 2
	option = {
		name = subject_ukr.5.a
		log = "[GetDateText]: [This.GetName]: subject_ukr.5.a executed"
		set_temp_variable = { modify_subjectavtoritet = -26 }
		modify_subjectavtoritet_support = yes
		set_temp_variable = { treasury_change = 20 }
		modify_treasury_effect = yes
		ai_chance = { base = 100 }
	}
}
#Subsidies Not Gives
country_event = {
	id = subject_ukr.6
	title = subject_ukr.6.t
	desc = subject_ukr.6.d
	picture = GFX_sovfed
	is_triggered_only = yes

	option = {
		name = subject_ukr.6.a
		log = "[GetDateText]: [This.GetName]: subject_ukr.6.a executed"
		set_temp_variable = { modify_subjectavtoritet = -16 }
		modify_subjectavtoritet_support = yes
	}
}

country_event = {
	id = ukr_zelenskiy.2
	title = ukr_zelenskiy.2.t
	desc = ukr_zelenskiy.2.d
	picture = GFX_maidan3
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_zelenskiy.2.a
		log = "[GetDateText]: [This.GetName]: ukr_zelenskiy.2.a executed"
		custom_effect_tooltip = UKR_zelenskiy_formed_TT
		hidden_effect = {
			set_country_flag = UKR_zelensky_formed
			update_party_name = yes
		}
		set_temp_variable = { party_index = 16 }
		set_temp_variable = { party_popularity_increase = 0.12 }
		set_temp_variable = { temp_outlook_increase = 0.08 }
		change_relative_party_popularity = yes
	}
}

country_event = {
	id = ukraine_modernize_sov_equipment_brdm_2_modernization.1
	title = ukraine_modernize_sov_equipment_brdm_2_modernization.1.name
	desc = ukraine_modernize_sov_equipment_brdm_2_modernization.1.desc
	picture = GFX_ukraine_btr3u_uae_tender_presentation #TO-DO

	is_triggered_only = yes
	trigger = {
		original_tag = UKR
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.1.a
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.1.a executed"

		ai_chance = { base = 58 }

		trigger = {
			date < 2008.01.01
			controls_state = 1086 #Mykolayiv
		}

		if = {
			limit = {
				1086 = { #Mykolayiv
					arms_factory > 0
				}
			}

			country_event = {
				id = ukraine_modernize_sov_equipment_brdm_2_modernization.2
				days = 30
				random_days = 10
				random_hours = 6
			}
		}

		else = {
			country_event = {
				id = ukraine_modernize_sov_equipment_brdm_2_modernization.2
				days = 180
				random_days = 60
				random_hours = 6
			}
		}

		custom_effect_tooltip = {
			localization_key = ukraine_modernize_sov_equipment_brdm_2_modernization_mykolayiv_tt
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_mykolayiv_flag
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.1.b
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.1.b executed"

		ai_chance = { base = 28 }

		trigger = {
			controls_state = 698 #Kyiv

			OR = {
				AND = {
					date > 2010.01.01
					date < 2019.01.01
				}
				has_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_postpone_flag
			}
		}

		if = {
			limit = {
				698 = { #Kyiv
					arms_factory > 0
				}
			}

			country_event = {
				id = ukraine_modernize_sov_equipment_brdm_2_modernization.6
				days = 30
				random_days = 10
				random_hours = 6
			}
		}

		else = {
			country_event = {
				id = ukraine_modernize_sov_equipment_brdm_2_modernization.6
				days = 180
				random_days = 60
				random_hours = 6
			}
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_techimpex_flag
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.1.c
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.1.c executed"

		ai_chance = { base = 12 }

		trigger = {
			OR = {
				controls_state = 698 #Kyiv
				controls_state = 699 #Vinnytsia
				controls_state = 1089 #Poltava
			}

			OR = {
				AND = {
					date > 2007.01.01
					date < 2020.01.01
				}
				has_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_postpone_flag
			}
		}

		country_event = {
			id = ukraine_modernize_sov_equipment_brdm_2_modernization.8
			days = 60
			random_days = 10
			random_hours = 6
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_other_flag
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.1.d
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.1.d executed"

		ai_chance = { base = 2 }

		country_event = {
			id = ukraine_modernize_sov_equipment_brdm_2_modernization.1
			months = 60
			random_days = 120
			random_hours = 6
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_postpone_flag
	}
}

country_event = {
	id = ukraine_modernize_sov_equipment_brdm_2_modernization.2
	title = ukraine_modernize_sov_equipment_brdm_2_modernization.2.name
	desc = ukraine_modernize_sov_equipment_brdm_2_modernization.2.desc
	picture = GFX_ukraine_btr3u_uae_tender_presentation #TO-DO

	is_triggered_only = yes
	trigger = {
		original_tag = UKR
		OR = {
			has_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_mykolayiv_flag
			has_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_mykolayiv_postpone_flag
		}
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.2.a
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.2.a executed"

		ai_chance = { base = 48 }

		trigger = {
			date < 2003.01.01
			controls_state = 1086 #Mykolayiv

			NOT = {
				OR = {
					has_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_mykolayiv_brdm_2ld_flag
					has_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_mykolayiv_brdm_2m_flag
				}
			}

			controls_state = 1086 #Mykolayiv
		}

		set_temp_variable = { treasury_change = -0.01 }
		modify_treasury_effect = yes

		custom_effect_tooltip = {
			localization_key = modifies_dynamic_modifier_tt
			MODIFIER = UKR_modernize_sov_equipment_effect
		}
		add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.03 tooltip = equipment_conversion_speed_tt }
		add_to_variable = { UKR_modernize_sov_equipment_effect_military_industrial_organization_funds_gain = 0.01 tooltip = military_industrial_organization_funds_gain_tt }

		if = {
			limit = {
				1086 = { #Mykolayiv
					arms_factory > 0
				}
			}

			country_event = {
				id = ukraine_modernize_sov_equipment_brdm_2_modernization.3
				days = 20
				random_days = 10
				random_hours = 6
			}
		}

		else = {
			country_event = {
				id = ukraine_modernize_sov_equipment_brdm_2_modernization.3
				days = 180
				random_days = 60
				random_hours = 6
			}
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_mykolayiv_early_flag
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.2.b
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.2.b executed"

		ai_chance = { base = 14 }

		trigger = {
			date > 2002.01.01
			date < 2015.01.01
			controls_state = 1086 #Mykolayiv

			NOT = {
				OR = {
					has_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_mykolayiv_brdm_2di_buh_flag
					has_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_mykolayiv_brdm_2di_flag
				}
			}

			controls_state = 1086 #Mykolayiv
		}

		set_temp_variable = { treasury_change = -0.02 }
		modify_treasury_effect = yes

		custom_effect_tooltip = {
			localization_key = modifies_dynamic_modifier_tt
			MODIFIER = UKR_modernize_sov_equipment_effect
		}
		add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.05 tooltip = equipment_conversion_speed_tt }
		add_to_variable = { UKR_modernize_sov_equipment_effect_military_industrial_organization_funds_gain = 0.02 tooltip = military_industrial_organization_funds_gain_tt }
		add_to_variable = { UKR_modernize_sov_equipment_effect_productivity_growth_modifier = 0.01 tooltip = country_productivity_growth_modifier_tt }

		if = {
			limit = {
				1086 = { #Mykolayiv
					arms_factory > 0
				}
			}

			country_event = {
				id = ukraine_modernize_sov_equipment_brdm_2_modernization.4
				days = 40
				random_days = 15
				random_hours = 6
			}
		}

		else = {
			country_event = {
				id = ukraine_modernize_sov_equipment_brdm_2_modernization.4
				days = 240
				random_days = 80
				random_hours = 6
			}
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_mykolayiv_developed_flag
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.2.c
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.2.c executed"

		ai_chance = { base = 30 }

		trigger = {
			date > 2012.01.01
			controls_state = 1086 #Mykolayiv

			NOT = {
				OR = {
					has_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_mykolayiv_brm_manhust_flag
					has_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_mykolayiv_brdm_2l1_flag
				}
			}

			controls_state = 1086 #Mykolayiv
		}

		set_temp_variable = { treasury_change = -0.02 }
		modify_treasury_effect = yes

		custom_effect_tooltip = {
			localization_key = modifies_dynamic_modifier_tt
			MODIFIER = UKR_modernize_sov_equipment_effect
		}
		add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.03 tooltip = equipment_conversion_speed_tt }
		add_to_variable = { UKR_modernize_sov_equipment_effect_military_industrial_organization_funds_gain = 0.01 tooltip = military_industrial_organization_funds_gain_tt }

		if = {
			limit = {
				1086 = { #Mykolayiv
					arms_factory > 0
				}
			}

			country_event = {
				id = ukraine_modernize_sov_equipment_brdm_2_modernization.5
				days = 30
				random_days = 10
				random_hours = 6
			}
		}

		else = {
			country_event = {
				id = ukraine_modernize_sov_equipment_brdm_2_modernization.5
				days = 180
				random_days = 60
				random_hours = 6
			}
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_mykolayiv_late_flag
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.2.d
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.2.d executed"

		ai_chance = { base = 4 }

		trigger = {
			NOT = {
				controls_state = 1086 #Mykolayiv
			}
		}

		set_temp_variable = { treasury_change = -0.01 }
		modify_treasury_effect = yes

		country_event = {
			id = ukraine_modernize_sov_equipment_brdm_2_modernization.2
			days = 360
			random_days = 60
			random_hours = 6
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_mykolayiv_postpone_flag
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.2.e
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.2.e executed"

		ai_chance = { base = 2 }

		custom_effect_tooltip = {
			localization_key = modifies_dynamic_modifier_tt
			MODIFIER = UKR_modernize_sov_equipment_effect
		}
		add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = -0.02 tooltip = equipment_conversion_speed_tt }
		add_to_variable = { UKR_modernize_sov_equipment_effect_military_industrial_organization_funds_gain = -0.01 tooltip = military_industrial_organization_funds_gain_tt }

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_cancel_flag
	}
}

country_event = {
	id = ukraine_modernize_sov_equipment_brdm_2_modernization.3
	title = ukraine_modernize_sov_equipment_brdm_2_modernization.3.name
	desc = ukraine_modernize_sov_equipment_brdm_2_modernization.3.desc
	picture = GFX_ukraine_btr3u_uae_tender_presentation #TO-DO

	is_triggered_only = yes

	trigger = {
		original_tag = UKR
		country_exists = SOV
		has_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_mykolayiv_early_flag
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.3.a
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.3.a executed"

		ai_chance = { base = 70 }

		trigger = {
			controls_state = 1086 #Mykolayiv
			country_exists = SOV
		}

		set_temp_variable = { treasury_change = -0.03 }
		modify_treasury_effect = yes

		army_experience = 1

		if = {
			limit = {
				NOT = {
					has_license = {
						from = SOV
						equipment = {
							type = medium_tank_destroyer_chassis_0
							version_name = "BRDM-2"
						}
					}
				}
			}

			SOV = {
				create_production_license = {
					target = UKR
					equipment = {
						type = medium_tank_destroyer_chassis_0
						version_name = "BRDM-2"
					}
					cost_factor = 0
				}
			}
		}

		create_equipment_variant = {
			name = "BRDM-2LD"
			type = medium_tank_destroyer_chassis_0
			parent_version = 0
			modules = {
				main_armament_slot = afv_machine_gun_2
				secondary_armament_slot = afv_coax_machine_gun_2
				reload_type_slot = manual_loading
				ammunition_load_slot = machine_gun_ammo_1
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_wheeled_suspension_light
				armor_type_slot = tank_steel_armor_gen1
				engine_type_slot = tank_diesel_engine_gen1
				special_type_slot_1 = empty #supposed to be afv_reverse_doors but forbids light tank
				special_type_slot_4 = tank_battlestation_1
			}
			upgrades = { tank_nsb_armor_upgrade = 2 }
			icon = "gfx/interface/technologies/UKR/LAND/Recon/BRDM-2/BRDM-2L1.dds"
			design_team = mio:UKR_kmdb_tank_manufacturer
		}

		if = {
			limit = {
				1086 = { #Mykolayiv
					arms_factory > 0
				}
			}

			add_equipment_production = {
				equipment = {
					type = medium_tank_destroyer_chassis_0
					version_name = "BRDM-2LD"
				}
				requested_factories = 1
				efficiency = 10
				industrial_manufacturer = mio:UKR_mykolayiv_plant_tank_manufacturer
			}

			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.02 tooltip = equipment_conversion_speed_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_military_industrial_organization_funds_gain = 0.03 tooltip = military_industrial_organization_funds_gain_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_local_factories = 0.01 tooltip = local_factories_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_local_resources_factor = 0.01 tooltip = local_resources_factor_tt }
		}
		else = {
			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.02 tooltip = equipment_conversion_speed_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_military_industrial_organization_funds_gain = 0.01 tooltip = military_industrial_organization_funds_gain_tt }
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_mykolayiv_brdm_2ld_flag
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.3.b
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.3.b executed"

		ai_chance = { base = 20 }

		trigger = {
			controls_state = 1086 #Mykolayiv
		}

		set_temp_variable = { treasury_change = -0.01 }
		modify_treasury_effect = yes

		army_experience = 1

		if = {
			limit = {
				NOT = {
					has_license = {
						from = SOV
						equipment = {
							type = medium_tank_destroyer_chassis_0
							version_name = "BRDM-2"
						}
					}
				}
			}

			SOV = {
				create_production_license = {
					target = UKR
					equipment = {
						type = medium_tank_destroyer_chassis_0
						version_name = "BRDM-2"
					}
					cost_factor = 0
				}
			}
		}

		create_equipment_variant = {
			name = "BRDM-2M"
			type = medium_tank_destroyer_chassis_0
			parent_version = 0
			modules = {
				main_armament_slot = afv_machine_gun_2
				secondary_armament_slot = afv_coax_machine_gun_2
				reload_type_slot = manual_loading
				ammunition_load_slot = machine_gun_ammo_1
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_wheeled_suspension_light
				armor_type_slot = tank_steel_armor_gen1
				engine_type_slot = afv_gasoline_engine_gen1
				special_type_slot_1 = empty #supposed to be afv_reverse_doors but forbids light tank
				special_type_slot_4 = tank_battlestation_1
			}
			upgrades = { tank_nsb_armor_upgrade = 2 }
			icon = "gfx/interface/technologies/UKR/LAND/Recon/BRDM-2/BRDM-2L1.dds"
			design_team = mio:UKR_mykolayiv_plant_tank_manufacturer
		}

		if = {
			limit = {
				1086 = { #Mykolayiv
					arms_factory > 0
				}
			}

			add_equipment_production = {
				equipment = {
					type = medium_tank_destroyer_chassis_0
					version_name = "BRDM-2M"
				}
				requested_factories = 1
				efficiency = 10
				industrial_manufacturer = mio:UKR_mykolayiv_plant_tank_manufacturer
			}

			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.01 tooltip = equipment_conversion_speed_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_military_industrial_organization_funds_gain = 0.01 tooltip = military_industrial_organization_funds_gain_tt }
		}
		else = {
			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.01 tooltip = equipment_conversion_speed_tt }
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_mykolayiv_brdm_2m_flag
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.3.c
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.3.c executed"

		ai_chance = { base = 10 }

		trigger = {
			NOT = {
				controls_state = 1086 #Mykolayiv
			}
		}

		set_temp_variable = { treasury_change = -0.01 }
		modify_treasury_effect = yes

		country_event = {
			id = ukraine_modernize_sov_equipment_brdm_2_modernization.2
			days = 360
			random_days = 60
			random_hours = 6
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_mykolayiv_postpone_flag
	}
}

country_event = {
	id = ukraine_modernize_sov_equipment_brdm_2_modernization.4
	title = ukraine_modernize_sov_equipment_brdm_2_modernization.4.name
	desc = ukraine_modernize_sov_equipment_brdm_2_modernization.4.desc
	picture = GFX_ukraine_btr3u_uae_tender_presentation #TO-DO

	is_triggered_only = yes

	trigger = {
		original_tag = UKR
		country_exists = SOV
		has_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_mykolayiv_developed_flag
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.4.a
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.4.a executed"

		ai_chance = { base = 25 }

		trigger = {
			controls_state = 1086 #Mykolayiv
			country_exists = SOV
		}

		set_temp_variable = { treasury_change = -0.03 }
		modify_treasury_effect = yes

		army_experience = 1

		if = {
			limit = {
				NOT = {
					has_license = {
						from = SOV
						equipment = {
							type = medium_tank_destroyer_chassis_0
							version_name = "BRDM-2"
						}
					}
				}
			}

			SOV = {
				create_production_license = {
					target = UKR
					equipment = {
						type = medium_tank_destroyer_chassis_0
						version_name = "BRDM-2"
					}
					cost_factor = 0
				}
			}
		}

		create_equipment_variant = {
			name = "BRDM-2DI Khazar-Buh"
			type = medium_tank_destroyer_chassis_0
			parent_version = 0
			allow_without_tech = yes
			modules = {
				main_armament_slot = afv_machine_gun_2
				secondary_armament_slot = afv_coax_machine_gun_2
				reload_type_slot = automatic_loading
				ammunition_load_slot = machine_gun_ammo_1
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_wheeled_suspension_light
				armor_type_slot = tank_steel_armor_gen1
				engine_type_slot = tank_diesel_engine_gen2
				special_type_slot_1 = empty #supposed to be afv_reverse_doors but forbids light tank
				special_type_slot_2 = crows_mg
				special_type_slot_4 = tank_battlestation_2
			}
			upgrades = { tank_nsb_armor_upgrade = 2 }
			icon = "gfx/interface/technologies/UKR/LAND/Recon/BRDM-2/BRDM-2L1.dds"
			design_team = mio:UKR_mykolayiv_plant_tank_manufacturer
		}

		if = {
			limit = {
				1086 = { #Mykolayiv
					arms_factory > 0
				}
			}

			add_equipment_production = {
				equipment = {
					type = medium_tank_destroyer_chassis_0
					version_name = "BRDM-2DI Khazar-Buh"
				}
				requested_factories = 1
				efficiency = 10
				industrial_manufacturer = mio:UKR_mykolayiv_plant_tank_manufacturer
			}

			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.04 tooltip = equipment_conversion_speed_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_military_industrial_organization_funds_gain = 0.03 tooltip = military_industrial_organization_funds_gain_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_productivity_growth_modifier = 0.02 tooltip = country_productivity_growth_modifier_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_local_factories = 0.01 tooltip = local_factories_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_local_resources_factor = 0.01 tooltip = local_resources_factor_tt }
		}

		else = {
			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.03 tooltip = equipment_conversion_speed_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_military_industrial_organization_funds_gain = 0.01 tooltip = military_industrial_organization_funds_gain_tt }
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_mykolayiv_brdm_2di_buh_flag
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.4.b
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.4.b executed"

		ai_chance = { base = 70 }

		trigger = {
			controls_state = 1086 #Mykolayiv
		}

		set_temp_variable = { treasury_change = -0.01 }
		modify_treasury_effect = yes

		army_experience = 1

		if = {
			limit = {
				NOT = {
					has_license = {
						from = SOV
						equipment = {
							type = medium_tank_destroyer_chassis_0
							version_name = "BRDM-2"
						}
					}
				}
			}

			SOV = {
				create_production_license = {
					target = UKR
					equipment = {
						type = medium_tank_destroyer_chassis_0
						version_name = "BRDM-2"
					}
					cost_factor = 0
				}
			}
		}

		create_equipment_variant = {
			name = "BRDM-2DI Khazar"
			type = medium_tank_destroyer_chassis_0
			parent_version = 0
			modules = {
				main_armament_slot = afv_machine_gun_2
				secondary_armament_slot = afv_coax_machine_gun_2
				reload_type_slot = manual_loading
				ammunition_load_slot = machine_gun_ammo_1
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_wheeled_suspension_light
				armor_type_slot = tank_steel_armor_gen1
				engine_type_slot = tank_diesel_engine_gen2
				special_type_slot_1 = empty #supposed to be afv_reverse_doors but forbids light tank
				special_type_slot_4 = tank_battlestation_2
			}
			upgrades = { tank_nsb_armor_upgrade = 2 }
			icon = "gfx/interface/technologies/UKR/LAND/Recon/BRDM-2/BRDM-2L1.dds"
			design_team = mio:UKR_mykolayiv_plant_tank_manufacturer
		}

		if = {
			limit = {
				1086 = { #Mykolayiv
					arms_factory > 0
				}
			}

			add_equipment_production = {
				equipment = {
					type = medium_tank_destroyer_chassis_0
					version_name = "BRDM-2DI Khazar"
				}
				requested_factories = 1
				efficiency = 10
				industrial_manufacturer = mio:UKR_mykolayiv_plant_tank_manufacturer
			}

			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.02 tooltip = equipment_conversion_speed_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_military_industrial_organization_funds_gain = 0.01 tooltip = military_industrial_organization_funds_gain_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_productivity_growth_modifier = 0.01 tooltip = country_productivity_growth_modifier_tt }
		}

		else = {
			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.02 tooltip = equipment_conversion_speed_tt }
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_mykolayiv_brdm_2di_flag
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.4.c
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.4.c executed"

		ai_chance = { base = 5 }

		trigger = {
			NOT = {
				controls_state = 1086 #Mykolayiv
			}
		}

		set_temp_variable = { treasury_change = -0.01 }
		modify_treasury_effect = yes

		country_event = {
			id = ukraine_modernize_sov_equipment_brdm_2_modernization.2
			days = 360
			random_days = 60
			random_hours = 6
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_mykolayiv_postpone_flag
	}
}

country_event = {
	id = ukraine_modernize_sov_equipment_brdm_2_modernization.5
	title = ukraine_modernize_sov_equipment_brdm_2_modernization.5.name
	desc = ukraine_modernize_sov_equipment_brdm_2_modernization.5.desc
	picture = GFX_ukraine_btr3u_uae_tender_presentation #TO-DO

	is_triggered_only = yes

	trigger = {
		original_tag = UKR
		country_exists = SOV
		has_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_mykolayiv_late_flag
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.5.a
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.5.a executed"

		ai_chance = { base = 15 }

		trigger = {
			controls_state = 1086 #Mykolayiv
		}

		set_temp_variable = { treasury_change = -0.06 }
		modify_treasury_effect = yes

		army_experience = 1

		if = {
			limit = {
				NOT = {
					has_license = {
						from = SOV
						equipment = {
							type = medium_tank_destroyer_chassis_0
							version_name = "BRDM-2"
						}
					}
				}
			}

			SOV = {
				create_production_license = {
					target = UKR
					equipment = {
						type = medium_tank_destroyer_chassis_0
						version_name = "BRDM-2"
					}
					cost_factor = 0
				}
			}
		}

		create_equipment_variant = {
			name = "BRM Manhust"
			type = medium_tank_destroyer_chassis_0
			parent_version = 0
			modules = {
				main_armament_slot = afv_machine_gun_2
				secondary_armament_slot = afv_coax_machine_gun_2
				reload_type_slot = automatic_loading
				ammunition_load_slot = machine_gun_ammo_2
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_wheeled_suspension_light
				armor_type_slot = tank_steel_armor_gen1
				engine_type_slot = tank_diesel_engine_gen2
				special_type_slot_1 = empty #supposed to be afv_reverse_doors but forbids light tank
				special_type_slot_4 = tank_battlestation_2_thermal
				special_type_slot_6 = spaced_armor_gen1
			}
			upgrades = { tank_nsb_armor_upgrade = 3 }
			icon = "gfx/interface/technologies/UKR/LAND/Recon/BRDM-2/BRM-Manhust.dds"
			design_team = mio:UKR_mykolayiv_plant_tank_manufacturer
		}

		if = {
			limit = {
				1086 = { #Mykolayiv
					arms_factory > 0
				}
			}

			add_equipment_production = {
				equipment = {
					type = medium_tank_destroyer_chassis_0
					version_name = "BRM Manhust"
				}
				requested_factories = 1
				efficiency = 10
				industrial_manufacturer = mio:UKR_mykolayiv_plant_tank_manufacturer
			}

			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.06 tooltip = equipment_conversion_speed_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_military_industrial_organization_funds_gain = 0.03 tooltip = military_industrial_organization_funds_gain_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_productivity_growth_modifier = 0.02 tooltip = country_productivity_growth_modifier_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_local_factories = 0.01 tooltip = local_factories_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_local_resources_factor = 0.01 tooltip = local_resources_factor_tt }
		}
		else = {
			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.04 tooltip = equipment_conversion_speed_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_military_industrial_organization_funds_gain = 0.02 tooltip = military_industrial_organization_funds_gain_tt }
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_mykolayiv_brm_manhust_flag
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.5.b
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.5.b executed"

		ai_chance = { base = 70 }

		trigger = {
			controls_state = 1086 #Mykolayiv
		}

		set_temp_variable = { treasury_change = -0.02 }
		modify_treasury_effect = yes

		army_experience = 1

		if = {
			limit = {
				NOT = {
					has_license = {
						from = SOV
						equipment = {
							type = medium_tank_destroyer_chassis_0
							version_name = "BRDM-2"
						}
					}
				}
			}

			SOV = {
				create_production_license = {
					target = UKR
					equipment = {
						type = medium_tank_destroyer_chassis_0
						version_name = "BRDM-2"
					}
					cost_factor = 0
				}
			}
		}

		create_equipment_variant = {
			name = "BRDM-2L1"
			type = medium_tank_destroyer_chassis_0
			parent_version = 0
			modules = {
				main_armament_slot = afv_machine_gun_2
				secondary_armament_slot = afv_coax_machine_gun_2
				reload_type_slot = manual_loading
				ammunition_load_slot = machine_gun_ammo_1
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_wheeled_suspension_light
				armor_type_slot = tank_steel_armor_gen1
				engine_type_slot = afv_gasoline_engine_gen1
				special_type_slot_1 = empty #supposed to be afv_reverse_doors but forbids light tank
				special_type_slot_4 = tank_battlestation_2
			}
			upgrades = { tank_nsb_armor_upgrade = 2 }
			icon = "gfx/interface/technologies/UKR/LAND/Recon/BRDM-2/BRDM-2L1.dds"
			design_team = mio:UKR_mykolayiv_plant_tank_manufacturer
		}

		if = {
			limit = {
				1086 = { #Mykolayiv
					arms_factory > 0
				}
			}

			add_equipment_production = {
				equipment = {
					type = medium_tank_destroyer_chassis_0
					version_name = "BRDM-2L1"
				}
				requested_factories = 1
				efficiency = 10
				industrial_manufacturer = mio:UKR_mykolayiv_plant_tank_manufacturer
			}

			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.02 tooltip = equipment_conversion_speed_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_military_industrial_organization_funds_gain = 0.01 tooltip = military_industrial_organization_funds_gain_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_productivity_growth_modifier = 0.01 tooltip = country_productivity_growth_modifier_tt }
		}
		else = {
			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.02 tooltip = equipment_conversion_speed_tt }
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_mykolayiv_brdm_2l1_flag
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.5.c
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.5.c executed"

		ai_chance = { base = 5 }

		trigger = {
			NOT = {
				controls_state = 1086 #Mykolayiv
			}
		}

		set_temp_variable = { treasury_change = -0.01 }
		modify_treasury_effect = yes

		country_event = {
			id = ukraine_modernize_sov_equipment_brdm_2_modernization.2
			days = 360
			random_days = 60
			random_hours = 6
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_mykolayiv_postpone_flag
	}
}

country_event = {
	id = ukraine_modernize_sov_equipment_brdm_2_modernization.6
	title = ukraine_modernize_sov_equipment_brdm_2_modernization.6.name
	desc = ukraine_modernize_sov_equipment_brdm_2_modernization.6.desc
	picture = GFX_ukraine_btr3u_uae_tender_presentation #TO-DO

	is_triggered_only = yes

	trigger = {
		original_tag = UKR
		country_exists = SOV
		OR = {
			has_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_techimpex_flag
			has_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_techimpex_postpone_flag
		}
		NOT = {
			has_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_techimpex_yanhol_flag
		}
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.6.a
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.6.a executed"

		ai_chance = { base = 38 }

		trigger = {
			controls_state = 698 #Kyiv
		}

		set_temp_variable = { treasury_change = -0.01 }
		modify_treasury_effect = yes

		army_experience = 1

		if = {
			limit = {
				NOT = {
					has_license = {
						from = SOV
						equipment = {
							type = medium_tank_destroyer_chassis_0
							version_name = "BRDM-2"
						}
					}
				}
			}

			SOV = {
				create_production_license = {
					target = UKR
					equipment = {
						type = medium_tank_destroyer_chassis_0
						version_name = "BRDM-2"
					}
					cost_factor = 0
				}
			}
		}

		create_equipment_variant = {
			name = "BRDM-2T zr. 2012"
			type = medium_tank_destroyer_chassis_0
			parent_version = 0
			modules = {
				main_armament_slot = afv_machine_gun_2
				secondary_armament_slot = afv_coax_machine_gun_2
				reload_type_slot = manual_loading
				ammunition_load_slot = machine_gun_ammo_1
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_wheeled_suspension_light
				armor_type_slot = tank_steel_armor_gen1
				engine_type_slot = tank_diesel_engine_gen1
				special_type_slot_4 = tank_battlestation_1
			}
			upgrades = {
				tank_nsb_armor_upgrade = 2
			}
			icon = "gfx/interface/technologies/UKR/LAND/Recon/BRDM-2/BRDM-2L1.dds"
		}

		if = {
			limit = {
				698 = { #Kyiv
					arms_factory > 1
				}
			}

			add_equipment_production = {
				equipment = {
					type = medium_tank_destroyer_chassis_0
					version_name = "BRDM-2T zr. 2012"
				}
				requested_factories = 1
				efficiency = 10
			}

			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.03 tooltip = equipment_conversion_speed_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_military_industrial_organization_funds_gain = 0.01 tooltip = military_industrial_organization_funds_gain_tt }
		}
		else = {
			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.02 tooltip = equipment_conversion_speed_tt }
		}

		country_event = {
			id = ukraine_modernize_sov_equipment_brdm_2_modernization.7
			days = 720
			random_days = 180
			random_hours = 6
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_techimpex_zr_2012_flag
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.6.b
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.6.b executed"

		ai_chance = { base = 16 }

		trigger = {
			controls_state = 698 #Kyiv
		}

		set_temp_variable = { treasury_change = -0.01 }
		modify_treasury_effect = yes

		army_experience = 1

		if = {
			limit = {
				NOT = {
					has_license = {
						from = SOV
						equipment = {
							type = medium_tank_destroyer_chassis_0
							version_name = "BRDM-2"
						}
					}
				}
			}

			SOV = {
				create_production_license = {
					target = UKR
					equipment = {
						type = medium_tank_destroyer_chassis_0
						version_name = "BRDM-2"
					}
					cost_factor = 0
				}
			}
		}

		create_equipment_variant = {
			name = "BRDM-2T zr. 2013"
			type = medium_tank_destroyer_chassis_0
			parent_version = 0
			modules = {
				main_armament_slot = afv_machine_gun_2
				secondary_armament_slot = afv_coax_machine_gun_2
				reload_type_slot = manual_loading
				ammunition_load_slot = machine_gun_ammo_1
				turret_type_slot = tank_no_turret
				suspension_type_slot = tank_wheeled_suspension_light
				armor_type_slot = tank_steel_armor_gen1
				engine_type_slot = tank_diesel_engine_gen2
				special_type_slot_4 = tank_battlestation_2
			}
			upgrades = {
				tank_nsb_armor_upgrade = 2
			}
			icon = "gfx/interface/technologies/UKR/LAND/Recon/BRDM-2/BRDM-2L1.dds"
		}

		if = {
			limit = {
				698 = { #Kyiv
					arms_factory > 1
				}
			}

			add_equipment_production = {
				equipment = {
					type = medium_tank_destroyer_chassis_0
					version_name = "BRDM-2T zr. 2013"
				}
				requested_factories = 1
				efficiency = 10
			}

			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.02 tooltip = equipment_conversion_speed_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_military_industrial_organization_funds_gain = 0.01 tooltip = military_industrial_organization_funds_gain_tt }
		}
		else = {
			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.01 tooltip = equipment_conversion_speed_tt }
		}

		country_event = {
			id = ukraine_modernize_sov_equipment_brdm_2_modernization.7
			days = 720
			random_days = 180
			random_hours = 6
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_techimpex_zr_2013_flag
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.6.c
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.6.c executed"

		ai_chance = { base = 36 }

		trigger = {
			controls_state = 698 #Kyiv
		}

		set_temp_variable = { treasury_change = -0.01 }
		modify_treasury_effect = yes

		army_experience = 1

		if = {
			limit = {
				NOT = {
					has_license = {
						from = SOV
						equipment = {
							type = medium_tank_destroyer_chassis_0
							version_name = "BRDM-2"
						}
					}
				}
			}

			SOV = {
				create_production_license = {
					target = UKR
					equipment = {
						type = medium_tank_destroyer_chassis_0
						version_name = "BRDM-2"
					}
					cost_factor = 0
				}
			}
		}

		create_equipment_variant = {
			name = "BRDM-2T zr. 2015"
			type = medium_tank_destroyer_chassis_0
			parent_version = 0
			modules = {
				main_armament_slot = afv_machine_gun_2
				secondary_armament_slot = afv_coax_machine_gun_2
				reload_type_slot = manual_loading
				ammunition_load_slot = machine_gun_ammo_1
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_wheeled_suspension_light
				armor_type_slot = tank_steel_armor_gen1
				engine_type_slot = tank_diesel_engine_gen2
				special_type_slot_4 = tank_battlestation_2
			}
			upgrades = {
				tank_nsb_armor_upgrade = 3
			}
			icon = "gfx/interface/technologies/UKR/LAND/Recon/BRDM-2/BRDM-2L1.dds"
		}

		if = {
			limit = {
				698 = { #Kyiv
					arms_factory > 1
				}
			}

			add_equipment_production = {
				equipment = {
					type = medium_tank_destroyer_chassis_0
					version_name = "BRDM-2T zr. 2015"
				}
				requested_factories = 1
				efficiency = 10
			}

			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.03 tooltip = equipment_conversion_speed_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_military_industrial_organization_funds_gain = 0.02 tooltip = military_industrial_organization_funds_gain_tt }
		}
		else = {
			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.02 tooltip = equipment_conversion_speed_tt }
		}

		country_event = {
			id = ukraine_modernize_sov_equipment_brdm_2_modernization.7
			days = 720
			random_days = 180
			random_hours = 6
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_techimpex_zr_2015_flag
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.6.d
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.6.d executed"

		ai_chance = { base = 8 }

		trigger = {
			NOT = {
				controls_state = 698 #Kyiv
			}
		}

		set_temp_variable = { treasury_change = -0.01 }
		modify_treasury_effect = yes

		country_event = {
			id = ukraine_modernize_sov_equipment_brdm_2_modernization.6
			days = 360
			random_days = 60
			random_hours = 6
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_techimpex_postpone_flag
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.6.e
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.6.e executed"

		ai_chance = { base = 2 }

		custom_effect_tooltip = {
			localization_key = modifies_dynamic_modifier_tt
			MODIFIER = UKR_modernize_sov_equipment_effect
		}
		add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = -0.02 tooltip = equipment_conversion_speed_tt }
		add_to_variable = { UKR_modernize_sov_equipment_effect_military_industrial_organization_funds_gain = -0.01 tooltip = military_industrial_organization_funds_gain_tt }

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_cancel_flag
	}
}

country_event = {
	id = ukraine_modernize_sov_equipment_brdm_2_modernization.7
	title = ukraine_modernize_sov_equipment_brdm_2_modernization.7.name
	desc = ukraine_modernize_sov_equipment_brdm_2_modernization.7.desc
	picture = GFX_ukraine_btr3u_uae_tender_presentation #TO-DO

	is_triggered_only = yes
	trigger = {
		original_tag = UKR
		OR = {
			has_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_techimpex_zr_2012_flag
			has_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_techimpex_zr_2013_flag
			has_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_techimpex_zr_2015_flag
		}
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.7.a
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.7.a executed"

		ai_chance = { base = 40 }

		trigger = {
			controls_state = 698 #Kyiv
		}

		set_temp_variable = { treasury_change = -0.03 }
		modify_treasury_effect = yes

		army_experience = 2

		create_equipment_variant = {
			name = "BRDM-2T Yanhol"
			type = medium_tank_destroyer_chassis_0
			parent_version = 0
			modules = {
				main_armament_slot = afv_machine_gun_2
				secondary_armament_slot = afv_coax_machine_gun_2
				reload_type_slot = manual_loading
				ammunition_load_slot = machine_gun_ammo_1
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_wheeled_suspension_light
				armor_type_slot = tank_steel_armor_gen1
				engine_type_slot = tank_diesel_engine_gen2
				special_type_slot_4 = tank_battlestation_2
				special_type_slot_6 = spaced_armor_gen1
			}
			upgrades = {
				tank_nsb_armor_upgrade = 3
			}
			icon = "gfx/interface/technologies/UKR/LAND/Recon/BRDM-2/BRDM-2L1.dds"
		}

		if = {
			limit = {
				698 = { #Kyiv
					arms_factory > 1
				}
			}

			add_equipment_production = {
				equipment = {
					type = medium_tank_destroyer_chassis_0
					version_name = "BRDM-2T Yanhol"
				}
				requested_factories = 1
				efficiency = 10
			}

			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.04 tooltip = equipment_conversion_speed_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_military_industrial_organization_funds_gain = 0.03 tooltip = military_industrial_organization_funds_gain_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_productivity_growth_modifier = 0.02 tooltip = country_productivity_growth_modifier_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_local_factories = 0.01 tooltip = local_factories_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_local_resources_factor = 0.01 tooltip = local_resources_factor_tt }
		}
		else = {
			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.03 tooltip = equipment_conversion_speed_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_military_industrial_organization_funds_gain = 0.01 tooltip = military_industrial_organization_funds_gain_tt }
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_techimpex_yanhol_flag
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.7.b
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.7.b executed"

		ai_chance = { base = 2 }

		trigger = {
			NOT = {
				controls_state = 698 #Kyiv
			}
		}

		set_temp_variable = { treasury_change = -0.01 }
		modify_treasury_effect = yes

		country_event = {
			id = ukraine_modernize_sov_equipment_brdm_2_modernization.6
			days = 360
			random_days = 60
			random_hours = 6
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_techimpex_postpone_flag
	}
}

country_event = {
	id = ukraine_modernize_sov_equipment_brdm_2_modernization.8
	title = ukraine_modernize_sov_equipment_brdm_2_modernization.8.name
	desc = ukraine_modernize_sov_equipment_brdm_2_modernization.8.desc
	picture = GFX_ukraine_btr3u_uae_tender_presentation #TO-DO

	is_triggered_only = yes

	trigger = {
		original_tag = UKR
		country_exists = SOV
		OR = {
			has_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_other_flag
			has_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_other_postpone_flag
		}
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.8.a
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.8.a executed"

		ai_chance = { base = 20 }

		trigger = {
			controls_state = 698 #Kyiv
		}

		set_temp_variable = { treasury_change = -0.01 }
		modify_treasury_effect = yes

		army_experience = 1

		if = {
			limit = {
				NOT = {
					has_license = {
						from = SOV
						equipment = {
							type = medium_tank_destroyer_chassis_0
							version_name = "BRDM-2"
						}
					}
				}
			}

			SOV = {
				create_production_license = {
					target = UKR
					equipment = {
						type = medium_tank_destroyer_chassis_0
						version_name = "BRDM-2"
					}
					cost_factor = 0
				}
			}
		}

		create_equipment_variant = {
			name = "BRDM-2DP"
			type = medium_tank_destroyer_chassis_0
			parent_version = 0
			modules = {
				main_armament_slot = afv_machine_gun_2
				secondary_armament_slot = afv_coax_machine_gun_2
				reload_type_slot = manual_loading
				ammunition_load_slot = machine_gun_ammo_1
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_wheeled_suspension_light
				armor_type_slot = tank_steel_armor_gen1
				engine_type_slot = tank_diesel_engine_gen1
				special_type_slot_1 = empty #supposed to be afv_reverse_doors but forbids light tank
				special_type_slot_3 = spaced_armor_gen2
				special_type_slot_4 = tank_battlestation_1
			}
			upgrades = {
				tank_nsb_armor_upgrade = 1
			}
			icon = "gfx/interface/technologies/UKR/LAND/Recon/BRDM-2/BRDM-2L1.dds"
		}

		if = {
			limit = {
				698 = { #Kyiv
					arms_factory > 1
				}
			}

			add_equipment_production = {
				equipment = {
					type = medium_tank_destroyer_chassis_0
					version_name = "BRDM-2DP"
				}
				requested_factories = 1
				efficiency = 10
			}

			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.02 tooltip = equipment_conversion_speed_tt }
		}
		else = {
			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.01 tooltip = equipment_conversion_speed_tt }
		}

		country_event = {
			id = ukraine_modernize_sov_equipment_brdm_2_modernization.9
			days = 1440
			random_days = 360
			random_hours = 6
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_other_brdm_2dp_flag
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.8.b
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.8.b executed"

		ai_chance = { base = 20 }

		trigger = {
			controls_state = 699 #Vinnytsia
		}

		set_temp_variable = { treasury_change = -0.03 }
		modify_treasury_effect = yes

		army_experience = 2

		if = {
			limit = {
				NOT = {
					has_license = {
						from = SOV
						equipment = {
							type = medium_tank_destroyer_chassis_0
							version_name = "BRDM-2"
						}
					}
				}
			}

			SOV = {
				create_production_license = {
					target = UKR
					equipment = {
						type = medium_tank_destroyer_chassis_0
						version_name = "BRDM-2"
					}
					cost_factor = 0
				}
			}
		}

		create_equipment_variant = {
			name = "BRDM-2I"
			type = medium_tank_destroyer_chassis_0
			parent_version = 0
			allow_without_tech = yes
			modules = {
				main_armament_slot = afv_machine_gun_2
				secondary_armament_slot = afv_coax_machine_gun_2
				reload_type_slot = manual_loading
				ammunition_load_slot = machine_gun_ammo_1
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_wheeled_suspension_light
				armor_type_slot = tank_steel_armor_gen1
				engine_type_slot = tank_diesel_engine_gen1
				special_type_slot_1 = empty #supposed to be afv_reverse_doors but forbids light tank
				special_type_slot_2 = crows_mg
				special_type_slot_3 = afv_atgm_gen2
				special_type_slot_4 = tank_battlestation_1
			}
			upgrades = { tank_nsb_armor_upgrade = 2 }
			icon = "gfx/interface/technologies/UKR/LAND/Recon/BRDM-2/BRDM-2L1.dds"
		}

		if = {
			limit = {
				699 = { #Vinnytsia
					arms_factory > 0
				}
			}

			add_equipment_production = {
				equipment = {
					type = medium_tank_destroyer_chassis_0
					version_name = "BRDM-2I"
				}
				requested_factories = 1
				efficiency = 10
			}

			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.03 tooltip = equipment_conversion_speed_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_local_factories = 0.01 tooltip = local_factories_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_local_resources_factor = 0.01 tooltip = local_resources_factor_tt }
		}
		else = {
			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.02 tooltip = equipment_conversion_speed_tt }
		}

		country_event = {
			id = ukraine_modernize_sov_equipment_brdm_2_modernization.9
			days = 720
			random_days = 180
			random_hours = 6
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_other_brdm_2i_flag
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.8.c
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.8.c executed"

		ai_chance = { base = 20 }

		trigger = {
			controls_state = 1089 #Poltava
		}

		set_temp_variable = { treasury_change = -0.02 }
		modify_treasury_effect = yes

		army_experience = 1

		if = {
			limit = {
				NOT = {
					has_license = {
						from = SOV
						equipment = {
							type = medium_tank_destroyer_chassis_0
							version_name = "BRDM-2"
						}
					}
				}
			}

			SOV = {
				create_production_license = {
					target = UKR
					equipment = {
						type = medium_tank_destroyer_chassis_0
						version_name = "BRDM-2"
					}
					cost_factor = 0
				}
			}
		}

		create_equipment_variant = {
			name = "BRDM-2 Vepr"
			type = medium_tank_destroyer_chassis_0
			parent_version = 0
			modules = {
				main_armament_slot = afv_machine_gun_2
				secondary_armament_slot = afv_coax_machine_gun_2
				reload_type_slot = manual_loading
				ammunition_load_slot = machine_gun_ammo_1
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_wheeled_suspension_light
				armor_type_slot = tank_steel_armor_gen1
				engine_type_slot = tank_diesel_engine_gen1
				special_type_slot_1 = empty #supposed to be afv_reverse_doors but forbids light tank
				special_type_slot_4 = tank_battlestation_2
			}
			upgrades = {
				tank_nsb_armor_upgrade = 1
			}
			icon = "gfx/interface/technologies/UKR/LAND/Recon/BRDM-2/BRDM-2L1.dds"
		}

		if = {
			limit = {
				1089 = {#Poltava
					arms_factory > 0
				}
			}

			add_equipment_production = {
				equipment = {
					type = medium_tank_destroyer_chassis_0
					version_name = "BRDM-2 Vepr"
				}
				requested_factories = 1
				efficiency = 10
			}

			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.02 tooltip = equipment_conversion_speed_tt }
		}
		else = {
			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.01 tooltip = equipment_conversion_speed_tt }
		}

		country_event = {
			id = ukraine_modernize_sov_equipment_brdm_2_modernization.9
			days = 720
			random_days = 180
			random_hours = 6
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_other_vepr_flag
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.8.d
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.8.d executed"

		ai_chance = { base = 40 }

		trigger = {
			NOT = {
				OR = {
					controls_state = 698 #Kyiv
					controls_state = 699 #Vinnytsia
					controls_state = 1089 #Poltava
				}
			}
		}

		set_temp_variable = { treasury_change = -0.01 }
		modify_treasury_effect = yes

		country_event = {
			id = ukraine_modernize_sov_equipment_brdm_2_modernization.8
			days = 360
			random_days = 60
			random_hours = 6
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_other_postpone_flag
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.8.e
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.8.e executed"

		ai_chance = { base = 2 }

		custom_effect_tooltip = {
			localization_key = modifies_dynamic_modifier_tt
			MODIFIER = UKR_modernize_sov_equipment_effect
		}
		add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = -0.02 tooltip = equipment_conversion_speed_tt }
		add_to_variable = { UKR_modernize_sov_equipment_effect_military_industrial_organization_funds_gain = -0.01 tooltip = military_industrial_organization_funds_gain_tt }

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_cancel_flag
	}
}

country_event = {
	id = ukraine_modernize_sov_equipment_brdm_2_modernization.9
	title = ukraine_modernize_sov_equipment_brdm_2_modernization.9.name
	desc = ukraine_modernize_sov_equipment_brdm_2_modernization.9.desc
	picture = GFX_ukraine_btr3u_uae_tender_presentation #TO-DO

	is_triggered_only = yes
	trigger = {
		original_tag = UKR
		OR = {
			AND = {
				controls_state = 698 #Kyiv
				has_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_other_brdm_2dp_flag
			}
			AND = {
				controls_state = 699 #Vinnytsia
				has_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_other_brdm_2i_flag
			}
			AND = {
				controls_state = 1089 #Poltava
				has_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_other_vepr_flag
			}
		}
		NOT = {
			has_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_other_bkm_hekkon_flag
		}
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.9.a
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.9.a executed"

		ai_chance = { base = 30 }

		trigger = {
			controls_state = 698 #Kyiv
		}

		set_temp_variable = { treasury_change = -0.05 }
		modify_treasury_effect = yes

		army_experience = 2

		create_equipment_variant = {
			name = "BKM Hekkon"
			type = medium_tank_destroyer_chassis_0
			parent_version = 0
			modules = {
				main_armament_slot = afv_machine_gun_2
				secondary_armament_slot = afv_coax_machine_gun_2
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_wheeled_suspension_light
				armor_type_slot = tank_steel_armor_gen1
				engine_type_slot = tank_diesel_engine_gen2
				reload_type_slot = automatic_loading
				special_type_slot_1 = empty #supposed to be afv_reverse_doors but forbids light tank
				special_type_slot_2 = smoke_launchers
				special_type_slot_4 = tank_battlestation_2_thermal
				ammunition_load_slot = machine_gun_ammo_2
			}
			upgrades = { tank_nsb_armor_upgrade = 2 }
			icon = "gfx/interface/technologies/UKR/LAND/Recon/BRDM-2/Hekon.dds"
		}

		if = {
			limit = {
				698 = { #Kyiv
					arms_factory > 1
				}
			}

			add_equipment_production = {
				equipment = {
					type = medium_tank_destroyer_chassis_0
					version_name = "BKM Hekkon"
				}
				requested_factories = 1
				efficiency = 10
			}

			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.04 tooltip = equipment_conversion_speed_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_productivity_growth_modifier = 0.02 tooltip = country_productivity_growth_modifier_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_local_factories = 0.01 tooltip = local_factories_tt }
			add_to_variable = { UKR_modernize_sov_equipment_effect_local_resources_factor = 0.01 tooltip = local_resources_factor_tt }
		}
		else = {
			custom_effect_tooltip = {
				localization_key = modifies_dynamic_modifier_tt
				MODIFIER = UKR_modernize_sov_equipment_effect
			}
			add_to_variable = { UKR_modernize_sov_equipment_effect_equipment_conversion_speed = 0.03 tooltip = equipment_conversion_speed_tt }
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_other_bkm_hekkon_flag
	}

	option = {
		name = ukraine_modernize_sov_equipment_brdm_2_modernization.9.b
		log = "[GetDateText]: [This.GetName]: ukraine_modernize_sov_equipment_brdm_2_modernization.9.b executed"

		ai_chance = { base = 2 }

		trigger = {
			NOT = {
				controls_state = 698 #Kyiv
			}
		}

		set_temp_variable = { treasury_change = -0.01 }
		modify_treasury_effect = yes

		country_event = {
			id = ukraine_modernize_sov_equipment_brdm_2_modernization.8
			days = 360
			random_days = 60
			random_hours = 6
		}

		set_country_flag = ukraine_modernize_sov_equipment_brdm_2_modernization_other_postpone_flag
	}
}

country_event = {
	id = ukraine_develop_btr3.1
	title = ukraine_develop_btr3.1.name
	desc = ukraine_develop_btr3.1.desc
	picture = GFX_ukraine_btr3u_uae_tender_presentation
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		original_tag = UKR
		country_exists = UAE
		NOT = {
			has_country_flag = UKR_develop_btr3_uae_tender_terminated_flag
		}
	}

	option = {
		name = ukraine_develop_btr3.1.a
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr3.1.a executed"

		ai_chance = { base = 80 }

		trigger = {
			UAE = {
				has_opinion = {
					target = UKR
					value > 39.99
				}
				influence_higher_5 = yes
			}
		}

		UAE = {
			set_temp_variable = { treasury_change = -0.2 }
			modify_treasury_effect = yes
		}

		set_temp_variable = { treasury_change = 0.2 }
		modify_treasury_effect = yes

		696 = { #Kharkiv
			add_state_modifier = { modifier = { state_productivity_growth_modifier = 0.04 } }
		}

		create_equipment_variant = {
			name = "BTR-3U Guardian"
			type = medium_tank_amphibious_chassis_2
			parent_version = 0
			modules = {
				main_armament_slot = small_autocannon_2
				secondary_armament_slot = crows_mg
				reload_type_slot = automatic_loading
				ammunition_load_slot = mixed_autocannon_ammo_2
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_wheeled_suspension_medium
				armor_type_slot = tank_steel_armor_gen2
				engine_type_slot = tank_diesel_engine_gen3
				special_type_slot_1 = afv_atgm_gen2
				special_type_slot_2 = smoke_launchers
				special_type_slot_4 = tank_battlestation_2
				special_type_slot_5 = afv_troop_capacity
			}
			upgrades = { tank_nsb_armor_upgrade = 0 }
			icon = "gfx/interface/technologies/UKR/LAND/AFV/Wheeled/BTR-3/BTR-3U_Guardian.dds"
			model = UKR_btr3_entity
			design_team = mio:UKR_kmdb_tank_manufacturer
		}

		set_country_flag = UKR_develop_btr3_uae_tender_win_flag

		if = {
			limit = {
				696 = { #Kharkiv
					arms_factory > 0
				}
			}

			country_event = {
				id = ukraine_develop_btr3.2
				days = 180
			}

			696 = { #Kharkiv
				remove_building = {
					type = arms_factory
					level = 1
				}
			}
		}

		if = {
			limit = {
				696 = { #Kharkiv
					arms_factory < 1
				}
			}

			country_event = {
				id = ukraine_develop_btr3.5
				days = 30
			}
		}
	}

	option = {
		name = ukraine_develop_btr3.1.b
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr3.1.b executed"

		ai_chance = { base = 20 }

		trigger = {
			UAE = {
				OR = {
					has_opinion = {
						target = UKR
						value < 40
					}
					influence_less_5 = yes
				}
			}
		}

		add_opinion_modifier = {
			target = UAE
			modifier = refused_market_trade
		}

		set_country_flag = UKR_develop_btr3_uae_tender_lose_flag
	}
}

country_event = {
	id = ukraine_develop_btr3.2
	title = ukraine_develop_btr3.2.name
	desc = ukraine_develop_btr3.2.desc
	picture = GFX_ukraine_btr3u_uae_tender_procurement
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		original_tag = UKR
		country_exists = UAE
		has_country_flag = UKR_develop_btr3_uae_tender_win_flag
	}

	option = {
		name = ukraine_develop_btr3.2.a
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr3.2.a executed"

		ai_chance = { base = 100 }

		696 = { #Kharkiv
			add_state_modifier = { modifier = { state_productivity_growth_modifier = 0.01 } }
		}

		UAE = {
			set_temp_variable = { treasury_change = -0.1 }
			modify_treasury_effect = yes

			add_equipment_to_stockpile = {
				type = medium_tank_amphibious_chassis_1
				variant_name = "BTR-3U Guardian"
				amount = 30
				producer = UKR
			}
		}

		set_temp_variable = { treasury_change = 0.1 }
			modify_treasury_effect = yes

		if = {
			limit = {
				696 = { #Kharkiv
					arms_factory > 0
				}
			}

			country_event = {
				id = ukraine_develop_btr3.3
				days = 120
			}
		}

		if = {
			limit = {
				696 = { #Kharkiv
					arms_factory < 1
				}
			}

			696 = { #Kharkiv
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}

			country_event = {
				id = ukraine_develop_btr3.6
				days = 30
			}
		}
	}
}

country_event = {
	id = ukraine_develop_btr3.3
	title = ukraine_develop_btr3.3.name
	desc = ukraine_develop_btr3.3.desc
	picture = GFX_ukraine_btr3u_uae_tender_procurement
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		original_tag = UKR
		country_exists = UAE
	}

	option = {
		name = ukraine_develop_btr3.3.a
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr3.3.a executed"

		ai_chance = { base = 80 }

		696 = { #Kharkiv
			add_state_modifier = { modifier = { state_productivity_growth_modifier = 0.02 } }
		}

		UAE = {
			set_temp_variable = { treasury_change = -0.1 }
			modify_treasury_effect = yes

			add_equipment_to_stockpile = {
				type = medium_tank_amphibious_chassis_1
				variant_name = "BTR-3U Guardian"
				amount = 30
				producer = UKR
			}
		}

		set_temp_variable = { treasury_change = 0.1 }
			modify_treasury_effect = yes

		if = {
			limit = {
				696 = { #Kharkiv
					arms_factory > 0
				}
			}

			country_event = {
				id = ukraine_develop_btr3.4
				days = 90
			}
		}

		if = {
			limit = {
				696 = { #Kharkiv
					arms_factory < 1
				}
			}

			696 = { #Kharkiv
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}

			country_event = {
				id = ukraine_develop_btr3.7
				days = 30
			}
		}
	}
}

country_event = {
	id = ukraine_develop_btr3.4
	title = ukraine_develop_btr3.4.name
	desc = ukraine_develop_btr3.4.desc
	picture = GFX_ukraine_btr3u_uae_tender_license
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		original_tag = UKR
		country_exists = UAE
		NOT = {
			has_country_flag = UKR_develop_btr3_uae_tender_finish_flag
		}
	}

	option = {
		name = ukraine_develop_btr3.4.a
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr3.4.a executed"

		ai_chance = { base = 80 }

		696 = { #Kharkiv
			add_state_modifier = { modifier = { state_productivity_growth_modifier = 0.02 } }

			add_building_construction = {
				type = arms_factory
				level = 1
				instant_build = yes
			}
		}

		UAE = {
			set_temp_variable = { treasury_change = -0.1 }
			modify_treasury_effect = yes

			add_equipment_to_stockpile = {
				type = medium_tank_amphibious_chassis_1
				variant_name = "BTR-3U Guardian"
				amount = 30
				producer = UKR
			}
		}

		set_temp_variable = { treasury_change = 0.1 }
			modify_treasury_effect = yes


		set_country_flag = UKR_develop_btr3_uae_tender_finish_flag
	}

	option = {
		name = ukraine_develop_btr3.4.b
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr3.4.b executed"

		ai_chance = { base = 20 }

		trigger = {
			UAE = {
				has_opinion = {
					target = UKR
					value > 49
				}
				influence_higher_10 = yes
			}
		}

		696 = { #Kharkiv
			add_state_modifier = { modifier = { state_productivity_growth_modifier = 0.04 } }

			add_building_construction = {
				type = arms_factory
				level = 1
				instant_build = yes
			}
		}

		UAE = {
			set_temp_variable = { treasury_change = -0.4 }
			modify_treasury_effect = yes

			add_equipment_to_stockpile = {
				type = medium_tank_amphibious_chassis_1
				variant_name = "BTR-3U Guardian"
				amount = 30
				producer = UKR
			}
		}

		create_production_license = {
			target = UAE
			equipment = {
				type = medium_tank_amphibious_chassis_1
				version_name = "BTR-3U Guardian"
			}
			cost_factor = 1
		}

		set_temp_variable = { treasury_change = 0.4 }
		modify_treasury_effect = yes

		#set_country_flag = UKR_develop_btr3_uae_tender_license_flag
	}
}

country_event = {
	id = ukraine_develop_btr3.5
	title = ukraine_develop_btr3.5.name
	desc = ukraine_develop_btr3.5.desc
	picture = GFX_ukraine_btr3u_uae_tender_license
	is_triggered_only = yes

	trigger = {
		original_tag = UKR
		country_exists = UAE
	}

	option = {
		name = ukraine_develop_btr3.5.a
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr3.5.a executed"

		ai_chance = { base = 90 }

		if = {
			limit = {
				UAE = {
					has_opinion = {
						target = UKR
						value > 49
					}
					influence_higher_10 = yes
				}
			}

			if = {
				limit = {
					696 = { #Kharkiv
						arms_factory > 0
					}
				}

				country_event = {
					id = ukraine_develop_btr3.2
					days = 180
				}

				696 = { #Kharkiv
					remove_building = {
						type = arms_factory
						level = 1
					}
				}
			}

			if = {
				limit = {
					696 = { #Kharkiv
						arms_factory < 1
					}
				}

				country_event = {
					id = ukraine_develop_btr3.5
					days = 30
				}
			}
		}
	}

	option = {
		name = ukraine_develop_btr3.5.b
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr3.5.b executed"

		ai_chance = { base = 10 }

		696 = { #Kharkiv
			add_state_modifier = { modifier = { state_productivity_growth_modifier = -0.02 } }
		}

		UAE = {
			add_opinion_modifier = {
				target = UKR
				modifier = broke_trade_agreement
			}
		}

		set_country_flag = UKR_develop_btr3_uae_tender_terminated_flag
	}
}

country_event = {
	id = ukraine_develop_btr3.6
	title = ukraine_develop_btr3.6.name
	desc = ukraine_develop_btr3.6.desc
	picture = GFX_ukraine_btr3u_uae_tender_license
	is_triggered_only = yes

	trigger = {
		original_tag = UKR
		country_exists = UAE
	}

	option = {
		name = ukraine_develop_btr3.6.a
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr3.6.a executed"

		ai_chance = { base = 90 }

		if = {
			limit = {
				UAE = {
					has_opinion = {
						target = UKR
						value > 49
					}
					influence_higher_10 = yes
				}
			}

			if = {
				limit = {
					696 = { #Kharkiv
						arms_factory > 0
					}
				}

				country_event = {
					id = ukraine_develop_btr3.3
					days = 150
				}

				696 = { #Kharkiv
					remove_building = {
						type = arms_factory
						level = 1
					}
				}
			}

			if = {
				limit = {
					696 = { #Kharkiv
						arms_factory < 1
					}
				}

				country_event = {
					id = ukraine_develop_btr3.6
					days = 30
				}
			}
		}
	}

	option = {
		name = ukraine_develop_btr3.6.b
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr3.6.b executed"

		ai_chance = { base = 10 }

		696 = { #Kharkiv
			add_state_modifier = { modifier = { state_productivity_growth_modifier = -0.02 } }
		}

		UAE = {
			add_opinion_modifier = {
				target = UKR
				modifier = broke_trade_agreement
			}
		}

		set_country_flag = UKR_develop_btr3_uae_tender_terminated_flag
	}
}

country_event = {
	id = ukraine_develop_btr3.7
	title = ukraine_develop_btr3.7.name
	desc = ukraine_develop_btr3.7.desc
	picture = GFX_ukraine_btr3u_uae_tender_license
	is_triggered_only = yes

	trigger = {
		original_tag = UKR
		country_exists = UAE
	}

	option = {
		name = ukraine_develop_btr3.7.a
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr3.7.a executed"

		ai_chance = { base = 90 }

		if = {
			limit = {
				UAE = {
					has_opinion = {
						target = UKR
						value > 49
					}
					influence_higher_10 = yes
				}
			}

			if = {
				limit = {
					696 = { #Kharkiv
						arms_factory > 0
					}
				}

				country_event = {
					id = ukraine_develop_btr3.4
					days = 120
				}

				696 = { #Kharkiv
					remove_building = {
						type = arms_factory
						level = 1
					}
				}
			}

			if = {
				limit = {
					696 = { #Kharkiv
						arms_factory < 1
					}
				}

				country_event = {
					id = ukraine_develop_btr3.7
					days = 30
				}
			}
		}
	}

	option = {
		name = ukraine_develop_btr3.7.b
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr3.7.b executed"

		ai_chance = { base = 10 }

		696 = { #Kharkiv
			add_state_modifier = { modifier = { state_productivity_growth_modifier = -0.02 } }
		}

		UAE = {
			add_opinion_modifier = {
				target = UKR
				modifier = broke_trade_agreement
			}
		}

		set_country_flag = UKR_develop_btr3_uae_tender_terminated_flag
	}
}

country_event = {
	id = ukraine_develop_btr4.1
	title = ukraine_develop_btr4.1.name
	desc = ukraine_develop_btr4.1.desc
	picture = GFX_ukraine_btr_development_role
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_develop_btr4.1.a
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.1.a executed"
		set_variable = {
			var = btr4_current_step
			value = 2
		}
		set_variable = {
			var = btr4_total_steps
			value = 6
		}
		set_country_flag = UKR_develop_btr4_role_apc_flag
	}

	option = {
		name = ukraine_develop_btr4.1.b
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.1.b executed"
		set_variable = {
			var = btr4_current_step
			value = 2
		}
		set_variable = {
			var = btr4_total_steps
			value = 6
		}
		set_country_flag = UKR_develop_btr4_role_ifv_flag
	}
}
country_event = {
	id = ukraine_develop_btr4.2
	title = ukraine_develop_btr4.2.name
	desc = ukraine_develop_btr4.2.desc
	picture = GFX_ukraine_btr_development_modules
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_develop_btr4.2.a
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.2.a executed"
		set_variable = {
			var = btr4_current_step
			value = 3
		}
		set_variable = {
			var = btr4_total_steps
			value = 6
		}
		set_country_flag = UKR_develop_btr4_role_apc_module_mg_flag
	}

	option = {
		name = ukraine_develop_btr4.2.b
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.2.b executed"
		set_variable = {
			var = btr4_current_step
			value = 3
		}
		set_variable = {
			var = btr4_total_steps
			value = 7
		}
		set_country_flag = UKR_develop_btr4_role_apc_module_bm_flag
		country_event = ukraine_develop_btr4.3
	}
}
country_event = {
	id = ukraine_develop_btr4.3
	title = ukraine_develop_btr4.3.name
	desc = ukraine_develop_btr4.3.desc
	picture = GFX_ukraine_btr_development_modules
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_develop_btr4.3.a
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.3.a executed"
		set_variable = {
			var = btr4_current_step
			value = 4
		}
		set_variable = {
			var = btr4_total_steps
			value = 7
		}
		add_equipment_bonus = {
			name = ukraine_develop_btr4_hrim_bonus
			bonus = {
				medium_tank_amphibious_chassis_2 = {
					soft_attack = 0.15
					hard_attack = 0.10
					build_cost_ic = 0.10
				}
			}
		}
		set_country_flag = UKR_develop_btr4_role_apc_module_hrim_flag
	}

	option = {
		name = ukraine_develop_btr4.3.b
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.3.b executed"
		set_variable = {
			var = btr4_current_step
			value = 4
		}
		set_variable = {
			var = btr4_total_steps
			value = 7
		}
		add_equipment_bonus = {
			name = ukraine_develop_btr4_shkval_bonus
			bonus = { medium_tank_amphibious_chassis_2 = { soft_attack = 0.15 } }
		}
		set_country_flag = UKR_develop_btr4_role_apc_module_shkval_flag
	}

	option = {
		name = ukraine_develop_btr4.3.c
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.3.c executed"
		set_variable = {
			var = btr4_current_step
			value = 4
		}
		set_variable = {
			var = btr4_total_steps
			value = 7
		}
		add_equipment_bonus = {
			name = ukraine_develop_btr4_bau23_2_bonus
			bonus = {
				medium_tank_amphibious_chassis_2 = {
					soft_attack = 0.1
					air_attack = 0.15
					hard_attack = -0.05
					ap_attack = -0.1
					build_cost_ic = -0.05
				}
			}
		}
		set_country_flag = UKR_develop_btr4_role_apc_module_bau23_2_flag
	}
}
country_event = {
	id = ukraine_develop_btr4.4
	title = ukraine_develop_btr4.4.name
	desc = ukraine_develop_btr4.4.desc
	picture = GFX_ukraine_btr_development_engines
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_develop_btr4.4.a
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.4.a executed"
		set_variable = {
			var = btr4_current_step
			value = 4
		}
		set_variable = {
			var = btr4_total_steps
			value = 6
		}
		add_equipment_bonus = {
			name = ukraine_develop_btr4_3td_bonus
			bonus = {
				medium_tank_amphibious_chassis_2 = {
					fuel_consumption = 0.1
					reliability = 0.05
				}
			}
		}
		696 = { #Kharkiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.01
				}
			}
		}
		set_temp_variable = { percent_change = 0.25 }
		change_domestic_influence_percentage = yes
		set_country_flag = UKR_develop_btr4_role_apc_module_mg_engine_3td_flag
	}

	option = {
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.4.b executed"
		name = ukraine_develop_btr4.4.b
		set_variable = {
			var = btr4_current_step
			value = 4
		}
		set_variable = {
			var = btr4_total_steps
			value = 6
		}
		set_temp_variable = { percent_change = 0.15 }
		set_temp_variable = { tag_index = GER.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		add_popularity = { ideology = democratic popularity = 0.03 }
		recalculate_party = yes
		set_temp_variable = { treasury_change = -0.15 }
		modify_treasury_effect = yes
		if = {
			limit = { has_dlc = "No Step Back" }
			add_tech_bonus = {
				name = ukraine_develop_btr4.4.name
				bonus = 0.4
				uses = 1
				technology = diesel_engine_tech_6
			} hidden_effect = { rq_eb_e14f047597 = yes }
		}
		add_equipment_bonus = {
			name = ukraine_develop_btr4_deutz_bonus
			bonus = {
				medium_tank_amphibious_chassis_2 = {
					maximum_speed = 1.0
					fuel_consumption = -0.1
				}
			}
		}
		set_country_flag = UKR_develop_btr4_role_apc_module_mg_engine_deutz_flag
	}

	option = {
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.4.c executed"
		name = ukraine_develop_btr4.4.c
		set_variable = {
			var = btr4_current_step
			value = 4
		}
		set_variable = {
			var = btr4_total_steps
			value = 6
		}
		set_temp_variable = { percent_change = 0.15 }
		set_temp_variable = { tag_index = ITA.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		add_popularity = { ideology = democratic popularity = 0.02 }
		recalculate_party = yes
		set_temp_variable = { treasury_change = -0.1 }
		modify_treasury_effect = yes
		if = {
			limit = { has_dlc = "No Step Back" }
			add_tech_bonus = {
				name = ukraine_develop_btr4.4.name
				bonus = 0.3
				uses = 1
				technology = diesel_engine_tech_6
			} hidden_effect = { rq_eb_3cbd9e1d18 = yes }
		}
		add_equipment_bonus = {
			name = ukraine_develop_btr4_iveco_bonus
			bonus = { medium_tank_amphibious_chassis_2 = { fuel_consumption = -0.2 } }
		}
		set_country_flag = UKR_develop_btr4_role_apc_module_mg_engine_iveco_flag
	}
}
country_event = {
	id = ukraine_develop_btr4.5
	title = ukraine_develop_btr4.5.name
	desc = ukraine_develop_btr4.5.desc
	picture = GFX_ukraine_btr_development_engines
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_develop_btr4.5.a
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.5.a executed"
		set_variable = {
			var = btr4_current_step
			value = 5
		}
		set_variable = {
			var = btr4_total_steps
			value = 7
		}
		add_equipment_bonus = {
			name = ukraine_develop_btr4_3td_bonus
			bonus = {
				medium_tank_amphibious_chassis_2 = {
					fuel_consumption = 0.25
				}
			}
		}
		696 = { #Kharkiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.01
				}
			}
		}
		set_temp_variable = { percent_change = 0.25 }
		change_domestic_influence_percentage = yes
		set_country_flag = UKR_develop_btr4_role_apc_module_bm_engine_3td_flag
	}

	option = {
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.5.b executed"
		name = ukraine_develop_btr4.5.b
		set_variable = {
			var = btr4_current_step
			value = 5
		}
		set_variable = {
			var = btr4_total_steps
			value = 7
		}
		set_temp_variable = { percent_change = 0.15 }
		set_temp_variable = { tag_index = GER.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		add_popularity = { ideology = democratic popularity = 0.03 }
		recalculate_party = yes
		set_temp_variable = { treasury_change = -0.15 }
		modify_treasury_effect = yes
		if = {
			limit = { has_dlc = "No Step Back" }
			add_tech_bonus = {
				name = ukraine_develop_btr4.5.name
				bonus = 0.4
				uses = 1
				technology = diesel_engine_tech_6
			} hidden_effect = { rq_eb_e14f047597 = yes }
		}
		add_equipment_bonus = {
			name = ukraine_develop_btr4_deutz_bonus
			bonus = {
				medium_tank_amphibious_chassis_2 = {
					maximum_speed = 1.0
					fuel_consumption = -0.1
				}
			}
		}
		set_country_flag = UKR_develop_btr4_role_apc_module_bm_engine_deutz_flag
	}

	option = {
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.5.c executed"
		name = ukraine_develop_btr4.5.c
		set_variable = {
			var = btr4_current_step
			value = 5
		}
		set_variable = {
			var = btr4_total_steps
			value = 7
		}
		set_temp_variable = { percent_change = 0.15 }
		set_temp_variable = { tag_index = ITA.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		add_popularity = { ideology = democratic popularity = 0.02 }
		recalculate_party = yes
		set_temp_variable = { treasury_change = -0.1 }
		modify_treasury_effect = yes
		if = {
			limit = { has_dlc = "No Step Back" }
			add_tech_bonus = {
				name = ukraine_develop_btr4.5.name
				bonus = 0.3
				uses = 1
				technology = diesel_engine_tech_6
			} hidden_effect = { rq_eb_3cbd9e1d18 = yes }
		}
		add_equipment_bonus = {
			name = ukraine_develop_btr4_iveco_bonus
			bonus = { medium_tank_amphibious_chassis_2 = { fuel_consumption = -0.2 } }
		}
		set_country_flag = UKR_develop_btr4_role_apc_module_bm_engine_iveco_flag
	}
}
country_event = {
	id = ukraine_develop_btr4.6
	title = ukraine_develop_btr4.6.name
	desc = ukraine_develop_btr4.6.desc
	picture = GFX_ukraine_btr_development_modules
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_develop_btr4.6.a
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.6.a executed"
		set_variable = {
			var = btr4_current_step
			value = 3
		}
		set_variable = {
			var = btr4_total_steps
			value = 6
		}
		add_equipment_bonus = {
			name = ukraine_develop_btr4_hrim_bonus
			bonus = {
				medium_tank_flame_chassis_2 = {
					soft_attack = 0.15
					hard_attack = 0.10
					build_cost_ic = 0.10
				}
			}
		}
		set_country_flag = UKR_develop_btr4_role_ifv_module_hrim_flag
	}

	option = {
		name = ukraine_develop_btr4.6.b
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.6.b executed"
		set_variable = {
			var = btr4_current_step
			value = 3
		}
		set_variable = {
			var = btr4_total_steps
			value = 6
		}
		add_equipment_bonus = {
			name = ukraine_develop_btr4_shkval_bonus
			bonus = { medium_tank_flame_chassis_2 = { soft_attack = 0.15 } }
		}
		set_country_flag = UKR_develop_btr4_role_ifv_module_shkval_flag
	}

	option = {
		name = ukraine_develop_btr4.6.c
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.6.c executed"
		set_variable = {
			var = btr4_current_step
			value = 3
		}
		set_variable = {
			var = btr4_total_steps
			value = 6
		}
		add_equipment_bonus = {
			name = ukraine_develop_btr4_bau23_2_bonus
			bonus = {
				medium_tank_flame_chassis_2 = {
					soft_attack = 0.1
					air_attack = 0.15
					hard_attack = -0.05
					ap_attack = -0.1
					build_cost_ic = -0.05
				}
			}
		}
		set_country_flag = UKR_develop_btr4_role_ifv_module_bau23_2_flag
	}
}
country_event = {
	id = ukraine_develop_btr4.7
	title = ukraine_develop_btr4.7.name
	desc = ukraine_develop_btr4.7.desc
	picture = GFX_ukraine_btr_development_engines
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_develop_btr4.7.a
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.7.a executed"
		set_variable = {
			var = btr4_current_step
			value = 4
		}
		set_variable = {
			var = btr4_total_steps
			value = 6
		}
		add_equipment_bonus = {
			name = ukraine_develop_btr4_3td_bonus
			bonus = {
				medium_tank_flame_chassis_2 = {
					fuel_consumption = 0.15
					reliability = 0.1
				}
			}
		}
		696 = { #Kharkiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.01
				}
			}
		}
		set_temp_variable = { percent_change = 0.25 }
		change_domestic_influence_percentage = yes
		set_country_flag = UKR_develop_btr4_role_ifv_engine_3td_flag
	}

	option = {
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.7.b executed"
		name = ukraine_develop_btr4.7.b
		set_variable = {
			var = btr4_current_step
			value = 4
		}
		set_variable = {
			var = btr4_total_steps
			value = 6
		}
		set_temp_variable = { percent_change = 0.15 }
		set_temp_variable = { tag_index = GER.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		add_popularity = { ideology = democratic popularity = 0.03 }
		recalculate_party = yes
		set_temp_variable = { treasury_change = -0.15 }
		modify_treasury_effect = yes
		if = {
			limit = { has_dlc = "No Step Back" }
			add_tech_bonus = {
				name = ukraine_develop_btr4.7.name
				bonus = 0.4
				uses = 1
				technology = diesel_engine_tech_6
			} hidden_effect = { rq_eb_e14f047597 = yes }
		}
		add_equipment_bonus = {
			name = ukraine_develop_btr4_deutz_bonus
			bonus = {
				medium_tank_flame_chassis_2 = {
					maximum_speed = 0.15
					fuel_consumption = -0.1
				}
			}
		}
		set_country_flag = UKR_develop_btr4_role_ifv_engine_deutz_flag
	}

	option = {
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.7.c executed"
		name = ukraine_develop_btr4.7.c
		set_variable = {
			var = btr4_current_step
			value = 4
		}
		set_variable = {
			var = btr4_total_steps
			value = 6
		}
		set_temp_variable = { percent_change = 0.15 }
		set_temp_variable = { tag_index = ITA.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		add_popularity = { ideology = democratic popularity = 0.02 }
		recalculate_party = yes
		set_temp_variable = { treasury_change = -0.1 }
		modify_treasury_effect = yes
		if = {
			limit = { has_dlc = "No Step Back" }
			add_tech_bonus = {
				name = ukraine_develop_btr4.7.name
				bonus = 0.3
				uses = 1
				technology = diesel_engine_tech_6
			} hidden_effect = { rq_eb_3cbd9e1d18 = yes }
		}
		add_equipment_bonus = {
			name = ukraine_develop_btr4_iveco_bonus
			bonus = { medium_tank_flame_chassis_2 = { fuel_consumption = -0.2 } }
		}
		set_country_flag = UKR_develop_btr4_role_ifv_engine_iveco_flag
	}
}
country_event = {
	id = ukraine_develop_btr4.8
	title = ukraine_develop_btr4.8.name
	desc = ukraine_develop_btr4.8.desc
	picture = GFX_ukraine_btr_development_tests
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_develop_btr4.8.a
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.8.a executed"
		set_variable = {
			var = btr4_current_step
			value = 5
		}
		set_variable = {
			var = btr4_total_steps
			value = 6
		}
		set_country_flag = UKR_develop_btr4_role_apc_module_mg_basic_tests_flag
	}

	option = {
		name = ukraine_develop_btr4.8.b
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.8.b executed"
		set_variable = {
			var = btr4_current_step
			value = 5
		}
		set_variable = {
			var = btr4_total_steps
			value = 6
		}
		add_equipment_bonus = {
			name = ukraine_develop_btr4_tests_bonus
			bonus = { medium_tank_amphibious_chassis_2 = { reliability = 0.1 } }
		}
		set_country_flag = UKR_develop_btr4_role_apc_module_mg_extended_tests_flag
	}
}
country_event = {
	id = ukraine_develop_btr4.9
	title = ukraine_develop_btr4.9.name
	desc = ukraine_develop_btr4.9.desc
	picture = GFX_ukraine_btr_development_tests
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_develop_btr4.9.a
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.9.a executed"
		set_variable = {
			var = btr4_current_step
			value = 6
		}
		set_variable = {
			var = btr4_total_steps
			value = 7
		}
		set_country_flag = UKR_develop_btr4_role_apc_module_bm_basic_tests_flag
	}

	option = {
		name = ukraine_develop_btr4.9.b
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.9.b executed"
		set_variable = {
			var = btr4_current_step
			value = 6
		}
		set_variable = {
			var = btr4_total_steps
			value = 7
		}
		add_equipment_bonus = {
			name = ukraine_develop_btr4_tests_bonus
			bonus = { medium_tank_amphibious_chassis_2 = { reliability = 0.1 } }
		}
		set_country_flag = UKR_develop_btr4_role_apc_module_bm_extended_tests_flag
	}
}
country_event = {
	id = ukraine_develop_btr4.10
	title = ukraine_develop_btr4.10.name
	desc = ukraine_develop_btr4.10.desc
	picture = GFX_ukraine_btr_development_tests
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		name = ukraine_develop_btr4.10.a
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.10.a executed"
		set_variable = {
			var = btr4_current_step
			value = 5
		}
		set_variable = {
			var = btr4_total_steps
			value = 6
		}
		set_country_flag = UKR_develop_btr4_role_ifv_basic_tests_flag
	}

	option = {
		name = ukraine_develop_btr4.10.b
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.10.b executed"
		set_variable = {
			var = btr4_current_step
			value = 5
		}
		set_variable = {
			var = btr4_total_steps
			value = 6
		}
		add_equipment_bonus = {
			name = ukraine_develop_btr4_tests_bonus
			bonus = { medium_tank_flame_chassis_2 = { reliability = 0.1 } }
		}
		set_country_flag = UKR_develop_btr4_role_ifv_extended_tests_flag
	}
}
news_event = {
	id = ukraine_develop_btr4.11
	title = ukraine_develop_btr4.11.name
	desc = ukraine_develop_btr4.11.desc
	picture = GFX_ukraine_btr_development_production
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.11.a executed"
		name = ukraine_develop_btr4.11.a
		set_variable = {
			var = btr4_current_step
			value = 6
		}
		set_variable = {
			var = btr4_total_steps
			value = 6
		}
		if = {
			limit = {
				has_country_flag = UKR_develop_btr4_role_apc_module_mg_flag
			}
			create_equipment_variant = {
				name = "BTR-4A Ladya"
				type = medium_tank_amphibious_chassis_2
				parent_version = 0
				allow_without_tech = yes
				modules = {
					main_armament_slot = afv_machine_gun_3
					turret_type_slot = tank_no_turret
					reload_type_slot = automatic_loading
					suspension_type_slot = tank_wheeled_suspension_medium
					armor_type_slot = tank_steel_armor_gen2
					engine_type_slot = tank_diesel_engine_gen3
					special_type_slot_2 = afv_gun_ports
					special_type_slot_1 = smoke_launchers
					special_type_slot_3 = afv_troop_capacity
					special_type_slot_4 = tank_battlestation_2
					special_type_slot_5 = afv_reverse_doors
					ammunition_load_slot = machine_gun_ammo_3
				}
				upgrades = {
					tank_nsb_armor_upgrade = 0
				}
				icon = "gfx/interface/technologies/UKR/LAND/AFV/Wheeled/BTR-4/BTR-4-Ladya.dds"
				model = UKR_btr4_entity
				design_team = mio:UKR_kmdb_tank_manufacturer
			}
			if = {
				limit = {
					has_country_flag = UKR_develop_btr4_role_apc_module_mg_basic_tests_flag
				}
				add_equipment_production = {
					equipment = {
						type = medium_tank_amphibious_chassis_2
						version_name = "BTR-4A Ladya"
					}
					requested_factories = 1
					efficiency = 10
					industrial_manufacturer = mio:UKR_malyshev_factory_tank_manufacturer
				}
			}
			if = {
				limit = {
					has_country_flag = UKR_develop_btr4_role_apc_module_mg_extended_tests_flag
				}
				add_equipment_production = {
					equipment = {
						type = medium_tank_amphibious_chassis_2
						version_name = "BTR-4A Ladya"
					}
					requested_factories = 1
					efficiency = 25
					industrial_manufacturer = mio:UKR_malyshev_factory_tank_manufacturer
				}
			}
		}
		696 = { #Kharkiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.04
				}
			}
		}
	}
}
news_event = {
	id = ukraine_develop_btr4.12
	title = ukraine_develop_btr4.12.name
	desc = ukraine_develop_btr4.12.desc
	picture = GFX_ukraine_btr_development_production
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.12.a executed"
		name = ukraine_develop_btr4.12.a
		set_variable = {
			var = btr4_current_step
			value = 7
		}
		set_variable = {
			var = btr4_total_steps
			value = 7
		}
		if = {
			limit = {
				OR = {
					has_country_flag = UKR_develop_btr4_role_apc_module_shkval_flag
					has_country_flag = UKR_develop_btr4_role_apc_module_hrim_flag
				}
			}
			create_equipment_variant = {
				name = "BTR-4A Butsefal"
				type = medium_tank_amphibious_chassis_2
				parent_version = 5
				allow_without_tech = yes
				modules = {
					main_armament_slot = small_autocannon_3
					secondary_armament_slot = crows_mg
					reload_type_slot = automatic_loading
					turret_type_slot = tank_base_tank_turret
					suspension_type_slot = tank_wheeled_suspension_medium
					armor_type_slot = tank_steel_armor_gen2
					engine_type_slot = tank_diesel_engine_gen3
					special_type_slot_1 = smoke_launchers
					special_type_slot_5 = afv_reverse_doors
					special_type_slot_2 = afv_atgm_gen2
					special_type_slot_4 = tank_battlestation_2_thermal
					ammunition_load_slot = mixed_autocannon_ammo_2
					special_type_slot_3 = afv_troop_capacity
				}
				upgrades = {
					tank_nsb_armor_upgrade = 0
				}
				icon = "gfx/interface/technologies/UKR/LAND/AFV/Wheeled/BTR-4/BTR-4-Hrim.dds"
				model = UKR_btr4_entity
				design_team = mio:UKR_kmdb_tank_manufacturer
			}
			if = {
				limit = {
					has_country_flag = UKR_develop_btr4_role_apc_module_bm_basic_tests_flag
				}
				add_equipment_production = {
					equipment = {
						type = medium_tank_amphibious_chassis_2
						version_name = "BTR-4A Butsefal"
					}
					requested_factories = 1
					efficiency = 10
					industrial_manufacturer = mio:UKR_malyshev_factory_tank_manufacturer
				}
			}
			if = {
				limit = {
					has_country_flag = UKR_develop_btr4_role_apc_module_bm_extended_tests_flag
				}
				add_equipment_production = {
					equipment = {
						type = medium_tank_amphibious_chassis_2
						version_name = "BTR-4A Butsefal"
					}
					requested_factories = 1
					efficiency = 25
					industrial_manufacturer = mio:UKR_malyshev_factory_tank_manufacturer
				}
			}
		}
		if = {
			limit = {
				has_country_flag = UKR_develop_btr4_role_apc_module_bau23_2_flag
			}
			create_equipment_variant = {
				name = "BTR-4A Butsefal"
				type = medium_tank_amphibious_chassis_2
				parent_version = 5
				modules = {
					main_armament_slot = small_autocannon_2
					secondary_armament_slot = afv_coax_autocannon_2
					reload_type_slot = automatic_loading
					turret_type_slot = tank_base_tank_turret
					suspension_type_slot = tank_wheeled_suspension_medium
					armor_type_slot = tank_steel_armor_gen2
					engine_type_slot = tank_diesel_engine_gen3
					special_type_slot_1 = smoke_launchers
					special_type_slot_3 = afv_troop_capacity
					special_type_slot_4 = tank_battlestation_2_thermal
					ammunition_load_slot = mixed_autocannon_ammo_2
					special_type_slot_2 = afv_atgm_gen2
					special_type_slot_5 = afv_reverse_doors
				}
				upgrades = {
					tank_nsb_armor_upgrade = 0
				}
				icon = "gfx/interface/technologies/UKR/LAND/AFV/Wheeled/BTR-4/BTR-4-Hrim.dds"
				model = UKR_btr4_entity
				design_team = mio:UKR_kmdb_tank_manufacturer
			}
			if = {
				limit = {
					has_country_flag = UKR_develop_btr4_role_apc_module_bm_basic_tests_flag
				}
				add_equipment_production = {
					equipment = {
						type = medium_tank_amphibious_chassis_2
						version_name = "BTR-4A Butsefal"
					}
					requested_factories = 1
					efficiency = 10
					industrial_manufacturer = mio:UKR_malyshev_factory_tank_manufacturer
				}
			}
			if = {
				limit = {
					has_country_flag = UKR_develop_btr4_role_apc_module_bm_extended_tests_flag
				}
				add_equipment_production = {
					equipment = {
						type = medium_tank_amphibious_chassis_2
						version_name = "BTR-4A Butsefal"
					}
					requested_factories = 1
					efficiency = 25
					industrial_manufacturer = mio:UKR_malyshev_factory_tank_manufacturer
				}
			}
		}
		696 = { #Kharkiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.06
				}
			}
		}
	}
}
news_event = {
	id = ukraine_develop_btr4.13
	title = ukraine_develop_btr4.13.name
	desc = ukraine_develop_btr4.13.desc
	picture = GFX_ukraine_btr_development_production
	is_triggered_only = yes

	trigger = { original_tag = UKR }

	option = {
		log = "[GetDateText]: [This.GetName]: ukraine_develop_btr4.13.a executed"
		name = ukraine_develop_btr4.13.a
		set_variable = {
			var = btr4_current_step
			value = 7
		}
		set_variable = {
			var = btr4_total_steps
			value = 7
		}
		if = {
			limit = {
				OR = {
					has_country_flag = UKR_develop_btr4_role_ifv_module_shkval_flag
					has_country_flag = UKR_develop_btr4_role_ifv_module_hrim_flag
				}
			}
			create_equipment_variant = {
				name = "BTR-4A Butsefal"
				type = medium_tank_flame_chassis_2
				parent_version = 0 #Current Version: 0
				allow_without_tech = yes
				modules = {
					main_armament_slot = small_autocannon_3
					turret_type_slot = tank_base_tank_turret
					secondary_armament_slot = crows_mg
					reload_type_slot = automatic_loading
					suspension_type_slot = tank_wheeled_suspension_medium
					armor_type_slot = tank_steel_armor_gen2
					engine_type_slot = tank_diesel_engine_gen3
					special_type_slot_1 = afv_atgm_gen3
					special_type_slot_2 = smoke_launchers
					special_type_slot_3 = afv_troop_capacity
					special_type_slot_4 = tank_battlestation_2_thermal
					ammunition_load_slot = mixed_autocannon_ammo_2
				}
				upgrades = {
					tank_nsb_armor_upgrade = 0
				}
				icon = "gfx/interface/technologies/UKR/LAND/AFV/Wheeled/BTR-4/BTR-4-Hrim.dds"
				model = UKR_btr4_entity
				design_team = mio:UKR_kmdb_tank_manufacturer
			}
			if = {
				limit = {
					has_country_flag = UKR_develop_btr4_role_ifv_basic_tests_flag
				}
				add_equipment_production = {
					equipment = {
						type = medium_tank_flame_chassis_2
						version_name = "BTR-4A Butsefal"
					}
					requested_factories = 1
					efficiency = 10
					industrial_manufacturer = mio:UKR_malyshev_factory_tank_manufacturer
				}
			}
			if = {
				limit = {
					has_country_flag = UKR_develop_btr4_role_ifv_extended_tests_flag
				}
				add_equipment_production = {
					equipment = {
						type = medium_tank_flame_chassis_2
						version_name = "BTR-4A Butsefal"
					}
					requested_factories = 1
					efficiency = 25
					industrial_manufacturer = mio:UKR_malyshev_factory_tank_manufacturer
				}
			}
		}
		if = {
			limit = {
				has_country_flag = UKR_develop_btr4_role_ifv_module_bau23_2_flag
			}
			create_equipment_variant = {
				name = "BTR-4A Butsefal"
				type = medium_tank_flame_chassis_2
				parent_version = 0
				modules = {
					main_armament_slot = small_autocannon_2
					secondary_armament_slot = afv_coax_autocannon_2
					reload_type_slot = automatic_loading
					turret_type_slot = tank_base_tank_turret
					suspension_type_slot = tank_wheeled_suspension_medium
					armor_type_slot = tank_steel_armor_gen2
					engine_type_slot = tank_diesel_engine_gen3
					special_type_slot_1 = afv_atgm_gen2
					special_type_slot_3 = afv_troop_capacity
					special_type_slot_4 = tank_battlestation_2
					ammunition_load_slot = mixed_autocannon_ammo_2
					special_type_slot_5 = afv_reverse_doors
				}
				upgrades = {
					tank_nsb_armor_upgrade = 0
				}
				icon = "gfx/interface/technologies/UKR/LAND/AFV/Wheeled/BTR-4/BTR-4-Hrim.dds"
				model = UKR_btr4_entity
				design_team = mio:UKR_kmdb_tank_manufacturer
			}
			if = {
				limit = {
					has_country_flag = UKR_develop_btr4_role_ifv_basic_tests_flag
				}
				add_equipment_production = {
					equipment = {
						type = medium_tank_flame_chassis_2
						version_name = "BTR-4A Butsefal"
					}
					requested_factories = 1
					efficiency = 10
					industrial_manufacturer = mio:UKR_malyshev_factory_tank_manufacturer
				}
			}
			if = {
				limit = {
					has_country_flag = UKR_develop_btr4_role_ifv_extended_tests_flag
				}
				add_equipment_production = {
					equipment = {
						type = medium_tank_flame_chassis_2
						version_name = "BTR-4A Butsefal"
					}
					requested_factories = 1
					efficiency = 25
					industrial_manufacturer = mio:UKR_malyshev_factory_tank_manufacturer
				}
			}
		}
		696 = { #Kharkiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.06
				}
			}
		}
	}
}
country_event = {
	id = ukraine_develop_2s22.1
	title = ukraine_develop_2s22.1.name
	desc = ukraine_develop_2s22.1.desc
	picture = GFX_ukraine_2s22_bohdana_develop
	is_triggered_only = yes

	option = {
		name = ukraine_develop_2s22.1.a
		log = "[GetDateText]: [This.GetName]: ukraine_develop_2s22.1.a executed"
		set_temp_variable = { treasury_change = -0.07 }
		modify_treasury_effect = yes
		news_event = {
			id = ukraine_develop_2s22.2
			days = 200
			random_hours = 6
			random_days = 20
		}
	}

	option = {
		name = ukraine_develop_2s22.1.b
		log = "[GetDateText]: [This.GetName]: ukraine_develop_2s22.1.b executed"
		set_temp_variable = { treasury_change = -0.12 }
		modify_treasury_effect = yes
		news_event = {
			id = ukraine_develop_2s22.3
			days = 350
			random_hours = 6
			random_days = 30
		}
	}
}
news_event = {
	id = ukraine_develop_2s22.2
	title = ukraine_develop_2s22.2.name
	desc = ukraine_develop_2s22.2.desc
	picture = GFX_ukraine_2s22_bohdana_finished
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: ukraine_develop_2s22.2.a executed"
		name = ukraine_develop_2s22.2.a
		1030 = { #Western Donetsk
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.03
				}
			}
			add_building_construction = {
				type = arms_factory
				level = 1
				instant_build = yes
			}
		}
		add_tech_bonus = {
			name = ukraine_develop_2s22.2.name
			bonus = 0.2
			uses = 1
			technology = nsb_arty_upgrade_2
		} hidden_effect = { rq_eb_c9d2b1511d = yes }
		create_equipment_variant = {
				name = "2S22 Bohdana"
				type = medium_tank_artillery_chassis_2
				parent_version = 0
				allow_without_tech = yes
				modules = {
					ammunition_load_slot = artillery_medium_ammo_2
					engine_type_slot = tank_diesel_engine_gen2
					main_armament_slot = art_med_gun_gen2
					reload_type_slot = manual_loading
					special_type_slot_1 = cluster_ammo_2
					special_type_slot_2 = empty
					special_type_slot_3 = empty
					special_type_slot_4 = tank_battlestation_3
					special_type_slot_5 = empty
					suspension_type_slot = tank_wheeled_suspension_medium
					turret_type_slot = tank_no_turret
			}
			upgrades = { tank_nsb_fire_upgrade = 0 }
			icon = "gfx/interface/technologies/UKR/LAND/SPArt/Wheeled/Bohdana/Bohdana-1.0.dds"
				model = "CZE_SP_Arty_Bat_entity"
		}
		add_equipment_production = {
			equipment = {
				type = medium_tank_artillery_chassis_3
				version_name = "2S22 Bohdana"
			}
			requested_factories = 1
			efficiency = 25
			industrial_manufacturer = mio:UKR_khtz_tank_manufacturer
		}
	}
}
news_event = {
	id = ukraine_develop_2s22.3
	title = ukraine_develop_2s22.3.name
	desc = ukraine_develop_2s22.3.desc
	picture = GFX_ukraine_2s22_bohdana_finished
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: ukraine_develop_2s22.3.a executed"
		name = ukraine_develop_2s22.3.a
		1030 = { #Western Donetsk
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.04
				}
			}
			add_building_construction = {
				type = arms_factory
				level = 1
				instant_build = yes
			}
		}
		add_tech_bonus = {
			name = ukraine_develop_2s22.3.name
			bonus = 0.3
			uses = 1
			technology = nsb_arty_upgrade_2
		} hidden_effect = { rq_eb_1588e31c7e = yes }
		add_tech_bonus = {
			name = ukraine_develop_2s22.3.name
			bonus = 0.2
			uses = 1
			technology = nsb_arty_upgrade_3
		} hidden_effect = { rq_eb_b7bfc28748 = yes }
		create_equipment_variant = {
				name = "2S22 Bohdana"
				type = medium_tank_artillery_chassis_2
				parent_version = 0
				allow_without_tech = yes
				modules = {
					ammunition_load_slot = artillery_medium_ammo_3
					engine_type_slot = tank_diesel_engine_gen3
					main_armament_slot = art_med_gun_gen3
					reload_type_slot = manual_loading
					special_type_slot_1 = cluster_ammo_2
					special_type_slot_2 = laser_guided_ammo_2
					special_type_slot_3 = empty
					special_type_slot_4 = tank_battlestation_3
					special_type_slot_5 = empty
					suspension_type_slot = tank_wheeled_suspension_medium
					turret_type_slot = tank_no_turret
			}
			upgrades = { tank_nsb_fire_upgrade = 2 }
			icon = "gfx/interface/technologies/UKR/LAND/SPArt/Wheeled/Bohdana/Bohdana-1.1.dds"
				model = "CZE_SP_Arty_Bat_entity"
		}
		add_equipment_production = {
			equipment = {
				type = medium_tank_artillery_chassis_3
				version_name = "2S22 Bohdana"
			}
			requested_factories = 1
			efficiency = 4
			industrial_manufacturer = mio:UKR_khtz_tank_manufacturer
		}
	}
}

country_event = {
	id = ukraine_amber.1
	title = ukraine_amber.1.t
	desc = ukraine_amber.1.d
	picture = GFX_mining
	is_triggered_only = yes

	minor_flavor = yes
	option = {
		name = ukraine_amber.1.a
		log = "[GetDateText]: [This.GetName]: ukraine_amber.1.a executed"
		custom_effect_tooltip = { localization_key = adds_dynamic_modifier_tt MODIFIER = UKR_amber_kopach_truce }
		1248 = { add_dynamic_modifier = { modifier = UKR_amber_kopach_truce } }
		country_event = { id = ukraine_amber.2 days = 180 }
	}
}
# Ukrainian strategic industry
country_event = {
	id = ukraine_tech.300
	title = ukraine_tech.300.t
	desc = ukraine_tech.300.d
	picture = GFX_ukr_2000
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = UKR_strategic_industry_state_retained }
		NOT = { has_country_flag = UKR_strategic_industry_privatised_combines }
	}

	option = {
		name = ukraine_tech.300.a
		log = "[GetDateText]: [Root.GetName]: ukraine_tech.300.a executed"
		add_political_power = -20
		add_tech_bonus = {
			name = ukraine_tech.300.t
			bonus = 0.15
			uses = 1
			category = CAT_industry
		} hidden_effect = { rq_eb_dd86e42890 = yes }
		set_country_flag = UKR_strategic_industry_state_retained
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = ukraine_tech.300.b
		log = "[GetDateText]: [Root.GetName]: ukraine_tech.300.b executed"
		add_tech_bonus = {
			name = ukraine_tech.300.t
			bonus = 0.10
			uses = 1
			category = CAT_industry
		} hidden_effect = { rq_eb_b504394b66 = yes }
		set_country_flag = UKR_strategic_industry_privatised_combines
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				NOT = { has_active_mission = bankruptcy_incoming_collapse }
			}
		}
	}
}

country_event = {
	id = ukraine_amber.2
	title = ukraine_amber.2.t
	desc = ukraine_amber.2.d
	picture = GFX_mining
	is_triggered_only = yes

	minor_flavor = yes
	option = {
		name = ukraine_amber.2.a
		log = "[GetDateText]: [This.GetName]: ukraine_amber.2.a executed"
		1248 = {
			if = { limit = { has_dynamic_modifier = { modifier = UKR_amber_kopach_truce } } remove_dynamic_modifier = { modifier = UKR_amber_kopach_truce } }
		}
	}
}
country_event = {
	id = ukraine_tech.301
	title = ukraine_tech.301.t
	desc = ukraine_tech.301.d
	picture = GFX_passenger_plane
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = UKR_strategic_industry_eastern_export_dependence }
		NOT = { has_country_flag = UKR_strategic_industry_western_diversification }
	}

	option = {
		name = ukraine_tech.301.a
		log = "[GetDateText]: [Root.GetName]: ukraine_tech.301.a executed"
		add_political_power = -15
		if = {
			limit = { has_dlc = "By Blood Alone" }
			add_tech_bonus = {
				name = ukraine_tech.301.t
				bonus = 0.15
				uses = 1
				category = CAT_air_engines
			} hidden_effect = { rq_eb_4be0efae52 = yes }
		}
		else = {
			add_tech_bonus = {
				name = ukraine_tech.301.t
				bonus = 0.15
				uses = 1
				category = CAT_aircraft
			} hidden_effect = { rq_eb_3368103166 = yes }
		}
		set_country_flag = UKR_strategic_industry_eastern_export_dependence
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = ukraine_tech.301.b
		log = "[GetDateText]: [Root.GetName]: ukraine_tech.301.b executed"
		if = {
			limit = { has_dlc = "By Blood Alone" }
			add_tech_bonus = {
				name = ukraine_tech.301.t
				bonus = 0.10
				uses = 1
				category = CAT_air_engines
			} hidden_effect = { rq_eb_30de3f3a42 = yes }
		}
		else = {
			add_tech_bonus = {
				name = ukraine_tech.301.t
				bonus = 0.10
				uses = 1
				category = CAT_aircraft
			} hidden_effect = { rq_eb_ce6880c1df = yes }
		}
		set_country_flag = UKR_strategic_industry_western_diversification
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				NOT = { has_active_mission = bankruptcy_incoming_collapse }
			}
		}
	}
}

country_event = {
	id = ukraine_tech.302
	title = ukraine_tech.302.t
	desc = ukraine_tech.302.d
	picture = GFX_trade_agreement
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = UKR_strategic_industry_deepened_russian_ties }
		NOT = { has_country_flag = UKR_strategic_industry_hedged_partnerships }
	}

	option = {
		name = ukraine_tech.302.a
		log = "[GetDateText]: [Root.GetName]: ukraine_tech.302.a executed"
		add_political_power = -25
		add_tech_bonus = {
			name = ukraine_tech.302.t
			bonus = 0.15
			uses = 1
			category = CAT_industry
		} hidden_effect = { rq_eb_dd86e42890 = yes }
		set_country_flag = UKR_strategic_industry_deepened_russian_ties
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = ukraine_tech.302.b
		log = "[GetDateText]: [Root.GetName]: ukraine_tech.302.b executed"
		if = {
			limit = { has_dlc = "By Blood Alone" }
			add_tech_bonus = {
				name = ukraine_tech.302.t
				bonus = 0.10
				uses = 1
				category = CAT_air_engines
			} hidden_effect = { rq_eb_30de3f3a42 = yes }
		}
		else = {
			add_tech_bonus = {
				name = ukraine_tech.302.t
				bonus = 0.10
				uses = 1
				category = CAT_aircraft
			} hidden_effect = { rq_eb_ce6880c1df = yes }
		}
		set_country_flag = UKR_strategic_industry_hedged_partnerships
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				NOT = { has_active_mission = bankruptcy_incoming_collapse }
			}
		}
	}
}

country_event = {
	id = ukraine_tech.303
	title = ukraine_tech.303.t
	desc = ukraine_tech.303.d
	picture = GFX_broken_infrastructure
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = UKR_strategic_industry_full_severance }
		NOT = { has_country_flag = UKR_strategic_industry_partial_continuity }
	}

	option = {
		name = ukraine_tech.303.a
		log = "[GetDateText]: [Root.GetName]: ukraine_tech.303.a executed"
		add_political_power = -30
		add_tech_bonus = {
			name = ukraine_tech.303.t
			bonus = 0.15
			uses = 1
			category = CAT_missiles
		} hidden_effect = { rq_eb_7d91f8d3a8 = yes }
		set_country_flag = UKR_strategic_industry_full_severance
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = ukraine_tech.303.b
		log = "[GetDateText]: [Root.GetName]: ukraine_tech.303.b executed"
		add_tech_bonus = {
			name = ukraine_tech.303.t
			bonus = 0.10
			uses = 1
			category = CAT_industry
		} hidden_effect = { rq_eb_b504394b66 = yes }
		set_country_flag = UKR_strategic_industry_partial_continuity
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				NOT = { has_active_mission = bankruptcy_incoming_collapse }
			}
		}
	}
}

country_event = {
	id = ukraine_tech.304
	title = ukraine_tech.304.t
	desc = ukraine_tech.304.d
	picture = GFX_court
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = UKR_strategic_industry_motor_sich_blocked }
		NOT = { has_country_flag = UKR_strategic_industry_motor_sich_sold }
	}

	option = {
		name = ukraine_tech.304.a
		log = "[GetDateText]: [Root.GetName]: ukraine_tech.304.a executed"
		add_political_power = -20
		if = {
			limit = { has_dlc = "By Blood Alone" }
			add_tech_bonus = {
				name = ukraine_tech.304.t
				bonus = 0.15
				uses = 1
				category = CAT_air_engines
			} hidden_effect = { rq_eb_4be0efae52 = yes }
		}
		else = {
			add_tech_bonus = {
				name = ukraine_tech.304.t
				bonus = 0.15
				uses = 1
				category = CAT_aircraft
			} hidden_effect = { rq_eb_3368103166 = yes }
		}
		set_country_flag = UKR_strategic_industry_motor_sich_blocked
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = ukraine_tech.304.b
		log = "[GetDateText]: [Root.GetName]: ukraine_tech.304.b executed"
		add_tech_bonus = {
			name = ukraine_tech.304.t
			bonus = 0.10
			uses = 1
			category = CAT_industry
		} hidden_effect = { rq_eb_b504394b66 = yes }
		set_country_flag = UKR_strategic_industry_motor_sich_sold
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				NOT = { has_active_mission = bankruptcy_incoming_collapse }
			}
		}
	}
}

country_event = {
	id = ukraine_tech.305
	title = ukraine_tech.305.t
	desc = ukraine_tech.305.d
	picture = GFX_ukr_army
	is_triggered_only = yes

	trigger = { UKR_strategic_industry_outcome_settled = no }

	option = {
		name = ukraine_tech.305.a
		trigger = { has_country_flag = UKR_strategic_industry_sovereign_drone_base }
		log = "[GetDateText]: [Root.GetName]: ukraine_tech.305.a executed"
		effect_tooltip = { add_ideas = UKR_strategic_industry_wartime_drone_arsenal }
		hidden_effect = { UKR_strategic_industry_apply_wartime_drone_arsenal = yes }
		ai_chance = { base = 100 }
	}

	option = {
		name = ukraine_tech.305.b
		trigger = {
			NOT = { has_country_flag = UKR_strategic_industry_sovereign_drone_base }
			has_country_flag = UKR_strategic_industry_motor_sich_sold
		}
		log = "[GetDateText]: [Root.GetName]: ukraine_tech.305.b executed"
		effect_tooltip = { add_timed_idea = { idea = UKR_strategic_industry_chinese_capital_corridor days = 365 } }
		hidden_effect = { UKR_strategic_industry_apply_chinese_corridor = yes }
		ai_chance = { base = 100 }
	}

	option = {
		name = ukraine_tech.305.c
		trigger = {
			NOT = { has_country_flag = UKR_strategic_industry_sovereign_drone_base }
			NOT = { has_country_flag = UKR_strategic_industry_motor_sich_sold }
			OR = {
				has_country_flag = UKR_strategic_industry_allied_coproduction
				has_country_flag = UKR_strategic_industry_full_severance
			}
		}
		log = "[GetDateText]: [Root.GetName]: ukraine_tech.305.c executed"
		effect_tooltip = { add_timed_idea = { idea = UKR_strategic_industry_western_integrated_defense_industry days = 365 } }
		hidden_effect = { UKR_strategic_industry_apply_western_integration = yes }
		ai_chance = { base = 100 }
	}

	option = {
		name = ukraine_tech.305.e
		trigger = {
			NOT = { has_country_flag = UKR_strategic_industry_sovereign_drone_base }
			NOT = { has_country_flag = UKR_strategic_industry_motor_sich_sold }
			NOT = { has_country_flag = UKR_strategic_industry_allied_coproduction }
			NOT = { has_country_flag = UKR_strategic_industry_full_severance }
			has_country_flag = UKR_strategic_industry_deepened_russian_ties
		}
		log = "[GetDateText]: [Root.GetName]: ukraine_tech.305.e executed"
		effect_tooltip = { add_timed_idea = { idea = UKR_strategic_industry_renewed_post_soviet_integration days = 365 } }
		hidden_effect = { UKR_strategic_industry_apply_post_soviet_integration = yes }
		ai_chance = { base = 100 }
	}

	option = {
		name = ukraine_tech.305.f
		trigger = {
			NOT = { has_country_flag = UKR_strategic_industry_sovereign_drone_base }
			NOT = { has_country_flag = UKR_strategic_industry_motor_sich_sold }
			NOT = { has_country_flag = UKR_strategic_industry_allied_coproduction }
			NOT = { has_country_flag = UKR_strategic_industry_full_severance }
			NOT = { has_country_flag = UKR_strategic_industry_deepened_russian_ties }
		}
		log = "[GetDateText]: [Root.GetName]: ukraine_tech.305.f executed"
		effect_tooltip = { add_ideas = UKR_strategic_industry_independent_distributed_industry }
		hidden_effect = { UKR_strategic_industry_apply_independent_distribution = yes }
		ai_chance = { base = 100 }
	}
}
country_event = {
	id = ukraine_tech.306
	title = ukraine_tech.306.t
	desc = ukraine_tech.306.d
	picture = GFX_military_loss
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = UKR_strategic_industry_dispersed_production }
		NOT = { has_country_flag = UKR_strategic_industry_held_the_plants }
		SOV = {
			OR = {
				controls_province = 16514
				controls_province = 3543
			}
		}
	}

	option = {
		name = ukraine_tech.306.a
		log = "[GetDateText]: [Root.GetName]: ukraine_tech.306.a executed"
		set_temp_variable = { treasury_change = -4.00 }
		modify_treasury_effect = yes
		add_tech_bonus = {
			name = ukraine_tech.306.t
			bonus = 0.15
			uses = 1
			category = CAT_industry
		} hidden_effect = { rq_eb_dd86e42890 = yes }
		set_country_flag = UKR_strategic_industry_dispersed_production
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = ukraine_tech.306.b
		log = "[GetDateText]: [Root.GetName]: ukraine_tech.306.b executed"
		add_war_support = 0.03
		set_country_flag = UKR_strategic_industry_held_the_plants
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				NOT = { has_active_mission = bankruptcy_incoming_collapse }
			}
		}
	}
}

country_event = {
	id = ukraine_tech.307
	title = ukraine_tech.307.t
	desc = ukraine_tech.307.d
	picture = GFX_generic_factory
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = UKR_strategic_industry_sovereign_drone_base }
		NOT = { has_country_flag = UKR_strategic_industry_allied_coproduction }
	}

	option = {
		name = ukraine_tech.307.a
		log = "[GetDateText]: [Root.GetName]: ukraine_tech.307.a executed"
		set_temp_variable = { treasury_change = -6.00 }
		modify_treasury_effect = yes
		add_tech_bonus = {
			name = ukraine_tech.307.t
			bonus = 0.15
			uses = 1
			category = CAT_air_drones
		} hidden_effect = { rq_eb_f7feea6625 = yes }
		set_country_flag = UKR_strategic_industry_sovereign_drone_base
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = ukraine_tech.307.b
		log = "[GetDateText]: [Root.GetName]: ukraine_tech.307.b executed"
		add_political_power = 25
		add_tech_bonus = {
			name = ukraine_tech.307.t
			bonus = 0.10
			uses = 1
			category = CAT_armored_fighting_vehicles
		} hidden_effect = { rq_eb_9201fa3874 = yes }
		set_country_flag = UKR_strategic_industry_allied_coproduction
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				NOT = { has_active_mission = bankruptcy_incoming_collapse }
			}
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_restore_1124.1
	title = ukraine_reorganize_navy_restore_1124.1.name
	desc = ukraine_reorganize_navy_restore_1124.1.desc
	picture = GFX_ukraine_reorganize_navy_restore_1124
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_restore_1124.1.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_restore_1124.1.a executed"
		set_temp_variable = { treasury_change = -0.68 }
		modify_treasury_effect = yes
		add_equipment_production = { #Sumy
			equipment = {
				type = corvette_hull_1
				creator = UKR
				version_name = "Pr. 1124 'Albatros'"
			}
			name = "U204 Sumy"
			requested_factories = 1
			progress = 0.4
			amount = 1
			industrial_manufacturer = mio:UKR_more_shipyard_naval_manufacturer
		}
		add_equipment_production = { #Kherson
			equipment = {
				type = corvette_hull_1
				creator = UKR
				version_name = "Pr. 1124 'Albatros'"
			}
			name = "U210 Kherson"
			requested_factories = 1
			progress = 0.3
			amount = 1
			industrial_manufacturer = mio:UKR_more_shipyard_naval_manufacturer
		}
		set_temp_variable = { percent_change = 0.07 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
	}

	option = {
		name = ukraine_reorganize_navy_restore_1124.1.b
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_restore_1124.1.b executed"
		set_temp_variable = { treasury_change = -0.24 }
		modify_treasury_effect = yes
		add_equipment_production = { #Sumy
			equipment = {
				type = corvette_hull_1
				creator = UKR
				version_name = "Pr. 1124 'Albatros'"
			}
			name = "U204 Sumy"
			requested_factories = 1
			progress = 0.5
			amount = 1
			industrial_manufacturer = mio:UKR_more_shipyard_naval_manufacturer
		}
		set_temp_variable = { percent_change = 0.05 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
	}
}

country_event = {
	id = ukraine_reorganize_navy_choose_future_corvette.1
	title = ukraine_reorganize_navy_choose_future_corvette.1.name
	desc = ukraine_reorganize_navy_choose_future_corvette.1.desc
	picture = GFX_ukraine_reorganize_navy_choose_future_corvette
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_choose_future_corvette.1.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_choose_future_corvette.1.a executed"
		ai_chance = {
			base = 0.1
		}
		1086 = { #Mykolayiv
			add_state_modifier = {
				modifier = {
					local_manpower = 0.02
					local_resources = 0.03
					state_productivity_growth_modifier = 0.05
				}
			}
		}
		669 = { #Crimea
			add_state_modifier = {
				modifier = {
					local_manpower = 0.02
					local_resources = 0.02
					state_productivity_growth_modifier = 0.04
				}
			}
		}
		695 = { #Odesa
			add_state_modifier = {
				modifier = {
					local_manpower = 0.02
					local_resources = 0.02
					state_productivity_growth_modifier = 0.04
				}
			}
		}
		698 = { #Kyiv
			add_state_modifier = {
				modifier = {
					local_manpower = 0.01
					local_resources = 0.01
					state_productivity_growth_modifier = 0.02
				}
			}
		}
		1085 = { #Kherson
			add_state_modifier = {
				modifier = {
					local_manpower = 0.01
					local_resources = 0.01
					state_productivity_growth_modifier = 0.02
				}
			}
		}

		set_temp_variable = { percent_change = 0.3 }
		change_domestic_influence_percentage = yes
		set_temp_variable = { treasury_change = -0.1 }
		modify_treasury_effect = yes

		country_event = {
			id = ukraine_reorganize_navy_choose_future_corvette.2
			days = 30
			random_hours = 12
			random_days = 5
		}
	}

	option = {
		name = ukraine_reorganize_navy_choose_future_corvette.1.b
		log = "[GetDateText]: [This.GetName]: ukraine_reorganize_navy_choose_future_corvette.1.b executed"
		ai_chance = {
			base = 0.3
		}
		1086 = { #Mykolayiv
			add_state_modifier = {
				modifier = {
					local_manpower = 0.04
					local_resources = 0.04
					state_productivity_growth_modifier = 0.07
				}
			}
		}
		669 = { #Crimea
			add_state_modifier = {
				modifier = {
					local_manpower = 0.02
					local_resources = 0.02
					state_productivity_growth_modifier = 0.04
				}
			}
		}
		695 = { #Odesa
			add_state_modifier = {
				modifier = {
					local_manpower = 0.02
					local_resources = 0.02
					state_productivity_growth_modifier = 0.04
				}
			}
		}
		set_temp_variable = { percent_change = 0.5 }
		change_domestic_influence_percentage = yes
		set_temp_variable = { treasury_change = -0.2 }
		modify_treasury_effect = yes
		country_event = {
			id = ukraine_reorganize_navy_choose_future_corvette.5
			days = 60
			random_hours = 12
			random_days = 5
		}
	}

	option = {
		name = ukraine_reorganize_navy_choose_future_corvette.1.c
		log = "[GetDateText]: [This.GetName]: ukraine_reorganize_navy_choose_future_corvette.1.c executed"
		ai_chance = {
			base = 0.6
		}
		1086 = { #Mykolayiv
			add_state_modifier = {
				modifier = {
					local_manpower = 0.05
					local_resources = 0.06
					state_productivity_growth_modifier = 0.09
				}
			}
		}
		set_temp_variable = { percent_change = 0.8 }
		change_domestic_influence_percentage = yes
		set_temp_variable = { treasury_change = -0.3 }
		modify_treasury_effect = yes
		country_event = {
			id = ukraine_reorganize_navy_choose_future_corvette.8
			days = 180
			random_hours = 12
			random_days = 5
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_choose_future_corvette.2
	title = ukraine_reorganize_navy_choose_future_corvette.2.name
	desc = ukraine_reorganize_navy_choose_future_corvette.2.desc
	picture = GFX_ukraine_reorganize_navy_muson_corvette
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_choose_future_corvette.2.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_choose_future_corvette.2.a executed"
		ai_chance = {
			base = 0.1
		}
		1086 = { #Mykolayiv
			add_state_modifier = {
				modifier = {
					local_manpower = 0.02
					local_resources = 0.03
					state_productivity_growth_modifier = 0.05
				}
			}
		}
		set_temp_variable = { percent_change = 0.3 }
		change_domestic_influence_percentage = yes
		set_temp_variable = { treasury_change = -0.1 }
		modify_treasury_effect = yes

		create_equipment_variant = {
			name = "Muson"
			type = corvette_hull_3
			name_group = UKR_COR_WEATHER
			parent_version = 0
			show_position = no

			modules = {
				fixed_ship_engine_slot = module_light_surface_diesel_power_1
				fixed_ship_fire_control_system_slot = module_digital_integrated_fire_control
				fixed_ship_radar_slot = module_radar_3
				fixed_ship_auxillary_slot = module_torpedoes_2
				fixed_ship_battery_slot = module_76mm_gun_2
				front_1_custom_slot = module_naval_missile_mount_twin
				rear_1_custom_slot = module_ciws_2
				fixed_ship_missile_ammo_slot = module_naval_ammo_anti_ship_2
			}

			role_icon_index = 1

			icon = "gfx/interface/technologies/UKR/NAV/Corvette-03-Muson.dds"
			model = "patrol_boat_entity"

			design_team = mio:UKR_nikolayev_shipyard_naval_manufacturer
		}

		country_event = ukraine_reorganize_navy_choose_future_corvette.3
	}

	option = {
		name = ukraine_reorganize_navy_choose_future_corvette.2.b
		log = "[GetDateText]: [This.GetName]: ukraine_reorganize_navy_choose_future_corvette.2.b executed"
		ai_chance = {
			base = 0.3
		}
		1086 = { #Mykolayiv
			add_state_modifier = {
				modifier = {
					local_manpower = 0.02
					local_resources = 0.03
					state_productivity_growth_modifier = 0.05
				}
			}
		}

		if = {
			limit = {
				NOT = {
					has_tech = tech_combat_radar_3
				}
			}
			set_technology = { tech_combat_radar_3 = 1 }
		}
		if = {
			limit = {
				NOT = {
					has_tech = tech_turret_missiles_aa_3
				}
			}
			set_technology = { tech_turret_missiles_aa_3 = 1 }
		}

		create_equipment_variant = {
			name = "Mirazh"
			type = corvette_hull_3
			name_group = UKR_COR_WEATHER
			parent_version = 0
			show_position = no

			modules = {
				fixed_ship_engine_slot = module_light_surface_diesel_power_1
				fixed_ship_fire_control_system_slot = module_digital_integrated_fire_control
				fixed_ship_radar_slot = module_radar_4
				fixed_ship_auxillary_slot = module_naval_missile_mount_twin
				fixed_ship_battery_slot = module_76mm_gun_3
				front_1_custom_slot = module_ram_3
				rear_1_custom_slot = module_light_helipad_1
				fixed_ship_missile_ammo_slot = module_naval_ammo_balanced_2
			}

			role_icon_index = 1

			icon = "gfx/interface/technologies/UKR/NAV/Corvette-03-Mirage.dds"
			model = "SOV_corvette_entity"

			design_team = mio:UKR_nikolayev_shipyard_naval_manufacturer
		}

		country_event = ukraine_reorganize_navy_choose_future_corvette.4
	}
}

country_event = {
	id = ukraine_reorganize_navy_choose_future_corvette.3
	title = ukraine_reorganize_navy_choose_future_corvette.3.name
	desc = ukraine_reorganize_navy_choose_future_corvette.3.desc
	picture = GFX_ukraine_reorganize_navy_muson_corvette
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_choose_future_corvette.3.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_choose_future_corvette.3.a executed"
		ai_chance = {
			base = 0.2
		}

		set_temp_variable = { treasury_change = -0.98 }
		modify_treasury_effect = yes

		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Muson"
			}
			name = "Muson"
			requested_factories = 1
			amount = 4
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Muson"
			}
			name = "Mistral"
			requested_factories = 1
			amount = 4
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Muson"
			}
			name = "Pasat"
			requested_factories = 1
			amount = 4
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Muson"
			}
			name = "Levant"
			requested_factories = 1
			amount = 4
		}

		1086 = { #Mykolayiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.04
				}
			}
		}
		669 = { #Crimea
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.04
				}
			}
		}
		698 = { #Kyiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.02
				}
			}
		}
	}

	option = {
		name = ukraine_reorganize_navy_choose_future_corvette.3.b
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_choose_future_corvette.3.b executed"
		ai_chance = {
			base = 0.5
		}

		set_temp_variable = { treasury_change = -0.75 }
		modify_treasury_effect = yes

		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Muson"
			}
			name = "Muson"
			requested_factories = 1
			amount = 3
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Muson"
			}
			name = "Mistral"
			requested_factories = 1
			amount = 3
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Muson"
			}
			name = "Pasat"
			requested_factories = 1
			amount = 3
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Muson"
			}
			name = "Levant"
			requested_factories = 1
			amount = 3
		}

		1086 = { #Mykolayiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.04
				}
			}
		}
		669 = { #Crimea
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.04
				}
			}
		}
	}

	option = {
		name = ukraine_reorganize_navy_choose_future_corvette.3.c
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_choose_future_corvette.3.c executed"
		ai_chance = {
			base = 0.3
		}

		set_temp_variable = { treasury_change = -0.52 }
		modify_treasury_effect = yes

		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Muson"
			}
			name = "Muson"
			requested_factories = 1
			amount = 4
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Muson"
			}
			name = "Mistral"
			requested_factories = 1
			amount = 4
		}

		1086 = { #Mykolayiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.02
				}
			}
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_choose_future_corvette.4
	title = ukraine_reorganize_navy_choose_future_corvette.4.name
	desc = ukraine_reorganize_navy_choose_future_corvette.4.desc
	picture = GFX_ukraine_reorganize_navy_mirazh_corvette
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_choose_future_corvette.4.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_choose_future_corvette.4.a executed"
		ai_chance = {
			base = 0.2
		}

		set_temp_variable = { treasury_change = -0.99 }
		modify_treasury_effect = yes

		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Mirazh"
			}
			name = "Mistral"
			requested_factories = 1
			amount = 4
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Mirazh"
			}
			name = "Muson"
			requested_factories = 1
			amount = 4
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Mirazh"
			}
			name = "Pasat"
			requested_factories = 1
			amount = 4
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Mirazh"
			}
			name = "Levant"
			requested_factories = 1
			amount = 4
		}

		695 = { #Odesa
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.02
				}
			}
		}
		1085 = { #Kherson
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.02
				}
			}
		}
		1086 = { #Mykolayiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.04
				}
			}
		}
	}

	option = {
		name = ukraine_reorganize_navy_choose_future_corvette.4.b
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_choose_future_corvette.4.b executed"
		ai_chance = {
			base = 0.5
		}

		set_temp_variable = { treasury_change = -0.68 }
		modify_treasury_effect = yes

		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Mirazh"
			}
			name = "Mistral"
			requested_factories = 1
			amount = 3
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Mirazh"
			}
			name = "Muson"
			requested_factories = 1
			amount = 3
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Mirazh"
			}
			name = "Pasat"
			requested_factories = 1
			amount = 3
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Mirazh"
			}
			name = "Levant"
			requested_factories = 1
			amount = 3
		}

		1085 = { #Kherson
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.02
				}
			}
		}
		1086 = { #Mykolayiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.04
				}
			}
		}
	}

	option = {
		name = ukraine_reorganize_navy_choose_future_corvette.4.c
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_choose_future_corvette.4.c executed"
		ai_chance = {
			base = 0.3
		}

		set_temp_variable = { treasury_change = -0.54 }
		modify_treasury_effect = yes

		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Mirazh"
			}
			name = "Mistral"
			requested_factories = 1
			amount = 4
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Mirazh"
			}
			name = "Muson"
			requested_factories = 1
			amount = 4
		}

		1086 = { #Mykolayiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.02
				}
			}
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_choose_future_corvette.5
	title = ukraine_reorganize_navy_choose_future_corvette.5.name
	desc = ukraine_reorganize_navy_choose_future_corvette.5.desc
	picture = GFX_ukraine_reorganize_navy_hayduk_21_corvette
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_choose_future_corvette.5.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_choose_future_corvette.5.a executed"
		ai_chance = {
			base = 0.3
		}
		698 = { #Kyiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.03
				}
			}
		}
		1086 = { #Mykolayiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.02
				}
			}
		}
		if = {
			limit = {
				NOT = {
					has_tech = tech_turret_missiles_aa_3
				}
			}
			set_technology = { tech_turret_missiles_aa_3 = 1 }
		}

		create_equipment_variant = {
			name = "Pr. 58200 'Hayduk-21'"
			type = corvette_hull_3
			name_group = UKR_COR_PRINCES
			parent_version = 0
			show_position = no

			modules = {
				fixed_ship_engine_slot = module_light_surface_jet_turbine_power2
				fixed_ship_fire_control_system_slot = module_digital_integrated_fire_control
				fixed_ship_radar_slot = module_radar_3
				fixed_ship_auxillary_slot = module_naval_missile_mount_twin
				fixed_ship_battery_slot = module_127mm_guns_1
				front_1_custom_slot = module_ram_3
				rear_1_custom_slot = module_light_helipad_1
				fixed_ship_missile_ammo_slot = module_naval_ammo_anti_ship_2
			}

			role_icon_index = 1

			icon = "gfx/interface/technologies/UKR/NAV/Corvette-03-Project-58200.dds"
			model = "SOV_corvette_entity"

			design_team = mio:UKR_nikolayev_shipyard_naval_manufacturer
		}

		country_event = ukraine_reorganize_navy_choose_future_corvette.6
	}

	option = {
		name = ukraine_reorganize_navy_choose_future_corvette.5.b
		log = "[GetDateText]: [This.GetName]: ukraine_reorganize_navy_choose_future_corvette.5.b executed"
		ai_chance = {
			base = 0.3
		}
		1086 = { #Mykolayiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.05
				}
			}
		}
		if = {
			limit = {
				NOT = {
					has_tech = tech_vls_surface_3
				}
			}
			set_technology = { tech_vls_surface_3 = 1 }
		}

		create_equipment_variant = {
			name = "Mistral-1500T"
			type = corvette_hull_3
			name_group = UKR_COR_WEATHER
			parent_version = 0
			show_position = no

			modules = {
				fixed_ship_engine_slot = module_light_surface_diesel_power_1
				fixed_ship_fire_control_system_slot = module_digital_integrated_fire_control
				fixed_ship_radar_slot = module_radar_4
				fixed_ship_auxillary_slot = module_naval_vls_cells_16
				fixed_ship_battery_slot = module_76mm_gun_3
				front_1_custom_slot = module_naval_missile_mount_twin
				rear_1_custom_slot = module_light_helipad_1
				fixed_ship_missile_ammo_slot = module_naval_ammo_balanced_2
			}

			role_icon_index = 1

			icon = "gfx/interface/technologies/UKR/NAV/Corvette-03-Mistral-1500T.dds"
			model = "SOV_corvette_entity"

			design_team = mio:UKR_nikolayev_shipyard_naval_manufacturer
		}

		country_event = ukraine_reorganize_navy_choose_future_corvette.7
	}
}

country_event = {
	id = ukraine_reorganize_navy_choose_future_corvette.6
	title = ukraine_reorganize_navy_choose_future_corvette.6.name
	desc = ukraine_reorganize_navy_choose_future_corvette.6.desc
	picture = GFX_ukraine_reorganize_navy_hayduk_21_corvette
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_choose_future_corvette.6.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_choose_future_corvette.6.a executed"
		ai_chance = {
			base = 0.2
		}
		set_temp_variable = { treasury_change = -1.48 }
		modify_treasury_effect = yes

		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Pr. 58200 'Hayduk-21'"
			}
			name = "Volodymyr Velykyi"
			requested_factories = 1
			amount = 3
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Pr. 58200 'Hayduk-21'"
			}
			name = "Yaroslav Mudryi"
			requested_factories = 1
			amount = 3
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Pr. 58200 'Hayduk-21'"
			}
			name = "Volodymyr Monomakh"
			requested_factories = 1
			amount = 3
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Pr. 58200 'Hayduk-21'"
			}
			name = "Sviatoslav Khorobryi"
			requested_factories = 1
			amount = 3
		}
		698 = { #Kyiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.04
				}
			}
		}
		1086 = { #Mykolayiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.06
				}
			}
		}
		set_country_flag = UKR_reorganize_navy_developed_project_58250_corvette_development_flag
	}

	option = {
		name = ukraine_reorganize_navy_choose_future_corvette.6.b
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_choose_future_corvette.6.b executed"
		ai_chance = {
			base = 0.5
		}
		set_temp_variable = { treasury_change = -1.02 }
		modify_treasury_effect = yes
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Pr. 58200 'Hayduk-21'"
			}
			name = "Volodymyr Velykyi"
			requested_factories = 1
			amount = 2
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Pr. 58200 'Hayduk-21'"
			}
			name = "Yaroslav Mudryi"
			requested_factories = 1
			amount = 2
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Pr. 58200 'Hayduk-21'"
			}
			name = "Volodymyr Monomakh"
			requested_factories = 1
			amount = 2
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Pr. 58200 'Hayduk-21'"
			}
			name = "Sviatoslav Khorobryi"
			requested_factories = 1
			amount = 2
		}
		698 = { #Kyiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.04
				}
			}
		}
		1086 = { #Mykolayiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.05
				}
			}
		}
		set_country_flag = UKR_reorganize_navy_developed_project_58250_corvette_development_flag
	}

	option = {
		name = ukraine_reorganize_navy_choose_future_corvette.6.c
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_choose_future_corvette.6.c executed"
		ai_chance = {
			base = 0.3
		}
		set_temp_variable = { treasury_change = -0.8 }
		modify_treasury_effect = yes
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Pr. 58200 'Hayduk-21'"
			}
			name = "Volodymyr Velykyi"
			requested_factories = 1
			amount = 3
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Pr. 58200 'Hayduk-21'"
			}
			name = "Yaroslav Mudryi"
			requested_factories = 1
			amount = 3
		}
		698 = { #Kyiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.03
				}
			}
		}
		1086 = { #Mykolayiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.04
				}
			}
		}
		set_country_flag = UKR_reorganize_navy_developed_project_58250_corvette_development_flag
	}
}

country_event = {
	id = ukraine_reorganize_navy_choose_future_corvette.7
	title = ukraine_reorganize_navy_choose_future_corvette.7.name
	desc = ukraine_reorganize_navy_choose_future_corvette.7.desc
	picture = GFX_ukraine_reorganize_navy_mistral_1500t_corvette
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_choose_future_corvette.7.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_choose_future_corvette.7.a executed"
		ai_chance = {
			base = 0.2
		}
		set_temp_variable = { treasury_change = -1.23 }
		modify_treasury_effect = yes
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Mistral-1500T"
			}
			name = "Mistral"
			requested_factories = 1
			amount = 3
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Mistral-1500T"
			}
			name = "Muson"
			requested_factories = 1
			amount = 3
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Mistral-1500T"
			}
			name = "Pasat"
			requested_factories = 1
			amount = 3
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Mistral-1500T"
			}
			name = "Levant"
			requested_factories = 1
			amount = 3
		}
		669 = { #Crimea
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.04
				}
			}
		}
		1086 = { #Mykolayiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.06
				}
			}
		}
	}

	option = {
		name = ukraine_reorganize_navy_choose_future_corvette.7.b
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_choose_future_corvette.7.b executed"
		ai_chance = {
			base = 0.5
		}
		set_temp_variable = { treasury_change = -0.85 }
		modify_treasury_effect = yes
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Mistral-1500T"
			}
			name = "Mistral"
			requested_factories = 1
			amount = 2
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Mistral-1500T"
			}
			name = "Muson"
			requested_factories = 1
			amount = 2
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Mistral-1500T"
			}
			name = "Pasat"
			requested_factories = 1
			amount = 2
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Mistral-1500T"
			}
			name = "Levant"
			requested_factories = 1
			amount = 2
		}
		669 = { #Crimea
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.04
				}
			}
		}
		1086 = { #Mykolayiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.05
				}
			}
		}
	}

	option = {
		name = ukraine_reorganize_navy_choose_future_corvette.7.c
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_choose_future_corvette.7.c executed"
		ai_chance = {
			base = 0.3
		}
		set_temp_variable = { treasury_change = -0.67 }
		modify_treasury_effect = yes
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Mistral-1500T"
			}
			name = "Mistral"
			requested_factories = 1
			amount = 3
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_3
				version_name = "Mistral-1500T"
			}
			name = "Muson"
			requested_factories = 1
			amount = 3
		}
		669 = { #Crimea
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.03
				}
			}
		}
		1086 = { #Mykolayiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.04
				}
			}
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_choose_future_corvette.8
	title = ukraine_reorganize_navy_choose_future_corvette.8.name
	desc = ukraine_reorganize_navy_choose_future_corvette.8.desc
	picture = GFX_ukraine_reorganize_navy_choose_future_corvette
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_choose_future_corvette.8.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_choose_future_corvette.8.a executed"
		ai_chance = {
			base = 0.4
		}
		navy_experience = 2
		set_temp_variable = { treasury_change = -0.28 }
		modify_treasury_effect = yes
		mio:UKR_nikolayev_shipyard_naval_manufacturer = {
			add_mio_funds = 1200
			add_mio_funds_gain_factor = 0.25
			add_mio_research_bonus = 0.15
		}
		1086 = { #Mykolayiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.07
				}
			}
		}
		set_country_flag = UKR_reorganize_navy_funded_project_58250_corvette_development_flag
	}

	option = {
		name = ukraine_reorganize_navy_choose_future_corvette.8.b
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_choose_future_corvette.8.b executed"
		ai_chance = { base = 0.7 }
		set_country_flag = UKR_reorganize_navy_not_funded_project_58250_corvette_development_flag
	}
}

country_event = {
	id = ukraine_reorganize_navy_choose_future_corvette.9
	title = ukraine_reorganize_navy_choose_future_corvette.9.name
	desc = ukraine_reorganize_navy_choose_future_corvette.9.desc
	picture = GFX_ukraine_reorganize_navy_project_58250_corvette
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_choose_future_corvette.9.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_choose_future_corvette.9.a executed"
		ai_chance = {
			base = 0.4
		}
		set_temp_variable = { treasury_change = -2.06 }
		modify_treasury_effect = yes
		if = {
			limit = {
				NOT = {
					has_tech = corvette_hull_4
				}
			}
			set_technology = { corvette_hull_4 = 1 }
		}
		if = {
			limit = {
				NOT = {
					has_tech = tech_torpedoes_3
				}
			}
			set_technology = { tech_torpedoes_3 = 1 }
		}
		if = {
			limit = {
				NOT = {
					has_tech = aircraft_heli_engineering_3
				}
			}
			set_technology = { aircraft_heli_engineering_3 = 1 }
		}
		if = {
			limit = {
				NOT = {
					has_tech = tech_vls_surface_4
				}
			}
			set_technology = { tech_vls_surface_4 = 1 }
		}
		#Project 58250
		create_equipment_variant = {
			name = "Volodymyr Velykyi Class"
			name_group = UKR_COR_PRINCES
			type = corvette_hull_4
			parent_version = 0 #Current Version: 1

			modules = {
				fixed_ship_engine_slot = module_light_surface_diesel_power_2
				fixed_ship_fire_control_system_slot = module_digital_integrated_fire_control
				fixed_ship_radar_slot = module_radar_4
				fixed_ship_auxillary_slot = module_torpedoes_3
				fixed_ship_battery_slot = module_76mm_gun_3
				front_1_custom_slot = module_naval_missile_mount_twin
				rear_1_custom_slot = module_light_helipad_2
				fixed_ship_missile_ammo_slot = module_naval_ammo_balanced_4
			}

			role_icon_index = 2

			design_team = mio:UKR_nikolayev_shipyard_naval_manufacturer

			icon = "gfx/interface/technologies/UKR/NAV/Corvette-04-Project-58250.dds"
			model = "SOV_corvette_entity"
		}

		add_equipment_production = {
			equipment = {
				type = corvette_hull_4
				version_name = "Volodymyr Velykyi Class"
			}
			name = "Volodymyr Velykyi"
			requested_factories = 1
			amount = 5
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_4
				version_name = "Volodymyr Velykyi Class"
			}
			name = "Yaroslav Mudryi"
			requested_factories = 1
			amount = 5
		}
		1086 = { #Mykolayiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.08
					local_resources = 0.02
					local_manpower = 0.01
				}
			}
		}
	}

	option = {
		name = ukraine_reorganize_navy_choose_future_corvette.9.b
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_choose_future_corvette.9.b executed"
		ai_chance = {
			base = 0.3
		}
		if = {
			limit = {
				NOT = {
					has_tech = corvette_hull_4
				}
			}
			set_technology = { corvette_hull_4 = 1 }
		}
		if = {
			limit = {
				NOT = {
					has_tech = tech_torpedoes_3
				}
			}
			set_technology = { tech_torpedoes_3 = 1 }
		}
		if = {
			limit = {
				NOT = {
					has_tech = aircraft_heli_engineering_3
				}
			}
			set_technology = { aircraft_heli_engineering_3 = 1 }
		}
		if = {
			limit = {
				NOT = {
					has_tech = tech_vls_surface_4
				}
			}
			set_technology = { tech_vls_surface_4 = 1 }
		}
		#Project 58250
		create_equipment_variant = {
			name = "Volodymyr Velykyi Class"
			name_group = UKR_COR_PRINCES
			type = corvette_hull_4
			parent_version = 0 #Current Version: 2

			modules = {
				fixed_ship_engine_slot = module_light_surface_diesel_power_2
				fixed_ship_fire_control_system_slot = module_digital_integrated_fire_control
				fixed_ship_radar_slot = module_radar_4
				fixed_ship_auxillary_slot = module_torpedoes_3
				fixed_ship_battery_slot = module_76mm_gun_3
				front_1_custom_slot = module_naval_missile_mount_twin
				rear_1_custom_slot = module_light_helipad_2
				fixed_ship_missile_ammo_slot = module_naval_ammo_balanced_4
			}

			role_icon_index = 2

			design_team = mio:UKR_nikolayev_shipyard_naval_manufacturer

			icon = "gfx/interface/technologies/UKR/NAV/Corvette-04-Project-58250.dds"
			model = "SOV_corvette_entity"
		}

		set_temp_variable = { treasury_change = -1.70 }
		modify_treasury_effect = yes
		add_equipment_production = {
			equipment = {
				type = corvette_hull_4
				version_name = "Volodymyr Velykyi Class"
			}
			name = "Volodymyr Velykyi"
			requested_factories = 1
			amount = 4
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_4
				version_name = "Volodymyr Velykyi Class"
			}
			name = "Yaroslav Mudryi"
			requested_factories = 1
			amount = 4
		}
		1086 = { #Mykolayiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.06
				}
			}
		}
	}

	option = {
		name = ukraine_reorganize_navy_choose_future_corvette.9.c
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_choose_future_corvette.9.c executed"
		ai_chance = {
			base = 0.3
		}
		if = {
			limit = {
				NOT = {
					has_tech = corvette_hull_4
				}
			}
			set_technology = { corvette_hull_4 = 1 }
		}
		if = {
			limit = {
				NOT = {
					has_tech = tech_torpedoes_3
				}
			}
			set_technology = { tech_torpedoes_3 = 1 }
		}
		if = {
			limit = {
				NOT = {
					has_tech = aircraft_heli_engineering_3
				}
			}
			set_technology = { aircraft_heli_engineering_3 = 1 }
		}
		if = {
			limit = {
				NOT = {
					has_tech = tech_vls_surface_4
				}
			}
			set_technology = { tech_vls_surface_4 = 1 }
		}
		#Project 58250
		create_equipment_variant = {
			name = "Volodymyr Velykyi Class"
			name_group = UKR_COR_PRINCES
			type = corvette_hull_4
			parent_version = 0 #Current Version: 3

			modules = {
				fixed_ship_engine_slot = module_light_surface_diesel_power_2
				fixed_ship_fire_control_system_slot = module_digital_integrated_fire_control
				fixed_ship_radar_slot = module_radar_4
				fixed_ship_auxillary_slot = module_torpedoes_3
				fixed_ship_battery_slot = module_76mm_gun_3
				front_1_custom_slot = module_naval_missile_mount_twin
				rear_1_custom_slot = module_light_helipad_2
				fixed_ship_missile_ammo_slot = module_naval_ammo_balanced_4
			}

			role_icon_index = 1

			design_team = mio:UKR_nikolayev_shipyard_naval_manufacturer

			icon = "gfx/interface/technologies/UKR/NAV/Corvette-04-Project-58250.dds"
			model = "SOV_corvette_entity"
		}

		set_temp_variable = { treasury_change = -0.94 }
		modify_treasury_effect = yes
		add_equipment_production = {
			equipment = {
				type = corvette_hull_4
				version_name = "Volodymyr Velykyi Class"
			}
			name = "Volodymyr Velykyi"
			requested_factories = 1
			amount = 2
		}
		add_equipment_production = {
			equipment = {
				type = corvette_hull_4
				version_name = "Volodymyr Velykyi Class"
			}
			name = "Yaroslav Mudryi"
			requested_factories = 1
			amount = 2
		}
		1086 = { #Mykolayiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.04
				}
			}
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_buy_lithuanian_1124.1
	title = ukraine_reorganize_navy_buy_lithuanian_1124.1.name
	desc = ukraine_reorganize_navy_buy_lithuanian_1124.1.desc
	picture = GFX_ukraine_reorganize_navy_buy_lithuanian_1124
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_buy_lithuanian_1124.1.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_buy_lithuanian_1124.1.a executed"
		ai_chance = { base = 0.1 }
		country_event = {
			id = ukraine_reorganize_navy_buy_lithuanian_1124.2
			days = 30
			random_hours = 12
			random_days = 5
		}
	}

	option = {
		name = ukraine_reorganize_navy_buy_lithuanian_1124.1.b
		log = "[GetDateText]: [This.GetName]: ukraine_reorganize_navy_buy_lithuanian_1124.1.b executed"
		ai_chance = { base = 0.4 }
		LIT = {
			add_opinion_modifier = {
				target = UKR
				modifier = broke_trade_agreement
			}
		}
		set_temp_variable = { percent_change = 0.11 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = LIT.id }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = -0.04 }
		set_temp_variable = { tag_index = UKR.id }
		set_temp_variable = { influence_target = LIT.id }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = -0.03 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		country_event = {
			id = ukraine_reorganize_navy_buy_lithuanian_1124.3
			days = 60
			random_hours = 12
			random_days = 10
		}
	}
}
country_event = {
	id = ukraine_reorganize_navy_buy_lithuanian_1124.2
	title = ukraine_reorganize_navy_buy_lithuanian_1124.2.name
	desc = ukraine_reorganize_navy_buy_lithuanian_1124.2.desc
	picture = GFX_ukraine_reorganize_navy_buy_lithuanian_1124
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_buy_lithuanian_1124.2.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_buy_lithuanian_1124.2.a executed"
		set_temp_variable = { treasury_change = -0.08 }
		modify_treasury_effect = yes
		LIT = {
			set_temp_variable = { treasury_change = 0.08 }
			modify_treasury_effect = yes
			create_import = {
				resource = oil
				amount = 60
				exporter = UKR
			}
			create_import = {
				resource = steel
				amount = 2500
				exporter = UKR
			}
			create_import = {
				resource = aluminium
				amount = 500
				exporter = UKR
			}
			add_opinion_modifier = {
				target = UKR
				modifier = mutual_investment_treaty_trade_opinion
			}
			add_tech_bonus = {
				name = ukraine_reorganize_navy_buy_lithuanian_1124.2.name
				bonus = 0.3
				uses = 1
				category = CAT_armored_personnel_carriers
			} hidden_effect = { rq_eb_567a2a9ac3 = yes }
			add_tech_bonus = {
				name = ukraine_reorganize_navy_buy_lithuanian_1124.2.name
				bonus = 0.3
				uses = 1
				category = CAT_anti_tank
			} hidden_effect = { rq_eb_529e5f5d27 = yes }
			add_tech_bonus = {
				name = ukraine_reorganize_navy_buy_lithuanian_1124.2.name
				bonus = 0.25
				uses = 1
				category = CAT_utility_vehicles
			} hidden_effect = { rq_eb_db06d44c25 = yes }
		}
		set_temp_variable = { percent_change = -0.08 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = LIT.id }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = 0.06 }
		set_temp_variable = { tag_index = UKR.id }
		set_temp_variable = { influence_target = LIT.id }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = 0.04 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		country_event = {
			id = ukraine_reorganize_navy_buy_lithuanian_1124.5
			days = 20
			random_hours = 12
			random_days = 5
		}
	}

	option = {
		name = ukraine_reorganize_navy_buy_lithuanian_1124.2.b
		log = "[GetDateText]: [This.GetName]: ukraine_reorganize_navy_buy_lithuanian_1124.2.b executed"
		set_temp_variable = { percent_change = -0.07 }
		set_temp_variable = { tag_index = UKR.id }
		set_temp_variable = { influence_target = LIT.id }
		change_influence_percentage = yes
		LIT = {
			add_opinion_modifier = {
				target = UKR
				modifier = broke_trade_agreement
			}
		}
	}
}
country_event = {
	id = ukraine_reorganize_navy_buy_lithuanian_1124.3
	title = ukraine_reorganize_navy_buy_lithuanian_1124.3.name
	desc = ukraine_reorganize_navy_buy_lithuanian_1124.3.desc
	picture = GFX_ukraine_reorganize_navy_buy_lithuanian_1124
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_buy_lithuanian_1124.3.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_buy_lithuanian_1124.3.a executed"
		set_temp_variable = { percent_change = -0.07 }
		set_temp_variable = { tag_index = UKR.id }
		set_temp_variable = { influence_target = LIT.id }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = 0.02 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = LIT.id }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = -0.02 }
		set_temp_variable = { tag_index = UKR.id }
		set_temp_variable = { influence_target = SOV.id }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = -0.03 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		LIT = {
			add_opinion_modifier = {
				target = UKR
				modifier = broke_trade_agreement
			}
		}
		UKR = {
			add_opinion_modifier = {
				target = SOV
				modifier = broke_trade_agreement
			}
		}
	}

	option = {
		name = ukraine_reorganize_navy_buy_lithuanian_1124.3.b
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_buy_lithuanian_1124.3.b executed"
		set_temp_variable = { percent_change = 0.06 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = LIT.id }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = 0.02 }
		set_temp_variable = { tag_index = UKR.id }
		set_temp_variable = { influence_target = LIT.id }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = 0.08 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		country_event = {
			id = ukraine_reorganize_navy_buy_lithuanian_1124.4
			days = 90
			random_hours = 12
			random_days = 20
		}
	}
}
country_event = {
	id = ukraine_reorganize_navy_buy_lithuanian_1124.4
	title = ukraine_reorganize_navy_buy_lithuanian_1124.4.name
	desc = ukraine_reorganize_navy_buy_lithuanian_1124.4.desc
	picture = GFX_ukraine_reorganize_navy_buy_lithuanian_1124
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_buy_lithuanian_1124.4.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_buy_lithuanian_1124.4.a executed"
		set_temp_variable = { percent_change = -0.03 }
		set_temp_variable = { tag_index = UKR.id }
		set_temp_variable = { influence_target = SOV.id }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = -0.05 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		UKR = {
			add_opinion_modifier = {
				target = SOV
				modifier = broke_trade_agreement
			}
		}
	}

	option = {
		name = ukraine_reorganize_navy_buy_lithuanian_1124.4.b
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_buy_lithuanian_1124.4.b executed"
		set_temp_variable = { percent_change = 0.03 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = LIT.id }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = 0.03 }
		set_temp_variable = { tag_index = UKR.id }
		set_temp_variable = { influence_target = LIT.id }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = 0.12 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		set_temp_variable = { treasury_change = -0.15 }
		modify_treasury_effect = yes
		SOV = {
			set_temp_variable = { treasury_change = 0.15 }
			modify_treasury_effect = yes
			create_import = {
				resource = steel
				amount = 400
				exporter = UKR
			}
			add_opinion_modifier = {
				target = UKR
				modifier = mutual_investment_treaty_trade_opinion
			}
		}
		add_popularity = {
			ideology = democratic
			popularity = -0.13
		}
		recalculate_party = yes
		1112 = {
			add_building_construction = {
				type = infrastructure
				level = 2
				instant_build = yes
			}
			add_building_construction = {
				type = anti_air_building
				level = 1
				instant_build = yes
			}
			add_building_construction = {
				type = naval_base
				level = 1
				instant_build = yes
				province = 3468
			}
		}
		country_event = {
			id = ukraine_reorganize_navy_buy_lithuanian_1124.5
			days = 60
			random_hours = 12
			random_days = 10
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_buy_lithuanian_1124.5
	title = ukraine_reorganize_navy_buy_lithuanian_1124.5.name
	desc = ukraine_reorganize_navy_buy_lithuanian_1124.5.desc
	picture = GFX_ukraine_reorganize_navy_buy_lithuanian_1124
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_buy_lithuanian_1124.5.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_buy_lithuanian_1124.5.a executed"
		ai_chance = { base = 0.1 }
		set_temp_variable = { percent_change = 0.05 }
		set_temp_variable = { tag_index = UKR.id }
		set_temp_variable = { influence_target = LIT.id }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = 0.02 }
		set_temp_variable = { tag_index = LIT.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		set_temp_variable = { treasury_change = -0.2 }
		modify_treasury_effect = yes
		LIT = {
			set_temp_variable = { treasury_change = 0.2 }
			modify_treasury_effect = yes
			add_opinion_modifier = {
				target = UKR
				modifier = mutual_investment_treaty_trade_opinion
			}
		}
		hidden_effect = {
			LIT = {
				destroy_ships = {
					type = corvette_hull_2
					count = 2
				}
			}
		}
		create_ship = {
			type = corvette_hull_1
			equipment_variant = "Pr. 1124 'Albatros'"
			creator = UKR
			name = "Bratslav"
		}
		create_ship = {
			type = corvette_hull_1
			equipment_variant = "Pr. 1124 'Albatros'"
			creator = UKR
			name = "Volodymyr"
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_finish_project_133.1
	title = ukraine_reorganize_navy_finish_project_133.1.name
	desc = ukraine_reorganize_navy_finish_project_133.1.desc
	picture = GFX_ukraine_reorganize_navy_finish_project_133
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_finish_project_133.1.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_finish_project_133.1.a executed"
		set_temp_variable = { treasury_change = -0.15 }
		modify_treasury_effect = yes
		#Project 133
		add_equipment_production = { #BG-53
			equipment = {
				type = corvette_hull_3
				version_name = "Pr. 133 'Antares'"
			}
			name = "BG53 Polissia"
			progress = 0.35
			amount = 1
			industrial_manufacturer = mio:UKR_more_shipyard_naval_manufacturer
		}
		add_equipment_production = { #BG-54
			equipment = {
				type = corvette_hull_3
				version_name = "Pr. 133 'Antares'"
			}
			name = "BG54 Slobozhanshchyna"
			progress = 0.1
			amount = 1
			industrial_manufacturer = mio:UKR_more_shipyard_naval_manufacturer
		}
		669 = { #Crimea
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.04
				}
			}
		}
		set_temp_variable = { percent_change = 0.04 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
	}

	option = {
		name = ukraine_reorganize_navy_finish_project_133.1.b
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_finish_project_133.1.b executed"
		set_temp_variable = { treasury_change = -0.1 }
		modify_treasury_effect = yes
		#Project 133
		add_equipment_production = { #BG-53
			equipment = {
				type = corvette_hull_3
				version_name = "Pr. 133 'Antares'"
			}
			name = "BG53 Polissia"
			progress = 0.45
			amount = 1
			industrial_manufacturer = mio:UKR_more_shipyard_naval_manufacturer
		}
		669 = { #Crimea
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.02
				}
			}
		}
		set_temp_variable = { percent_change = 0.03 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
	}
}

country_event = {
	id = ukraine_reorganize_navy_maintain_1135.1
	title = ukraine_reorganize_navy_maintain_1135.1.name
	desc = ukraine_reorganize_navy_maintain_1135.1.desc
	picture = GFX_ukraine_reorganize_navy_maintain_1135

	is_triggered_only = yes

	trigger = {
		tag = UKR
		country_exists = SOV
	}

	option = {
		name = ukraine_reorganize_navy_maintain_1135.1.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_maintain_1135.1.a executed"

		set_temp_variable = { treasury_change = -1.44 }
		modify_treasury_effect = yes

		add_equipment_production = { #Sevastopol
			equipment = {
				type = frigate_hull_1
				creator = UKR
				version_name = "Pr. 1135 'Burevestnik'"
			}
			name = "U132 Sevastopol"
			requested_factories = 1
			progress = 0.3
			amount = 1
		}

		SOV = {
			create_production_license = {
				target = UKR
				equipment = {
					type = frigate_hull_1
					version_name = "Krivak II Class"
				}
				cost_factor = 0
			}
		}

		add_equipment_production = { #Mykolayiv
			equipment = {
				type = frigate_hull_1
				creator = SOV
				version_name = "Krivak II Class"
			}
			name = "U133 Mykolayiv"
			requested_factories = 1
			progress = 0.3
			amount = 1
		}

		add_equipment_production = { #Dnipropetrovsk
			equipment = {
				type = frigate_hull_1
				creator = SOV
				version_name = "Krivak II Class"
			}
			name = "U134 Dnipropetrovsk"
			requested_factories = 1
			progress = 0.2
			amount = 1
		}

		set_temp_variable = { percent_change = 0.13 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
	}

	option = {
		name = ukraine_reorganize_navy_maintain_1135.1.b
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_maintain_1135.1.b executed"

		set_temp_variable = { treasury_change = -0.96 }
		modify_treasury_effect = yes

		add_equipment_production = { #Sevastopol
			equipment = {
				type = frigate_hull_1
				creator = UKR
				version_name = "Pr. 1135 'Burevestnik'"
			}
			name = "U132 Sevastopol"
			requested_factories = 1
			progress = 0.35
			amount = 1
		}

		SOV = {
			create_production_license = {
				target = UKR
				equipment = {
					type = frigate_hull_1
					version_name = "Krivak II Class"
				}
				cost_factor = 0
			}
		}

		add_equipment_production = { #Mykolayiv
			equipment = {
				type = frigate_hull_1
				creator = SOV
				version_name = "Krivak II Class"
			}
			name = "U133 Mykolayiv"
			requested_factories = 1
			progress = 0.35
			amount = 1
		}

		set_temp_variable = { percent_change = 0.1 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
	}

	option = {
		name = ukraine_reorganize_navy_maintain_1135.1.c
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_maintain_1135.1.c executed"

		set_temp_variable = { treasury_change = -0.42 }
		modify_treasury_effect = yes

		add_equipment_production = { #Sevastopol
			equipment = {
				type = frigate_hull_1
				creator = UKR
				version_name = "Pr. 1135 'Burevestnik'"
			}
			name = "U132 Sevastopol"
			requested_factories = 1
			progress = 0.4
			amount = 1
		}

		set_temp_variable = { percent_change = 0.07 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
	}
}

country_event = {
	id = ukraine_reorganize_navy_maintain_1241.1
	title = ukraine_reorganize_navy_maintain_1241.1.name
	desc = ukraine_reorganize_navy_maintain_1241.1.desc
	picture = GFX_ukraine_reorganize_navy_maintain_1241
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_maintain_1241.1.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_maintain_1241.1.a executed"
		trigger = {
			669 = { #Crimea
				dockyard > 0
			}
		}
		set_temp_variable = { treasury_change = -0.12 }
		modify_treasury_effect = yes
		669 = { #Crimea
			if = {
				limit = { dockyard > 0 }
				remove_building = { type = dockyard level = 1 }
			}
		}
		set_temp_variable = { percent_change = 0.08 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		country_event = {
			id = ukraine_reorganize_navy_maintain_1241.2
			days = 180
		}
	}

	option = {
		name = ukraine_reorganize_navy_maintain_1241.1.b
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_maintain_1241.1.b executed"
		trigger = {
			669 = { #Crimea
				dockyard > 0
			}
		}
		set_temp_variable = { treasury_change = -0.08 }
		modify_treasury_effect = yes
		669 = { #Crimea
			if = {
				limit = { dockyard > 0 }
				remove_building = { type = dockyard level = 1 }
			}
		}
		set_temp_variable = { percent_change = 0.03 }
		change_domestic_influence_percentage = yes
		country_event = {
			id = ukraine_reorganize_navy_maintain_1241.5
			days = 240
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_maintain_1241.2
	title = ukraine_reorganize_navy_maintain_1241.2.name
	desc = ukraine_reorganize_navy_maintain_1241.2.desc
	picture = GFX_ukraine_reorganize_navy_maintain_1241_kremenchuk
	is_triggered_only = yes

	trigger = {
		tag = UKR
		country_exists = SOV
	}

	option = {
		name = ukraine_reorganize_navy_maintain_1241.2.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_maintain_1241.2.a executed"

		set_temp_variable = { treasury_change = -0.07 }
		modify_treasury_effect = yes

		SOV = {
			create_production_license = {
				target = UKR
				equipment = {
					type = corvette_hull_2
					version_name = "Tarantul Class"
				}
				cost_factor = 0
			}
		}

		create_ship = {
			type = corvette_hull_2
			equipment_variant = "Tarantul Class"
			creator = SOV
			name = "U156 Kremenchuk"
		}

		set_temp_variable = { percent_change = 0.03 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes

		country_event = {
			id = ukraine_reorganize_navy_maintain_1241.3
			days = 120
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_maintain_1241.3
	title = ukraine_reorganize_navy_maintain_1241.3.name
	desc = ukraine_reorganize_navy_maintain_1241.3.desc
	picture = GFX_ukraine_reorganize_navy_maintain_1241_uzhhorod
	is_triggered_only = yes

	trigger = {
		tag = UKR
		country_exists = SOV
	}

	option = {
		name = ukraine_reorganize_navy_maintain_1241.3.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_maintain_1241.3.a executed"
		SOV = {
			create_production_license = {
				target = UKR
				equipment = {
					type = corvette_hull_2
					version_name = "Pauk Class"
				}
				cost_factor = 0
			}
		}
		create_ship = {
			type = corvette_hull_2
			equipment_variant = "Pauk Class"
			creator = SOV
			name = "U207 Uzhhorod"
		}
		set_temp_variable = { treasury_change = -0.06 }
		modify_treasury_effect = yes
		set_temp_variable = { percent_change = 0.02 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		country_event = {
			id = ukraine_reorganize_navy_maintain_1241.4
			days = 90
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_maintain_1241.4
	title = ukraine_reorganize_navy_maintain_1241.4.name
	desc = ukraine_reorganize_navy_maintain_1241.4.desc
	picture = GFX_ukraine_reorganize_navy_maintain_1241_khmelnytskyi
	is_triggered_only = yes

	trigger = {
		tag = UKR
		country_exists = SOV
	}

	option = {
		name = ukraine_reorganize_navy_maintain_1241.4.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_maintain_1241.4.a executed"
		SOV = {
			create_production_license = {
				target = UKR
				equipment = {
					type = corvette_hull_2
					version_name = "Pauk Class"
				}
				cost_factor = 0
			}
		}
		create_ship = {
			type = corvette_hull_2
			equipment_variant = "Pauk Class"
			creator = SOV
			name = "U208 Khmelnytskyi"
		}
		set_temp_variable = { treasury_change = -0.02 }
		modify_treasury_effect = yes
		set_temp_variable = { percent_change = 0.01 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		669 = { #Crimea
			add_building_construction = {
				type = dockyard
				level = 1
				instant_build = yes
			}
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_maintain_1241.5
	title = ukraine_reorganize_navy_maintain_1241.5.name
	desc = ukraine_reorganize_navy_maintain_1241.5.desc
	picture = GFX_ukraine_reorganize_navy_maintain_1241_khmelnytskyi
	is_triggered_only = yes

	trigger = {
		tag = UKR
		country_exists = SOV
	}

	option = {
		name = ukraine_reorganize_navy_maintain_1241.5.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_maintain_1241.5.a executed"
		SOV = {
			create_production_license = {
				target = UKR
				equipment = {
					type = corvette_hull_2
					version_name = "Pauk Class"
				}
				cost_factor = 0
			}
		}
		create_ship = {
			type = corvette_hull_2
			equipment_variant = "Pauk Class"
			creator = SOV
			name = "U208 Khmelnytskyi"
		}
		669 = { #Crimea
			add_building_construction = {
				type = dockyard
				level = 1
				instant_build = yes
			}
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_finish_11451.1
	title = ukraine_reorganize_navy_finish_11451.1.name
	desc = ukraine_reorganize_navy_finish_11451.1.desc
	picture = GFX_ukraine_reorganize_navy_finish_11451
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_finish_11451.1.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_finish_11451.1.a executed"
		set_temp_variable = { treasury_change = -0.36 }
		modify_treasury_effect = yes
		if = {
			limit = {
				NOT = {
					has_tech = tech_vls_aa_2
				}
			}
			set_technology = { tech_vls_aa_2 = 1 }
		}
		if = {
			limit = {
				NOT = {
					has_tech = corvette_hull_3
				}
			}
			set_technology = { corvette_hull_3 = 1 }
		}
		#Project 1145.1
		create_equipment_variant = {
			name = "Project 11451 Class"
			type = corvette_hull_3
			name_group = UKR_COR_CITIES
			role_icon_index = 1
			design_team = mio:UKR_more_shipyard_naval_manufacturer
			parent_version = 0
			show_position = no
			modules = {
				fixed_ship_engine_slot = module_light_surface_jet_turbine_power2
				fixed_ship_fire_control_system_slot = module_analog_fire_control
				fixed_ship_radar_slot = module_radar_2
				fixed_ship_auxillary_slot = module_torpedoes_1
				fixed_ship_battery_slot = module_76mm_gun_2
				front_1_custom_slot = module_naval_missile_mount_single
				fixed_ship_missile_ammo_slot = module_naval_ammo_air_defense_2
			}
			obsolete = yes
			icon = "gfx/interface/technologies/UKR/NAV/Corvette-02-Project-11451.dds"
			model = "patrol_boat_entity"
		}
		add_equipment_production = { #Lviv
			equipment = {
				type = corvette_hull_3
				version_name = "Project 11451 Class"
			}
			name = "U201 Lviv"
			requested_factories = 1
			progress = 0.85
			amount = 1
			industrial_manufacturer = mio:UKR_more_shipyard_naval_manufacturer
		}
		add_equipment_production = { #Luhansk
			equipment = {
				type = corvette_hull_3
				version_name = "Project 11451 Class"
			}
			name = "U203 Luhansk"
			requested_factories = 1
			progress = 0.55
			amount = 1
			industrial_manufacturer = mio:UKR_more_shipyard_naval_manufacturer
		}
		669 = { #Crimea
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.03
				}
			}
		}
		set_temp_variable = { percent_change = 0.04 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		set_country_flag = UKR_reorganize_navy_finish_11451_construction_flag
	}

	option = {
		name = ukraine_reorganize_navy_finish_11451.1.b
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_finish_11451.1.b executed"
		set_temp_variable = { treasury_change = -0.16 }
		modify_treasury_effect = yes
		if = {
			limit = {
				NOT = {
					has_tech = tech_vls_aa_2
				}
			}
			set_technology = { tech_vls_aa_2 = 1 }
		}
		if = {
			limit = {
				NOT = {
					has_tech = corvette_hull_3
				}
			}
			set_technology = { corvette_hull_3 = 1 }
		}
		#Project 1145.1
		create_equipment_variant = {
			name = "Project 11451 Class"
			type = corvette_hull_3
			name_group = UKR_COR_CITIES
			role_icon_index = 1
			parent_version = 0
			show_position = no
			modules = {
				fixed_ship_engine_slot = module_light_surface_jet_turbine_power2
				fixed_ship_fire_control_system_slot = module_analog_fire_control
				fixed_ship_radar_slot = module_radar_2
				fixed_ship_auxillary_slot = module_torpedoes_1
				fixed_ship_battery_slot = module_76mm_gun_2
				front_1_custom_slot = module_naval_missile_mount_single
				fixed_ship_missile_ammo_slot = module_naval_ammo_air_defense_2
			}
			obsolete = yes
			icon = "gfx/interface/technologies/UKR/NAV/Corvette-02-Project-11451.dds"
		}
		add_equipment_production = { #Lviv
			equipment = {
				type = corvette_hull_3
				version_name = "Project 11451 Class"
			}
			name = "U201 Lviv"
			requested_factories = 1
			progress = 0.85
			amount = 1
			industrial_manufacturer = mio:UKR_more_shipyard_naval_manufacturer
		}
		669 = {
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.01
				}
			}
		}
		set_temp_variable = { percent_change = 0.02 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		set_country_flag = UKR_reorganize_navy_finish_11451_construction_flag
	}
}

country_event = {
	id = ukraine_reorganize_navy_maintain_641_submarine.1
	title = ukraine_reorganize_navy_maintain_641_submarine.1.name
	desc = ukraine_reorganize_navy_maintain_641_submarine.1.desc
	picture = GFX_ukraine_reorganize_navy_maintain_641_submarine
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_maintain_641_submarine.1.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_maintain_641_submarine.1.a executed"
		trigger = {
			SOV = {
				has_opinion = {
					target = UKR
					value > 49
				}
			}
		}
		set_temp_variable = { treasury_change = -0.12 }
		modify_treasury_effect = yes
		set_temp_variable = { percent_change = 0.05 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		add_popularity = {
			ideology = communism
			popularity = 0.02
		}
		recalculate_party = yes
		country_event = {
			id = ukraine_reorganize_navy_maintain_641_submarine.2
			days = 180
			random_days = 20
			random_hours = 12
		}
		set_country_flag = ukraine_reorganize_navy_maintain_641_submarine_batteries_from_RUS_flag
	}

	option = {
		name = ukraine_reorganize_navy_maintain_641_submarine.1.b
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_maintain_641_submarine.1.b executed"
		trigger = {
			GRE = {
				has_opinion = {
					target = UKR
					value > 19
				}
			}
		}
		set_temp_variable = { treasury_change = -0.18 }
		modify_treasury_effect = yes
		set_temp_variable = { percent_change = 0.05 }
		set_temp_variable = { tag_index = GRE.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		add_popularity = {
			ideology = communism
			popularity = -0.02
		}
		recalculate_party = yes
		add_popularity = {
			ideology = democratic
			popularity = 0.03
		}
		recalculate_party = yes
		country_event = {
			id = ukraine_reorganize_navy_maintain_641_submarine.2
			days = 360
			random_days = 30
			random_hours = 12
		}
		set_country_flag = ukraine_reorganize_navy_maintain_641_submarine_batteries_from_GRE_flag
	}

	option = {
		name = ukraine_reorganize_navy_maintain_641_submarine.1.c
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_maintain_641_submarine.1.c executed"
		set_temp_variable = { percent_change = 0.1 }
		change_domestic_influence_percentage = yes
		navy_experience = 2
		set_temp_variable = { treasury_change = -0.36 }
		modify_treasury_effect = yes
		mio:UKR_nikolayev_shipyard_naval_manufacturer = {
			add_mio_funds = 400
			add_mio_funds_gain_factor = 0.05
			add_mio_research_bonus = 0.15
		}
		country_event = {
			id = ukraine_reorganize_navy_maintain_641_submarine.3
			days = 720
			random_days = 60
			random_hours = 12
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_maintain_641_submarine.2
	title = ukraine_reorganize_navy_maintain_641_submarine.2.name
	desc = ukraine_reorganize_navy_maintain_641_submarine.2.desc
	picture = GFX_ukraine_reorganize_navy_maintain_641_submarine
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_maintain_641_submarine.2.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_maintain_641_submarine.2.a executed"
		if = {
			limit = { has_country_flag = ukraine_reorganize_navy_maintain_641_submarine_batteries_from_RUS_flag }
			set_temp_variable = { percent_change = 0.02 }
			set_temp_variable = { tag_index = SOV.id }
			set_temp_variable = { influence_target = UKR.id }
			change_influence_percentage = yes
			country_event = {
				id = ukraine_reorganize_navy_maintain_641_submarine.4
				days = 360
				random_days = 60
				random_hours = 12
			}
		}
	}

	option = {
		name = ukraine_reorganize_navy_maintain_641_submarine.2.b
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_maintain_641_submarine.2.b executed"
		if = {
			limit = { has_country_flag = ukraine_reorganize_navy_maintain_641_submarine_batteries_from_GRE_flag }
			set_temp_variable = { percent_change = 0.02 }
			set_temp_variable = { tag_index = GRE.id }
			set_temp_variable = { influence_target = UKR.id }
			change_influence_percentage = yes
			country_event = {
				id = ukraine_reorganize_navy_maintain_641_submarine.4
				days = 360
				random_days = 60
				random_hours = 12
			}
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_maintain_641_submarine.3
	title = ukraine_reorganize_navy_maintain_641_submarine.3.name
	desc = ukraine_reorganize_navy_maintain_641_submarine.3.desc
	picture = GFX_ukraine_reorganize_navy_maintain_641_submarine
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_maintain_641_submarine.3.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_maintain_641_submarine.3.a executed"
		set_temp_variable = { percent_change = 0.05 }
		change_domestic_influence_percentage = yes
		navy_experience = 2
		set_temp_variable = { treasury_change = -0.12 }
		modify_treasury_effect = yes
		mio:UKR_nikolayev_shipyard_naval_manufacturer = {
			add_mio_funds = 200
			add_mio_funds_gain_factor = 0.05
			add_mio_research_bonus = 0.1
		}
		country_event = {
			id = ukraine_reorganize_navy_maintain_641_submarine.4
			days = 360
			random_days = 60
			random_hours = 12
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_maintain_641_submarine.4
	title = ukraine_reorganize_navy_maintain_641_submarine.4.name
	desc = ukraine_reorganize_navy_maintain_641_submarine.4.desc
	picture = GFX_ukraine_reorganize_navy_maintain_641_submarine
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_maintain_641_submarine.4.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_maintain_641_submarine.4.a executed"
		news_event = {
			id = ukraine_reorganize_navy_maintain_641_submarine.5
			days = 180
			random_days = 30
			random_hours = 12
		}
	}

	option = {
		name = ukraine_reorganize_navy_maintain_641_submarine.4.b
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_maintain_641_submarine.4.b executed"
		set_temp_variable = { percent_change = 0.08 }
		change_domestic_influence_percentage = yes
		navy_experience = 2
		add_equipment_bonus = {
			name = ukraine_reorganize_navy_maintain_641_submarine_extended_sea_trials_bonus
			bonus = { attack_submarine_hull_1 = { reliability = 0.1 } }
		}
		news_event = {
			id = ukraine_reorganize_navy_maintain_641_submarine.5
			days = 360
			random_days = 60
			random_hours = 12
		}
	}
}

news_event = {
	id = ukraine_reorganize_navy_maintain_641_submarine.5
	title = ukraine_reorganize_navy_maintain_641_submarine.5.name
	desc = ukraine_reorganize_navy_maintain_641_submarine.5.desc
	picture = GFX_ukraine_reorganize_navy_maintain_641_submarine_finish
	is_triggered_only = yes

	trigger = {
		tag = UKR
		country_exists = SOV
	}

	option = {
		name = ukraine_reorganize_navy_maintain_641_submarine.5.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_maintain_641_submarine.5.a executed"
		if = {
			limit = {
				NOT = {
					has_tech = attack_submarine_hull_1
				}
			}
			set_technology = { attack_submarine_hull_1 = 1 }
		}
		if = {
			limit = {
				NOT = {
					has_tech = tech_submarine_engineering_1
				}
			}
			set_technology = { tech_submarine_engineering_1 = 1 }
		}
		if = {
			limit = {
				NOT = {
					has_tech = tech_submarine_engineering_2
				}
			}
			set_technology = { tech_submarine_engineering_2 = 1 }
		}
		SOV = {
			create_production_license = {
				target = UKR
				equipment = {
					type = attack_submarine_hull_1
					version_name = "Foxtrot Class"
				}
				cost_factor = 0
			}
		}
		create_ship = {
			type = attack_submarine_hull_1
			equipment_variant = "Foxtrot Class"
			creator = SOV
			name = "U01 Zaporizhzhia"
		}
		669 = { #Crimea
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.03
				}
			}
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_finish_ukrayina.1
	title = ukraine_reorganize_navy_finish_ukrayina.1.name
	desc = ukraine_reorganize_navy_finish_ukrayina.1.desc
	picture = GFX_ukraine_reorganize_navy_finish_ukrayina
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_finish_ukrayina.1.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_finish_ukrayina.1.a executed"
		trigger = {
			SOV = {
				has_opinion = {
					target = UKR
					value > 49
				}
			}
		}
		set_temp_variable = { treasury_change = -0.8 }
		modify_treasury_effect = yes
		set_temp_variable = { percent_change = 0.15 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		add_popularity = {
			ideology = communism
			popularity = 0.03
		}
		recalculate_party = yes
		country_event = ukraine_reorganize_navy_finish_ukrayina.2
	}

	option = {
		name = ukraine_reorganize_navy_finish_ukrayina.1.b
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_finish_ukrayina.1.b executed"
		trigger = {
			OR = {
				USA = {
					has_opinion = {
						target = UKR
						value > 29
					}
				}
				FRA = {
					has_opinion = {
						target = UKR
						value > 19
					}
				}
			}
		}
		set_temp_variable = { treasury_change = -1.3 }
		modify_treasury_effect = yes
		set_temp_variable = { percent_change = 0.05 }
		set_temp_variable = { tag_index = USA.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = 0.05 }
		set_temp_variable = { tag_index = FRA.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = 0.02 }
		set_temp_variable = { tag_index = ENG.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = 0.02 }
		set_temp_variable = { tag_index = GER.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = 0.02 }
		set_temp_variable = { tag_index = ITA.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = 0.02 }
		set_temp_variable = { tag_index = SWE.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		add_popularity = {
			ideology = communism
			popularity = -0.08
		}
		recalculate_party = yes
		add_popularity = {
			ideology = democratic
			popularity = 0.08
		}
		recalculate_party = yes
		country_event = ukraine_reorganize_navy_finish_ukrayina.4
	}
}

country_event = {
	id = ukraine_reorganize_navy_finish_ukrayina.2
	title = ukraine_reorganize_navy_finish_ukrayina.2.name
	desc = ukraine_reorganize_navy_finish_ukrayina.2.desc
	picture = GFX_ukraine_reorganize_navy_finish_ukrayina
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_finish_ukrayina.2.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_finish_ukrayina.2.a executed"
		set_temp_variable = { treasury_change = -1.2 }
		modify_treasury_effect = yes
		set_temp_variable = { percent_change = 0.1 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		add_popularity = {
			ideology = communism
			popularity = 0.03
		}
		recalculate_party = yes
		country_event = {
			id = ukraine_reorganize_navy_finish_ukrayina.3
			days = 240
			random_days = 30
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_finish_ukrayina.3
	title = ukraine_reorganize_navy_finish_ukrayina.3.name
	desc = ukraine_reorganize_navy_finish_ukrayina.3.desc
	picture = GFX_ukraine_reorganize_navy_finish_ukrayina
	is_triggered_only = yes

	trigger = {
		tag = UKR
		country_exists = SOV
	}

	option = {
		name = ukraine_reorganize_navy_finish_ukrayina.3.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_finish_ukrayina.3.a executed"
		if = {
			limit = {
				NOT = {
					has_tech = cruiser_hull_1
				}
			}
			set_technology = { cruiser_hull_1 = 1 }
		}
		if = {
			limit = {
				NOT = {
					has_tech = cruiser_hull_2
				}
			}
			set_technology = { cruiser_hull_2 = 1 }
		}
		SOV = {
			create_production_license = {
				target = UKR
				equipment = {
					type = cruiser_hull_2
					version_name = "Slava Class"
				}
				cost_factor = 0
			}
		}
		add_equipment_production = { #Ukrayina
			equipment = {
				type = cruiser_hull_2
				creator = SOV
				version_name = "Slava Class"
			}
			name = "U101 Ukrayina"
			requested_factories = 1
			progress = 0.80
			amount = 1
			industrial_manufacturer = mio:UKR_nikolayev_shipyard_naval_manufacturer
		}
		1086 = { #Mykolayiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.09
				}
			}
		}
		set_temp_variable = { percent_change = 0.04 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
	}
}

country_event = {
	id = ukraine_reorganize_navy_finish_ukrayina.4
	title = ukraine_reorganize_navy_finish_ukrayina.4.name
	desc = ukraine_reorganize_navy_finish_ukrayina.4.desc
	picture = GFX_ukraine_reorganize_navy_finish_ukrayina
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_finish_ukrayina.4.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_finish_ukrayina.4.a executed"
		trigger = {
			USA = {
				has_opinion = {
					target = UKR
					value > 39
				}
			}
		}
		set_temp_variable = { treasury_change = -0.2 }
		modify_treasury_effect = yes
		set_temp_variable = { percent_change = -0.15 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = 0.06 }
		set_temp_variable = { tag_index = USA.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		add_popularity = {
			ideology = democratic
			popularity = 0.06
		}
		recalculate_party = yes
		add_popularity = {
			ideology = communism
			popularity = -0.03
		}
		recalculate_party = yes
		country_event = {
			id = ukraine_reorganize_navy_finish_ukrayina.5
			days = 120
			random_days = 30
		}
	}

	option = {
		name = ukraine_reorganize_navy_finish_ukrayina.4.b
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_finish_ukrayina.4.b executed"
		trigger = {
			FRA = {
				has_opinion = {
					target = UKR
					value > 24
				}
			}
		}
		set_temp_variable = { treasury_change = -0.2 }
		modify_treasury_effect = yes
		set_temp_variable = { percent_change = -0.15 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = 0.06 }
		set_temp_variable = { tag_index = FRA.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		add_popularity = {
			ideology = democratic
			popularity = 0.06
		}
		recalculate_party = yes
		add_popularity = {
			ideology = communism
			popularity = -0.03
		}
		recalculate_party = yes
		country_event = {
			id = ukraine_reorganize_navy_finish_ukrayina.6
			days = 120
			random_days = 30
		}
	}

	option = {
		name = ukraine_reorganize_navy_finish_ukrayina.4.c
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_finish_ukrayina.4.c executed"
		trigger = {
			SWE = {
				has_opinion = {
					target = UKR
					value > 19
				}
			}
		}
		set_temp_variable = { treasury_change = -0.2 }
		modify_treasury_effect = yes
		set_temp_variable = { percent_change = -0.10 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = 0.05 }
		set_temp_variable = { tag_index = SWE.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		add_popularity = {
			ideology = democratic
			popularity = 0.05
		}
		recalculate_party = yes
		add_popularity = {
			ideology = communism
			popularity = -0.03
		}
		recalculate_party = yes
		country_event = {
			id = ukraine_reorganize_navy_finish_ukrayina.7
			days = 90
			random_days = 30
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_finish_ukrayina.5
	title = ukraine_reorganize_navy_finish_ukrayina.5.name
	desc = ukraine_reorganize_navy_finish_ukrayina.5.desc
	picture = GFX_ukraine_reorganize_navy_finish_ukrayina
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_finish_ukrayina.5.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_finish_ukrayina.5.a executed"
		set_temp_variable = { treasury_change = -1.6 }
		modify_treasury_effect = yes
		set_temp_variable = { percent_change = 0.1 }
		set_temp_variable = { tag_index = USA.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		add_popularity = {
			ideology = democratic
			popularity = 0.03
		}
		recalculate_party = yes
		news_event = {
			id = ukraine_reorganize_navy_finish_ukrayina.11
			days = 540
			random_days = 30
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_finish_ukrayina.6
	title = ukraine_reorganize_navy_finish_ukrayina.6.name
	desc = ukraine_reorganize_navy_finish_ukrayina.6.desc
	picture = GFX_ukraine_reorganize_navy_finish_ukrayina
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_finish_ukrayina.6.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_finish_ukrayina.6.a executed"
		set_temp_variable = { treasury_change = -1.4 }
		modify_treasury_effect = yes
		set_temp_variable = { percent_change = 0.1 }
		set_temp_variable = { tag_index = FRA.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		add_popularity = {
			ideology = democratic
			popularity = 0.03
		}
		recalculate_party = yes
		news_event = {
			id = ukraine_reorganize_navy_finish_ukrayina.11
			days = 540
			random_days = 30
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_finish_ukrayina.7
	title = ukraine_reorganize_navy_finish_ukrayina.7.name
	desc = ukraine_reorganize_navy_finish_ukrayina.7.desc
	picture = GFX_ukraine_reorganize_navy_finish_ukrayina
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_finish_ukrayina.7.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_finish_ukrayina.7.a executed"
		set_temp_variable = { treasury_change = -0.6 }
		modify_treasury_effect = yes
		set_temp_variable = { percent_change = 0.1 }
		set_temp_variable = { tag_index = SWE.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		add_popularity = {
			ideology = democratic
			popularity = 0.02
		}
		recalculate_party = yes
		country_event = {
			id = ukraine_reorganize_navy_finish_ukrayina.8
			days = 360
			random_days = 30
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_finish_ukrayina.8
	title = ukraine_reorganize_navy_finish_ukrayina.8.name
	desc = ukraine_reorganize_navy_finish_ukrayina.8.desc
	picture = GFX_ukraine_reorganize_navy_finish_ukrayina
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_finish_ukrayina.8.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_finish_ukrayina.8.a executed"
		trigger = {
			USA = {
				has_opinion = {
					target = UKR
					value > 34
				}
			}
		}
		set_temp_variable = { treasury_change = -0.2 }
		modify_treasury_effect = yes
		set_temp_variable = { percent_change = -0.15 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = 0.06 }
		set_temp_variable = { tag_index = USA.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		add_popularity = {
			ideology = democratic
			popularity = 0.03
		}
		recalculate_party = yes
		add_popularity = {
			ideology = communism
			popularity = -0.02
		}
		recalculate_party = yes
		country_event = {
			id = ukraine_reorganize_navy_finish_ukrayina.9
			days = 180
			random_days = 30
		}
	}

	option = {
		name = ukraine_reorganize_navy_finish_ukrayina.8.b
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_finish_ukrayina.8.b executed"
		trigger = {
			FRA = {
				has_opinion = {
					target = UKR
					value > 24
				}
			}
		}
		set_temp_variable = { treasury_change = -0.2 }
		modify_treasury_effect = yes
		set_temp_variable = { percent_change = -0.15 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = 0.06 }
		set_temp_variable = { tag_index = FRA.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		add_popularity = {
			ideology = democratic
			popularity = 0.03
		}
		recalculate_party = yes
		add_popularity = {
			ideology = communism
			popularity = -0.02
		}
		recalculate_party = yes
		country_event = {
			id = ukraine_reorganize_navy_finish_ukrayina.10
			days = 180
			random_days = 30
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_finish_ukrayina.9
	title = ukraine_reorganize_navy_finish_ukrayina.9.name
	desc = ukraine_reorganize_navy_finish_ukrayina.9.desc
	picture = GFX_ukraine_reorganize_navy_finish_ukrayina
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_finish_ukrayina.9.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_finish_ukrayina.9.a executed"
		set_temp_variable = { treasury_change = -0.8 }
		modify_treasury_effect = yes
		set_temp_variable = { percent_change = 0.1 }
		set_temp_variable = { tag_index = USA.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		add_popularity = {
			ideology = democratic
			popularity = 0.03
		}
		recalculate_party = yes
		news_event = {
			id = ukraine_reorganize_navy_finish_ukrayina.11
			days = 180
			random_days = 30
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_finish_ukrayina.10
	title = ukraine_reorganize_navy_finish_ukrayina.10.name
	desc = ukraine_reorganize_navy_finish_ukrayina.10.desc
	picture = GFX_ukraine_reorganize_navy_finish_ukrayina
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_finish_ukrayina.10.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_finish_ukrayina.10.a executed"
		set_temp_variable = { treasury_change = -0.7 }
		modify_treasury_effect = yes
		set_temp_variable = { percent_change = 0.1 }
		set_temp_variable = { tag_index = FRA.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		add_popularity = {
			ideology = democratic
			popularity = 0.03
		}
		recalculate_party = yes
		news_event = {
			id = ukraine_reorganize_navy_finish_ukrayina.11
			days = 180
			random_days = 30
		}
	}
}

news_event = {
	id = ukraine_reorganize_navy_finish_ukrayina.11
	title = ukraine_reorganize_navy_finish_ukrayina.11.name
	desc = ukraine_reorganize_navy_finish_ukrayina.11.desc
	picture = GFX_ukraine_reorganize_navy_finish_ukrayina_construction
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_finish_ukrayina.11.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_finish_ukrayina.11.a executed"
		if = {
			limit = {
				NOT = {
					has_tech = cruiser_hull_1
				}
			}
			set_technology = { cruiser_hull_1 = 1 }
		}
		if = {
			limit = {
				NOT = {
					has_tech = cruiser_hull_2
				}
			}
			set_technology = { cruiser_hull_2 = 1 }
		}
		if = {
			limit = {
				NOT = {
					has_tech = tech_vls_surface_1
				}
			}
			set_technology = { tech_vls_surface_1 = 1 }
		}
		if = {
			limit = {
				NOT = {
					has_tech = tech_vls_surface_2
				}
			}
			set_technology = { tech_vls_surface_2 = 1 }
		}
		if = {
			limit = {
				NOT = {
					has_tech = tech_vls_surface_3
				}
			}
			set_technology = { tech_vls_surface_3 = 1 }
		}
		if = {
			limit = {
				NOT = {
					has_tech = tech_vls_surface_4
				}
			}
			set_technology = { tech_vls_surface_4 = 1 }
		}
		#Project 1164U Class
		create_equipment_variant = {
			name = "Project 1164U Class"
			type = cruiser_hull_2
			name_group = UKR_CA
			role_icon_index = 15
			parent_version = 0
			allow_without_tech = yes
			show_position = no
			modules = {
				fixed_ship_engine_slot = module_surface_jet_turbine_power2
				fixed_ship_fire_control_system_slot = module_digital_integrated_fire_control
				fixed_ship_radar_slot = module_radar_4
				fixed_ship_battery_slot_4 = module_torpedoes_2
				fixed_ship_battery_slot_3 = module_naval_missile_mount_quad
				fixed_ship_battery_slot_2 = module_esm_2
				fixed_ship_battery_slot = module_127mm_guns_2
				front_1_custom_slot = module_naval_missile_mount_quad
				front_2_custom_slot = module_ciws_2
				mid_1_custom_slot = module_anti_submarine_mortar
				mid_2_custom_slot = module_ciws_2
				rear_1_custom_slot = module_naval_missile_mount_quad
				rear_2_custom_slot = module_light_helipad_1
				fixed_ship_missile_ammo_slot = module_naval_ammo_balanced_4
			}
			obsolete = yes
			icon = "gfx/interface/technologies/UKR/NAV/CA2_MLU.dds"
			model = "SOV_nuclear_cruiser_entity"
			design_team = mio:UKR_nikolayev_shipyard_naval_manufacturer
		}
		add_equipment_production = { #Ukrayina
			equipment = {
				type = cruiser_hull_2
				version_name = "Project 1164U Class"
			}
			requested_factories = 1
			progress = 0.65
			amount = 1
			industrial_manufacturer = mio:UKR_nikolayev_shipyard_naval_manufacturer
		}
		1086 = { #Mykolayiv
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.09
				}
			}
		}
		set_temp_variable = { percent_change = 0.04 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
	}
}

country_event = {
	id = ukraine_reorganize_navy_repair_rivne.1
	title = ukraine_reorganize_navy_repair_rivne.1.name
	desc = ukraine_reorganize_navy_repair_rivne.1.desc
	picture = GFX_ukraine_reorganize_navy_repair_rivne
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_repair_rivne.1.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_repair_rivne.1.a executed"
		set_temp_variable = { treasury_change = -0.04 }
		modify_treasury_effect = yes
		country_event = {
			id = ukraine_reorganize_navy_repair_rivne.2
			days = 240
			random_days = 60
		}
	}

	option = {
		name = ukraine_reorganize_navy_repair_rivne.1.b
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_repair_rivne.1.b executed"
		set_temp_variable = { treasury_change = -0.01 }
		modify_treasury_effect = yes
		country_event = {
			id = ukraine_reorganize_navy_repair_rivne.3
			days = 100
			random_days = 20
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_repair_rivne.2
	title = ukraine_reorganize_navy_repair_rivne.2.name
	desc = ukraine_reorganize_navy_repair_rivne.2.desc
	picture = GFX_ukraine_reorganize_navy_repair_rivne
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_repair_rivne.2.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_repair_rivne.2.a executed"
		navy_experience = 1
		create_ship = {
			type = helicopter_operator_hull_1
			equipment_variant = "Alligator III Class"
			creator = SOV
			name = "U402 Rivne"
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_repair_rivne.3
	title = ukraine_reorganize_navy_repair_rivne.3.name
	desc = ukraine_reorganize_navy_repair_rivne.3.desc
	picture = GFX_ukraine_reorganize_navy_repair_rivne
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_repair_rivne.3.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_repair_rivne.3.a executed"
		navy_experience = 1
		create_equipment_variant = {
			name = "Pr. 1171T"
			type = support_ship_1
			parent_version = 0
		}
		create_ship = {
			type = support_ship_1
			equipment_variant = "Pr. 1171T"
			name = "U762 Rivne"
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_repair_support_ships.1
	title = ukraine_reorganize_navy_repair_support_ships.1.name
	desc = ukraine_reorganize_navy_repair_support_ships.1.desc
	picture = GFX_ukraine_reorganize_navy_repair_support_ships
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_repair_support_ships.1.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_repair_support_ships.1.a executed"
		set_temp_variable = { treasury_change = -0.03 }
		modify_treasury_effect = yes
		669 = { #Crimea
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.02
				}
			}
		}
		1085 = { #Kherson
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.01
				}
			}
		}
		set_temp_variable = { percent_change = 0.04 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		country_event = {
			id = ukraine_reorganize_navy_repair_support_ships.2
			days = 60
			random_days = 10
		}
	}

	option = {
		name = ukraine_reorganize_navy_repair_support_ships.1.b
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_repair_support_ships.1.b executed"
		set_temp_variable = { treasury_change = -0.02 }
		modify_treasury_effect = yes
		669 = { #Crimea
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.01
				}
			}
		}
		set_temp_variable = { percent_change = 0.02 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		country_event = {
			id = ukraine_reorganize_navy_repair_support_ships.3
			days = 60
			random_days = 10
		}
	}

	option = {
		name = ukraine_reorganize_navy_repair_support_ships.1.c
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_repair_support_ships.1.c executed"
		set_temp_variable = { treasury_change = -0.01 }
		modify_treasury_effect = yes
		669 = { #Crimea
			add_state_modifier = {
				modifier = {
					state_productivity_growth_modifier = 0.01
				}
			}
		}
		set_temp_variable = { percent_change = 0.01 }
		set_temp_variable = { tag_index = SOV.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		country_event = {
			id = ukraine_reorganize_navy_repair_support_ships.4
			days = 40
			random_days = 10
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_repair_support_ships.2
	title = ukraine_reorganize_navy_repair_support_ships.2.name
	desc = ukraine_reorganize_navy_repair_support_ships.2.desc
	picture = GFX_ukraine_reorganize_navy_repair_support_ships
	is_triggered_only = yes

	trigger = {
		tag = UKR
		country_exists = SOV
	}

	option = {
		name = ukraine_reorganize_navy_repair_support_ships.2.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_repair_support_ships.2.a executed"
		set_temp_variable = { treasury_change = -0.12 }
		modify_treasury_effect = yes
		country_event = {
			id = ukraine_reorganize_navy_repair_support_ships.5
			days = 360
			random_days = 60
		}
	}

	option = {
		name = ukraine_reorganize_navy_repair_support_ships.2.b
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_repair_support_ships.2.b executed"
		set_temp_variable = { treasury_change = -0.03 }
		modify_treasury_effect = yes
		if = {
			limit = { NOT = { has_tech = tech_landing_craft_3 } }
			set_technology = { tech_landing_craft_3 = 1 }
		}
		SOV = {
			create_production_license = {
				target = UKR
				equipment = {
					type = support_ship_1
					version_name = "Pr. 1559-V 'Morskoy Prostor'"
				}
				cost_factor = 0
			}
		}
		add_equipment_production = {
			equipment = {
				type = support_ship_1
				creator = SOV
				version_name = "Pr. 1559-V 'Morskoy Prostor'"
			}
			name = "U757 Makiyivka"
			requested_factories = 1
			progress = 0.40
			amount = 1
		}
		SOV = {
			create_production_license = {
				target = UKR
				equipment = {
					type = support_ship_1
					version_name = "Dubna"
				}
				cost_factor = 0
			}
		}
		add_equipment_production = {
			equipment = {
				type = support_ship_1
				creator = SOV
				version_name = "Dubna"
			}
			name = "U758 Kerch"
			requested_factories = 1
			progress = 0.70
			amount = 1
		}
		SOV = {
			create_production_license = {
				target = UKR
				equipment = {
					type = repair_ship_1
					version_name = "Pr. 300"
				}
				cost_factor = 0
			}
		}
		add_equipment_production = {
			equipment = {
				type = repair_ship_1
				creator = SOV
				version_name = "Pr. 300"
			}
			name = "U802 Olviya"
			requested_factories = 1
			progress = 0.40
			amount = 1
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_repair_support_ships.3
	title = ukraine_reorganize_navy_repair_support_ships.3.name
	desc = ukraine_reorganize_navy_repair_support_ships.3.desc
	picture = GFX_ukraine_reorganize_navy_repair_support_ships
	is_triggered_only = yes

	trigger = {
		tag = UKR
		country_exists = SOV
	 }

	option = {
		name = ukraine_reorganize_navy_repair_support_ships.3.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_repair_support_ships.3.a executed"
		set_temp_variable = { treasury_change = -0.06 }
		modify_treasury_effect = yes
		country_event = {
			id = ukraine_reorganize_navy_repair_support_ships.6
			days = 180
			random_days = 30
		}
	}

	option = {
		name = ukraine_reorganize_navy_repair_support_ships.3.b
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_repair_support_ships.3.b executed"
		set_temp_variable = { treasury_change = -0.02 }
		modify_treasury_effect = yes
		SOV = {
			create_production_license = {
				target = UKR
				equipment = {
					type = support_ship_1
					version_name = "Dubna"
				}
				cost_factor = 0
			}
		}
		add_equipment_production = {
			equipment = {
				type = support_ship_1
				creator = SOV
				version_name = "Dubna"
			}
			name = "U758 Kerch"
			requested_factories = 1
			progress = 0.70
			amount = 1
		}
		SOV = {
			create_production_license = {
				target = UKR
				equipment = {
					type = repair_ship_1
					version_name = "Pr. 300"
				}
				cost_factor = 0
			}
		}
		add_equipment_production = {
			equipment = {
				type = repair_ship_1
				creator = SOV
				version_name = "Pr. 300"
			}
			name = "U802 Olviya"
			requested_factories = 1
			progress = 0.40
			amount = 1
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_repair_support_ships.4
	title = ukraine_reorganize_navy_repair_support_ships.4.name
	desc = ukraine_reorganize_navy_repair_support_ships.4.desc
	picture = GFX_ukraine_reorganize_navy_repair_support_ships
	is_triggered_only = yes

	trigger = {
		tag = UKR
		country_exists = SOV
	}

	option = {
		name = ukraine_reorganize_navy_repair_support_ships.4.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_repair_support_ships.4.a executed"
		set_temp_variable = { treasury_change = -0.04 }
		modify_treasury_effect = yes
		country_event = {
			id = ukraine_reorganize_navy_repair_support_ships.7
			days = 100
			random_days = 20
		}
	}

	option = {
		name = ukraine_reorganize_navy_repair_support_ships.4.b
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_repair_support_ships.4.b executed"
		set_temp_variable = { treasury_change = -0.01 }
		modify_treasury_effect = yes
		SOV = {
			create_production_license = {
				target = UKR
				equipment = {
					type = support_ship_1
					version_name = "Dubna"
				}
				cost_factor = 0
			}
		}
		add_equipment_production = {
			equipment = {
				type = support_ship_1
				creator = SOV
				version_name = "Dubna"
			}
			name = "U758 Kerch"
			requested_factories = 1
			progress = 0.80
			amount = 1
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_repair_support_ships.5
	title = ukraine_reorganize_navy_repair_support_ships.5.name
	desc = ukraine_reorganize_navy_repair_support_ships.5.desc
	picture = GFX_ukraine_reorganize_navy_repair_support_ships
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_repair_support_ships.5.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_repair_support_ships.5.a executed"
		add_political_power = 10
		if = {
			limit = { NOT = { has_tech = tech_landing_craft_3 } }
			set_technology = { tech_landing_craft_3 = 1 }
		}
		create_ship = {
			type = support_ship_1
			creator = SOV
			equipment_variant = "Pr. 1559-V 'Morskoy Prostor'"
			name = "U757 Makiyivka"
		}
		create_ship = {
			type = support_ship_1
			creator = SOV
			equipment_variant = "Dubna"
			name = "U758 Kerch"
		}
		create_ship = {
			type = repair_ship_1
			equipment_variant = "Pr. 300"
			creator = SOV
			name = "U802 Olviya"
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_repair_support_ships.6
	title = ukraine_reorganize_navy_repair_support_ships.6.name
	desc = ukraine_reorganize_navy_repair_support_ships.6.desc
	picture = GFX_ukraine_reorganize_navy_repair_support_ships
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_repair_support_ships.6.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_repair_support_ships.6.a executed"
		add_political_power = 5
		create_ship = {
			type = support_ship_1
			creator = SOV
			equipment_variant = "Dubna"
			name = "U758 Kerch"
		}
		create_ship = {
			type = repair_ship_1
			creator = SOV
			equipment_variant = "Pr. 300"
			name = "U802 Olviya"
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_repair_support_ships.7
	title = ukraine_reorganize_navy_repair_support_ships.7.name
	desc = ukraine_reorganize_navy_repair_support_ships.7.desc
	picture = GFX_ukraine_reorganize_navy_repair_support_ships
	is_triggered_only = yes

	trigger = { tag = UKR }

	option = {
		name = ukraine_reorganize_navy_repair_support_ships.7.a
		log = "[GetDateText]: [Root.GetName]: ukraine_reorganize_navy_repair_support_ships.7.a executed"
		add_political_power = 2
		create_ship = {

			type = support_ship_1
			creator = SOV
			equipment_variant = "Dubna"
			name = "U758 Kerch"
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_build_simferopol_recon_ship.1
	title = ukraine_reorganize_navy_build_simferopol_recon_ship.1.name
	desc = ukraine_reorganize_navy_build_simferopol_recon_ship.1.desc
	picture = GFX_ukraine_reorganize_navy_build_simferopol_recon_ship_kuznia
	is_triggered_only = yes

	option = {
		name = ukraine_reorganize_navy_build_simferopol_recon_ship.1.a
		log = "[GetDateText]: [This.GetName]: ukraine_reorganize_navy_build_simferopol_recon_ship.1.a executed"
		ai_chance = { base = 70 }
		set_country_flag = ukraine_reorganize_navy_built_simferopol_recon_ship_converted_hull_flag
		country_event = { id = ukraine_reorganize_navy_build_simferopol_recon_ship.2 days = 180 random_days = 60 }
	}

	option = {
		name = ukraine_reorganize_navy_build_simferopol_recon_ship.1.b
		log = "[GetDateText]: [This.GetName]: ukraine_reorganize_navy_build_simferopol_recon_ship.1.b executed"
		trigger = { check_variable = { treasury > 0.12 } }
		ai_chance = { base = 30 }
		set_temp_variable = { treasury_change = -0.12 }
		modify_treasury_effect = yes
		set_country_flag = ukraine_reorganize_navy_built_simferopol_recon_ship_purpose_built_hull_flag
		country_event = { id = ukraine_reorganize_navy_build_simferopol_recon_ship.2 days = 360 random_days = 90 }
	}

	option = {
		name = ukraine_reorganize_navy_build_simferopol_recon_ship.1.c
		log = "[GetDateText]: [This.GetName]: ukraine_reorganize_navy_build_simferopol_recon_ship.1.c executed"
		ai_chance = { base = 5 }
		add_political_power = -10
	}
}

country_event = {
	id = ukraine_reorganize_navy_build_simferopol_recon_ship.2
	title = ukraine_reorganize_navy_build_simferopol_recon_ship.2.name
	desc = ukraine_reorganize_navy_build_simferopol_recon_ship.2.desc
	picture = GFX_ukraine_reorganize_navy_build_simferopol_recon_ship_melhior
	is_triggered_only = yes

	option = { # domestic passive SIGINT complex
		name = ukraine_reorganize_navy_build_simferopol_recon_ship.2.a
		log = "[GetDateText]: [This.GetName]: ukraine_reorganize_navy_build_simferopol_recon_ship.2.a executed"
		ai_chance = { base = 70 }
		set_temp_variable = { treasury_change = -0.1 }
		modify_treasury_effect = yes
		set_country_flag = ukraine_reorganize_navy_built_simferopol_recon_ship_suite_domestic_flag
		add_tech_bonus = {
			name = ukraine_reorganize_navy_build_simferopol_recon_ship.2.name
			bonus = 0.20
			uses = 1
			category = CAT_naval_electronics
		} hidden_effect = { rq_eb_d586956d66 = yes }
		country_event = { id = ukraine_reorganize_navy_build_simferopol_recon_ship.3 days = 120 random_days = 30 }
	}

	option = { # buy a Western ELINT package
		name = ukraine_reorganize_navy_build_simferopol_recon_ship.2.b
		log = "[GetDateText]: [This.GetName]: ukraine_reorganize_navy_build_simferopol_recon_ship.2.b executed"
		trigger = {
			date > 2014.3.1
		}
		ai_chance = { base = 30 }
		set_temp_variable = { treasury_change = -0.6 }
		modify_treasury_effect = yes
		set_country_flag = ukraine_reorganize_navy_built_simferopol_recon_ship_suite_western_flag
		country_event = { id = ukraine_reorganize_navy_build_simferopol_recon_ship.3 days = 240 random_days = 60 }
	}
}

country_event = {
	id = ukraine_reorganize_navy_build_simferopol_recon_ship.3
	title = ukraine_reorganize_navy_build_simferopol_recon_ship.3.name
	desc = ukraine_reorganize_navy_build_simferopol_recon_ship.3.desc
	picture = GFX_ukraine_reorganize_navy_build_simferopol_recon_ship_dnipro
	is_triggered_only = yes

	option = { # move her in a floating dock, the safe way
		name = ukraine_reorganize_navy_build_simferopol_recon_ship.3.a
		log = "[GetDateText]: [This.GetName]: ukraine_reorganize_navy_build_simferopol_recon_ship.3.a executed"
		ai_chance = { base = 80 }
		set_temp_variable = { treasury_change = -0.05 }
		modify_treasury_effect = yes
		country_event = { id = ukraine_reorganize_navy_build_simferopol_recon_ship.5 days = 30 random_days = 5 }
	}

	option = { # tow her down under her own hull to save the money
		name = ukraine_reorganize_navy_build_simferopol_recon_ship.3.b
		log = "[GetDateText]: [This.GetName]: ukraine_reorganize_navy_build_simferopol_recon_ship.3.b executed"
		ai_chance = { base = 20 }
		hidden_effect = {
			random_list = {
				70 = { country_event = { id = ukraine_reorganize_navy_build_simferopol_recon_ship.5 days = 30 random_days = 5 } }
				30 = { country_event = { id = ukraine_reorganize_navy_build_simferopol_recon_ship.4 days = 30 random_days = 5 } }
			}
		}
	}
}

country_event = {
	id = ukraine_reorganize_navy_build_simferopol_recon_ship.4
	title = ukraine_reorganize_navy_build_simferopol_recon_ship.4.name
	desc = ukraine_reorganize_navy_build_simferopol_recon_ship.4.desc
	picture = GFX_ukraine_reorganize_navy_build_simferopol_recon_ship_dock
	is_triggered_only = yes

	option = { # pay for the repairs and finish the job
		name = ukraine_reorganize_navy_build_simferopol_recon_ship.4.a
		log = "[GetDateText]: [This.GetName]: ukraine_reorganize_navy_build_simferopol_recon_ship.4.a executed"
		ai_chance = { base = 75 }
		set_temp_variable = { treasury_change = -0.30 }
		modify_treasury_effect = yes
		hidden_effect = { country_event = { id = ukraine_reorganize_navy_build_simferopol_recon_ship.5 days = 60 } }
	}

	option = { # leave her at Kherson
		name = ukraine_reorganize_navy_build_simferopol_recon_ship.4.b
		log = "[GetDateText]: [This.GetName]: ukraine_reorganize_navy_build_simferopol_recon_ship.4.b executed"
		ai_chance = { base = 25 }
		add_political_power = -25
		add_stability = -0.02
	}
}

country_event = {
	id = ukraine_reorganize_navy_build_simferopol_recon_ship.5
	title = ukraine_reorganize_navy_build_simferopol_recon_ship.5.name
	desc = ukraine_reorganize_navy_build_simferopol_recon_ship.5.desc
	picture = GFX_ukraine_reorganize_navy_build_simferopol_recon_ship_sea
	is_triggered_only = yes

	option = { # receive the ship
		name = ukraine_reorganize_navy_build_simferopol_recon_ship.5.a
		log = "[GetDateText]: [This.GetName]: ukraine_reorganize_navy_build_simferopol_recon_ship.5.a executed"

		if = {
			limit = {
				NOT = {
					has_tech = tech_landing_craft_4
				}
			}
			set_technology = { tech_landing_craft_4 = 1 }
		}
		create_equipment_variant = {
			name = "Pr. 502EMR 'Lahuna'"
			type = support_ship_2
			upgrades = {
				support_ship_nuclear_upgrade = 0
			}
		}
		create_ship = {
			type = support_ship_2
			equipment_variant = "Pr. 502EMR 'Lahuna'"
			creator = UKR
			name = "A505 Simferopol"
		}
		if = {
			limit = {
				UKR = {
					has_country_flag = ukraine_reorganize_navy_built_simferopol_recon_ship_converted_hull_flag
					has_country_flag = ukraine_reorganize_navy_built_simferopol_recon_ship_suite_domestic_flag
				}
			}
			add_ideas = UKR_lahuna_recon_ship_idea_1
			navy_experience = 10
			add_war_support = 0.01
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = ukraine_reorganize_navy_built_simferopol_recon_ship_converted_hull_flag
					has_country_flag = ukraine_reorganize_navy_built_simferopol_recon_ship_suite_western_flag
				}
			}
			add_ideas = UKR_lahuna_recon_ship_idea_2
			navy_experience = 15
			add_war_support = 0.01
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = ukraine_reorganize_navy_built_simferopol_recon_ship_purpose_built_hull_flag
					has_country_flag = ukraine_reorganize_navy_built_simferopol_recon_ship_suite_domestic_flag
				}
			}
			add_ideas = UKR_lahuna_recon_ship_idea_3
			navy_experience = 20
			add_war_support = 0.02
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = ukraine_reorganize_navy_built_simferopol_recon_ship_purpose_built_hull_flag
					has_country_flag = ukraine_reorganize_navy_built_simferopol_recon_ship_suite_western_flag
				}
			}
			add_ideas = UKR_lahuna_recon_ship_idea_4
			navy_experience = 25
			add_war_support = 0.02
		}
	}
}


country_event = {
	id = ukraine_armed_forces_tragedy_event.1
	title = ukraine_armed_forces_tragedy_event.1.name
	desc = ukraine_armed_forces_tragedy_event.1.desc
	picture = GFX_UKR_tragedy_brovary_tochka
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		UKR = { NOT = { has_country_flag = UKR_Brovary_Missile_Tragedy_Flag } }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: ukraine_armed_forces_tragedy_event.1.a executed"
		name = ukraine_armed_forces_tragedy_event.1.a
		add_war_support = -0.05
		add_political_power = -20
		set_temp_variable = { treasury_change = -0.2 }
		modify_treasury_effect = yes
		add_popularity = { ideology = democratic popularity = -0.03 }
		recalculate_party = yes
		add_popularity = { ideology = neutrality popularity = 0.01 }
		recalculate_party = yes
		set_country_flag = UKR_Brovary_Missile_Tragedy_Flag
	}
}

country_event = {
	id = ukraine_armed_forces_tragedy_event.2
	title = ukraine_armed_forces_tragedy_event.2.name
	desc = ukraine_armed_forces_tragedy_event.2.desc
	picture = GFX_UKR_tragedy_tu154_shoot
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
			UKR = {
				UKR_Oleksandr_Kuzmuk = { is_advisor = yes }
			}
			has_country_flag = UKR_Brovary_Missile_Tragedy_Flag
			#NOT = {
			#	has_country_flag = UKR_army_exercises_sam_flag
			#}
			NOT = {
				has_country_flag = UKR_Tu154_Air_Tragedy_Flag
			}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: ukraine_armed_forces_tragedy_event.2.a executed"
		name = ukraine_armed_forces_tragedy_event.2.a
		add_war_support = -0.05
		add_political_power = -20
		set_temp_variable = { treasury_change = -1.0 }
		modify_treasury_effect = yes
		add_popularity = { ideology = communism popularity = 0.03 }
		recalculate_party = yes
		add_popularity = { ideology = democratic popularity = -0.02 }
		recalculate_party = yes
		set_country_flag = UKR_Tu154_Air_Tragedy_Flag
	}
}

country_event = {
	id = ukraine_armed_forces_tragedy_event.3
	title = ukraine_armed_forces_tragedy_event.3.name
	desc = ukraine_armed_forces_tragedy_event.3.desc
	picture = GFX_UKR_tragedy_sknyliv_airshow
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
			UKR = { UKR_Oleksandr_Kuzmuk = { is_advisor = yes } }
			OR = {
				has_country_flag = UKR_Tu154_Air_Tragedy_Flag
				has_country_flag = UKR_Brovary_Missile_Tragedy_Flag
			}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: ukraine_armed_forces_tragedy_event.3.a executed"
		name = ukraine_armed_forces_tragedy_event.3.a
		add_war_support = -0.1
		add_political_power = -40
		set_temp_variable = { treasury_change = -0.5 }
		modify_treasury_effect = yes
		add_popularity = { ideology = democratic popularity = -0.04 }
		recalculate_party = yes
		add_popularity = { ideology = neutrality popularity = -0.02 }
		recalculate_party = yes
		ISR = {
			add_opinion_modifier = {
				target = UKR
				modifier = recent_actions_negative
			}
		}
	}
}
country_event = {
	id = ukraine_warehouse_explosions.1
	title = ukraine_warehouse_explosions.1.name
	desc = ukraine_warehouse_explosions.1.desc
	picture = GFX_UKR_warehouse_explosions_main
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		UKR = {
			OR = {
				has_completed_focus = UKR_reform_vsu
				has_completed_focus = UKR_army_imp
			}
		}
	}

	option = {
		name = ukraine_warehouse_explosions.1.a
		log = "[GetDateText]: [This.GetName]:ukraine_warehouse_explosions.1.a executed"
		add_political_power = -10
		add_war_support = 0.07
		add_stability = 0.02
		add_to_variable = { UKR_mil_mod_army_personnel_cost_multiplier_modifier = 0.03 tooltip = army_personnel_cost_multiplier_modifier_tt }
		set_temp_variable = { treasury_change = -4 }
		modify_treasury_effect = yes
		set_country_flag = UKR_warehouses_maintenance_full_flag
	}

	option = {
		name = ukraine_warehouse_explosions.1.b
		log = "[GetDateText]: [This.GetName]:ukraine_warehouse_explosions.1.b executed"
		add_political_power = -5
		add_war_support = 0.03
		add_to_variable = { UKR_mil_mod_army_personnel_cost_multiplier_modifier = 0.01 tooltip = army_personnel_cost_multiplier_modifier_tt }
		set_temp_variable = { treasury_change = -1 }
		modify_treasury_effect = yes
		set_country_flag = UKR_warehouses_maintenance_partial_flag
	}

	option = {
		name = ukraine_warehouse_explosions.1.c
		log = "[GetDateText]: [This.GetName]:ukraine_warehouse_explosions.1.c executed"
		add_political_power = -20
		add_war_support = -0.01
		add_stability = -0.01
		subtract_from_variable = { UKR_mil_mod_army_personnel_cost_multiplier_modifier = 0.01 tooltip = army_personnel_cost_multiplier_modifier_tt }
		set_country_flag = UKR_warehouses_maintenance_none_flag
	}
}
country_event = {
	id = ukraine_warehouse_explosions.2
	title = ukraine_warehouse_explosions.2.name
	desc = ukraine_warehouse_explosions.2.desc
	picture = GFX_UKR_warehouse_explosions_artemivsk
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		controls_state = 1030 #Western Donetsk Oblast
	}

	option = {
		name = ukraine_warehouse_explosions.2.a
		log = "[GetDateText]: [This.GetName]:ukraine_warehouse_explosions.2.a executed"
		if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_full_flag
				}
			}
			add_war_support = -0.01
			set_temp_variable = {
				treasury_change = -0.01
			}
			modify_treasury_effect = yes
			1030 = { #Western Donetsk Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_small_explosion_effect
					days = 10
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_partial_flag
				}
			}
			add_political_power = -5
			add_stability = -0.01
			add_war_support = -0.01
			set_temp_variable = {
				treasury_change = -0.02
			}
			modify_treasury_effect = yes
			1030 = { #Western Donetsk Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_medium_explosion_effect
					days = 15
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_none_flag
				}
			}
			add_political_power = -5
			add_stability = -0.01
			add_war_support = -0.02
			set_temp_variable = {
				treasury_change = -0.05
			}
			modify_treasury_effect = yes
			1030 = { #Western Donetsk Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_big_explosion_effect
					days = 30
				}
			}
		}
	}

	option = {
		name = ukraine_warehouse_explosions.2.b
		log = "[GetDateText]: [This.GetName]:ukraine_warehouse_explosions.2.b executed"
		if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_full_flag
				}
			}
			add_war_support = -0.01
			set_temp_variable = {
				treasury_change = -0.01
			}
			modify_treasury_effect = yes
			1030 = { #Western Donetsk Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_small_explosion_effect
					days = 15
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_partial_flag
				}
			}
			add_stability = -0.01
			add_war_support = -0.01
			set_temp_variable = {
				treasury_change = -0.01
			}
			modify_treasury_effect = yes
			1030 = { #Western Donetsk Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_medium_explosion_effect
					days = 20
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_none_flag
				}
			}
			add_political_power = -5
			add_stability = -0.01
			add_war_support = -0.03
			set_temp_variable = {
				treasury_change = -0.03
			}
			modify_treasury_effect = yes
			1030 = { #Western Donetsk Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_big_explosion_effect
					days = 40
				}
			}
		}
	}

	option = {
		name = ukraine_warehouse_explosions.2.c
		log = "[GetDateText]: [This.GetName]:ukraine_warehouse_explosions.2.c executed"
		if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_full_flag
				}
			}
			add_war_support = -0.01
			1030 = { #Western Donetsk Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_small_explosion_effect
					days = 25
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_partial_flag
				}
			}
			add_stability = -0.01
			add_war_support = -0.01
			1030 = { #Western Donetsk Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_medium_explosion_effect
					days = 30
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "5"
				}
				subtract_from_variable = {
					productivity_state_var = 5
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_none_flag
				}
			}
			add_stability = -0.01
			add_war_support = -0.04
			set_temp_variable = {
				treasury_change = -0.01
			}
			modify_treasury_effect = yes
			1030 = { #Western Donetsk Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_big_explosion_effect
					days = 60
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "5"
				}
				subtract_from_variable = {
					productivity_state_var = 5
				}
			}
		}
		add_popularity = {
			ideology = communism
			popularity = 0.02
		}
		recalculate_party = yes
		add_popularity = {
			ideology = democratic
			popularity = -0.02
		}
		recalculate_party = yes
	}
}

country_event = {
	id = ukraine_warehouse_explosions.3
	title = ukraine_warehouse_explosions.3.name
	desc = ukraine_warehouse_explosions.3.desc
	picture = GFX_UKR_warehouse_explosions_novobohdanivka
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		controls_state = 694 #Zaporizhzhia Oblast
	}

	option = {
		name = ukraine_warehouse_explosions.3.a
		log = "[GetDateText]: [This.GetName]:ukraine_warehouse_explosions.3.a executed"
		if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_full_flag
				}
			}
			add_political_power = -10
			add_stability = -0.02
			add_war_support = -0.04
			add_manpower = -10
			set_temp_variable = {
				treasury_change = -0.06
			}
			modify_treasury_effect = yes
			694 = { #Zaporizhzhia Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_small_explosion_effect
					days = 40
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "5"
				}
				subtract_from_variable = {
					productivity_state_var = 5
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_partial_flag
				}
			}
			add_political_power = -25
			add_stability = -0.04
			add_war_support = -0.08
			add_manpower = -20
			set_temp_variable = {
				treasury_change = -0.12
			}
			modify_treasury_effect = yes
			694 = { #Zaporizhzhia Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_medium_explosion_effect
					days = 75
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "5"
				}
				subtract_from_variable = {
					productivity_state_var = 5
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_none_flag
				}
			}
			add_political_power = -75
			add_stability = -0.08
			add_war_support = -0.14
			add_manpower = -50
			set_temp_variable = {
				treasury_change = -0.5
			}
			modify_treasury_effect = yes
			694 = { #Zaporizhzhia Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_big_explosion_effect
					days = 150
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "10"
				}
				subtract_from_variable = {
					productivity_state_var = 10
				}
			}
		}
		set_country_flag = UKR_warehouses_novobohdanivka_depot_explosions_reconstruction_flag
	}

	option = {
		name = ukraine_warehouse_explosions.3.b
		log = "[GetDateText]: [This.GetName]:ukraine_warehouse_explosions.3.b executed"
		if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_full_flag
				}
			}
			add_political_power = -5
			add_stability = -0.03
			add_war_support = -0.06
			add_manpower = -10
			set_temp_variable = {
				treasury_change = -0.03
			}
			modify_treasury_effect = yes
			694 = { #Zaporizhzhia Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_small_explosion_effect
					days = 50
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "5"
				}
				subtract_from_variable = {
					productivity_state_var = 5
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_partial_flag
				}
			}
			add_political_power = -10
			add_stability = -0.06
			add_war_support = -0.11
			add_manpower = -20
			set_temp_variable = {
				treasury_change = -0.06
			}
			modify_treasury_effect = yes
			694 = { #Zaporizhzhia Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_medium_explosion_effect
					days = 90
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "10"
				}
				subtract_from_variable = {
					productivity_state_var = 10
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_none_flag
				}
			}
			add_political_power = -30
			add_stability = -0.11
			add_war_support = -0.2
			add_manpower = -50
			set_temp_variable = {
				treasury_change = -0.25
			}
			modify_treasury_effect = yes
			694 = { #Zaporizhzhia Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_big_explosion_effect
					days = 180
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "20"
				}
				subtract_from_variable = {
					productivity_state_var = 20
				}
			}
		}
		set_country_flag = UKR_warehouses_novobohdanivka_depot_explosions_comission_flag
	}

	option = {
		name = ukraine_warehouse_explosions.3.c
		log = "[GetDateText]: [This.GetName]:ukraine_warehouse_explosions.3.c executed"
		if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_full_flag
				}
			}
			add_stability = -0.04
			add_war_support = -0.08
			add_manpower = -10
			set_temp_variable = {
				treasury_change = -0.01
			}
			modify_treasury_effect = yes
			694 = { #Zaporizhzhia Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_small_explosion_effect
					days = 75
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "10"
				}
				subtract_from_variable = {
					productivity_state_var = 10
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_partial_flag
				}
			}
			add_political_power = -5
			add_stability = -0.08
			add_war_support = -0.14
			add_manpower = -20
			set_temp_variable = {
				treasury_change = -0.02
			}
			modify_treasury_effect = yes
			694 = { #Zaporizhzhia Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_medium_explosion_effect
					days = 135
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "20"
				}
				subtract_from_variable = {
					productivity_state_var = 20
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_none_flag
				}
			}
			add_political_power = -15
			add_stability = -0.14
			add_war_support = -0.26
			add_manpower = -50
			set_temp_variable = {
				treasury_change = -0.08
			}
			modify_treasury_effect = yes
			694 = { #Zaporizhzhia Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_big_explosion_effect
					days = 270
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "35"
				}
				subtract_from_variable = {
					productivity_state_var = 35
				}
			}
		}
		set_country_flag = UKR_warehouses_novobohdanivka_depot_explosions_ignore_flag
		add_popularity = {
			ideology = communism
			popularity = 0.08
		}
		recalculate_party = yes
		add_popularity = {
			ideology = democratic
			popularity = -0.08
		}
		recalculate_party = yes
	}
}

country_event = {
	id = ukraine_warehouse_explosions.4
	title = ukraine_warehouse_explosions.4.name
	desc = ukraine_warehouse_explosions.4.desc
	picture = GFX_UKR_warehouse_explosions_tsvitokha
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		controls_state = 1245 #Khmelnytska Oblast
	}

	option = {
		name = ukraine_warehouse_explosions.4.a
		log = "[GetDateText]: [This.GetName]:ukraine_warehouse_explosions.4.a executed"
		if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_full_flag
				}
			}
			add_political_power = -5
			add_stability = -0.01
			add_war_support = -0.02
			set_temp_variable = {
				treasury_change = -0.03
			}
			modify_treasury_effect = yes
			1245 = { #Khmelnytska Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_small_explosion_effect
					days = 25
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_partial_flag
				}
			}
			add_political_power = -10
			add_stability = -0.02
			add_war_support = -0.03
			set_temp_variable = {
				treasury_change = -0.05
			}
			modify_treasury_effect = yes
			1245 = { #Khmelnytska Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_medium_explosion_effect
					days = 45
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "5"
				}
				subtract_from_variable = {
					productivity_state_var = 5
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_none_flag
				}
			}
			add_political_power = -15
			add_stability = -0.03
			add_war_support = -0.06
			set_temp_variable = {
				treasury_change = -0.15
			}
			modify_treasury_effect = yes
			1245 = { #Khmelnytska Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_big_explosion_effect
					days = 90
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "5"
				}
				subtract_from_variable = {
					productivity_state_var = 5
				}
			}
		}
	}

	option = {
		name = ukraine_warehouse_explosions.4.b
		log = "[GetDateText]: [This.GetName]:ukraine_warehouse_explosions.4.b executed"
		if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_full_flag
				}
			}
			add_political_power = -5
			add_stability = -0.01
			add_war_support = -0.03
			set_temp_variable = {
				treasury_change = -0.02
			}
			modify_treasury_effect = yes
			1245 = { #Khmelnytska Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_small_explosion_effect
					days = 30
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_partial_flag
				}
			}
			add_political_power = -5
			add_stability = -0.03
			add_war_support = -0.04
			set_temp_variable = {
				treasury_change = -0.03
			}
			modify_treasury_effect = yes
			1245 = { #Khmelnytska Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_medium_explosion_effect
					days = 55
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "5"
				}
				subtract_from_variable = {
					productivity_state_var = 5
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_none_flag
				}
			}
			add_political_power = -5
			add_stability = -0.04
			add_war_support = -0.08
			set_temp_variable = {
				treasury_change = -0.08
			}
			modify_treasury_effect = yes
			1245 = { #Khmelnytska Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_big_explosion_effect
					days = 110
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "10"
				}
				subtract_from_variable = {
					productivity_state_var = 10
				}
			}
		}
	}

	option = {
		name = ukraine_warehouse_explosions.4.c
		log = "[GetDateText]: [This.GetName]:ukraine_warehouse_explosions.4.c executed"
		if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_full_flag
				}
			}
			add_stability = -0.01
			add_war_support = -0.04
			set_temp_variable = {
				treasury_change = -0.01
			}
			modify_treasury_effect = yes
			1245 = { #Khmelnytska Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_small_explosion_effect
					days = 45
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "5"
				}
				subtract_from_variable = {
					productivity_state_var = 5
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_partial_flag
				}
			}
			add_stability = -0.04
			add_war_support = -0.05
			set_temp_variable = {
				treasury_change = -0.01
			}
			modify_treasury_effect = yes
			1245 = { #Khmelnytska Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_medium_explosion_effect
					days = 85
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "10"
				}
				subtract_from_variable = {
					productivity_state_var = 10
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_none_flag
				}
			}
			add_stability = -0.05
			add_war_support = -0.1
			set_temp_variable = {
				treasury_change = -0.03
			}
			modify_treasury_effect = yes
			1245 = { #Khmelnytska Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_big_explosion_effect
					days = 165
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "15"
				}
				subtract_from_variable = {
					productivity_state_var = 15
				}
			}
		}
		add_popularity = {
			ideology = communism
			popularity = 0.04
		}
		recalculate_party = yes
		add_popularity = {
			ideology = democratic
			popularity = -0.04
		}
		recalculate_party = yes
	}
}

country_event = {
	id = ukraine_warehouse_explosions.5
	title = ukraine_warehouse_explosions.5.name
	desc = ukraine_warehouse_explosions.5.desc
	picture = GFX_UKR_warehouse_explosions_novobohdanivka_2
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		controls_state = 694 #Zaporizhzhia Oblast
		OR = {
			has_country_flag = UKR_warehouses_novobohdanivka_depot_explosions_comission_flag
			has_country_flag = UKR_warehouses_novobohdanivka_depot_explosions_ignore_flag
		}
	}

	option = {
		name = ukraine_warehouse_explosions.5.a
		log = "[GetDateText]: [This.GetName]:ukraine_warehouse_explosions.5.a executed"
		if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_full_flag
				}
			}
			add_political_power = -5
			add_stability = -0.01
			add_war_support = -0.01
			set_temp_variable = {
				treasury_change = -0.02
			}
			modify_treasury_effect = yes
			694 = { #Zaporizhzhia Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_small_explosion_effect
					days = 15
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_partial_flag
				}
			}
			add_political_power = -5
			add_stability = -0.01
			add_war_support = -0.02
			set_temp_variable = {
				treasury_change = -0.03
			}
			modify_treasury_effect = yes
			694 = { #Zaporizhzhia Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_medium_explosion_effect
					days = 30
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_none_flag
				}
			}
			add_political_power = -10
			add_stability = -0.02
			add_war_support = -0.04
			set_temp_variable = {
				treasury_change = -0.1
			}
			modify_treasury_effect = yes
			694 = { #Zaporizhzhia Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_big_explosion_effect
					days = 60
				}
			}
		}
		set_country_flag = UKR_warehouses_novobohdanivka_2_depot_explosions_reconstruction_flag
	}

	option = {
		name = ukraine_warehouse_explosions.5.b
		log = "[GetDateText]: [This.GetName]:ukraine_warehouse_explosions.5.b executed"
		if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_full_flag
				}
			}
			add_stability = -0.01
			add_war_support = -0.01
			set_temp_variable = {
				treasury_change = -0.01
			}
			modify_treasury_effect = yes
			694 = { #Zaporizhzhia Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_small_explosion_effect
					days = 20
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_partial_flag
				}
			}
			add_political_power = -5
			add_stability = -0.01
			add_war_support = -0.03
			set_temp_variable = {
				treasury_change = -0.02
			}
			modify_treasury_effect = yes
			694 = { #Zaporizhzhia Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_medium_explosion_effect
					days = 40
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_none_flag
				}
			}
			add_political_power = -5
			add_stability = -0.03
			add_war_support = -0.06
			set_temp_variable = {
				treasury_change = -0.05
			}
			modify_treasury_effect = yes
			694 = { #Zaporizhzhia Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_big_explosion_effect
					days = 75
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "5"
				}
				subtract_from_variable = {
					productivity_state_var = 5
				}
			}
		}
		set_country_flag = UKR_warehouses_novobohdanivka_2_depot_explosions_comission_flag
	}

	option = {
		name = ukraine_warehouse_explosions.5.c
		log = "[GetDateText]: [This.GetName]:ukraine_warehouse_explosions.5.c executed"
		if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_full_flag
				}
			}
			add_stability = -0.01
			add_war_support = -0.01
			694 = { #Zaporizhzhia Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_small_explosion_effect
					days = 30
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "5"
				}
				subtract_from_variable = {
					productivity_state_var = 5
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_partial_flag
				}
			}
			add_stability = -0.01
			add_war_support = -0.04
			set_temp_variable = {
				treasury_change = -0.01
			}
			modify_treasury_effect = yes
			694 = { #Zaporizhzhia Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_medium_explosion_effect
					days = 60
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "5"
				}
				subtract_from_variable = {
					productivity_state_var = 5
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_none_flag
				}
			}
			add_stability = -0.04
			add_war_support = -0.08
			set_temp_variable = {
				treasury_change = -0.02
			}
			modify_treasury_effect = yes
			694 = { #Zaporizhzhia Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_big_explosion_effect
					days = 115
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "10"
				}
				subtract_from_variable = {
					productivity_state_var = 10
				}
			}
		}
		add_popularity = {
			ideology = communism
			popularity = 0.02
		}
		recalculate_party = yes
		add_popularity = {
			ideology = democratic
			popularity = -0.02
		}
		recalculate_party = yes
	}
}

country_event = {
	id = ukraine_warehouse_explosions.6
	title = ukraine_warehouse_explosions.6.name
	desc = ukraine_warehouse_explosions.6.desc
	picture = GFX_UKR_warehouse_explosions_novobohdanivka_2
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		controls_state = 694 #Zaporizhzhia Oblast
		NOT = {
			OR = {
				has_country_flag = UKR_warehouses_novobohdanivka_depot_explosions_reconstruction_flag
				has_country_flag = UKR_warehouses_novobohdanivka_2_depot_explosions_reconstruction_flag
				has_country_flag = UKR_warehouses_novobohdanivka_2_depot_explosions_comission_flag
			}
		}
	}

	option = {
		name = ukraine_warehouse_explosions.6.a
		log = "[GetDateText]: [This.GetName]:ukraine_warehouse_explosions.6.a executed"
		if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_full_flag
				}
			}
			add_political_power = -5
			add_stability = -0.01
			add_war_support = -0.01
			set_temp_variable = {
				treasury_change = -0.02
			}
			modify_treasury_effect = yes
			694 = { #Zaporizhzhia Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_small_explosion_effect
					days = 15
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_partial_flag
				}
			}
			add_political_power = -5
			add_stability = -0.01
			add_war_support = -0.02
			set_temp_variable = {
				treasury_change = -0.03
			}
			modify_treasury_effect = yes
			694 = { #Zaporizhzhia Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_medium_explosion_effect
					days = 30
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_none_flag
				}
			}
			add_political_power = -10
			add_stability = -0.02
			add_war_support = -0.04
			set_temp_variable = {
				treasury_change = -0.1
			}
			modify_treasury_effect = yes
			694 = { #Zaporizhzhia Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_big_explosion_effect
					days = 60
				}
			}
		}
	}

	option = {
		name = ukraine_warehouse_explosions.6.b
		log = "[GetDateText]: [This.GetName]:ukraine_warehouse_explosions.6.b executed"
		if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_full_flag
				}
			}
			add_stability = -0.01
			add_war_support = -0.01
			set_temp_variable = {
				treasury_change = -0.01
			}
			modify_treasury_effect = yes
			694 = { #Zaporizhzhia Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_small_explosion_effect
					days = 20
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_partial_flag
				}
			}
			add_political_power = -5
			add_stability = -0.01
			add_war_support = -0.03
			set_temp_variable = {
				treasury_change = -0.02
			}
			modify_treasury_effect = yes
			694 = { #Zaporizhzhia Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_medium_explosion_effect
					days = 40
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_none_flag
				}
			}
			add_political_power = -5
			add_stability = -0.03
			add_war_support = -0.06
			set_temp_variable = {
				treasury_change = -0.05
			}
			modify_treasury_effect = yes
			694 = { #Zaporizhzhia Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_big_explosion_effect
					days = 75
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "5"
				}
				subtract_from_variable = {
					productivity_state_var = 5
				}
			}
		}
	}

	option = {
		name = ukraine_warehouse_explosions.6.c
		log = "[GetDateText]: [This.GetName]:ukraine_warehouse_explosions.6.c executed"
		if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_full_flag
				}
			}
			add_stability = -0.01
			add_war_support = -0.01
			694 = { #Zaporizhzhia Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_small_explosion_effect
					days = 30
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "5"
				}
				subtract_from_variable = {
					productivity_state_var = 5
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_partial_flag
				}
			}
			add_stability = -0.01
			add_war_support = -0.04
			set_temp_variable = {
				treasury_change = -0.01
			}
			modify_treasury_effect = yes
			694 = { #Zaporizhzhia Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_medium_explosion_effect
					days = 60
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "5"
				}
				subtract_from_variable = {
					productivity_state_var = 5
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_none_flag
				}
			}
			add_stability = -0.04
			add_war_support = -0.08
			set_temp_variable = {
				treasury_change = -0.02
			}
			modify_treasury_effect = yes
			694 = { #Zaporizhzhia Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_big_explosion_effect
					days = 115
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "10"
				}
				subtract_from_variable = {
					productivity_state_var = 10
				}
			}
		}
		add_popularity = {
			ideology = communism
			popularity = 0.02
		}
		recalculate_party = yes
		add_popularity = {
			ideology = democratic
			popularity = -0.02
		}
		recalculate_party = yes
	}
}

country_event = {
	id = ukraine_warehouse_explosions.7
	title = ukraine_warehouse_explosions.7.name
	desc = ukraine_warehouse_explosions.7.desc
	picture = GFX_UKR_warehouse_explosions_lozova
	is_triggered_only = yes

	trigger = {
		tag = UKR
		controls_state = 696 #Kharkiv Oblast
	}

	option = {
		name = ukraine_warehouse_explosions.7.a
		log = "[GetDateText]: [This.GetName]:ukraine_warehouse_explosions.7.a executed"
		if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_full_flag
				}
			}
			add_war_support = -0.01
			set_temp_variable = {
				reasury_change = -0.01
			}
			modify_treasury_effect = yes
			696 = { #Kharkiv Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_small_explosion_effect
					days = 10
				}
			}
		}
		if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_partial_flag
				}
			}
			add_political_power = -5
			add_stability = -0.01
			add_war_support = -0.01
			set_temp_variable = {
				reasury_change = -0.02
			}
			modify_treasury_effect = yes
			696 = { #Kharkiv Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_medium_explosion_effect
					days = 15
				}
			}
		}
		if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_none_flag
				}
			}
			add_political_power = -5
			add_stability = -0.01
			add_war_support = -0.02
			set_temp_variable = {
				reasury_change = -0.05
			}
			modify_treasury_effect = yes
			696 = { #Kharkiv Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_big_explosion_effect
					days = 30
				}
			}
		}
	}

	option = {
		name = ukraine_warehouse_explosions.7.b
		log = "[GetDateText]: [This.GetName]:ukraine_warehouse_explosions.7.b executed"
		if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_full_flag
				}
			}
			add_war_support = -0.01
			set_temp_variable = {
				reasury_change = -0.01
			}
			modify_treasury_effect = yes
			696 = { #Kharkiv Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_small_explosion_effect
					days = 15
				}
			}
		}
		if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_partial_flag
				}
			}
			add_stability = -0.01
			add_war_support = -0.01
			set_temp_variable = {
				reasury_change = -0.01
			}
			modify_treasury_effect = yes
			696 = { #Kharkiv Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_medium_explosion_effect
					days = 20
				}
			}
		}
		if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_none_flag
				}
			}
			add_political_power = -5
			add_stability = -0.01
			add_war_support = -0.03
			set_temp_variable = {
				reasury_change = -0.03
			}
			modify_treasury_effect = yes
			696 = { #Kharkiv Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_big_explosion_effect
					days = 40
				}
			}
		}
	}

	option = {
		name = ukraine_warehouse_explosions.7.c
		log = "[GetDateText]: [This.GetName]:ukraine_warehouse_explosions.7.c executed"
		if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_full_flag
				}
			}
			add_war_support = -0.01
			set_temp_variable = {
				reasury_change = -0
			}
			modify_treasury_effect = yes
			696 = { #Kharkiv Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_small_explosion_effect
					days = 25
				}
			}
		}
		if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_partial_flag
				}
			}
			add_stability = -0.01
			add_war_support = -0.01
			set_temp_variable = {
				reasury_change = -0
			}
			modify_treasury_effect = yes
			696 = { #Kharkiv Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_medium_explosion_effect
					days = 30
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "5"
				}
				subtract_from_variable = {
					productivity_state_var = 5
				}
			}
		}
		if = {
			limit = {
				UKR = {
					has_country_flag = UKR_warehouses_maintenance_none_flag
				}
			}
			add_stability = -0.01
			add_war_support = -0.04
			set_temp_variable = {
				reasury_change = -0.01
			}
			modify_treasury_effect = yes
			696 = { #Kharkiv Oblast
				add_dynamic_modifier = {
					modifier = UKR_warehouse_big_explosion_effect
					days = 60
				}
				custom_effect_tooltip = {
					localization_key = tooltip_remove_productivity_from_state
					PRODUCTIVITY_AMOUNT = "5"
				}
				subtract_from_variable = {
					productivity_state_var = 5
				}
			}
		}
		add_popularity = {
			ideology = communism
			popularity = 0.02
		}
		recalculate_party = yes
		add_popularity = {
			ideology = democratic
			popularity = -0.02
		}
		recalculate_party = yes
	}
}

news_event = {
	id = ukraine_nuclear_power_plants.1
	title = ukraine_nuclear_power_plants.1.name
	desc = ukraine_nuclear_power_plants.1.desc
	picture = GFX_UKR_Chornobyl_Closure
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = UKR
		UKR = { NOT = { has_country_flag = ukraine_nuclear_power_plants_flag } }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: ukraine_nuclear_power_plants.1.a executed"
		name = ukraine_nuclear_power_plants.1.a
		698 = { #Kyiv
			subtract_from_variable = { state_renewable_capacity_factor_modifier_var = 0.2 }
			subtract_from_variable = { productivity_state_var = 0.1 }
		}
		set_temp_variable = { treasury_change = 1.2 }
		modify_treasury_effect = yes
		add_popularity = { ideology = communism popularity = 0.04 }
		recalculate_party = yes
		add_popularity = { ideology = democratic popularity = -0.02 }
		recalculate_party = yes
		set_temp_variable = { percent_change = 0.04 }
		set_temp_variable = { tag_index = USA.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = 0.03 }
		set_temp_variable = { tag_index = ENG.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = 0.03 }
		set_temp_variable = { tag_index = GER.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = 0.03 }
		set_temp_variable = { tag_index = FRA.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		set_temp_variable = { percent_change = 0.02 }
		set_temp_variable = { tag_index = ITA.id }
		set_temp_variable = { influence_target = UKR.id }
		change_influence_percentage = yes
		set_country_flag = ukraine_nuclear_power_plants_flag
	}
}

country_event = {
	id = ukr_history.1
	title = ukr_history.1.t
	desc = ukr_history.1.d
	picture = GFX_ukr_orange_maidan
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { neutrality_neutral_conservatism_are_in_power = yes }

	option = {
		name = ukr_history.1.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.1.a executed"
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = -0.008 }
		set_temp_variable = { temp_outlook_increase = -0.008 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.003 }
		set_temp_variable = { temp_outlook_increase = 0.003 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = 0.003 }
		set_temp_variable = { temp_outlook_increase = 0.003 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.002 }
		set_temp_variable = { temp_outlook_increase = 0.002 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}

	option = {
		name = ukr_history.1.b
		log = "[GetDateText]: [Root.GetName]: ukr_history.1.b executed"
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = -0.0032 }
		set_temp_variable = { temp_outlook_increase = -0.0032 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.0012 }
		set_temp_variable = { temp_outlook_increase = 0.0012 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = 0.0012 }
		set_temp_variable = { temp_outlook_increase = 0.0012 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.0008 }
		set_temp_variable = { temp_outlook_increase = 0.0008 }
		change_relative_party_popularity = yes
		add_political_power = -50
		add_stability = 0.01
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.2
	title = ukr_history.2.t
	desc = ukr_history.2.d
	picture = GFX_verkhovna_rada_vote
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { neutrality_neutral_conservatism_are_in_power = yes }

	option = {
		name = ukr_history.2.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.2.a executed"
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = -0.04 }
		set_temp_variable = { temp_outlook_increase = -0.04 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = 0.03 }
		set_temp_variable = { temp_outlook_increase = 0.03 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 0 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}

	option = {
		name = ukr_history.2.b
		log = "[GetDateText]: [Root.GetName]: ukr_history.2.b executed"
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = -0.028 }
		set_temp_variable = { temp_outlook_increase = -0.028 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = 0.021 }
		set_temp_variable = { temp_outlook_increase = 0.021 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.007 }
		set_temp_variable = { temp_outlook_increase = 0.007 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.007 }
		set_temp_variable = { temp_outlook_increase = 0.007 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 0 }
		set_temp_variable = { party_popularity_increase = -0.007 }
		set_temp_variable = { temp_outlook_increase = -0.007 }
		change_relative_party_popularity = yes
		add_political_power = -75
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.3
	title = ukr_history.3.t
	desc = ukr_history.3.d
	picture = GFX_maidan1
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { neutrality_neutral_conservatism_are_in_power = yes }

	option = {
		name = ukr_history.3.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.3.a executed"
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = -0.02 }
		set_temp_variable = { temp_outlook_increase = -0.02 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 0 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.004 }
		set_temp_variable = { temp_outlook_increase = 0.004 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 20 }
		set_temp_variable = { party_popularity_increase = 0.004 }
		set_temp_variable = { temp_outlook_increase = 0.004 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 21 }
		set_temp_variable = { party_popularity_increase = 0.002 }
		set_temp_variable = { temp_outlook_increase = 0.002 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}

	option = {
		name = ukr_history.3.b
		log = "[GetDateText]: [Root.GetName]: ukr_history.3.b executed"
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = 0.0025 }
		set_temp_variable = { temp_outlook_increase = 0.0025 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 0 }
		set_temp_variable = { party_popularity_increase = -0.0025 }
		set_temp_variable = { temp_outlook_increase = -0.0025 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.002 }
		set_temp_variable = { temp_outlook_increase = 0.002 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 20 }
		set_temp_variable = { party_popularity_increase = 0.002 }
		set_temp_variable = { temp_outlook_increase = 0.002 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 21 }
		set_temp_variable = { party_popularity_increase = 0.001 }
		set_temp_variable = { temp_outlook_increase = 0.001 }
		change_relative_party_popularity = yes
		add_political_power = -100
		add_stability = 0.02
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.4
	title = ukr_history.4.t
	desc = ukr_history.4.d
	picture = GFX_maidan3
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.4.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.4.a executed"
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = 0.015 }
		set_temp_variable = { temp_outlook_increase = 0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 20 }
		set_temp_variable = { party_popularity_increase = -0.003 }
		set_temp_variable = { temp_outlook_increase = -0.003 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 21 }
		set_temp_variable = { party_popularity_increase = -0.002 }
		set_temp_variable = { temp_outlook_increase = -0.002 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.5
	title = ukr_history.5.t
	desc = ukr_history.5.d
	picture = GFX_verkhovna_rada_vote
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.5.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.5.a executed"
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.035 }
		set_temp_variable = { temp_outlook_increase = 0.035 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = -0.015 }
		set_temp_variable = { temp_outlook_increase = -0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 2 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 0 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 15 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { remove_col_one = 1 }
		remove_coalition_members_effect = yes
		set_temp_variable = { remove_col_one = 2 }
		remove_coalition_members_effect = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.6
	title = ukr_history.6.t
	desc = ukr_history.6.d
	picture = GFX_ukr_orange_maidan
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		neutrality_neutral_conservatism_are_in_power = yes
		has_completed_focus = UKR_deal_yushenko
	}

	option = {
		name = ukr_history.6.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.6.a executed"
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.025 }
		set_temp_variable = { temp_outlook_increase = 0.025 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = -0.015 }
		set_temp_variable = { temp_outlook_increase = -0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 2 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 17 }
		set_temp_variable = { party_popularity_increase = -0.008 }
		set_temp_variable = { temp_outlook_increase = -0.008 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = -0.007 }
		set_temp_variable = { temp_outlook_increase = -0.007 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 13 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 21 }
		set_temp_variable = { party_popularity_increase = 0.003 }
		set_temp_variable = { temp_outlook_increase = 0.003 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 16 }
		set_temp_variable = { party_popularity_increase = -0.003 }
		set_temp_variable = { temp_outlook_increase = -0.003 }
		change_relative_party_popularity = yes
		set_variable = { conservatism_leader = 1 } # Viktor Yushchenko
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.7
	title = ukr_history.7.t
	desc = ukr_history.7.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		neutrality_neutral_conservatism_are_in_power = yes
		has_completed_focus = UKR_gain_rada_support
	}

	option = {
		name = ukr_history.7.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.7.a executed"
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = 0.025 }
		set_temp_variable = { temp_outlook_increase = 0.025 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 15 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 13 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { add_col_one = 6 }
		add_coalition_members_effect = yes
		set_temp_variable = { add_col_one = 15 }
		add_coalition_members_effect = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.8
	title = ukr_history.8.t
	desc = ukr_history.8.d
	picture = GFX_verkhovna_rada_vote
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { neutrality_neutral_conservatism_are_in_power = yes }

	option = {
		name = ukr_history.8.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.8.a executed"
		set_temp_variable = { party_index = 0 }
		set_temp_variable = { party_popularity_increase = 0.025 }
		set_temp_variable = { temp_outlook_increase = 0.025 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = 0.015 }
		set_temp_variable = { temp_outlook_increase = 0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.015 }
		set_temp_variable = { temp_outlook_increase = 0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = -0.015 }
		set_temp_variable = { temp_outlook_increase = -0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = -0.015 }
		set_temp_variable = { temp_outlook_increase = -0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 15 }
		set_temp_variable = { party_popularity_increase = -0.015 }
		set_temp_variable = { temp_outlook_increase = -0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 17 }
		set_temp_variable = { party_popularity_increase = -0.015 }
		set_temp_variable = { temp_outlook_increase = -0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 2 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 7 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 21 }
		set_temp_variable = { party_popularity_increase = 0.003 }
		set_temp_variable = { temp_outlook_increase = 0.003 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 13 }
		set_temp_variable = { party_popularity_increase = -0.003 }
		set_temp_variable = { temp_outlook_increase = -0.003 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.9
	title = ukr_history.9.t
	desc = ukr_history.9.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { neutrality_neutral_conservatism_are_in_power = yes }

	option = {
		name = ukr_history.9.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.9.a executed"
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = 0.015 }
		set_temp_variable = { temp_outlook_increase = 0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.008 }
		set_temp_variable = { temp_outlook_increase = -0.008 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = -0.004 }
		set_temp_variable = { temp_outlook_increase = -0.004 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = -0.003 }
		set_temp_variable = { temp_outlook_increase = -0.003 }
		change_relative_party_popularity = yes
		set_variable = { Neutral_conservatism_leader = 1 } # Volodymyr Lytvyn
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.10
	title = ukr_history.10.t
	desc = ukr_history.10.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { neutrality_neutral_conservatism_are_in_power = yes }

	option = {
		name = ukr_history.10.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.10.a executed"
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = -0.025 }
		set_temp_variable = { temp_outlook_increase = -0.025 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.015 }
		set_temp_variable = { temp_outlook_increase = 0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 15 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.11
	title = ukr_history.11.t
	desc = ukr_history.11.d
	picture = GFX_maidan1
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { neutrality_neutral_conservatism_are_in_power = yes }

	option = {
		name = ukr_history.11.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.11.a executed"
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = -0.02 }
		set_temp_variable = { temp_outlook_increase = -0.02 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.015 }
		set_temp_variable = { temp_outlook_increase = 0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 0 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.12
	title = ukr_history.12.t
	desc = ukr_history.12.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.12.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.12.a executed"
		set_temp_variable = { party_index = 21 }
		set_temp_variable = { party_popularity_increase = -0.004 }
		set_temp_variable = { temp_outlook_increase = -0.004 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 20 }
		set_temp_variable = { party_popularity_increase = 0.002 }
		set_temp_variable = { temp_outlook_increase = 0.002 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.002 }
		set_temp_variable = { temp_outlook_increase = 0.002 }
		change_relative_party_popularity = yes
		set_variable = { Nat_Fascism_leader = 1 } # Oleksiy Ivchenko
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.13
	title = ukr_history.13.t
	desc = ukr_history.13.d
	picture = GFX_donetsk_protests
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		neutrality_neutral_conservatism_are_in_power = yes
		has_completed_focus = UKR_appoint_yanukovich
	}

	option = {
		name = ukr_history.13.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.13.a executed"
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.02 }
		set_temp_variable = { temp_outlook_increase = 0.02 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 15 }
		set_temp_variable = { party_popularity_increase = -0.008 }
		set_temp_variable = { temp_outlook_increase = -0.008 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = -0.007 }
		set_temp_variable = { temp_outlook_increase = -0.007 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 0 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_variable = { Conservative_leader = 0 } # Viktor Yanukovych
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.14
	title = ukr_history.14.t
	desc = ukr_history.14.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.14.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.14.a executed"
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.003 }
		set_temp_variable = { temp_outlook_increase = 0.003 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 2 }
		set_temp_variable = { party_popularity_increase = -0.0015 }
		set_temp_variable = { temp_outlook_increase = -0.0015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 21 }
		set_temp_variable = { party_popularity_increase = -0.0015 }
		set_temp_variable = { temp_outlook_increase = -0.0015 }
		change_relative_party_popularity = yes
		set_variable = { conservatism_leader = 1 } # Viktor Yushchenko
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.15
	title = ukr_history.15.t
	desc = ukr_history.15.d
	picture = GFX_negotiations
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { neutrality_neutral_conservatism_are_in_power = yes }

	option = {
		name = ukr_history.15.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.15.a executed"
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = -0.017 }
		set_temp_variable = { temp_outlook_increase = -0.017 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.008 }
		set_temp_variable = { temp_outlook_increase = 0.008 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 2 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 20 }
		set_temp_variable = { party_popularity_increase = 0.004 }
		set_temp_variable = { temp_outlook_increase = 0.004 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 13 }
		set_temp_variable = { party_popularity_increase = -0.003 }
		set_temp_variable = { temp_outlook_increase = -0.003 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 17 }
		set_temp_variable = { party_popularity_increase = -0.002 }
		set_temp_variable = { temp_outlook_increase = -0.002 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}

	option = {
		name = ukr_history.15.b
		log = "[GetDateText]: [Root.GetName]: ukr_history.15.b executed"
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = -0.0085 }
		set_temp_variable = { temp_outlook_increase = -0.0085 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.004 }
		set_temp_variable = { temp_outlook_increase = 0.004 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = 0.0025 }
		set_temp_variable = { temp_outlook_increase = 0.0025 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 2 }
		set_temp_variable = { party_popularity_increase = -0.0025 }
		set_temp_variable = { temp_outlook_increase = -0.0025 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 20 }
		set_temp_variable = { party_popularity_increase = 0.002 }
		set_temp_variable = { temp_outlook_increase = 0.002 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 13 }
		set_temp_variable = { party_popularity_increase = -0.0015 }
		set_temp_variable = { temp_outlook_increase = -0.0015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 17 }
		set_temp_variable = { party_popularity_increase = -0.001 }
		set_temp_variable = { temp_outlook_increase = -0.001 }
		change_relative_party_popularity = yes
		add_political_power = -60
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.16
	title = ukr_history.16.t
	desc = ukr_history.16.d
	picture = GFX_verkhovna_rada_vote
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { neutrality_neutral_conservatism_are_in_power = yes }

	option = {
		name = ukr_history.16.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.16.a executed"
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = -0.02 }
		set_temp_variable = { temp_outlook_increase = -0.02 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.015 }
		set_temp_variable = { temp_outlook_increase = 0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 0 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.17
	title = ukr_history.17.t
	desc = ukr_history.17.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.17.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.17.a executed"
		set_temp_variable = { party_index = 20 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 21 }
		set_temp_variable = { party_popularity_increase = -0.003 }
		set_temp_variable = { temp_outlook_increase = -0.003 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.002 }
		set_temp_variable = { temp_outlook_increase = -0.002 }
		change_relative_party_popularity = yes
		set_variable = { Nat_Populism_leader = 1 } # Oleh Tyahnybok
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.18
	title = ukr_history.18.t
	desc = ukr_history.18.d
	picture = GFX_verkhovna_rada_vote
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		neutrality_neutral_conservatism_are_in_power = yes
		NOT = { has_completed_focus = UKR_const_reform }
	}

	option = {
		name = ukr_history.18.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.18.a executed"
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 0 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.19
	title = ukr_history.19.t
	desc = ukr_history.19.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.19.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.19.a executed"
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = 0.015 }
		set_temp_variable = { temp_outlook_increase = 0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = -0.007 }
		set_temp_variable = { temp_outlook_increase = -0.007 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 15 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 0 }
		set_temp_variable = { party_popularity_increase = -0.003 }
		set_temp_variable = { temp_outlook_increase = -0.003 }
		change_relative_party_popularity = yes
		set_variable = { Neutral_conservatism_leader = 1 } # Volodymyr Lytvyn
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.20
	title = ukr_history.20.t
	desc = ukr_history.20.d
	picture = GFX_negotiations
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { neutrality_neutral_conservatism_are_in_power = yes }

	option = {
		name = ukr_history.20.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.20.a executed"
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.02 }
		set_temp_variable = { temp_outlook_increase = 0.02 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.015 }
		set_temp_variable = { temp_outlook_increase = 0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = -0.015 }
		set_temp_variable = { temp_outlook_increase = -0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = -0.008 }
		set_temp_variable = { temp_outlook_increase = -0.008 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = -0.007 }
		set_temp_variable = { temp_outlook_increase = -0.007 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 2 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.21
	title = ukr_history.21.t
	desc = ukr_history.21.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { neutrality_neutral_conservatism_are_in_power = yes }

	option = {
		name = ukr_history.21.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.21.a executed"
		set_temp_variable = { party_index = 20 }
		set_temp_variable = { party_popularity_increase = 0.008 }
		set_temp_variable = { temp_outlook_increase = 0.008 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.006 }
		set_temp_variable = { temp_outlook_increase = -0.006 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 21 }
		set_temp_variable = { party_popularity_increase = -0.002 }
		set_temp_variable = { temp_outlook_increase = -0.002 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.22
	title = ukr_history.22.t
	desc = ukr_history.22.d
	picture = GFX_negotiations
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		neutrality_neutral_conservatism_are_in_power = yes
		has_completed_focus = UKR_deal_yushenko
	}

	option = {
		name = ukr_history.22.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.22.a executed"
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.03 }
		set_temp_variable = { temp_outlook_increase = 0.03 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = -0.02 }
		set_temp_variable = { temp_outlook_increase = -0.02 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 2 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 0 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}

	option = {
		name = ukr_history.22.b
		log = "[GetDateText]: [Root.GetName]: ukr_history.22.b executed"
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.012 }
		set_temp_variable = { temp_outlook_increase = 0.012 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = -0.008 }
		set_temp_variable = { temp_outlook_increase = -0.008 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = -0.004 }
		set_temp_variable = { temp_outlook_increase = -0.004 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 2 }
		set_temp_variable = { party_popularity_increase = 0.002 }
		set_temp_variable = { temp_outlook_increase = 0.002 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 0 }
		set_temp_variable = { party_popularity_increase = -0.002 }
		set_temp_variable = { temp_outlook_increase = -0.002 }
		change_relative_party_popularity = yes
		add_political_power = -80
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.23
	title = ukr_history.23.t
	desc = ukr_history.23.d
	picture = GFX_verkhovna_rada_vote
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		neutrality_neutral_conservatism_are_in_power = yes
		has_completed_focus = UKR_appoint_yanukovich
	}

	option = {
		name = ukr_history.23.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.23.a executed"
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = -0.08 }
		set_temp_variable = { temp_outlook_increase = -0.08 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.06 }
		set_temp_variable = { temp_outlook_increase = 0.06 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.04 }
		set_temp_variable = { temp_outlook_increase = 0.04 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 7 }
		set_temp_variable = { party_popularity_increase = -0.015 }
		set_temp_variable = { temp_outlook_increase = -0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 2 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 17 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 16 }
		set_temp_variable = { party_popularity_increase = -0.003 }
		set_temp_variable = { temp_outlook_increase = -0.003 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 20 }
		set_temp_variable = { party_popularity_increase = 0.003 }
		set_temp_variable = { temp_outlook_increase = 0.003 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 13 }
		set_temp_variable = { party_popularity_increase = -0.002 }
		set_temp_variable = { temp_outlook_increase = -0.002 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 21 }
		set_temp_variable = { party_popularity_increase = 0.002 }
		set_temp_variable = { temp_outlook_increase = 0.002 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.24
	title = ukr_history.24.t
	desc = ukr_history.24.d
	picture = GFX_verkhovna_rada_vote
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		neutrality_neutral_conservatism_are_in_power = yes
		has_completed_focus = UKR_appoint_yanukovich
	}

	option = {
		name = ukr_history.24.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.24.a executed"
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = -0.02 }
		set_temp_variable = { temp_outlook_increase = -0.02 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 0 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = 0.008 }
		set_temp_variable = { temp_outlook_increase = 0.008 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.008 }
		set_temp_variable = { temp_outlook_increase = 0.008 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.004 }
		set_temp_variable = { temp_outlook_increase = 0.004 }
		change_relative_party_popularity = yes
		set_temp_variable = { remove_col_one = 14 }
		remove_coalition_members_effect = yes
		set_temp_variable = { remove_col_one = 15 }
		remove_coalition_members_effect = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.25
	title = ukr_history.25.t
	desc = ukr_history.25.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { neutrality_neutral_conservatism_are_in_power = yes }

	option = {
		name = ukr_history.25.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.25.a executed"
		set_temp_variable = { party_index = 15 }
		set_temp_variable = { party_popularity_increase = -0.02 }
		set_temp_variable = { temp_outlook_increase = -0.02 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = 0.007 }
		set_temp_variable = { temp_outlook_increase = 0.007 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 0 }
		set_temp_variable = { party_popularity_increase = 0.003 }
		set_temp_variable = { temp_outlook_increase = 0.003 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.26
	title = ukr_history.26.t
	desc = ukr_history.26.d
	picture = GFX_ukr_orange_maidan
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		neutrality_neutral_conservatism_are_in_power = yes
		has_country_flag = UKR_orange_2004_started
	}

	option = {
		name = ukr_history.26.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.26.a executed"
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.02 }
		set_temp_variable = { temp_outlook_increase = 0.02 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = -0.02 }
		set_temp_variable = { temp_outlook_increase = -0.02 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.008 }
		set_temp_variable = { temp_outlook_increase = 0.008 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 0 }
		set_temp_variable = { party_popularity_increase = -0.008 }
		set_temp_variable = { temp_outlook_increase = -0.008 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.27
	title = ukr_history.27.t
	desc = ukr_history.27.d
	picture = GFX_verkhovna_rada_vote
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		neutrality_neutral_conservatism_are_in_power = yes
		has_country_flag = UKR_orange_2004_started
	}

	option = {
		name = ukr_history.27.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.27.a executed"
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.015 }
		set_temp_variable = { temp_outlook_increase = -0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.28
	title = ukr_history.28.t
	desc = ukr_history.28.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { has_completed_focus = UKR_our_ukraine_start }

	option = {
		name = ukr_history.28.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.28.a executed"
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.03 }
		set_temp_variable = { temp_outlook_increase = 0.03 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 2 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 0 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 21 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 17 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_variable = { conservatism_leader = 1 } # Viktor Yushchenko
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.29
	title = ukr_history.29.t
	desc = ukr_history.29.d
	picture = GFX_verkhovna_rada_vote
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		western_conservatism_are_in_power = yes
		has_completed_focus = UKR_our_ukraine_timoha
	}

	option = {
		name = ukr_history.29.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.29.a executed"
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.04 }
		set_temp_variable = { temp_outlook_increase = -0.04 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.03 }
		set_temp_variable = { temp_outlook_increase = 0.03 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { remove_col_one = 3 }
		remove_coalition_members_effect = yes
		hidden_effect = { recalculate_party = yes }
	}

	option = {
		name = ukr_history.29.b
		log = "[GetDateText]: [Root.GetName]: ukr_history.29.b executed"
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.012 }
		set_temp_variable = { temp_outlook_increase = -0.012 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.009 }
		set_temp_variable = { temp_outlook_increase = 0.009 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.003 }
		set_temp_variable = { temp_outlook_increase = 0.003 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = 0.0015 }
		set_temp_variable = { temp_outlook_increase = 0.0015 }
		change_relative_party_popularity = yes
		add_political_power = -100
		add_stability = -0.02
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.30
	title = ukr_history.30.t
	desc = ukr_history.30.d
	picture = GFX_negotiations
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.30.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.30.a executed"
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.03 }
		set_temp_variable = { temp_outlook_increase = 0.03 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.03 }
		set_temp_variable = { temp_outlook_increase = -0.03 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 2 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { add_col_one = 6 }
		add_coalition_members_effect = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.31
	title = ukr_history.31.t
	desc = ukr_history.31.d
	picture = GFX_verkhovna_rada_vote
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.31.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.31.a executed"
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.05 }
		set_temp_variable = { temp_outlook_increase = 0.05 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.04 }
		set_temp_variable = { temp_outlook_increase = 0.04 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.04 }
		set_temp_variable = { temp_outlook_increase = -0.04 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 0 }
		set_temp_variable = { party_popularity_increase = -0.02 }
		set_temp_variable = { temp_outlook_increase = -0.02 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = 0.015 }
		set_temp_variable = { temp_outlook_increase = 0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = -0.015 }
		set_temp_variable = { temp_outlook_increase = -0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 15 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 20 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 7 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 2 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.32
	title = ukr_history.32.t
	desc = ukr_history.32.d
	picture = GFX_negotiations
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.32.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.32.a executed"
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = -0.02 }
		set_temp_variable = { temp_outlook_increase = -0.02 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.015 }
		set_temp_variable = { temp_outlook_increase = 0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { add_col_one = 3 }
		add_coalition_members_effect = yes
		set_temp_variable = { add_col_one = 1 }
		add_coalition_members_effect = yes
		set_temp_variable = { add_col_one = 18 }
		add_coalition_members_effect = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.33
	title = ukr_history.33.t
	desc = ukr_history.33.d
	picture = GFX_verkhovna_rada_vote
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.33.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.33.a executed"
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = -0.05 }
		set_temp_variable = { temp_outlook_increase = -0.05 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.03 }
		set_temp_variable = { temp_outlook_increase = 0.03 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.015 }
		set_temp_variable = { temp_outlook_increase = 0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { remove_col_one = 3 }
		remove_coalition_members_effect = yes
		set_temp_variable = { remove_col_one = 1 }
		remove_coalition_members_effect = yes
		set_temp_variable = { add_col_one = 18 }
		add_coalition_members_effect = yes
		set_temp_variable = { add_col_one = 6 }
		add_coalition_members_effect = yes
		set_temp_variable = { add_col_one = 4 }
		add_coalition_members_effect = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.34
	title = ukr_history.34.t
	desc = ukr_history.34.d
	picture = GFX_negotiations
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.34.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.34.a executed"
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.025 }
		set_temp_variable = { temp_outlook_increase = 0.025 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.025 }
		set_temp_variable = { temp_outlook_increase = -0.025 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.02 }
		set_temp_variable = { temp_outlook_increase = 0.02 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { add_col_one = 6 }
		add_coalition_members_effect = yes
		set_temp_variable = { add_col_one = 1 }
		add_coalition_members_effect = yes
		hidden_effect = { recalculate_party = yes }
	}

	option = {
		name = ukr_history.34.b
		log = "[GetDateText]: [Root.GetName]: ukr_history.34.b executed"
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.008 }
		set_temp_variable = { temp_outlook_increase = 0.008 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = -0.004 }
		set_temp_variable = { temp_outlook_increase = -0.004 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = -0.004 }
		set_temp_variable = { temp_outlook_increase = -0.004 }
		change_relative_party_popularity = yes
		add_political_power = -120
		add_stability = -0.03
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.35
	title = ukr_history.35.t
	desc = ukr_history.35.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { western_conservatism_are_in_power = yes }

	option = {
		name = ukr_history.35.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.35.a executed"
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.015 }
		set_temp_variable = { temp_outlook_increase = 0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { remove_col_one = 1 }
		remove_coalition_members_effect = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.36
	title = ukr_history.36.t
	desc = ukr_history.36.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.36.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.36.a executed"
		set_temp_variable = { party_index = 2 }
		set_temp_variable = { party_popularity_increase = -0.015 }
		set_temp_variable = { temp_outlook_increase = -0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.015 }
		set_temp_variable = { temp_outlook_increase = 0.015 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.37
	title = ukr_history.37.t
	desc = ukr_history.37.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { western_conservatism_are_in_power = yes }

	option = {
		name = ukr_history.37.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.37.a executed"
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.025 }
		set_temp_variable = { temp_outlook_increase = -0.025 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.02 }
		set_temp_variable = { temp_outlook_increase = 0.02 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.38
	title = ukr_history.38.t
	desc = ukr_history.38.d
	picture = GFX_verkhovna_rada_vote
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { western_conservatism_are_in_power = yes }

	option = {
		name = ukr_history.38.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.38.a executed"
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.03 }
		set_temp_variable = { temp_outlook_increase = 0.03 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.03 }
		set_temp_variable = { temp_outlook_increase = -0.03 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}

	option = {
		name = ukr_history.38.b
		log = "[GetDateText]: [Root.GetName]: ukr_history.38.b executed"
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.012 }
		set_temp_variable = { temp_outlook_increase = 0.012 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.012 }
		set_temp_variable = { temp_outlook_increase = -0.012 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.004 }
		set_temp_variable = { temp_outlook_increase = 0.004 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = -0.004 }
		set_temp_variable = { temp_outlook_increase = -0.004 }
		change_relative_party_popularity = yes
		add_political_power = -80
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.39
	title = ukr_history.39.t
	desc = ukr_history.39.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.39.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.39.a executed"
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.025 }
		set_temp_variable = { temp_outlook_increase = 0.025 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = -0.02 }
		set_temp_variable = { temp_outlook_increase = -0.02 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 0 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 21 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 17 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { add_col_one = 0 }
		add_coalition_members_effect = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.40
	title = ukr_history.40.t
	desc = ukr_history.40.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.40.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.40.a executed"
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = 0.02 }
		set_temp_variable = { temp_outlook_increase = 0.02 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.41
	title = ukr_history.41.t
	desc = ukr_history.41.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.41.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.41.a executed"
		set_temp_variable = { party_index = 21 }
		set_temp_variable = { party_popularity_increase = -0.015 }
		set_temp_variable = { temp_outlook_increase = -0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 20 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.42
	title = ukr_history.42.t
	desc = ukr_history.42.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.42.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.42.a executed"
		set_temp_variable = { party_index = 0 }
		set_temp_variable = { party_popularity_increase = -0.015 }
		set_temp_variable = { temp_outlook_increase = -0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.015 }
		set_temp_variable = { temp_outlook_increase = 0.015 }
		change_relative_party_popularity = yes
		set_variable = { Western_Autocracy_leader = 1 } # Yuriy Karmazin
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.43
	title = ukr_history.43.t
	desc = ukr_history.43.d
	picture = GFX_verkhovna_rada_vote
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.43.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.43.a executed"
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.06 }
		set_temp_variable = { temp_outlook_increase = 0.06 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = -0.03 }
		set_temp_variable = { temp_outlook_increase = -0.03 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.02 }
		set_temp_variable = { temp_outlook_increase = -0.02 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = 0.015 }
		set_temp_variable = { temp_outlook_increase = 0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = 0.015 }
		set_temp_variable = { temp_outlook_increase = 0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 7 }
		set_temp_variable = { party_popularity_increase = -0.015 }
		set_temp_variable = { temp_outlook_increase = -0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 0 }
		set_temp_variable = { party_popularity_increase = -0.015 }
		set_temp_variable = { temp_outlook_increase = -0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 15 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 2 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 20 }
		set_temp_variable = { party_popularity_increase = 0.004 }
		set_temp_variable = { temp_outlook_increase = 0.004 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 21 }
		set_temp_variable = { party_popularity_increase = -0.004 }
		set_temp_variable = { temp_outlook_increase = -0.004 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.44
	title = ukr_history.44.t
	desc = ukr_history.44.d
	picture = GFX_negotiations
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.44.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.44.a executed"
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.015 }
		set_temp_variable = { temp_outlook_increase = 0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = -0.015 }
		set_temp_variable = { temp_outlook_increase = -0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { add_col_one = 3 }
		add_coalition_members_effect = yes
		set_temp_variable = { add_col_one = 1 }
		add_coalition_members_effect = yes
		set_temp_variable = { remove_col_one = 6 }
		remove_coalition_members_effect = yes
		set_temp_variable = { remove_col_one = 4 }
		remove_coalition_members_effect = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.45
	title = ukr_history.45.t
	desc = ukr_history.45.d
	picture = GFX_verkhovna_rada_vote
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.45.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.45.a executed"
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.03 }
		set_temp_variable = { temp_outlook_increase = 0.03 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = -0.015 }
		set_temp_variable = { temp_outlook_increase = -0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { add_col_one = 3 }
		add_coalition_members_effect = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.46
	title = ukr_history.46.t
	desc = ukr_history.46.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.46.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.46.a executed"
		set_temp_variable = { party_index = 15 }
		set_temp_variable = { party_popularity_increase = 0.015 }
		set_temp_variable = { temp_outlook_increase = 0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.015 }
		set_temp_variable = { temp_outlook_increase = -0.015 }
		change_relative_party_popularity = yes
		set_variable = { oligarchism_leader = 1 } # Viktor Baloha
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.47
	title = ukr_history.47.t
	desc = ukr_history.47.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { western_conservatism_are_in_power = yes }

	option = {
		name = ukr_history.47.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.47.a executed"
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.03 }
		set_temp_variable = { temp_outlook_increase = -0.03 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.015 }
		set_temp_variable = { temp_outlook_increase = 0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.015 }
		set_temp_variable = { temp_outlook_increase = 0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { remove_col_one = 1 }
		remove_coalition_members_effect = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.48
	title = ukr_history.48.t
	desc = ukr_history.48.d
	picture = GFX_verkhovna_rada_vote
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { western_conservatism_are_in_power = yes }

	option = {
		name = ukr_history.48.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.48.a executed"
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.02 }
		set_temp_variable = { temp_outlook_increase = -0.02 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.49
	title = ukr_history.49.t
	desc = ukr_history.49.d
	picture = GFX_negotiations
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.49.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.49.a executed"
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.03 }
		set_temp_variable = { temp_outlook_increase = -0.03 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.025 }
		set_temp_variable = { temp_outlook_increase = 0.025 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = -0.02 }
		set_temp_variable = { temp_outlook_increase = -0.02 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = 0.015 }
		set_temp_variable = { temp_outlook_increase = 0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 20 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}

	option = {
		name = ukr_history.49.b
		log = "[GetDateText]: [Root.GetName]: ukr_history.49.b executed"
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.042 }
		set_temp_variable = { temp_outlook_increase = -0.042 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.035 }
		set_temp_variable = { temp_outlook_increase = 0.035 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = -0.028 }
		set_temp_variable = { temp_outlook_increase = -0.028 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = 0.021 }
		set_temp_variable = { temp_outlook_increase = 0.021 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 20 }
		set_temp_variable = { party_popularity_increase = 0.014 }
		set_temp_variable = { temp_outlook_increase = 0.014 }
		change_relative_party_popularity = yes
		add_stability = -0.04
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.50
	title = ukr_history.50.t
	desc = ukr_history.50.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.50.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.50.a executed"
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_variable = { conservatism_leader = 1 } # Viktor Yushchenko
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.51
	title = ukr_history.51.t
	desc = ukr_history.51.d
	picture = GFX_negotiations
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { western_conservatism_are_in_power = yes }

	option = {
		name = ukr_history.51.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.51.a executed"
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = 0.02 }
		set_temp_variable = { temp_outlook_increase = 0.02 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = -0.015 }
		set_temp_variable = { temp_outlook_increase = -0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { add_col_one = 14 }
		add_coalition_members_effect = yes
		set_temp_variable = { add_col_one = 1 }
		add_coalition_members_effect = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.52
	title = ukr_history.52.t
	desc = ukr_history.52.d
	picture = GFX_negotiations
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		western_conservatism_are_in_power = yes
		NOT = { has_completed_focus = UKR_our_ukraine_cheap_gas_negotiate }
	}

	option = {
		name = ukr_history.52.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.52.a executed"
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = -0.02 }
		set_temp_variable = { temp_outlook_increase = -0.02 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.02 }
		set_temp_variable = { temp_outlook_increase = 0.02 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}

	option = {
		name = ukr_history.52.b
		log = "[GetDateText]: [Root.GetName]: ukr_history.52.b executed"
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		add_stability = -0.03
		add_political_power = -60
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.53
	title = ukr_history.53.t
	desc = ukr_history.53.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.53.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.53.a executed"
		set_temp_variable = { party_index = 20 }
		set_temp_variable = { party_popularity_increase = 0.025 }
		set_temp_variable = { temp_outlook_increase = 0.025 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.015 }
		set_temp_variable = { temp_outlook_increase = -0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.54
	title = ukr_history.54.t
	desc = ukr_history.54.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { western_conservatism_are_in_power = yes }

	option = {
		name = ukr_history.54.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.54.a executed"
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.03 }
		set_temp_variable = { temp_outlook_increase = 0.03 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = -0.03 }
		set_temp_variable = { temp_outlook_increase = -0.03 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.025 }
		set_temp_variable = { temp_outlook_increase = -0.025 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = 0.015 }
		set_temp_variable = { temp_outlook_increase = 0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 20 }
		set_temp_variable = { party_popularity_increase = 0.015 }
		set_temp_variable = { temp_outlook_increase = 0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 13 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 5 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.55
	title = ukr_history.55.t
	desc = ukr_history.55.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.55.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.55.a executed"
		set_temp_variable = { party_index = 13 }
		set_temp_variable = { party_popularity_increase = 0.02 }
		set_temp_variable = { temp_outlook_increase = 0.02 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_variable = { Neutral_Autocracy_leader = 1 } # Serhiy Tihipko
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.56
	title = ukr_history.56.t
	desc = ukr_history.56.d
	picture = GFX_verkhovna_rada_vote
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.56.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.56.a executed"
		set_temp_variable = { party_index = 13 }
		set_temp_variable = { party_popularity_increase = 0.06 }
		set_temp_variable = { temp_outlook_increase = 0.06 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.06 }
		set_temp_variable = { temp_outlook_increase = -0.06 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 2 }
		set_temp_variable = { party_popularity_increase = 0.04 }
		set_temp_variable = { temp_outlook_increase = 0.04 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 7 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 18 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 21 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 0 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 17 }
		set_temp_variable = { party_popularity_increase = -0.003 }
		set_temp_variable = { temp_outlook_increase = -0.003 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 16 }
		set_temp_variable = { party_popularity_increase = -0.003 }
		set_temp_variable = { temp_outlook_increase = -0.003 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.57
	title = ukr_history.57.t
	desc = ukr_history.57.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.57.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.57.a executed"
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.02 }
		set_temp_variable = { temp_outlook_increase = 0.02 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = -0.02 }
		set_temp_variable = { temp_outlook_increase = -0.02 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.015 }
		set_temp_variable = { temp_outlook_increase = -0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { remove_col_one = 3 }
		remove_coalition_members_effect = yes
		set_temp_variable = { add_col_one = 4 }
		add_coalition_members_effect = yes
		set_temp_variable = { add_col_one = 14 }
		add_coalition_members_effect = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.58
	title = ukr_history.58.t
	desc = ukr_history.58.d
	picture = GFX_donetsk_protests
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		emerging_reactionaries_are_in_power = yes
		has_completed_focus = UKR_party_regions_inauguration
	}

	option = {
		name = ukr_history.58.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.58.a executed"
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.59
	title = ukr_history.59.t
	desc = ukr_history.59.d
	picture = GFX_ukrainian_parliament
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.59.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.59.a executed"
		set_temp_variable = { party_index = 2 }
		set_temp_variable = { party_popularity_increase = 0.015 }
		set_temp_variable = { temp_outlook_increase = 0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_variable = { liberalism_leader = 1 } # Arseniy Yatsenyuk
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.60
	title = ukr_history.60.t
	desc = ukr_history.60.d
	picture = GFX_verkhovna_rada_vote
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		emerging_reactionaries_are_in_power = yes
		NOT = { has_completed_focus = UKR_party_regions_reform_constituion }
	}

	option = {
		name = ukr_history.60.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.60.a executed"
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 20 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.61
	title = ukr_history.61.t
	desc = ukr_history.61.d
	picture = GFX_verkhovna_rada_vote
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { emerging_reactionaries_are_in_power = yes }

	option = {
		name = ukr_history.61.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.61.a executed"
		set_temp_variable = { party_index = 20 }
		set_temp_variable = { party_popularity_increase = 0.03 }
		set_temp_variable = { temp_outlook_increase = 0.03 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = -0.03 }
		set_temp_variable = { temp_outlook_increase = -0.03 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = -0.02 }
		set_temp_variable = { temp_outlook_increase = -0.02 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 13 }
		set_temp_variable = { party_popularity_increase = 0.015 }
		set_temp_variable = { temp_outlook_increase = 0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 2 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.62
	title = ukr_history.62.t
	desc = ukr_history.62.d
	picture = GFX_maidan1
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.62.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.62.a executed"
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = -0.02 }
		set_temp_variable = { temp_outlook_increase = -0.02 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 2 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 20 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		hidden_effect = { recalculate_party = yes }
	}

	option = {
		name = ukr_history.62.b
		log = "[GetDateText]: [Root.GetName]: ukr_history.62.b executed"
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = -0.032 }
		set_temp_variable = { temp_outlook_increase = -0.032 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.016 }
		set_temp_variable = { temp_outlook_increase = 0.016 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 2 }
		set_temp_variable = { party_popularity_increase = 0.008 }
		set_temp_variable = { temp_outlook_increase = 0.008 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 20 }
		set_temp_variable = { party_popularity_increase = 0.008 }
		set_temp_variable = { temp_outlook_increase = 0.008 }
		change_relative_party_popularity = yes
		add_political_power = 50
		add_stability = -0.03
		hidden_effect = { recalculate_party = yes }
	}
}

country_event = {
	id = ukr_history.63
	title = ukr_history.63.t
	desc = ukr_history.63.d
	picture = GFX_court
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = ukr_history.63.a
		log = "[GetDateText]: [Root.GetName]: ukr_history.63.a executed"
		set_temp_variable = { party_index = 3 }
		set_temp_variable = { party_popularity_increase = 0.03 }
		set_temp_variable = { temp_outlook_increase = 0.03 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 14 }
		set_temp_variable = { party_popularity_increase = -0.015 }
		set_temp_variable = { temp_outlook_increase = -0.015 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 1 }
		set_temp_variable = { party_popularity_increase = 0.01 }
		set_temp_variable = { temp_outlook_increase = 0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 0 }
		set_temp_variable = { party_popularity_increase = -0.01 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 15 }
		set_temp_variable = { party_popularity_increase = -0.005 }
		set_temp_variable = { temp_outlook_increase = -0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = 0.005 }
		set_temp_variable = { temp_outlook_increase = 0.005 }
		change_relative_party_popularity = yes
		set_temp_variable = { remove_col_one = 3 }
		remove_coalition_members_effect = yes
		hidden_effect = { recalculate_party = yes }
	}
}
news_event = {
	id = ukr_economy_rate.1
	title = ukr_economy_rate.1.t
	desc = ukr_economy_rate.1.d
	picture = GFX_ukr_economy_rate
	is_triggered_only = yes

	trigger = {
		original_tag = UKR
		check_variable = { var = cb_policy_rate value = 8 compare = greater_than_or_equals } # rate stays >= 7 after the cut
	}

	option = {
		name = ukr_economy_rate.1.a
		log = "[GetDateText]: [This.GetName]: ukr_economy_rate.1.a executed"

		subtract_from_variable = { cb_policy_rate = 1 }
		clamp_variable = { var = cb_policy_rate min = 0 }
		set_country_flag = { flag = temp_cb_rate_changed value = 1 days = 60 }
		custom_effect_tooltip = { localization_key = modifies_cb_policy_rate_tt RATE = 1 }

		set_temp_variable = { int_investment_change = 0.05 }
		modify_international_investment_effect = yes
		custom_effect_tooltip = {
			localization_key = modifies_dynamic_modifier_tt
			MODIFIER = UKR_economic_reforms_modifier
		}
		add_to_variable = { UKR_econ_mod_productivity_growth_modifier = 0.01 tooltip = productivity_growth_modifier_tt }
	}

	option = {
		name = ukr_economy_rate.1.b
		log = "[GetDateText]: [This.GetName]: ukr_economy_rate.1.b executed"
		ai_chance = { base = 0 }
		add_political_power = -5
		add_stability = -0.005
	}
}

news_event = {
	id = ukr_economy_rate.2
	title = ukr_economy_rate.2.t
	desc = ukr_economy_rate.2.d
	picture = GFX_ukr_economy_rate
	is_triggered_only = yes

	trigger = {
		original_tag = UKR
		check_variable = { var = cb_policy_rate value = 9 compare = greater_than_or_equals } # rate stays >= 7 after the cut
	}

	option = {
		name = ukr_economy_rate.2.a
		log = "[GetDateText]: [This.GetName]: ukr_economy_rate.2.a executed"

		subtract_from_variable = { cb_policy_rate = 2 }
		clamp_variable = { var = cb_policy_rate min = 0 }
		set_country_flag = { flag = temp_cb_rate_changed value = 1 days = 60 }
		custom_effect_tooltip = { localization_key = modifies_cb_policy_rate_tt RATE = 2 }

		set_temp_variable = { int_investment_change = 0.10 }
		modify_international_investment_effect = yes
		custom_effect_tooltip = {
			localization_key = modifies_dynamic_modifier_tt
			MODIFIER = UKR_economic_reforms_modifier
		}
		add_to_variable = { UKR_econ_mod_productivity_growth_modifier = 0.01 tooltip = productivity_growth_modifier_tt }
	}

	option = {
		name = ukr_economy_rate.1.b
		log = "[GetDateText]: [This.GetName]: ukr_economy_rate.2.b executed"
		ai_chance = { base = 0 }
		add_political_power = -10
		add_stability = -0.01
	}
}

news_event = {
	id = ukr_economy_rate.3
	title = ukr_economy_rate.3.t
	desc = ukr_economy_rate.3.d
	picture = GFX_ukr_economy_rate
	is_triggered_only = yes

	trigger = {
		original_tag = UKR
		check_variable = { var = cb_policy_rate value = 10 compare = greater_than_or_equals } # rate stays >= 7 after the cut
	}

	option = {
		name = ukr_economy_rate.2.a
		log = "[GetDateText]: [This.GetName]: ukr_economy_rate.3.a executed"

		subtract_from_variable = { cb_policy_rate = 3 }
		clamp_variable = { var = cb_policy_rate min = 0 }
		set_country_flag = { flag = temp_cb_rate_changed value = 1 days = 60 }
		custom_effect_tooltip = { localization_key = modifies_cb_policy_rate_tt RATE = 3 }

		set_temp_variable = { int_investment_change = 0.15 }
		modify_international_investment_effect = yes
		custom_effect_tooltip = {
			localization_key = modifies_dynamic_modifier_tt
			MODIFIER = UKR_economic_reforms_modifier
		}
		add_to_variable = { UKR_econ_mod_productivity_growth_modifier = 0.015 tooltip = productivity_growth_modifier_tt }
	}

	option = {
		name = ukr_economy_rate.1.b
		log = "[GetDateText]: [This.GetName]: ukr_economy_rate.3.b executed"
		ai_chance = { base = 0 }
		add_political_power = -15
		add_stability = -0.015
	}
}

news_event = {
	id = ukr_economy_rate.4
	title = ukr_economy_rate.4.t
	desc = ukr_economy_rate.4.d
	picture = GFX_ukr_economy_rate
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		original_tag = UKR
		check_variable = { var = cb_policy_rate value = 11 compare = greater_than_or_equals } # rate stays >= 7 after the cut
	}

	option = {
		name = ukr_economy_rate.2.a
		log = "[GetDateText]: [This.GetName]: ukr_economy_rate.4.a executed"

		subtract_from_variable = { cb_policy_rate = 4 }
		clamp_variable = { var = cb_policy_rate min = 0 }
		set_country_flag = { flag = temp_cb_rate_changed value = 1 days = 60 }
		custom_effect_tooltip = { localization_key = modifies_cb_policy_rate_tt RATE = 4 }

		set_temp_variable = { int_investment_change = 0.20 }
		modify_international_investment_effect = yes
		custom_effect_tooltip = {
			localization_key = modifies_dynamic_modifier_tt
			MODIFIER = UKR_economic_reforms_modifier
		}
		add_to_variable = { UKR_econ_mod_productivity_growth_modifier = 0.015 tooltip = productivity_growth_modifier_tt }
	}

	option = {
		name = ukr_economy_rate.1.b
		log = "[GetDateText]: [This.GetName]: ukr_economy_rate.4.b executed"
		ai_chance = { base = 0 }
		add_political_power = -20
		add_stability = -0.02
	}
}

news_event = {
	id = ukr_economy_rate.5
	title = ukr_economy_rate.5.t
	desc = ukr_economy_rate.5.d
	picture = GFX_ukr_economy_rate
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		original_tag = UKR
		check_variable = { var = cb_policy_rate value = 17 compare = greater_than_or_equals } # rate stays >= 7 after the cut
	}

	option = {
		name = ukr_economy_rate.5.a
		log = "[GetDateText]: [This.GetName]: ukr_economy_rate.5.a executed"

		subtract_from_variable = { cb_policy_rate = 10 }
		clamp_variable = { var = cb_policy_rate min = 0 }
		set_country_flag = { flag = temp_cb_rate_changed value = 1 days = 60 }
		custom_effect_tooltip = { localization_key = modifies_cb_policy_rate_tt RATE = 10 }

		set_temp_variable = { int_investment_change = 0.50 }
		modify_international_investment_effect = yes
		custom_effect_tooltip = {
			localization_key = modifies_dynamic_modifier_tt
			MODIFIER = UKR_economic_reforms_modifier
		}
		add_to_variable = { UKR_econ_mod_productivity_growth_modifier = 0.040 tooltip = productivity_growth_modifier_tt }
	}

	option = {
		name = ukr_economy_rate.1.b
		log = "[GetDateText]: [This.GetName]: ukr_economy_rate.5.b executed"
		ai_chance = { base = 0 }
		add_political_power = -50
		add_stability = -0.05
	}
}

country_event = {
	id = ukr_history.400
	hidden = yes
	is_triggered_only = yes

	trigger = {
		is_ai = yes
		has_civil_war = no
		UKR_ai_historical_path = yes
		UKR_ai_not_historical_path = no
		NOT = { has_country_flag = generic_election_killswitch }
	}

	immediate = {
		log = "[GetDateText]: [Root.GetName]: event ukr_history.400"
		if = {
			limit = { date > 2019.5.19 }
			if = {
				limit = { NOT = { has_country_flag = UKR_zelensky_formed } }
				country_event = ukr_zelenskiy.2
			}
			set_variable = { Neutral_Libertarian_leader = 2 }
			set_temp_variable = { rul_party_temp = 16 }
		}
		else_if = {
			limit = { date > 2014.6.6 }
			set_variable = { conservatism_leader = 2 }
			set_temp_variable = { rul_party_temp = 1 }
		}
		else_if = {
			limit = { date > 2010.2.24 }
			set_variable = { Conservative_leader = 0 }
			set_temp_variable = { rul_party_temp = 6 }
		}
		else = {
			set_variable = { conservatism_leader = 1 }
			set_temp_variable = { rul_party_temp = 1 }
		}

		if = {
			limit = { NOT = { check_variable = { ruling_party = rul_party_temp } } }
			change_ruling_party_effect = yes
			set_elections_60_months = yes
		}
		else = {
			set_leader = yes
		}
	}
}
