add_namespace = UIA_insurgency_options

#UIA_insurgency_options.1		#Infilitration Successful
#UIA_insurgency_options.2		#Infilitration Failure

#UIA_insurgency_options.3		#Raid Successful
#UIA_insurgency_options.4		#Raid Failure

#UIA_insurgency_options.5		#Bombing Run Successful
#UIA_insurgency_options.6		#Bombing Run Failure

country_event = {
	id = UIA_insurgency_options.1
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = UIA_insurgency_options.1"}
	title = "Успешное Вторжение Украинской Повстанческой Армии"
	desc = UIA_insurgency_options.1.d
	picture = GFX_uia_insurgency_1

	is_triggered_only = yes


	option = {
		name = "Искать Тайники с Оружием УПА."
		if = {
			limit = {
				check_variable = { ukranian_insurgency < 0.8 }
			}
			random_list = {
				70 = {
					country_event = UIA_insurgency_options.2
				}
				30 = {
					country_event = UIA_insurgency_options.21
				}
			}
		}
		else = {
			random_list = {
				50 = {
					country_event = UIA_insurgency_options.2
				}
				50 = {
					country_event = UIA_insurgency_options.21
				}
			}
		}
	}
	option = {
		name = "Искать истребители УПА в окрестностях."
		if = {
			limit = {
				check_variable = { ukranian_insurgency < 0.6 }
			}
			random_list = {
				60 = {
					country_event = UIA_insurgency_options.3
				}
				40 = {
					country_event = UIA_insurgency_options.31
				}
			}
		}
		else = {
			random_list = {
				30 = {
					country_event = UIA_insurgency_options.3
				}
				70 = {
					country_event = UIA_insurgency_options.31
				}
			}
		}
	}
	option = {
		name = "Проникнуть в местную подземную сеть."
		if = {
			limit = {
				check_variable = { ukranian_insurgency < 0.4 }
			}
			random_list = {
				50 = {
					country_event = UIA_insurgency_options.4
				}
				50 = {
					country_event = UIA_insurgency_options.41
				}
			}
		}
		else = {
			random_list = {
				20 = {
					country_event = UIA_insurgency_options.4
				}
				80 = {
					country_event = UIA_insurgency_options.41
				}
			}
		}
	}
	option = {
		name = "Ликвидировать местных командиров УПА"
		trigger = {
			check_variable = { ukranian_insurgency < 0.35 }
		}
		random_list = {
			50 = {
				country_event = UIA_insurgency_options.6
			}
			50 = {
				country_event = UIA_insurgency_options.61
			}
		}
	}
}

country_event = {
	id = UIA_insurgency_options.2 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = UIA_insurgency_options.2"}
	title = "Неудачная Попытка Украинской Повстанческой Армии"
	desc = UIA_insurgency_options.2.d
	picture = GFX_uia_insurgency_2

	is_triggered_only = yes


	option = {
		name = "Хорошие Новости"
		add_to_variable = {
			ukranian_insurgency = -0.05
			tooltip = increase_insurgency_tt
		}
		clamp_variable = {
			var = ukranian_insurgency
			min = 0
			max = 1
		}
		clear_variable = UIA_selected_State
	}
}
country_event = {
	id = UIA_insurgency_options.21
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = UIA_insurgency_options.21"}
	title = "Неудачное Разграбление Тайников Украинской Повстанческой Армии"
	desc = UIA_insurgency_options.21.d
	picture = GFX_uia_insurgency_2

	is_triggered_only = yes


	option = {
		name = "Ужас"
		add_to_variable = { ukranian_insurgency = 5 }
	}
}

country_event = {
	id = UIA_insurgency_options.3 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = UIA_insurgency_options.3"}
	title = "Успешный Рейд Украинской Повстанческой Армии"
	desc = UIA_insurgency_options.3.d
	picture = GFX_uia_insurgency_3

	is_triggered_only = yes


	option = {
		name = "Хорошие Новости"
		add_to_variable = {
			ukranian_insurgency = -0.075
			tooltip = increase_insurgency_tt
		}
		clamp_variable = {
			var = ukranian_insurgency
			min = 0
			max = 1
		}
		clear_variable = UIA_selected_State
	}
}
country_event = {
	id = UIA_insurgency_options.31 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = UIA_insurgency_options.31"}
	title = "Неудачный Рейд Украинской Повстанческой Армии"
	desc = UIA_insurgency_options.31.d
	picture = GFX_uia_insurgency_3

	is_triggered_only = yes

	option = {
		name = "Ужас"
		clear_variable = UIA_selected_State
	}
}

