###########################
# Ukraine Events - other
###########################

add_namespace = ukr_lor

### Start info ###
# Starting message
country_event = {
	id = ukr_lor.800
	title = ukr_lor.800.t
	desc = ukr_lor.800.d
	picture = GFX_report_event_ukrainian_state_seal

	is_triggered_only = yes

	option = {
		name = ukr_lor.800.a
		trigger = { has_start_date < 1936.01.02 }
		ai_chance = {
			base = 100
		}
		hidden_effect = {
			if = {
				limit = { is_historical_focus_on = no }
				replace_AI_paths_for_POL = yes
			}
		}
		country_event = { id = ukr_lor.801 }
	}
	option = {
		name = ukr_lor.800.b
		trigger = { has_start_date < 1936.01.02 }
		ai_chance = {
			base = 0
		}
		hidden_effect = {
			if = {
				limit = { is_historical_focus_on = no }
				replace_AI_paths_for_POL = yes
			}
		}
	}
	option = {
		name = ukr_lor.800.c
		trigger = { has_start_date > 1936.01.02 }
		country_event = { id = ukraine.260 }
	}
}
# Starting message - later history
country_event = {
	id = ukr_lor.801
	title = ukr_lor.801.t
	desc = ukr_lor.801.d
	picture = GFX_report_event_ukrainian_defence

	is_triggered_only = yes

	option = {
		name = ukr_lor.800.a
		ai_chance = {
			base = 100
		}
		country_event = { id = ukr_lor.802 }
	}
	option = {
		name = ukr_lor.800.b
		ai_chance = {
			base = 0
		}
	}
}
# Starting message - parties and leaders
country_event = {
	id = ukr_lor.802
	title = ukr_lor.802.t
	desc = ukr_lor.802.d
	picture = GFX_report_event_ukrainian_party_leaders

	is_triggered_only = yes

	option = {
		name = ukr_lor.800.a
		ai_chance = {
			base = 100
		}
		country_event = { id = ukr_lor.803 }
	}
	option = {
		name = ukr_lor.800.b
		ai_chance = {
			base = 0
		}
	}
}
# Starting message - diplomacy, part 1
country_event = {
	id = ukr_lor.803
	title = ukr_lor.803.t
	desc = ukr_lor.803.d
	picture = GFX_report_event_ukr_foreign_ministry

	is_triggered_only = yes

	option = {
		name = ukr_lor.800.a
		ai_chance = {
			base = 100
		}
		country_event = { id = ukr_lor.804 }
	}
	option = {
		name = ukr_lor.800.b
		ai_chance = {
			base = 0
		}
	}
}
# Starting message - diplomacy, part 2
country_event = {
	id = ukr_lor.804
	title = ukr_lor.804.t
	desc = ukr_lor.804.d
	picture = GFX_report_event_foreign_affairs_of_skoropadskyi

	is_triggered_only = yes

	option = {
		name = ukr_lor.800.a
		ai_chance = {
			base = 100
		}
		country_event = { id = ukr_lor.805 }
	}
	option = {
		name = ukr_lor.800.b
		ai_chance = {
			base = 0
		}
	}
}
# Starting message - White Crimea
country_event = {
	id = ukr_lor.805
	title = ukr_lor.805.t
	desc = ukr_lor.805.d
	picture = GFX_report_event_crimea_leaders

	is_triggered_only = yes

	option = {
		name = ukr_lor.800.a
		ai_chance = {
			base = 100
		}
		country_event = { id = ukr_lor.806 }
	}
	option = {
		name = ukr_lor.800.b
		ai_chance = {
			base = 0
		}
	}
}
# Starting message - Armed forces
country_event = {
	id = ukr_lor.806
	title = ukr_lor.806.t
	desc = ukr_lor.806.d
	picture = GFX_report_event_ukrainian_fleet

	is_triggered_only = yes

	option = {
		name = ukr_lor.800.a
		ai_chance = {
			base = 100
		}
		country_event = { id = ukr_lor.807 }
	}
	option = {
		name = ukr_lor.800.b
		ai_chance = {
			base = 0
		}
	}
}
# Starting message - Transcarpathian Ukraine
country_event = {
	id = ukr_lor.807
	title = ukr_lor.807.t
	desc = ukr_lor.807.d
	picture = GFX_report_event_carphatian_ukraine

	is_triggered_only = yes

	option = {
		name = ukr_lor.800.a
		ai_chance = {
			base = 100
		}
		country_event = { id = ukr_lor.808 }
	}
	option = {
		name = ukr_lor.800.b
		ai_chance = {
			base = 0
		}
	}
}
# Starting message - Makhnovia
country_event = {
	id = ukr_lor.808
	title = ukr_lor.808.t
	desc = ukr_lor.808.d
	picture = GFX_report_event_makhnovists

	is_triggered_only = yes

	option = {
		name = ukr_lor.800.a
		ai_chance = {
			base = 100
		}
		country_event = { id = ukr_lor.809 }
	}
	option = {
		name = ukr_lor.800.b
		ai_chance = {
			base = 0
		}
	}
}
# Starting message - conclusion
country_event = {
	id = ukr_lor.809
	title = ukr_lor.809.t
	desc = ukr_lor.809.d
	picture = GFX_report_event_ukrainian_propaganda

	is_triggered_only = yes

	option = {
		name = ukr_lor.809.a
		ai_chance = {
			base = 100
		}
		add_war_support = 0.05
	}
	option = {
		name = ukr_lor.809.b
		ai_chance = {
			base = 0
		}
		country_event = { id = ukr_lor.800 }
	}
}
add_namespace = ukr_test
# 
country_event = {
	id = ukr_test.1
	title = ukr_test.1.t
	desc = ukr_test.1.d

	is_triggered_only = yes

	option = {
		name = ukr_test.1.a
		if = {
			limit = { tag = UKR }
			POL = { country_event = { id = ukraine.237 } }
		}
		if = {
			limit = { tag = POL }
			UKR = { country_event = { id = ukraine.237 } }
		}
	}
}
# 
country_event = {
	id = ukr_test.2
	title = ukr_test.2.t
	desc = ukr_test.2.d

	is_triggered_only = yes

	option = {
		name = ukr_test.2.a
		UKR = {
			every_operative = {
				if = {
					limit = { has_trait = operative_commando }
				}
				set_nationality = ROM
			}
		}
	}
	option = {
		name = ukr_test.2.b
		UKR = {
			every_operative = {
				if = {
					limit = { has_trait = operative_commando }
				}
				turn_operative = {
					turned_by = ROM
				}
			}
		}
	}
	option = {
		name = ukr_test.2.c
		UKR = {
			every_operative = {
				if = {
					limit = { 
						has_trait = operative_commando 
					}
				}
				retire = yes
			}
		}
	}
}
# 
country_event = {
	id = ukr_test.3
	title = ukr_test.3.t
	desc = ukr_test.3.d

	is_triggered_only = yes

	immediate = {
		release = DON
	}
	
	option = {
		name = ukr_test.3.a
		DON = { change_tag_from = ROOT }
	}
	option = {
		name = ukr_test.3.b
	}
}
# release CRI
country_event = {
	id = ukr_test.4
	title = ukr_test.4.t
	desc = ukr_test.4.d

	is_triggered_only = yes

	immediate = {
		transfer_state = 137
		CRI = {
			add_state_core = 137
		}
		release_puppet = CRI
		CRI = {
			set_politics = { ruling_party = democratic elections_allowed = yes }
			add_popularity = { ideology = democratic popularity = 0.5 }
		}
		137 = { remove_claim_by = UKR }
	}
	
	option = {
		name = ukr_test.4.a
		CRI = { change_tag_from = ROOT }
	}
	option = {
		name = ukr_test.4.b
	}
}
# set flag UKR_cossack_republic
country_event = {
	id = ukr_test.5
	title = ukr_test.5.t
	desc = ukr_test.5.d

	is_triggered_only = yes
	
	option = {
		name = ukr_test.5.a
		set_country_flag = UKR_cossack_republic
		set_country_flag = UKR_unionists_is_rulers
		set_variable = { ucr_modifier_polit_power = 0 }
		set_variable = { ucr_unionists_polit_power = 0 }
		set_variable = { ucr_guards_polit_power = 0 }
		set_variable = { ucr_right_polit_power = 0 }
		set_variable = { ucr_black_polit_power = 0 }
		set_variable = { ucr_modifier_wargoal = 0 }
		set_variable = { ucr_unionists_dipl_bonus = 0 }
		set_variable = { ucr_guards_dipl_bonus = 0 }
		set_variable = { ucr_right_dipl_bonus = 0 }
		set_variable = { ucr_black_dipl_bonus = 0 }
		set_variable = { ucr_loyality_of_osavul = 1 }
		set_variable = { ucr_loyality_of_pisar = 1 }
		set_variable = { ucr_loyality_of_judge = 1 }
		set_variable = { ucr_loyality_of_wagonmaster = 1 }
		set_variable = { ucr_loyality_of_khorunzhy = 1 }
		hidden_effect = {
			add_dynamic_modifier = {
				modifier = UKR_bonuses_for_ucr_mod
			}
			ucr_support_of_unionists_full = yes
			ucr_opposition_of_guards_full = yes
			ucr_opposition_of_right_full = yes
			ucr_opposition_of_black_full = yes
			add_country_leader_role = {
				character = UKR_oleksander_beresowski
				promote_leader = no
				country_leader = {
					ideology = despotism
					expire = "1953.3.1"
					traits = { persistent_reactionist }
				}
			}
			add_country_leader_role = {
				character = UKR_petro_bolbochan
				promote_leader = no
				country_leader = {
					ideology = despotism
					expire = "1953.3.1"
					traits = { nationalist_symbol }
				}
			}
			add_country_leader_role = {
				character = UKR_panas_lyubchenko
				promote_leader = no
				country_leader = {
					ideology = moderatism
					expire = "1953.3.1"
					traits = { }
				}
			}
		}
		promote_character = UKR_danylo_skoropadskyi
		activate_decision = UKR_hetmans_yearly_elections
	}
}
# 
country_event = {
	id = ukr_test.6
	title = ukr_test.6.t
	desc = ukr_test.6.d

	is_triggered_only = yes

	
	option = {
		name = ukr_test.6.a
		set_cosmetic_tag = CRI_SOV
	}
	option = {
		name = ukr_test.6.b
		set_cosmetic_tag = TEST_CRI
	}
}
# 
country_event = {
	id = ukr_test.7
	title = ukr_test.7.t
	desc = ukr_test.7.d

	is_triggered_only = yes

	
	option = {
		name = ukr_test.7.a
		trigger = { NOT = { has_country_flag = UKR_unionists_is_rulers } }
		ucr_support_of_unionists_full = yes
	}
	option = {
		name = ukr_test.7.b
		trigger = { NOT = { has_country_flag = UKR_guards_of_order_is_rulers } }
		ucr_support_of_guards_full = yes
	}
	option = {
		name = ukr_test.7.c
		trigger = { NOT = { has_country_flag = UKR_right_wing_is_rulers } }
		ucr_support_of_right_full = yes
	}
	option = {
		name = ukr_test.7.e
		trigger = { NOT = { has_country_flag = UKR_black_rada_is_rulers } }
		ucr_support_of_black_full = yes
	}
	option = {
		name = ukr_test.7.f

	}
}
# 
country_event = {
	id = ukr_test.8
	title = ukr_test.8.t
	desc = ukr_test.8.d

	is_triggered_only = yes

	
	option = {
		name = ukr_test.8.a
		add_country_leader_trait = defender_of_weak
	}
}
# 
country_event = {
	id = ukr_test.9
	title = ukr_test.9.t
	desc = ukr_test.9.d

	is_triggered_only = yes

	
	option = {
		name = ukr_test.9.a
		UKR_roman_shukhevych = {
			unit_leader_event = ukraine.522
		}
	}
}
# 
country_event = {
	id = ukr_test.10
	title = ukr_test.10.t
	desc = ukr_test.10.d

	is_triggered_only = yes

	immediate = {
		SKL = {
			add_state_core = 590
			add_state_core = 583
			add_state_core = 882
			transfer_state = 590
			transfer_state = 583
			transfer_state = 882
		}
	}
	
	option = {
		name = ukr_test.10.a
		SKL = { change_tag_from = ROOT }
	}
	option = {
		name = ukr_test.10.b
	}
}
# 
country_event = {
	id = ukr_test.11
	title = ukr_test.11.t
	desc = ukr_test.11.d

	is_triggered_only = yes

	
	option = {
		name = ukr_test.11.a
		set_country_flag = UKR_capitulation_tree_is_available
		mark_focus_tree_layout_dirty = yes
	}
}
# 
country_event = {
	id = ukr_test.12
	title = ukr_test.12.t
	desc = ukr_test.12.d

	is_triggered_only = yes
	
	trigger = {
		TAG = UKR
		UKR_lev_trotsky = {
			is_country_leader = yes
		}
		is_subject_of = SOV
		SOV = { has_government = communism }
	}
	
	option = {
		name = ukr_test.12.a
		retire_country_leader = yes
	}
	
	option = {
		name = ukr_test.12.b
		retire_character = UKR_lev_trotsky
	}
}
# 
country_event = {
	id = ukr_test.13
	title = ukr_test.13.t
	desc = ukr_test.13.d

	is_triggered_only = yes
	
	immediate = {
		unlock_national_focus = UKR_political_effort
		unlock_national_focus = UKR_old_course
		unlock_national_focus = UKR_monarchy
	}
	
	option = {
		name = ukr_test.13.a
		promote_character = UKR_king_anatolii
		set_country_flag = UKR_altmonarchy_branch_is_available
		set_country_flag = UKR_restore_of_rurikids
		mark_focus_tree_layout_dirty = yes
	}
	option = {
		name = ukr_test.13.b
		promote_character = UKR_king_vsevolod
		set_country_flag = UKR_altmonarchy_branch_is_available
		set_country_flag = UKR_restore_of_romanovs
		mark_focus_tree_layout_dirty = yes
	}
}
# 
country_event = {
	id = ukr_test.14
	title = ukr_test.14.t
	desc = ukr_test.14.d

	is_triggered_only = yes

	option = {
		name = ukr_test.14.a
		GER = {
			add_ai_strategy = {
				type = antagonize
				id = UKR
				value = 200
			}
			add_ai_strategy = {
				type = conquer
				id = UKR
				value = 200
			}
			add_ai_strategy = {
				type = prepare_for_war
				id = UKR
				value = 200
			}
			add_ai_strategy = {
				type = invade
				id = UKR
				value = 200
			}
		}
	}
	option = {
		name = ukr_test.14.b
		SOV = {
			add_ai_strategy = {
				type = antagonize
				id = UKR
				value = 200
			}
			add_ai_strategy = {
				type = conquer
				id = UKR
				value = 200
			}
			add_ai_strategy = {
				type = prepare_for_war
				id = UKR
				value = 200
			}
			add_ai_strategy = {
				type = invade
				id = UKR
				value = 200
			}
		}
	}
}
# 
country_event = {
	id = ukr_test.15
	title = ukr_test.15.t
	desc = ukr_test.15.d

	is_triggered_only = yes

	option = {
		name = ukr_test.15.a
		hidden_effect = {
			mark_focus_tree_layout_dirty = yes
		}

	}
	
}

# 
country_event = {
	id = ukr_test.16
	title = ukr_test.16.t
	desc = ukr_test.16.d

	is_triggered_only = yes

	option = {
		name = ukr_test.16.a
		UKR = { country_event = { id = ukraine.448 hours = 6 } } 

	}
	
}