country_event = {
	id = UIA_insurgency_options.4 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = UIA_insurgency_options.4"}
	title = "Неудачный Рейд на Украинскую Повстанческую Армию"
	desc = UIA_insurgency_options.4.d
	picture = GFX_uia_insurgency_4

	is_triggered_only = yes

	option = {
		name = "Хорошие Новости!"
		add_to_variable = {
			ukranian_insurgency = -0.1
			tooltip = increase_insurgency_tt
		}
		clamp_variable = {
			var = ukranian_insurgency
			min = 0
			max = 1
		}
		clear_variable = UIA_selected_State
	}
}

country_event = {
	id = UIA_insurgency_options.41
	immediate = {log = "[GetDateText]: [Root.GetTag]: id = UIA_insurgency_options.41"}
	title = "Неудачная Инфильтрация в Украинской Повстанческой Армии"
	desc = UIA_insurgency_options.41.d
	picture = GFX_uia_insurgency_4

	is_triggered_only = yes

	option = {
		name = "Ужас"
		add_to_variable = { ukranian_insurgency = 5 }
		add_manpower = -100
	}
}
country_event = {
	id = UIA_insurgency_options.5 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = UIA_insurgency_options.5"}
	title = "Успешная Бомбардировка Украинской Повстанческой Армии"
	desc = UIA_insurgency_options.5.d
	picture = GFX_uia_insurgency_5

	is_triggered_only = yes


	option = {
		name = "Хорошие Новости"
		add_to_variable = {
			ukranian_insurgency = -0.2
			tooltip = increase_insurgency_tt
		}
		clamp_variable = {
			var = ukranian_insurgency
			min = 0
			max = 1
		}
		set_country_flag = Shukhevych_dead
	}
}
country_event = {
	id = UIA_insurgency_options.51
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = UIA_insurgency_options.51"}
	title = "Неудавшееся Покушение на Романа Шухевича"
	desc = UIA_insurgency_options.51.d
	picture = GFX_uia_insurgency_5

	is_triggered_only = yes


	option = {
		name = "Плохо"
	}
}

country_event = {
	id = UIA_insurgency_options.6 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = UIA_insurgency_options.6"}
	title = "Бомбардировщик Сбит во Время Операции по Борьбе с Повстанцами"
	desc = UIA_insurgency_options.6.d
	picture = GFX_uia_insurgency_6

	is_triggered_only = yes


	option = {
		name = "Хорошие Новости!"
		add_to_variable = {
			ukranian_insurgency = -0.15
			tooltip = increase_insurgency_tt
		}
		clamp_variable = {
			var = ukranian_insurgency
			min = 0
			max = 1
		}
		clear_variable = UIA_selected_State
	}
}
country_event = {
	id = UIA_insurgency_options.61
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = UIA_insurgency_options.61"}
	title = "Неудавшееся Покушение на Местного Командира УПА"
	desc = UIA_insurgency_options.61.d
	picture = GFX_uia_insurgency_6

	is_triggered_only = yes


	option = {
		name = "Это только подстегнет их..."
		clear_variable = UIA_selected_State
	}
}
news_event = {
	id = UIA_insurgency_options.10 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = UIA_insurgency_options.10"}
	title = "[GetNewspaperHeader]Гибель Украинской Повстанческой Армии"
	desc = UIA_insurgency_options.10.d
	picture = GFX_UIA_Crushed

	is_triggered_only = yes
	major = yes


	option = {
		name = "Интересно"
	}
}
news_event = {
	id = UIA_insurgency_options.11 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = UIA_insurgency_options.11"}
	title = "[GetNewspaperHeader]Освобождение Западной Украины"
	desc = UIA_insurgency_options.11.d
	picture = GFX_UIA_Victory

	is_triggered_only = yes
	major = yes


	option = {
		name = "Как Советский Союз допустил эскалацию до этой точки..."
	}
}


