###########################
# Soviet Events
###########################

add_namespace = russia2_russia

# Check if File is Loaded
country_event = {
	id = russia2_russia.2092066524

	hidden = yes

	is_triggered_only = yes

	immediate = {
		set_global_flag = russia_reworked_events_loaded_soviets
	}
}

# Communist government in FROM baltic country and they wish to be annexed
country_event = {
	id = russia2_russia.4
	title = russia2_russia.4.t
	desc = russia2_russia.4.d
	picture = GFX_report_event_soviet_in_riga

	is_triggered_only = yes

	option = {
		name = russia2_russia.4.a
		ai_chance = { base = 100 }

		effect_tooltip = {
			if = {
				limit = {
					FROM = {
						tag = LIT
					}
				}
			 	SOV = {
			 		annex_country = {
						target = LIT
						transfer_troops = yes
					}
					add_named_threat = { threat = 2 name = russia2_russia.4_threat_LIT }
				}
			}
			if = {
				limit = {
					FROM = {
						tag = FIN
					}
				}
			 	SOV = {
			 		annex_country = {
						target = FIN
						transfer_troops = yes
					}
					add_named_threat = { threat = 5 name = russia2_russia.4_threat_FIN }
				}
			}
			if = {
				limit = {
					FROM = {
						tag = EST
					}
				}
			 	SOV = {
			 		annex_country = {
						target = EST
						transfer_troops = yes
					}
					add_named_threat = { threat = 2 name = russia2_russia.4_threat_EST }
				}
			}
			if = {
				limit = {
					FROM = {
						tag = LAT
					}
				}
			 	SOV = {
			 		annex_country = {
						target = LAT
						transfer_troops = yes
					}
					add_named_threat = { threat = 2 name = russia2_russia.4_threat_LAT }
				}
			}
		}

		hidden_effect = {

			 FROM = {
			 	country_event = { id = russia2_baltic.6 hours = 6}
			 }
			 news_event = { id = news.69 days = 1 }
		}
	}
	option = {
		name = russia2_russia.4.b
		ai_chance = { base = 0 }
	}
}

# Communist government in FROM baltic country and they wish to be part puppet
country_event = {
	id = russia2_russia.5
	title = russia2_russia.5.t
	desc = russia2_russia.5.d
	picture = GFX_report_event_soviet_in_riga

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			FROM = {
				save_event_target_as = baltic
			}
		}
	}

	option = {
		name = russia2_russia.5.a
		if = {
			limit = {
				FROM = { is_subject = no }
			}
			SOV = { puppet = FROM }
		}
		ai_chance = { base = 100 }
			if = {
				limit = { FROM = { tag = LIT } }
				add_named_threat = { threat = 1 name = russia2_russia.5_threat_LIT }
			}
			if = {
				limit = { FROM = { tag = FIN } }
				add_named_threat = { threat = 2 name = russia2_russia.5_threat_FIN }
			}
			if = {
				limit = { FROM = { tag = EST } }
				add_named_threat = { threat = 1 name = russia2_russia.5_threat_EST }
			}
			if = {
				limit = { FROM = { tag = LAT } }
				add_named_threat = { threat = 1 name = russia2_russia.5_threat_LAT }
			}

		#trigger news event
		hidden_effect = {
			news_event =  { id = news.70 days = 1}
		}
	}
	option = {
		name = russia2_russia.5.b
		ai_chance = { base = 0 }
	}
}

# Estonia Surrenders
country_event = {
	id = russia2_russia.6
	title = russia2_russia.6.t
	desc = russia2_russia.6.d
	picture = GFX_report_event_stalin_propaganda

	is_triggered_only = yes

	option = {
		name = soviet.6.a
		annex_country = { target = EST }
		hidden_effect = {
			news_event = { days = 2 id = newsrussia2.7 }
		}
	}
}

# Estonia Refuses
country_event = {
	id = russia2_russia.7
	title = russia2_russia.7.t
	desc = russia2_russia.7.d
	picture = GFX_report_event_soviet_tanks

	is_triggered_only = yes

	option = {
		name = soviet.7.a
		create_wargoal = {
			type = annex_everything
			target = EST
		}
		hidden_effect = {
			news_event = { id = newsrussia2.8 days = 1 }
		}
	}
}

# Latvia Surrenders
country_event = {
	id = russia2_russia.8
	title = russia2_russia.8.t
	desc = russia2_russia.8.d
	picture = GFX_report_event_stalin_propaganda

	is_triggered_only = yes

	option = {
		name = russia2_russia.8.a
		annex_country = { target = LAT }
		hidden_effect = {
			news_event = { days = 2 id = newsrussia2.11 }
		}
	}
}

# Latvia Refuses
country_event = {
	id = russia2_russia.9
	title = russia2_russia.9.t
	desc = russia2_russia.9.d
	picture = GFX_report_event_soviet_tanks

	is_triggered_only = yes

	option = {
		name = russia2_russia.9.a
		create_wargoal = {
			type = annex_everything
			target = LAT
		}
		hidden_effect = {
			news_event = { id = newsrussia2.12 days = 1 }
		}
	}
}

# Lithuania Surrenders
country_event = {
	id = russia2_russia.10
	title = russia2_russia.10.t
	desc = russia2_russia.10.d
	picture = GFX_report_event_stalin_propaganda

	is_triggered_only = yes

	option = {
		name = russia2_russia.10.a
		annex_country = { target = LIT }
		hidden_effect = {
			news_event = { days = 2 id = newsrussia2.9 }
		}
	}
}

# Lithuania Refuses
country_event = {
	id = russia2_russia.11
	title = russia2_russia.11.t
	desc = russia2_russia.11.d
	picture = GFX_report_event_soviet_tanks

	is_triggered_only = yes

	option = {
		name = russia2_russia.11.a
		create_wargoal = {
			type = annex_everything
			target = LIT
		}
		hidden_effect = {
			news_event = { id = newsrussia2.10 days = 1 }
		}
	}
}

#Finland want us to annex them
country_event = {
	id = russia2_russia.12
	title = russia2_russia.12.t
	desc = russia2_russia.12.d
	picture = GFX_report_event_soviet_tank_parade

	is_triggered_only = yes

	option = { #Accept
		name = russia2_russia.12.a
		ai_chance = { base = 75 }
		hidden_effect = {
			every_state = {
				limit = {
					is_core_of = FIN
				}
				SOV = {
					add_state_core = PREV
				}
			}
		}
		annex_country = {
			target = FIN
			transfer_troops = yes
		}
		add_threat = 1
		hidden_effect = {
			news_event = { days = 1 id = news.69 }
		}
	}

	option = { #Refuse
		name = russia2_russia.12.b
		ai_chance = { base = 25 }
	}
}

#Mongolia Refuses
country_event = {
	id = russia2_russia.13
	title = russia2_russia.13.t
	desc = russia2_russia.13.d
	picture = GFX_report_event_stalin_01

	is_triggered_only = yes

	option = { #Damn
		name = russia2_russia.13.a
	}
}

#Mongolia Accepts
country_event = {
	id = russia2_russia.14
	title = russia2_russia.14.t
	desc = russia2_russia.14.d
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { #Good Choice Comrade
		name = russia2_russia.14.a
		hidden_effect = {
			news_event = { days = 3 id = newsrussia2.1 }
		}
		SOV = {
			puppet = MON
			add_ideas = SOV_Mongolian_advisors
		}
		MON = {
			add_ideas = SOV_Russian_economic_aid
		}
	}
}

# SOV recover territory
country_event = {
	id = russia2_russia.15
	title = russia2_russia.15.t
	desc = russia2_russia.15.d
	picture = GFX_soldiers_with_guns_russia2

	trigger = {
		tag = SOV
		has_idea = SOV_Exiled_russia
		195 = { is_controlled_by = SOV }
		219 = { is_controlled_by = SOV }
		217 = { is_controlled_by = SOV }
	}

	mean_time_to_happen = { days = 2 }

	option = { # Remove Exiled Russia
		name = russia2_russia.15.a
		remove_ideas = SOV_Exiled_russia
		add_stability = 0.20
		hidden_effect = {
			news_event = { days = 2 id = newsrussia2.14 }
		}
	}
}

# Peasants Revolt
country_event = {
	id = russia2_russia.18
	title = russia2_russia.18.t
	desc = russia2_russia.18.d
	picture = GFX_battkle_kursk_russia2

	is_triggered_only = yes

	option = { # Oh no
		name = russia2_russia.18.a
		add_ideas = SOV_Regular_peasants_strikes
		unlock_decision_tooltip = SOV_fix_peasants_situation
		hidden_effect = {
			country_event = { id = russia2_russia.93 days = 7 }
		}
	}
}

#White Death
country_event = {
	id = russia2_russia.19
	title = russia2_russia.19.t
	desc = russia2_russia.19.d
	picture = GFX_report_event_dead_soldiers

	fire_only_once = yes

	trigger = {
		tag = SOV
		has_government = communism
		is_subject = no
		FIN = {
			AND = {
				surrender_progress > 0.05
				has_defensive_war_with = SOV
			}
		}
	}

	mean_time_to_happen = { days = 1 }

	option = { #White death strike again !
		name = russia2_russia.19.a
		add_ideas = SOV_White_death
	}
}

#Train New Officers
country_event = {
	id = russia2_russia.20
	title = russia2_russia.20.t
	desc = russia2_russia.20.d
	picture = GFX_report_event_british_inspect_troops

	is_triggered_only = yes

	option = {	#attack is the best defense
		ai_chance = { base = 25 }
		name = russia2_russia.20.a
		every_army_leader = {
			add_attack = 1
		}
		add_ideas = SOV_New_officers_attack
	}

	option = { #defense
		ai_chance = { base = 25 }
		name = russia2_russia.20.b
		every_army_leader = {
			add_defense = 1
		}
		add_ideas = SOV_New_officers_defense
	}

	option = { #logistic
		ai_chance = { base = 25 }
		name = russia2_russia.20.c
		every_army_leader = {
			add_logistics = 1
		}
		add_ideas = SOV_New_officers_logistics
	}

	option = { #planning
		ai_chance = { base = 25 }
		name = russia2_russia.20.e
		every_army_leader = {
			add_planning = 1
		}
		add_ideas = SOV_New_officers_planning
	}
}

#Katyń Massacre
country_event = {
	id = russia2_russia.21
	title = russia2_russia.21.t
	desc = russia2_russia.21.d
	picture = GFX_report_event_polish_army

	fire_only_once = yes

	trigger = {
		tag = SOV
		has_government = communism
		is_subject = no
		has_country_leader = {
			character = SOV_Joseph_stalin
			ruling_only = yes
		}
		96 = { is_owned_and_controlled_by = SOV }
		784 = { is_owned_and_controlled_by = SOV }
		95 = { is_owned_and_controlled_by = SOV }
		94 = { is_owned_and_controlled_by = SOV }
		93 = { is_owned_and_controlled_by = SOV }
		91 = { is_owned_and_controlled_by = SOV }
		89 = { is_owned_and_controlled_by = SOV }
	}

	mean_time_to_happen = { months = 8 }

	option = { #Do the massacre
		ai_chance = {
			base = 80
		}
		name = russia2_russia.21.a
		add_timed_idea = {
			idea = SOV_Katyn_massacre
			days = 630
		}
		add_manpower = -22000
		set_country_flag = katyn_massacre
	}

	option = { #We're not monsters
		ai_chance = {
			base = 20
		}
		name = russia2_russia.21.b
	}
}

#Germany Discovers the Massacre
country_event = {
	id = russia2_russia.22
	title = russia2_russia.22.t
	desc = russia2_russia.22.d
	picture = GFX_report_event_dead_soldiers

	fire_only_once = yes

	trigger = {
		tag = GER
		has_war_with = SOV
		controls_state = 242
		SOV = {
			has_country_flag = katyn_massacre
			has_government = communism
			is_subject = no
			has_country_leader = {
				character = SOV_Joseph_stalin
				ruling_only = yes
			}
		}
	}

	mean_time_to_happen = { days = 10 }

	option = { #Mein Gott !
		ai_chance = {
			base = 100
		}
		name = russia2_russia.22.a
		hidden_effect = {
			news_event = { days = 1 id = newsrussia2.23 }
		}
		SOV = {
			add_opinion_modifier = {
				target = GER
				modifier = denounced_katyn_massacre
			}
		}
		POL = {
			add_opinion_modifier = {
				target = SOV
				modifier = katyn_massacre
			}
		}
	}
}

# Great Purge - Begins
country_event = {
	id = russia2_russia.24
	title = russia2_russia.24.t
	desc = russia2_russia.24.d
	picture = GFX_report_event_soviet_purge_speech

	is_triggered_only = yes

	timeout_days = 5

	immediate = {
		hidden_effect = {
			set_country_flag = sov_purge_ongoing
		}
	}

	option = {
		ai_chance = {
			base = 100
		}
		name = russia2_russia.24.a
		custom_effect_tooltip = SOV_great_purge_begins_tt
		hidden_effect = {
			add_ideas = SOV_Great_purge_idea_russia2
			remove_ideas = SOV_Genrikh_yagoda
			add_ideas = SOV_Nikolay_yezhov
		}
	}
}

# Great Purge - End
country_event = {
	id = russia2_russia.25
	title = russia2_russia.25.t
	desc = russia2_russia.25.d
	picture = GFX_report_event_soviet_purge_speech

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			sov_unlock_nkvd_chiefs = yes
			set_country_flag = sov_purge_over
		}
	}

	option = {
		ai_chance = {
			base = 100
		}
		name = russia2_russia.25.a
		if = {
			limit = {
				NOT = {
					check_variable = {
						var = sov_great_purge_status^1
						value = 1
						compare = equals
					}
				}
			}
			custom_effect_tooltip = SOV_great_purge_ends_tt
			hidden_effect = {
				remove_ideas = SOV_Nikolay_yezhov
				add_ideas = SOV_Lavrentiy_beria
				set_country_flag = SOV_Nikolay_yezhov_purged
			}
		}
		else = {
			custom_effect_tooltip = SOV_great_purge_ends_tt2
			hidden_effect = {
				remove_ideas = SOV_Nikolay_yezhov
				add_ideas = SOV_Genrikh_yagoda
				set_country_flag = SOV_Nikolay_yezhov_purged
			}
		}
	}
}

# Great Purge - Cancelled
country_event = {
	id = russia2_russia.26
	title = russia2_russia.26.t
	desc = russia2_russia.26.d
	picture = GFX_report_event_soviet_purge_speech

	is_triggered_only = yes

	option = {
		ai_chance = {
			base = 100
		}
		name = russia2_russia.26.a
		custom_effect_tooltip = SOV_great_purge_cancelled_tt
		custom_effect_tooltip = SOV_remove_all_head_nkvd
		add_political_power = -200
		add_stability = -0.15
		add_war_support = -0.25
		add_timed_idea = {
			idea = SOV_Remnants_purge
			days = 730
		}
	}
}

# Foreign Policies
country_event = {
	id = russia2_russia.28
	title = russia2_russia.28.t
	desc = russia2_russia.28.d
	picture = GFX_report_event_stalin_meeting

	is_triggered_only = yes

	option = { #Molotov
		ai_chance = {
			base = 50
		}
		name = russia2_russia.28.a
		trigger = {
			NOT = {
				check_variable = {
					var = sov_great_purge_status^5
					value = 2
					compare = equals
				}
			}
		}
		custom_effect_tooltip = available_political_advisor
		show_ideas_tooltip = SOV_Vyacheslav_molotov
		every_other_country = {
			limit = {
				has_government = democratic
				NOT = {
					is_in_faction_with = ROOT
					is_subject_of = ROOT
					has_war_with = ROOT
				}
			}
			add_opinion_modifier = { target = ROOT modifier = anti_capitalism_diplomacy }
		}
		every_other_country = {
			limit = {
				has_government = fascism
				NOT = {
					is_in_faction_with = ROOT
					is_subject_of = ROOT
					has_war_with = ROOT
				}
			}
			add_opinion_modifier = { target = ROOT modifier = anti_capitalism_diplomacy_bonus }
		}
		if = {
			limit = {
				check_variable = {
					var = sov_great_purge_status^5
					value = 1
					compare = equals
				}
			}
			custom_effect_tooltip = only_molotov_available
		}
		hidden_effect = {
			news_event = { days = 1 id = newsrussia2.17 }
			set_country_flag = replaced_maisky
			set_country_flag = foreign_diplomacy_set
		}
	}

	option = { #Maisky
		ai_chance = {
			base = 50
		}
		name = russia2_russia.28.b
		trigger = {
			NOT = {
				check_variable = {
					var = sov_great_purge_status^5
					value = 1
					compare = equals
				}
			}
		}
		custom_effect_tooltip = available_political_advisor
		show_ideas_tooltip = SOV_Ivan_maisky
		every_other_country = {
			limit = {
				has_government = fascism
				NOT = {
					is_in_faction_with = ROOT
					is_subject_of = ROOT
					has_war_with = ROOT
				}
			}
			add_opinion_modifier = { target = ROOT modifier = anti_fascist_diplomacy }
		}
		every_other_country = {
			limit = {
				has_government = democratic
				NOT = {
					is_in_faction_with = ROOT
					is_subject_of = ROOT
					has_war_with = ROOT
				}
			}
			add_opinion_modifier = { target = ROOT modifier = anti_fascist_diplomacy_bonus }
		}
		if = {
			limit = {
				check_variable = {
					var = sov_great_purge_status^5
					value = 2
					compare = equals
				}
			}
			custom_effect_tooltip = only_maisky_available
		}
		hidden_effect = {
			news_event = { days = 1 id = newsrussia2.18 }
			set_country_flag = kept_maisky
			set_country_flag = foreign_diplomacy_set
		}
	}
}

# Fourth International's Council Member
country_event = {
	id = russia2_russia.29
	title = russia2_russia.29.t
	desc = russia2_russia.29.d
	picture = GFX_report_event_communists_cheer

	trigger = {
		country_exists = SOV
		SOV = {
			has_completed_focus = SOV_fourth_int_council
		}
		NOT = {
			tag = SOV
			has_idea = SOV_Fourth_international_council
		}
		is_in_faction_with = SOV
		has_government = communism
	}

	mean_time_to_happen = { days = 5 }

	option = {
		name = russia2_russia.29.a
		add_ideas = SOV_Fourth_international_council
	}
}

# The Sakhalin Situation
country_event = {
	id = russia2_russia.30
	title = russia2_russia.30.t
	desc = russia2_russia.30.d
	picture = GFX_report_event_japan_army_mountainside

	is_triggered_only = yes

	option = {
		ai_chance = {
			base = 40
		}
		name = russia2_russia.30.a
		JAP = {
			country_event = { days = 1 id = russia2_japan.1 }
		}
	}

	option = {
		ai_chance = {
			base = 25
		}
		name = russia2_russia.30.b
		JAP = {
			country_event = { days = 1 id = russia2_japan.2 }
			custom_effect_tooltip = needs_approval
		}
	}

	option = {
		ai_chance = {
			base = 25
		}
		name = russia2_russia.30.c
		JAP = {
			country_event = { days = 1 id = russia2_japan.3 }
			start_border_war = {
				change_state_after_war = no
				attacker = {
					state = 655
					num_provinces = 1
					on_win = russia2_russia.35
					on_lose = russia2_russia.36
				}

				defender = {
					state = 537
					num_provinces = 1
					on_win = russia2_japan.4
					on_lose = russia2_japan.5
				}
			}
		}
	}

	option = {
		ai_chance = {
			base = 10
		}
		name = russia2_russia.30.e
		add_political_power = 50
	}
}

# Japan Accepts Giving South Sakhalin
country_event = {
	id = russia2_russia.31
	title = russia2_russia.31.t
	desc = russia2_russia.31.d
	picture = GFX_report_event_japan_europe_pact

	is_triggered_only = yes

	option = {
		name = russia2_russia.31.a
		SOV = {
			transfer_state = 537
		}
		hidden_effect = {
			news_event = { days = 1 id = newsrussia2.24 }
		}
	}
}

# Japan Refuses Giving South Sakhalin
country_event = {
	id = russia2_russia.32
	title = russia2_russia.32.t
	desc = russia2_russia.32.d
	picture = GFX_report_event_japanese_parade

	is_triggered_only = yes

	option = {
		name = russia2_russia.32.a
		create_wargoal = {
		    type = take_state
			target = JAP
			generator = { 537 }
		}
		hidden_effect = {
			news_event = { days = 1 id = newsrussia2.56 }
		}
		SOV = {
			set_country_flag = SOV_japan_not_south
		}
	}
}

# Japan Accepts North Sakhalin Offer
country_event = {
	id = russia2_russia.33
	title = russia2_russia.33.t
	desc = russia2_russia.33.d
	picture = GFX_report_event_japan_europe_pact

	is_triggered_only = yes

	option = {
		name = russia2_russia.33.a
		JAP = {
			transfer_state = 655
		}
		diplomatic_relation = {
    		country = JAP
    		relation = non_aggression_pact
    		active = yes
		}
		hidden_effect = {
			news_event = { days = 1 id = newsrussia2.25 }
		}
		SOV = {
			set_country_flag = SOV_ally_japan
		}
	}
}

# Japan Refuses North Sakhalin Offer
country_event = {
	id = russia2_russia.34
	title = russia2_russia.34.t
	desc = russia2_russia.34.d
	picture = GFX_report_event_japanese_parade

	is_triggered_only = yes

	option = {
		name = russia2_russia.34.a
		add_political_power = -50
	}
}

# Won Border War Against Japan
country_event = {
	id = russia2_russia.35
	title = russia2_russia.35.t
	desc = russia2_russia.35.d
	picture = GFX_soldiers_with_guns_russia2

	is_triggered_only = yes

	option = {
		name = russia2_russia.35.a
		SOV = {
			transfer_state = 537
		}
		add_war_support = 0.05
		hidden_effect = {
			news_event = { days = 1 id = newsrussia2.26 }
		}
	}
}

# Lost Border War Against Japan
country_event = {
	id = russia2_russia.36
	title = russia2_russia.36.t
	desc = russia2_russia.36.d
	picture = GFX_report_event_japanese_transport_soldiers

	is_triggered_only = yes

	option = {
		name = russia2_russia.36.a
		add_political_power = -200
		add_war_support = -0.05
		hidden_effect = {
			news_event = { days = 1 id = newsrussia2.57 }
		}
	}
}

# PRC Accepts - Send the Ultimatums!
country_event = {
	id = russia2_russia.37
	title = russia2_russia.37.t
	desc = russia2_russia.37.d
	picture = GFX_report_event_stalin_02

	is_triggered_only = yes

	option = {
		name = russia2_russia.37.a
		FROM = { country_event = { days = 1 id = russia2_communist_china.2 } }
	}
}

# PRC Refuses - Get Wargoals
country_event = {
	id = russia2_russia.38
	title = russia2_russia.38.t
	desc = russia2_russia.38.d
	picture = GFX_menacing_tanks_russia2

	is_triggered_only = yes

	option = {
		name = russia2_russia.38.a
		every_country = {
			limit = {
				is_major = no
				any_owned_state = {
					is_core_of = PRC
				}
				NOT = { is_in_faction_with = SOV }
				NOT = { original_tag = SOV }
				NOT = { has_war_with = ROOT }
			}
			ROOT = {
				create_wargoal = {
	    			type = puppet_wargoal_focus
	    			target = PREV
				}
			}
		}
	}
}

# Middle Eastern Country Accepts
country_event = {
	id = russia2_russia.39
	title = russia2_russia.39.t
	desc = russia2_russia.39.d
	picture = GFX_soldiers_handshaking_kolchak_russia2

	is_triggered_only = yes

	option = {
		name = russia2_russia.39.a
		set_autonomy = {
			target = FROM
			autonomy_state = autonomy_soviet_republic
		}
		hidden_effect = {
			FROM = {
				set_popularities = {
					democratic = 10
					neutrality = 10
					fascism = 10
					communism = 70
				}
			}
		}
	}
}

# Middle Eastern Country Refuses
country_event = {
	id = russia2_russia.40
	title = russia2_russia.40.t
	desc = russia2_russia.40.d
	picture = GFX_report_event_indian_parade

	is_triggered_only = yes

	option = {
		name = russia2_russia.40.a
		create_wargoal = {
	    	type = puppet_wargoal_focus
	    	target = FROM
		}
	}
}

#Assassination Attempt of Stalin - Who will do the Coup ?
country_event = {
	id = russia2_russia.41
	title = russia2_russia.41.t
	desc = russia2_russia.41.d
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes

	option = { #Let the army Handle this
		ai_chance = {
			base = 80
		}
		name = russia2_russia.41.a
		custom_effect_tooltip = russia2_russia.41_tt
		country_event = { id = russia2_russia.42 days = 10 }
	}

	option = { #Let the Bureaucrats Handle this
		ai_chance = {
			base = 20
		}
		name = russia2_russia.41.b
		custom_effect_tooltip = russia2_russia.41_tt2
		country_event = { id = russia2_russia.43 days = 10 }
	}
}

#Assassination Attempt of Stalin - The Army
country_event = {
	id = russia2_russia.42
	title = russia2_russia.42.t
	desc = russia2_russia.42.d
	picture = GFX_report_event_soviet_purge_officers_01

	is_triggered_only = yes

	option = { #Bribe his Guards
		ai_chance = {
			base = 10
		}
		name = russia2_russia.42.a
		trigger = {
			NOT = {
				has_global_flag = SOV_bribe_guard
			}
		}
		custom_effect_tooltip = SOV_bribe_guard_tt
		custom_effect_tooltip = SOV_low_kill_chance_tt
		custom_effect_tooltip = SOV_low_risk_chance_tt
		hidden_effect = {
			set_temp_variable = { random_factor_bribe = 0 }
			randomize_temp_variable = {
				var = random_factor_bribe
				distribution = uniform
				min = 0
				max = 100
			}
			round_variable = random_factor_bribe
			if = {
				limit = {
					check_variable = {
						var = random_factor_bribe
						value = 40
						compare = less_than_or_equals
					}
				}
				country_event = { id = russia2_russia.44 days = 20 }
			}
			else_if = {
				limit = {
					check_variable = {
						var = random_factor_bribe
						value = 50
						compare = greater_than_or_equals
					}
				}
				country_event = { id = russia2_russia.45 days = 20 }
			}
			else = {
				country_event = { id = russia2_russia.46 days = 10 }
			}
		}
		set_global_flag = SOV_bribe_guard
	}

	option = { #Send an Assassin
		ai_chance = {
			base = 10
		}
		name = russia2_russia.42.b
		trigger = {
			NOT = {
				has_global_flag = SOV_send_assassin
			}
		}
		custom_effect_tooltip = SOV_send_assassin_tt
		custom_effect_tooltip = SOV_medium_kill_chance_tt
		custom_effect_tooltip = SOV_medium_risk_chance_tt
		hidden_effect = {
			set_temp_variable = { random_factor_assassin = 0 }
			randomize_temp_variable = {
				var = random_factor_assassin
				distribution = uniform
				min = 0
				max = 100
			}
			round_variable = random_factor_assassin
			if = {
				limit = {
					check_variable = {
						var = random_factor_assassin
						value = 60
						compare = less_than_or_equals
					}
				}
				country_event = { id = russia2_russia.44 days = 20 }
			}
			else_if = {
				limit = {
					check_variable = {
						var = random_factor_assassin
						value = 70
						compare = greater_than_or_equals
					}
				}
				country_event = { id = russia2_russia.45 days = 20 }
			}
			else = {
				country_event = { id = russia2_russia.46 days = 10 }
			}
		}
		set_global_flag = SOV_send_assassin
	}

	option = { #Send the Squad
		ai_chance = {
			base = 80
		}
		name = russia2_russia.42.c
		custom_effect_tooltip = SOV_send_squad_tt
		custom_effect_tooltip = SOV_high_kill_chance_tt
		custom_effect_tooltip = SOV_high_risk_chance_tt
		hidden_effect = {
			set_temp_variable = { random_factor_death_squad = 0 }
			randomize_temp_variable = {
				var = random_factor_death_squad
				distribution = uniform
				min = 0
				max = 100
			}
			round_variable = random_factor_death_squad
			if = {
				limit = {
					check_variable = {
						var = random_factor_death_squad
						value = 80
						compare = less_than_or_equals
					}
				}
				country_event = { id = russia2_russia.44 days = 20 }
			}
			else_if = {
				limit = {
					check_variable = {
						var = random_factor_death_squad
						value = 80
						compare = greater_than
					}
				}
				country_event = { id = russia2_russia.45 days = 20 }
			}
		}
		set_global_flag = SOV_send_squad
	}
}

#Assassination Attempt of Stalin - The Bureaucrats
country_event = {
	id = russia2_russia.43
	title = russia2_russia.43.t
	desc = russia2_russia.43.d
	picture = GFX_report_event_soviet_purge_trial

	is_triggered_only = yes

	option = { #Poison Stalin's Drink
		name = russia2_russia.43.a
		ai_chance = {
			base = 30
		}
		trigger = {
			NOT = {
				has_global_flag = SOV_poison_drink
			}
		}
		custom_effect_tooltip = SOV_poison_drink_tt
		hidden_effect = {
			set_temp_variable = { random_factor_poison_drink = 0 }
			randomize_temp_variable = {
				var = random_factor_poison_drink
				distribution = uniform
				min = 0
				max = 100
			}
			round_variable = random_factor_poison_drink
			if = {
				limit = {
					check_variable = {
						var = random_factor_poison_drink
						value = 20
						compare = less_than_or_equals
					}
				}
				country_event = { id = russia2_russia.44 days = 20 }
			}
			else_if = {
				limit = {
					check_variable = {
						var = random_factor_poison_drink
						value = 20
						compare = greater_than
					}
				}
				country_event = { id = russia2_russia.47 days = 20 }
			}
		}
		custom_effect_tooltip = SOV_low_kill_chance_tt
		custom_effect_tooltip = SOV_low_risk_chance_tt
		set_global_flag = SOV_poison_drink
	}

	option = { #Send an Armed Bureaucrat to shoot him
		name = russia2_russia.43.b
		ai_chance = {
			base = 20
		}
		trigger = {
			NOT = {
				has_global_flag = SOV_armed_bureau
			}
		}
		custom_effect_tooltip = SOV_armed_bureau_tt
		hidden_effect = {
			set_temp_variable = { random_factor_armed_bureau = 0 }
			randomize_temp_variable = {
				var = random_factor_armed_bureau
				distribution = uniform
				min = 0
				max = 100
			}
			round_variable = random_factor_armed_bureau
			if = {
				limit = {
					check_variable = {
						var = random_factor_armed_bureau
						value = 40
						compare = less_than_or_equals
					}
				}
				country_event = { id = russia2_russia.44 days = 20 }
			}
			else_if = {
				limit = {
					check_variable = {
						var = random_factor_armed_bureau
						value = 40
						compare = greater_than
					}
				}
				country_event = { id = russia2_russia.45 days = 20 }
			}
		}
		custom_effect_tooltip = SOV_medium_kill_chance_tt
		custom_effect_tooltip = SOV_medium_risk_chance_tt
		set_global_flag = SOV_armed_bureau
	}

	option = { #Give a Bomb to a Bureaucrat so that he can plant it and blow Stalin up
		name = russia2_russia.43.c
		ai_chance = {
			base = 50
		}
		custom_effect_tooltip = SOV_bomb_tt
		hidden_effect = {
			set_temp_variable = { random_factor_bomb = 0 }
			randomize_temp_variable = {
				var = random_factor_bomb
				distribution = uniform
				min = 0
				max = 100
			}
			round_variable = random_factor_bomb
			if = {
				limit = {
					check_variable = {
						var = random_factor_bomb
						value = 60
						compare = less_than_or_equals
					}
				}
				country_event = { id = russia2_russia.44 days = 20 }
			}
			else_if = {
				limit = {
					check_variable = {
						var = random_factor_bomb
						value = 60
						compare = greater_than
					}
				}
				country_event = { id = russia2_russia.45 days = 20 }
			}
		}
		custom_effect_tooltip = SOV_high_kill_chance_tt
		custom_effect_tooltip = SOV_high_risk_chance_tt
		set_global_flag = SOV_bomb_bureau
	}
}

#Assassination Sucessful
country_event = {
	id = russia2_russia.44
	title = russia2_russia.44.t
	desc = russia2_russia.44.d
	picture = GFX_report_event_soviet_purge_speech

	is_triggered_only = yes

	option = { #Perfect
		name = russia2_russia.44.a
		kill_country_leader = yes
		add_country_leader_role = {
			character = SOV_Empty_supreme_soviet_soviet_union
			promote_leader = yes
			country_leader = {
				desc = SOV_Empty_supreme_soviet_soviet_union_desc
				ideology = stalinism
				expire = "1965.1.1.1"
				traits = {
					russia2_empty_parliament
				}
			}
		}
		hidden_effect = {
			news_event = { id = newsrussia2.34 days = 1 }
		}
		if = {
			limit = {
				has_global_flag = SOV_bribe_guard
				NOT = { has_global_flag = SOV_try_again }
			}
			add_ideas = SOV_Payment_military
		}
		else_if = {
			limit = {
				has_global_flag = SOV_send_assassin
			}
			add_ideas = SOV_Payment_military2
		}
		else_if = {
			limit = {
				has_global_flag = SOV_send_squad
			}
		add_ideas = SOV_Payment_military3
		}

		if = {
			limit = {
				has_global_flag = SOV_armed_bureau
			}
			add_ideas = SOV_Payment_bureaucrats
		}
		else_if = {
			limit = {
				has_global_flag = SOV_bomb_bureau
			}
			add_ideas = SOV_Payment_bureaucrats2
		}
		dismantle_faction = yes
	}
}

#The Assassination Attempt Failed
country_event = {
	id = russia2_russia.45
	title = russia2_russia.45.t
	desc = russia2_russia.45.d
	picture = GFX_report_event_stalin_01

	is_triggered_only = yes

	option = { #Damn
		name = russia2_russia.45.a
		set_global_flag = SOV_civil_war_peace
		set_global_flag = SOV_soviet_civil_war
		if = {
			limit = {
				has_game_rule = {
					rule = sov_fragmentation_status
					option = SOV_FRAGMENTED
				}
			}
			start_civil_war = {
				ruling_party = communism
				ideology = communism
				size = 0.4
				capital = 260
				states = {
					260 240 220 224 222 258 257 239 255 250 205 223 254
				}
				keep_unit_leaders = {
					401 402 407 410 405 407
				}
			}
		}
		else = {
			start_civil_war = {
				ruling_party = communism
				ideology = communism
				size = 0.4
				capital = 233
				states = {
					233 232 235 234 231 230 229 232 137 218 238 237 236 217 245 826 827 828 821
				}
				keep_unit_leaders = {
					401 402 407 410 406 405 403 407 404
				}
			}
		}
		set_politics = {
			ruling_party = communism
			elections_allowed = no
		}
		hidden_effect = {
			add_popularity = {
				ideology = communism
				popularity = 0.88
			}
			add_popularity = {
				ideology = democratic
				popularity = 0.1
			}
			add_popularity = {
				ideology = fascism
				popularity = 0.02
			}
		}
		add_country_leader_role = {
			character = SOV_Empty_supreme_soviet_soviet_union
			promote_leader = yes
			country_leader = {
				desc = SOV_Empty_supreme_soviet_soviet_union_desc
				ideology = stalinism
				expire = "1965.1.1.1"
				traits = {
					russia2_empty_parliament
				}
			}
		}
		hidden_effect = {
			random_other_country = {
				limit = {
					original_tag = SOV
					has_government = communism
				}
				set_global_flag = SOV_soviet_civil_war
				dismantle_faction = yes
			}
			random_other_country = {
				limit = {
					original_tag = SOV
					has_war_with = ROOT
				}
				set_cosmetic_tag = STS
				load_focus_tree = {
					tree = russia2_soviet_focus
					keep_completed = no
				}
				unlock_national_focus = SOV_great_purge2
				set_party_name = {
					ideology = democratic
					long_name = SOV_communism_party
					name = SOV_communism_party
				}
				set_party_name = {
					ideology = neutrality
					long_name = SOV_communism_party
					name = SOV_communism_party
				}
				set_party_name = {
					ideology = fascism
					long_name = SOV_communism_party
					name = SOV_communism_party
				}
				retire_ideology_leader = democratic
				retire_ideology_leader = neutrality
				retire_ideology_leader = fascism
			}
			news_event = { id = newsrussia2.29 days = 1 }
			swap_ideas = {
				remove_idea = SOV_Instability2
				add_idea = SOV_Instability
			}
			set_global_flag = Trotsky_coming_back2
		}
	}
}

#The Assassination Attempt Failed but Stalin didn't Noticed - Military
country_event = {
	id = russia2_russia.46
	title = russia2_russia.46.t
	desc = russia2_russia.46.d
	picture = GFX_report_event_stalin_meeting

	is_triggered_only = yes

	option = { #it's bad but thank god
		name = russia2_russia.46.a
		country_event = { id = russia2_russia.42 days = 20 }
		set_global_flag = SOV_try_again
	}
}

#The Assassination Attempt Failed but Stalin didn't Noticed - Bureaucrats
country_event = {
	id = russia2_russia.47
	title = russia2_russia.47.t
	desc = russia2_russia.47.d
	picture = GFX_report_event_stalin_meeting

	is_triggered_only = yes

	option = { #it's bad but thank god
		name = russia2_russia.47.a
		country_event = { id = russia2_russia.43 days = 10 }
		set_global_flag = SOV_try_again
	}
}

#Civil War
country_event = {
	id = russia2_russia.48
	title = russia2_russia.48.t
	desc = russia2_russia.48.d
	picture = GFX_artillery_with_building_russia2

	is_triggered_only = yes

	option = { #For The Motherland !
		name = russia2_russia.48.a
		set_global_flag = SOV_soviet_civil_war
		if = {
			limit = {
				has_game_rule = {
					rule = sov_fragmentation_status
					option = SOV_FRAGMENTED
				}
			}
			start_civil_war = {
				ruling_party = communism
				ideology = communism
				size = 0.5
				capital = 260
				states = {
					260 240 220 224 222 258 257 239 255 250 205 223 254
				}
				keep_unit_leaders = {
					401 402 407 410 405 407
				}
				hidden_effect = {
					PREV = {
						SOV_Joseph_stalin = {
							set_nationality = PREV.PREV
						}
					}
					SOV_Joseph_stalin = {
						promote_character = yes
					}					
				}				
			}
		}
		else = {
			start_civil_war = {
				ruling_party = communism
				ideology = communism
				size = 0.5
				capital = 217
				states = {
					217 260 265 240 401 407 402 404 732 742 405 584 585 587 406 236 237 238 234 218 228 217 245 236 237 238 234 235 232 233 231 229 230 586 589 227 221 200 226 137 196 259 203 198 192 197 823 826 827 828 821 834 831 832 830 829 881
				}
				keep_unit_leaders = {
					401 402 407 410 405 407
				}
				hidden_effect = {
					PREV = {
						SOV_Joseph_stalin = {
							set_nationality = PREV.PREV
						}
					}
					SOV_Joseph_stalin = {
						promote_character = yes
					}					
				}					
			}
		}
		set_politics = {
			ruling_party = communism
			elections_allowed = no
		}
		hidden_effect = {
			add_popularity = {
				ideology = communism
				popularity = 0.88
			}
			add_popularity = {
				ideology = democratic
				popularity = 0.1
			}
			add_popularity = {
				ideology = fascism
				popularity = 0.02
			}
		}
		add_country_leader_role = {
			character = SOV_Empty_supreme_soviet_soviet_union
			promote_leader = yes
			country_leader = {
				desc = SOV_Empty_supreme_soviet_soviet_union_desc
				ideology = stalinism
				expire = "1965.1.1.1"
				traits = {
					russia2_empty_parliament
				}
			}
		}
		hidden_effect = {
			dismantle_faction = yes
			random_other_country = {
				limit = {
					original_tag = SOV
					has_government = communism
				}
				set_global_flag = SOV_soviet_civil_war
				dismantle_faction = yes
				set_global_flag = SOV_end_civil_war_trotsky_russia2
			}
			random_other_country = {
				limit = {
					original_tag = SOV
					has_war_with = ROOT
				}
				set_cosmetic_tag = STS
				load_focus_tree = {
					tree = russia2_soviet_focus
					keep_completed = no
				}
				unlock_national_focus = SOV_great_purge2
				set_party_name = {
					ideology = democratic
					long_name = SOV_communism_party
					name = SOV_communism_party
				}
				set_party_name = {
					ideology = neutrality
					long_name = SOV_communism_party
					name = SOV_communism_party
				}
				set_party_name = {
					ideology = fascism
					long_name = SOV_communism_party
					name = SOV_communism_party
				}
				retire_ideology_leader = democratic
				retire_ideology_leader = neutrality
				retire_ideology_leader = fascism
			}
			set_global_flag = Trotsky_coming_back2
			news_event = { id = newsrussia2.30 days = 1 }
			remove_ideas = SOV_Army_disorganisation
		}
	}
}

#Purge doesn't complete : Civil war!
country_event = {
	id = russia2_russia.49
	title = russia2_russia.49.t
	desc = russia2_russia.49.d
	picture = GFX_report_event_soviet_tanks

	is_triggered_only = yes

	immediate = {
		set_global_flag = SOV_soviet_civil_war
	}

	#Go with Stalin's side
	option = {
		name = russia2_russia.49.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		set_temp_variable = { sov_opposition_strength = 100 }
		subtract_from_temp_variable = { sov_opposition_strength = var:sov_great_purge_completion }
		divide_temp_variable = { sov_opposition_strength = 100 }
		clamp_temp_variable = {
			var = sov_opposition_strength
			min = 0.1
			max = 0.9
		}
		start_civil_war = {
			ideology = communism
			size = var:sov_opposition_strength
			keep_political_leader = yes
		}
		add_timed_idea = {
			idea = SOV_Remnants_purge
			days = 730
		}
		hidden_effect = {
			create_faction = sov_comintern_faction
			random_other_country = {
				limit = {
					original_tag = SOV
					has_government = communism
					NOT = {
						tag = ROOT
					}
				}
				add_timed_idea = {
					idea = SOV_Remnants_purge
					days = 730
				}
				every_country = {
					limit = {
						is_in_faction_with = THIS
					}
					leave_faction = yes
				}
				if = {
					limit = {
						NOT = {
							check_variable = {
								var = sov_great_purge_status^36
								value = 1
								compare = equals
							}
						}
					}
					add_country_leader_role = {
						character = SOV_Aleksey_rykov
						promote_leader = yes
						country_leader = {
							desc = SOV_Aleksey_rykov_desc
							ideology = marxism
							expire = "1965.1.1.1"
							traits = {
								russia2_labor_defense_organizer
							}
						}
					}
					hidden_effect = {
						SOV = {
							SOV_Aleksey_rykov = {
								set_character_flag = sov_leading_war_against_stalin
							}
						}
					}
				}
				else_if = {
					limit = {
						NOT = {
							check_variable = {
								var = sov_great_purge_status^37
								value = 1
								compare = equals
							}
						}
					}
					add_country_leader_role = {
						character = SOV_Lev_kamenev
						promote_leader = yes
						country_leader = {
							desc = SOV_Lev_kamenev_desc
							ideology = marxism
							expire = "1965.1.1.1"
							traits = {
								russia2_the_faded_star
							}
						}
					}
					hidden_effect = {
						SOV = {
							SOV_Lev_kamenev = {
								set_character_flag = sov_leading_war_against_stalin
							}
						}
					}
				}
				else_if = {
					limit = {
						NOT = {
							check_variable = {
								var = sov_great_purge_status^38
								value = 1
								compare = equals
							}
						}
					}
					add_country_leader_role = {
						character = SOV_Nikolay_bukharin
						promote_leader = yes
						country_leader = {
							desc = SOV_Nikolay_bukharin_desc
							ideology = marxism
							expire = "1965.1.1.1"
							traits = {
								russia2_hero_of_the_peasantry
							}
						}
					}
					hidden_effect = {
						SOV = {
							SOV_Nikolay_bukharin = {
								set_character_flag = sov_leading_war_against_stalin
							}
						}
					}
				}
				else_if = {
					limit = {
						NOT = {
							check_variable = {
								var = sov_great_purge_status^39
								value = 1
								compare = equals
							}
						}
					}
					add_country_leader_role = {
						character = SOV_Grigory_zinovyev
						promote_leader = yes
						country_leader = {
							desc = SOV_Grigory_zinovyev_desc
							ideology = marxism
							expire = "1965.1.1.1"
							traits = {
								russia2_born_agitator
							}
						}
					}
					hidden_effect = {
						SOV = {
							SOV_Grigory_zinovyev = {
								set_character_flag = sov_leading_war_against_stalin
							}
						}
					}
				}
				else_if = {
					limit = {
						NOT = {
							check_variable = {
								var = sov_great_purge_status^6
								value = 1
								compare = equals
							}
						}
					}
					add_country_leader_role = {
						character = SOV_Nikita_khrushchev
						promote_leader = yes
						country_leader = {
							desc = SOV_Nikita_khrushchev_desc
							ideology = marxism
							expire = "1965.1.1.1"
							traits = {
								russia2_secret_speech
							}
						}
					}
					hidden_effect = {
						SOV = {
							SOV_Nikita_khrushchev = {
								set_character_flag = sov_leading_war_against_stalin
							}
						}
					}
				}
				else = {
					add_country_leader_role = {
						character = SOV_Vasily_stalin
						promote_leader = yes
						country_leader = {
							desc = SOV_Vasily_stalin_desc
							ideology = marxism
							expire = "1965.1.1.1"
							traits = {
								russia2_unplanned_sortie
								russia2_new_hope
							}
						}
					}
					hidden_effect = {
						hidden_effect = {
							if = {
								limit = {
									NOT = {
										is_in_array = { global.drunkard_wheel_achievement = THIS }
									}
								}
								add_to_array = { global.drunkard_wheel_achievement = THIS }
								set_variable = { global.drunkard_wheel_achievement_date@THIS = global.date }
								set_country_flag = russia_reworked_new_achievement
								if = {
									limit = {
										has_global_flag = russia_reworked_achievements_enabled
									}
									scoped_sound_effect = "russia_reworked_unlock_achievement"
								}
							}
						}
						SOV = {
							SOV_Vasily_stalin = {
								set_character_flag = sov_leading_war_against_stalin
							}
						}
					}
				}
				load_focus_tree = {
					tree = russia2_soviet_focus
					keep_completed = yes
				}
			}
			news_event = { hours = 3 id = news.220 }
		}
	}

	#Go Against Stalin
	option = {
		name = russia2_russia.49.b
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		set_temp_variable = { sov_opposition_strength = var:sov_great_purge_completion }
		divide_temp_variable = { sov_opposition_strength = 100 }
		clamp_temp_variable = {
			var = sov_opposition_strength
			min = 0.1
			max = 0.9
		}
		start_civil_war = {
			ideology = communism
			size = var:sov_opposition_strength
			keep_political_leader = yes
		}
		add_timed_idea = {
			idea = SOV_Remnants_purge
			days = 730
		}
		hidden_effect = {
			create_faction = sov_comintern_faction
		}
		if = {
			limit = {
				NOT = {
					check_variable = {
						var = sov_great_purge_status^36
						value = 1
						compare = equals
					}
				}
			}
			add_country_leader_role = {
				character = SOV_Aleksey_rykov
				promote_leader = yes
				country_leader = {
					desc = SOV_Aleksey_rykov_desc
					ideology = marxism
					expire = "1965.1.1.1"
					traits = {
						russia2_labor_defense_organizer
					}
				}
			}
			hidden_effect = {
				random_other_country = {
					limit = {
						original_tag = SOV
						has_government = communism
						NOT = {
							tag = ROOT
						}
					}
					SOV_Aleksey_rykov = {
						set_character_flag = sov_leading_war_against_stalin
					}
				}
			}
		}
		else_if = {
			limit = {
				NOT = {
					check_variable = {
						var = sov_great_purge_status^37
						value = 1
						compare = equals
					}
				}
			}
			add_country_leader_role = {
				character = SOV_Lev_kamenev
				promote_leader = yes
				country_leader = {
					desc = SOV_Lev_kamenev_desc
					ideology = marxism
					expire = "1965.1.1.1"
					traits = {
						russia2_the_faded_star
					}
				}
			}
			hidden_effect = {
				random_other_country = {
					limit = {
						original_tag = SOV
						has_government = communism
						NOT = {
							tag = ROOT
						}
					}
					SOV_Lev_kamenev = {
						set_character_flag = sov_leading_war_against_stalin
					}
				}
			}
		}
		else_if = {
			limit = {
				NOT = {
					check_variable = {
						var = sov_great_purge_status^38
						value = 1
						compare = equals
					}
				}
			}
			add_country_leader_role = {
				character = SOV_Nikolay_bukharin
				promote_leader = yes
				country_leader = {
					desc = SOV_Nikolay_bukharin_desc
					ideology = marxism
					expire = "1965.1.1.1"
					traits = {
						russia2_hero_of_the_peasantry
					}
				}
			}
			hidden_effect = {
				random_other_country = {
					limit = {
						original_tag = SOV
						has_government = communism
						NOT = {
							tag = ROOT
						}
					}
					SOV_Nikolay_bukharin = {
						set_character_flag = sov_leading_war_against_stalin
					}
				}
			}
		}
		else_if = {
			limit = {
				NOT = {
					check_variable = {
						var = sov_great_purge_status^39
						value = 1
						compare = equals
					}
				}
			}
			add_country_leader_role = {
				character = SOV_Grigory_zinovyev
				promote_leader = yes
				country_leader = {
					desc = SOV_Grigory_zinovyev_desc
					ideology = marxism
					expire = "1965.1.1.1"
					traits = {
						russia2_born_agitator
					}
				}
			}
			hidden_effect = {
				random_other_country = {
					limit = {
						original_tag = SOV
						has_government = communism
						NOT = {
							tag = ROOT
						}
					}
					SOV_Grigory_zinovyev = {
						set_character_flag = sov_leading_war_against_stalin
					}
				}
			}
		}
		else_if = {
			limit = {
				NOT = {
					check_variable = {
						var = sov_great_purge_status^6
						value = 1
						compare = equals
					}
				}
			}
			add_country_leader_role = {
				character = SOV_Nikita_khrushchev
				promote_leader = yes
				country_leader = {
					desc = SOV_Nikita_khrushchev_desc
					ideology = marxism
					expire = "1965.1.1.1"
					traits = {
						russia2_secret_speech
					}
				}
			}
			hidden_effect = {
				random_other_country = {
					limit = {
						original_tag = SOV
						has_government = communism
						NOT = {
							tag = ROOT
						}
					}
					SOV_Nikita_khrushchev = {
						set_character_flag = sov_leading_war_against_stalin
					}
				}
			}
		}
		else = {
			add_country_leader_role = {
				character = SOV_Vasily_stalin
				promote_leader = yes
				country_leader = {
					desc = SOV_Vasily_stalin_desc
					ideology = marxism
					expire = "1965.1.1.1"
					traits = {
						russia2_unplanned_sortie
						russia2_new_hope
					}
				}
			}
			hidden_effect = {
				random_other_country = {
					limit = {
						original_tag = SOV
						has_government = communism
						NOT = {
							tag = ROOT
						}
					}
					SOV_Vasily_stalin = {
						set_character_flag = sov_leading_war_against_stalin
					}
				}
				if = {
					limit = {
						NOT = {
							is_in_array = { global.drunkard_wheel_achievement = THIS }
						}
					}
					add_to_array = { global.drunkard_wheel_achievement = THIS }
					set_variable = { global.drunkard_wheel_achievement_date@THIS = global.date }
					set_country_flag = russia_reworked_new_achievement
					if = {
						limit = {
							has_global_flag = russia_reworked_achievements_enabled
						}
						scoped_sound_effect = "russia_reworked_unlock_achievement"
					}
				}
			}
		}
		hidden_effect = {
			random_other_country = {
				limit = {
					original_tag = SOV
					has_government = communism
					NOT = {
						tag = ROOT
					}
				}
				add_timed_idea = {
					idea = SOV_Remnants_purge
					days = 730
				}
				if = {
					limit = {
						SOV = {
							has_completed_focus = SOV_stalin_consti
						}
					}
					create_country_leader = {
						name = SOV_Joseph_stalin
						desc = SOV_Joseph_stalin_desc
						picture = "gfx/leaders/SOV/Portrait_Russia_Joseph_Stalin.dds"
						expire = "1945.1.1.1"
						ideology = stalinism
						traits = {
							russia2_man_of_steel
						}
					}
				}
				else = {
					create_country_leader = {
						name = SOV_Joseph_stalin
						desc = SOV_Joseph_stalin_desc
						picture = "gfx/leaders/SOV/Portrait_Russia_Joseph_Stalin.dds"
						expire = "1945.1.1.1"
						ideology = stalinism
						traits = {

						}
					}
				}
				every_country = {
					limit = {
						is_in_faction_with = THIS
					}
					leave_faction = yes
				}
				load_focus_tree = {
					tree = russia2_soviet_focus
					keep_completed = yes
				}
			}
		}
	}
}

#Trotsky Came Back From His Exile
country_event = {
	id = russia2_russia.51
	title = russia2_russia.51.t
	desc = russia2_russia.51.d
	picture = GFX_report_event_soviet_purge_politicians

	fire_only_once = yes

	trigger = {
		tag = SOV
		has_global_flag = Trotsky_coming_back
		NOT = {
			has_civil_war = yes
		}
	}

	mean_time_to_happen = { days = 100 }

	option = { #Our Hero Is Back !
		name = russia2_russia.51.a
		custom_effect_tooltip = SOV_trotsky_return
		set_global_flag = sov_trotsky_return_from_exile
		set_global_flag = SOV_fourth_international_fired_rework
		hidden_effect = {
			set_global_flag = flag_trotsky_has_returned_to_ussr_from_mexico
			if = {
				limit = {
					MEX = {
						has_country_leader = {
							character = MEX_leon_trotsky
						}
					}
				}
				MEX = {
					retire_character = MEX_leon_trotsky
				}
			}
		}
	}
}

#Trotsky Came Back From His Exile - Civil War, is Shorter
country_event = {
	id = russia2_russia.52
	title = russia2_russia.52.t
	desc = russia2_russia.52.d
	picture = GFX_report_event_soviet_purge_politicians

	fire_only_once = yes

	trigger = {
		tag = SOV
		has_global_flag = Trotsky_coming_back2
		NOT = {
			has_civil_war = yes
			has_country_leader = {
				character = SOV_Joseph_stalin
				ruling_only = yes
			}
		}
	}

	mean_time_to_happen = { days = 40 }

	option = { #Our Hero Is Back !
		name = russia2_russia.52.a
		custom_effect_tooltip = SOV_trotsky_return
		set_global_flag = sov_trotsky_return_from_exile
		set_global_flag = SOV_fourth_international_fired_rework
		hidden_effect = {
			set_global_flag = flag_trotsky_has_returned_to_ussr_from_mexico
			if = {
				limit = {
					MEX = {
						has_country_leader = {
							character = MEX_leon_trotsky
						}
					}
				}
				MEX = {
					retire_character = MEX_leon_trotsky
				}
			}
		}
	}
}

#Call Britain for The Iranian War
country_event = {
	id = russia2_russia.53
	title = russia2_russia.53.t
	desc = russia2_russia.53.d
	picture = GFX_russian_civil_war_russia2

	fire_only_once = yes

	trigger = {
		tag = SOV
		has_war_with = PER
		has_completed_focus = SOV_preemptive_strike_iran
		has_government = communism
		is_subject = no
		NOT = {
			has_war_with = ENG
		}
		ENG = {
			exists = yes
			NOT = {
				has_government = fascism
				has_war_with = PER
				has_war_with = SOV
			}
			is_subject = no
		}
		NOT = {
			any_country = {
				OR = {
					is_in_faction_with = SOV
					is_in_faction_with = ENG
				}
				PER = {
					is_subject_of = PREV
				}
			}
		}
	}

	mean_time_to_happen = { days = 10 }

	option = { #Call the British
		ai_chance = {
			base = 80
			modifier = {
				factor = 0
				PER = {
					surrender_progress > 0.6
				}
			}
		}
		name = russia2_russia.53.a
		ENG = {
			country_event = { id = russia2_england.1 days = 1 }
		}
	}

	option = { #We're better on our own
		ai_chance = {
			base = 20
			modifier = {
				add = 80
				PER = {
					surrender_progress > 0.6
				}
			}
		}
		name = russia2_russia.53.b
	}
}

#Event that Could Trigger the Death of Stalin
country_event = {
	id = russia2_russia.57
	title = russia2_russia.57.t
	desc = russia2_russia.57.d
	picture = GFX_military_parade_kremlin_russia2

	trigger = {
		tag = SOV
		has_government = communism
		surrender_progress > 0.25
		has_country_leader = {
			character = SOV_Joseph_stalin
			ruling_only = yes
		}
		has_country_flag = sov_purge_over
		any_country = {
			is_major = yes
			controls_state = 219
			has_war_with = SOV
		}
	}

	fire_only_once = yes

	mean_time_to_happen = { days = 10 }

	option = {
		name = russia2_russia.57.a
		custom_effect_tooltip = SOV_find_stalin_tt
		hidden_effect = {
			random_list = {
				75 = {
					country_event = { id = russia2_russia.58 days = 20 }
				}
				25 = {
					country_event = { id = russia2_russia.59 days = 20 }
				}
			}
		}
	}
}

#Stalin Survives
country_event = {
	id = russia2_russia.58
	title = russia2_russia.58.t
	desc = russia2_russia.58.d
	picture = GFX_vasily_with_stalin_russia2

	is_triggered_only = yes

	option = {
		name = russia2_russia.58.a
	}
}

#Stalin is Dead
country_event = {
	id = russia2_russia.59
	title = russia2_russia.59.t
	desc = russia2_russia.59.d
	picture = GFX_report_event_stalin_propaganda

	is_triggered_only = yes

	option = {
		name = russia2_russia.59.a
		ai_chance = {
			base = 50
		}
		kill_country_leader = yes
		add_country_leader_role = {
			character = SOV_Vasily_stalin
			promote_leader = yes
			country_leader = {
				desc = SOV_Vasily_stalin_desc
				ideology = stalinism
				expire = "1965.1.1.1"
				traits = {
					russia2_unplanned_sortie
					russia2_new_hope
				}
			}
		}
		hidden_effect = {
			if = {
				limit = {
					NOT = {
						is_in_array = { global.drunkard_wheel_achievement = THIS }
					}
				}
				add_to_array = { global.drunkard_wheel_achievement = THIS }
				set_variable = { global.drunkard_wheel_achievement_date@THIS = global.date }
				set_country_flag = russia_reworked_new_achievement
				if = {
					limit = {
						has_global_flag = russia_reworked_achievements_enabled
					}
					scoped_sound_effect = "russia_reworked_unlock_achievement"
				}
			}
			news_event = { id = newsrussia2.32 days = 1 }
		}
	}

	option = {
		name = russia2_russia.59.b
		ai_chance = {
			base = 50
		}
		trigger = {
			NOT = {
				check_variable = {
					var = sov_great_purge_status^6
					value = 1
					compare = equals
				}
			}
		}
		kill_country_leader = yes
		add_country_leader_role = {
			character = SOV_Nikita_khrushchev
			promote_leader = yes
			country_leader = {
				desc = SOV_Nikita_khrushchev_desc
				ideology = stalinism
				expire = "1965.1.1.1"
				traits = {
					russia2_secret_speech
				}
			}
		}
		hidden_effect = {
			UKR = {
				if = {
					limit = {
						UKR_Nikita_khrushchev = {
							is_country_leader = yes
						}
					}
					add_country_leader_role = {
						character = UKR_Vladimir_antonov_ovseyenko_communist
						promote_leader = yes
						country_leader = {
							desc = UKR_Vladimir_antonov_ovseyenko_communist_desc
							ideology = marxism
							expire = "1965.1.1.1"
							traits = {

							}
						}
					}
				}
			}
			news_event = { id = newsrussia2.32 days = 1 }
		}
	}

	option = {
		name = russia2_russia.59.c
		ai_chance = {
			base = 50
		}
		trigger = {
			NOT = {
				check_variable = {
					var = sov_great_purge_status^1
					value = 1
					compare = equals
				}
			}
		}
		kill_country_leader = yes
		add_country_leader_role = {
			character = SOV_Lavrentiy_beria
			promote_leader = yes
			country_leader = {
				desc = SOV_Lavrentiy_beria_desc
				ideology = stalinism
				expire = "1965.1.1.1"
				traits = {
					russia2_unscrupulous_orchestrator
				}
			}

		}
		hidden_effect = {
			news_event = { id = newsrussia2.32 days = 1 }
		}
	}
}

#Stalin's Death - 1945+
country_event = {
	id = russia2_russia.60
	title = russia2_russia.60.t
	desc = russia2_russia.60.d
	picture = GFX_report_event_generic_funeral

	is_triggered_only = yes

	immediate = {
		set_country_flag = sov_stalin_dies_1945_event
	}

	option = {
		name = russia2_russia.60.a
		ai_chance = {
			base = 50
		}
		kill_country_leader = yes
		add_country_leader_role = {
			character = SOV_Vasily_stalin
			promote_leader = yes
			country_leader = {
				desc = SOV_Vasily_stalin_desc
				ideology = stalinism
				expire = "1965.1.1.1"
				traits = {
					russia2_unplanned_sortie
					russia2_new_hope
				}
			}
		}
		hidden_effect = {
			if = {
				limit = {
					NOT = {
						is_in_array = { global.drunkard_wheel_achievement = THIS }
					}
				}
				add_to_array = { global.drunkard_wheel_achievement = THIS }
				set_variable = { global.drunkard_wheel_achievement_date@THIS = global.date }
				set_country_flag = russia_reworked_new_achievement
				if = {
					limit = {
						has_global_flag = russia_reworked_achievements_enabled
					}
					scoped_sound_effect = "russia_reworked_unlock_achievement"
				}
			}
			news_event = { id = newsrussia2.32 days = 1 }
		}
	}

	option = {
		name = russia2_russia.60.b
		ai_chance = {
			base = 50
		}
		trigger = {
			NOT = {
				check_variable = {
					var = sov_great_purge_status^6
					value = 1
					compare = equals
				}
			}
		}
		kill_country_leader = yes
		add_country_leader_role = {
			character = SOV_Nikita_khrushchev
			promote_leader = yes
			country_leader = {
				desc = SOV_Nikita_khrushchev_desc
				ideology = stalinism
				expire = "1965.1.1.1"
				traits = {
					russia2_secret_speech
				}
			}
		}
		hidden_effect = {
			UKR = {
				if = {
					limit = {
						UKR_Nikita_khrushchev = {
							is_country_leader = yes
						}
					}
					add_country_leader_role = {
						character = UKR_Vladimir_antonov_ovseyenko_communist
						promote_leader = yes
						country_leader = {
							desc = UKR_Vladimir_antonov_ovseyenko_communist_desc
							ideology = marxism
							expire = "1965.1.1.1"
							traits = {

							}
						}
					}
				}
			}
			news_event = { id = newsrussia2.32 days = 1 }
		}
	}

	option = {
		name = russia2_russia.60.c
		ai_chance = {
			base = 50
		}
		trigger = {
			NOT = {
				check_variable = {
					var = sov_great_purge_status^1
					value = 1
					compare = equals
				}
			}
		}
		kill_country_leader = yes
		add_country_leader_role = {
			character = SOV_Lavrentiy_beria
			promote_leader = yes
			country_leader = {
				desc = SOV_Lavrentiy_beria_desc
				ideology = stalinism
				expire = "1965.1.1.1"
				traits = {
					russia2_unscrupulous_orchestrator
				}
			}

		}
		hidden_effect = {
			news_event = { id = newsrussia2.32 days = 1 }
		}
	}
}

#Capture of Konstantin Rodzaevsky
country_event = {
	id = russia2_russia.61
	title = russia2_russia.61.t
	desc = russia2_russia.61.d
	picture = GFX_konstantin_russia2

	fire_only_once = yes

	trigger = {
		OR = {
			328 = { is_controlled_by = SOV }
			any_country = {
				is_in_faction_with = SOV
				controls_state = 328
			}
		}
		SOV = {
			has_government = communism
		}
		tag = SOV
	}

	option = { #Execute Him
		ai_chance = {
			base = 70
		}
		name = russia2_russia.61.a
		set_country_flag = konstantin_rodzaevsky_executed
		hidden_effect = {
			retire_ideology_leader = fascism
			add_country_leader_role = {
				character = SOV_Anastasy_vonsyatsky
				promote_leader = yes
				country_leader = {
					desc = SOV_Anastasy_vonsyatsky_desc
					ideology = fascism_anastasy
					expire = "1965.1.1.1"
					traits = {
						dictator
					}
				}
			}
		}
		add_stability = 0.1
	}

	option = { #Imprison him
		ai_chance = {
			base = 30
		}
		name = russia2_russia.61.b
		add_political_power = 200
	}
}

#Minor country in Europe receives an invitation to the 4th International
country_event = {
	id = russia2_russia.69
	title = russia2_russia.69.t
	desc = russia2_russia.69.d
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { #Accept
		ai_chance = { base = 90 }
		name = russia2_russia.69.a
		SOV = {
			add_to_faction = PREV
			country_event = { id = russia2_russia.70 days = 1 }
		}
		add_popularity = {
			ideology = communism
			popularity = 0.1
		}
		set_country_flag = accepted_4th_international
		hidden_effect = {
			news_event = { id = newsrussia2.41 days = 4 }
		}
	}

	option = { #Refuse
		ai_chance = { base = 10 }
		name = russia2_russia.69.b
		SOV = {
			country_event = { id = russia2_russia.71 days = 1 }
		}
	}
}

#Minor Country Accept
country_event = {
	id = russia2_russia.70
	title = russia2_russia.70.t
	desc = russia2_russia.70.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #Nice
		name = russia2_russia.70.a
	}
}

#Minor Country Refuse
country_event = {
	id = russia2_russia.71
	title = russia2_russia.71.t
	desc = russia2_russia.71.d
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes

	option = { #Bad
		name = russia2_russia.71.a
	}
}

#Enough Time Spent Rebuilding the Country
country_event = {
	id = russia2_russia.75
	title = russia2_russia.75.t
	desc = russia2_russia.75.d
	picture = GFX_soldiers_parade_russia2

	is_triggered_only = yes

	option = { #Can continue the focuses
		name = russia2_russia.75.a
		custom_effect_tooltip = SOV_use_time_tt
		set_country_flag = SOV_enough_time_rebuild_country
	}
}

#No More Suppressed Research
country_event = {
	id = russia2_russia.79
	title = russia2_russia.79.t
	desc = russia2_russia.79.d
	picture = GFX_report_event_generic_research_lab

	fire_only_once = yes

	trigger = {
		tag = SOV
		has_idea = SOV_Suppressed_research
		date > 1939.01.01
	}

	mean_time_to_happen = { days = 1 }

	option = { #Remove Suppressed Research Idea
		name = russia2_russia.79.a
		remove_ideas = SOV_Suppressed_research
	}
}

#Ukrainian Anger
country_event = {
	id = russia2_russia.80
	title = russia2_russia.80.t
	desc = russia2_russia.80.d
	picture = GFX_report_event_generic_riot

	is_triggered_only = yes

	option = { #Would You Please Calm Down Thanks
		name = russia2_russia.80.a
		ai_chance = { base = 100 }

		hidden_effect = {
			add_to_variable = {
			    var = ukrainian_revolt_factor
			    value = 10
			}
			subtract_from_variable = {
			    var = ukrainian_revolt_nothing_happens
			    value = 10
			}

			random_list = {
			    ukrainian_revolt_factor = {
			        country_event = { id = russia2_russia.81 days = 50 }
			    }
			    ukrainian_revolt_nothing_happens = {
			        country_event = { id = russia2_russia.80 days = 50 }
			    }
			    10 = {
			        country_event = { id = russia2_russia.82 days = 50 }
			    }
			}
		}

		if = {
			limit = {
				check_variable = {
				    var = ukrainian_revolt_factor
				    value = 25
				    compare = less_than_or_equals
				}
			}
			custom_effect_tooltip = SOV_ukrainian_anger_low_tt
		}

		else_if = {
			limit = {
				check_variable = {
				    var = ukrainian_revolt_factor
				    value = 25
				    compare = greater_than
				}
				check_variable = {
				    var = ukrainian_revolt_factor
				    value = 55
				    compare = less_than
				}
			}
			custom_effect_tooltip = SOV_ukrainian_anger_medium_tt
		}

		else_if = {
			limit = {
				check_variable = {
				    var = ukrainian_revolt_factor
				    value = 55
				    compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = SOV_ukrainian_anger_high_tt
		}

		random_owned_controlled_state = {
			prioritize = { 192 197 196 226 200 227 228 221 259 203 198 199 201 202 193 225 834 }
			limit = {
				non_damaged_building_level = {
					building = industrial_complex level > 0
				}
			}
			damage_building = {
			    type = industrial_complex damage = 1
			}
		}

		random_owned_controlled_state = {
			prioritize = { 192 197 196 226 200 227 228 221 259 203 198 199 201 202 193 225 834 }
			limit = {
				non_damaged_building_level = {
					building = arms_factory level > 0
				}
			}
			damage_building = {
			    type = arms_factory damage = 1
			}
		}

		random_owned_controlled_state = {
			prioritize = { 192 197 196 226 200 227 228 221 259 203 198 199 201 202 193 225 834 }
			limit = {
				non_damaged_building_level = {
					building = infrastructure level > 1
				}
			}
			damage_building = {
			    type = infrastructure
			    damage = 1
			}
		}
	}
}

#Ukrainian Revolt
country_event = { #TODO Special Ai Maybe
	id = russia2_russia.81
	title = russia2_russia.81.t
	desc = russia2_russia.81.d
	picture = GFX_cavalry_parade_russia2

	is_triggered_only = yes

	option = { #Uh Oh...
		name = russia2_russia.81.a

		custom_effect_tooltip = SOV_ukrainian_anger_revolt_tt

		hidden_effect = {
			SOV = {
				if = {
					limit = {
						owns_state = 202
						UKR = {
							exists = no
						}
					}
					UKR = {
						transfer_state = 202
					}
				}
				else_if = {
					limit = {
						UKR = {
							is_subject_of = SOV
						}
					}
					set_autonomy = {
					    target = UKR
					    autonomy_state = autonomy_free
					}
				}
				else = {
					add_stability = -0.1
				}
			}

			if = {
				limit = {
					country_exists = UKR
				}
				UKR = {
					army_experience = 25
					add_political_power = 150
					leave_faction = yes
					set_popularities = {
						democratic = 10
						neutrality = 80
						fascism = 10
						communism = 0
					}
					set_politics = {
						ruling_party = neutrality
					}
					add_ideas = {
						SOV_Ukrainian_revolt
					}
					set_technology = {
						gw_artillery = 1
						tech_recon = 1
						tech_support = 1
						tech_engineers = 1
					}
					division_template = {
						name = "Ukrainian Revolutionary Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
						}
						support = {
							artillery = { x = 0 y = 0 }
							recon = { x = 0 y = 1 }
						}
					}
					capital_scope = {
						create_unit = {
							division = "name = \"1st Ukrainian Revolutionary Division\" division_template = \"Ukrainian Revolutionary Division\" start_experience_factor = 0.3"
							owner = UKR
						}
						create_unit = {
							division = "name = \"2nd Ukrainian Revolutionary Division\" division_template = \"Ukrainian Revolutionary Division\" start_experience_factor = 0.3"
							owner = UKR
						}
						create_unit = {
							division = "name = \"3rd Ukrainian Revolutionary Division\" division_template = \"Ukrainian Revolutionary Division\" start_experience_factor = 0.3"
							owner = UKR
						}
						create_unit = {
							division = "name = \"4th Ukrainian Revolutionary Division\" division_template = \"Ukrainian Revolutionary Division\" start_experience_factor = 0.3"
							owner = UKR
						}
						create_unit = {
							division = "name = \"5th Ukrainian Revolutionary Division\" division_template = \"Ukrainian Revolutionary Division\" start_experience_factor = 0.3"
							owner = UKR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"6th Ukrainian Revolutionary Division\" division_template = \"Ukrainian Revolutionary Division\" start_experience_factor = 0.3"
							owner = UKR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"7th Ukrainian Revolutionary Division\" division_template = \"Ukrainian Revolutionary Division\" start_experience_factor = 0.3"
							owner = UKR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"8th Ukrainian Revolutionary Division\" division_template = \"Ukrainian Revolutionary Division\" start_experience_factor = 0.3"
							owner = UKR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"9th Ukrainian Revolutionary Division\" division_template = \"Ukrainian Revolutionary Division\" start_experience_factor = 0.3"
							owner = UKR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"10th Ukrainian Revolutionary Division\" division_template = \"Ukrainian Revolutionary Division\" start_experience_factor = 0.3"
							owner = UKR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"11th Ukrainian Revolutionary Division\" division_template = \"Ukrainian Revolutionary Division\" start_experience_factor = 0.3"
							owner = UKR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"12th Ukrainian Revolutionary Division\" division_template = \"Ukrainian Revolutionary Division\" start_experience_factor = 0.3"
							owner = UKR
						}
					}
				}

				SOV = {
					declare_war_on = {
						target = UKR
						type = annex_everything
					}
					add_political_power = -50
					every_state = {
						limit = {
							is_owned_by = UKR
							is_core_of = UKR
							NOT = {
								is_core_of = SOV
								state = 766
								state = 78
								state = 89
								state = 91
								state = 93
							}
						}
						SOV = {
							add_state_core = PREV
						}
					}
					if = {
						limit = {
							UKR = {
								owns_state = 766
							}
						}
						add_state_claim = 766
					}
					if = {
						limit = {
							UKR = {
								owns_state = 78
							}
						}
						add_state_claim = 78
					}
					if = {
						limit = {
							UKR = {
								owns_state = 89
							}
						}
						add_state_claim = 89
					}
					if = {
						limit = {
							UKR = {
								owns_state = 91
							}
						}
						add_state_claim = 91
					}
					if = {
						limit = {
							UKR = {
								owns_state = 93
							}
						}
						add_state_claim = 93
					}
				}
			}
		}
	}
}

#The Revolt Avoided
country_event = {
	id = russia2_russia.82
	title = russia2_russia.82.t
	desc = russia2_russia.82.d
	picture = GFX_report_event_ger_civil_war

	is_triggered_only = yes

	option = { #Yay
		name = russia2_russia.82.a
		random_owned_controlled_state = {
			prioritize = { 192 197 196 226 200 227 228 221 259 203 198 199 201 202 193 225 834 }
			limit = {
				non_damaged_building_level = {
					building = industrial_complex level > 1
				}
			}
			damage_building = {
			    type = industrial_complex damage = 2
			}
		}

		random_owned_controlled_state = {
			prioritize = { 192 197 196 226 200 227 228 221 259 203 198 199 201 202 193 225 834 }
			limit = {
				non_damaged_building_level = {
					building = arms_factory level > 1
				}
			}
			damage_building = {
			    type = arms_factory damage = 2
			}
		}

		random_owned_controlled_state = {
			prioritize = { 192 197 196 226 200 227 228 221 259 203 198 199 201 202 193 225 834 }
			limit = {
				non_damaged_building_level = {
					building = infrastructure level > 3
				}
			}
			damage_building = {
			    type = infrastructure
			    damage = 3
			}
		}
	}
}

#Rename Konnigsberg
country_event = {
	id = russia2_russia.83
	title = russia2_russia.83.t
	desc = russia2_russia.83.d
	picture = GFX_report_event_german_reichstag_gathering

	fire_only_once = yes

	trigger = {
		tag = SOV
		SOV = {
			has_government = communism
			owns_state = 763
		}
	}

	option = { #Rename
		name = russia2_russia.83.a
		ai_chance = {
			base = 100
		}
		set_province_name = { id = 6332 name = "Kaliningrad"}
		set_global_flag = SOV_konigsberg_renamed
		hidden_effect = {
			763 = {
				set_state_name = "Kaliningrad"
			}
			country_event = { id = russia2_russia.85 days = 180 }
		}
	}

	option = { #No
		name = russia2_russia.83.b
		ai_chance = {
			base = 0
		}
	}
}

#Königsberg Again!
country_event = {
	id = russia2_russia.84

	hidden = yes

	trigger = {
		GER = {
			owns_state = 763
		}
		has_global_flag = SOV_konigsberg_renamed
	}

	mean_time_to_happen = { days = 2 }

	immediate = { #Reverse City Name
		name = russia2_russia.84.a
		ai_chance = {
			base = 100
		}
		reset_province_name = 6332
		763 = {
			reset_state_name = yes
		}
		clr_global_flag = SOV_konigsberg_renamed
	}
}

#Kaliningrad Becomes Core
country_event = {
	id = russia2_russia.85
	title = russia2_russia.85.t
	desc = russia2_russia.85.d
	picture = GFX_soldiers_parade_russia2

	is_triggered_only = yes

	option = { #Rename
		name = russia2_russia.85.a
		ai_chance = {
			base = 100
		}
		if = {
			limit = {
				owns_state = 763
			}
			add_state_core = 763
		}
		else = {
			add_state_claim = 763
		}
	}
}

#Form the Proletarian Union
country_event = {
	id = russia2_russia.86
	title = russia2_russia.86.t
	desc = russia2_russia.86.d
	picture = GFX_report_event_german_reichstag_gathering

	is_triggered_only = yes

	option = { #Yes!
		name = russia2_russia.86.a
		ai_chance = {
			base = 100
		}
		add_country_leader_trait = russia2_proletarian
		set_cosmetic_tag = SOV_proletarian_union
		set_country_flag = has_formed_proletarian_union
		every_other_country = {
			limit = {
				is_subject_of = SOV
			}
			country_event = { id = russia2_generic.4 days = 1 }
		}
		hidden_effect = {
			news_event = { id = newsrussia2.42 days = 1 }
			if = {
				limit = {
					has_full_control_of_state = 42
				}
				set_capital = {
					state = 42
				}
			}
			else_if = {
				limit = {
					has_full_control_of_state = 16
				}
				set_capital = {
					state = 16
				}
			}
			if = {
				limit = {
					NOT = {
						is_in_array = { global.revolution_completed_achievement = THIS }
					}
				}
				add_to_array = { global.revolution_completed_achievement = THIS }
				set_variable = { global.revolution_completed_achievement_date@THIS = global.date }
				set_country_flag = russia_reworked_new_achievement
				if = {
					limit = {
						has_global_flag = russia_reworked_achievements_enabled
					}
					scoped_sound_effect = "russia_reworked_unlock_achievement"
				}
			}
		}
	}
}

#FROM Subject Accepts
country_event = {
	id = russia2_russia.87
	title = russia2_russia.87.t
	desc = russia2_russia.87.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #Yay
		name = russia2_russia.87.a
		ai_chance = {
			base = 100
		}
		annex_country = {
		    target = FROM
		    transfer_troops = yes
		}
	}
}

#FROM Subject Refuses
country_event = {
	id = russia2_russia.88
	title = russia2_russia.88.t
	desc = russia2_russia.88.d
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes

	option = { #Oh..
		name = russia2_russia.88.a
		ai_chance = {
			base = 100
		}
	}
}

#Proletarian Union! (not used anymore)
country_event = {
	id = russia2_russia.89

	hidden = yes

	is_triggered_only = yes

	immediate = {
		add_country_leader_trait = russia2_proletarian
		set_cosmetic_tag = SOV_proletarian_union
		news_event = { id = newsrussia2.42 days = 1 }
		if = {
			limit = {
				has_full_control_of_state = 42
			}
			set_capital = {
				state = 42
			}
		}
		else_if = {
			limit = {
				has_full_control_of_state = 16
			}
			set_capital = {
				state = 16
			}
		}
	}
}

#End of civil war - Stalinist side wins
country_event = {
	id = russia2_russia.90

	hidden = yes

	fire_only_once = yes

	trigger = {
		any_country = {
			original_tag = SOV
		}
		has_cosmetic_tag = STS
		NOT = {
			has_civil_war = yes
			has_cosmetic_tag = SUW
		}
	}

	immediate = {
		set_cosmetic_tag = SOV
		set_country_flag = SOV_AI_RANDOM_COMMUNIST_HISTORICAL
	}
}

#Trotsky comes back - Purge - What to choose ?
country_event = {
	id = russia2_russia.91
	title = russia2_russia.91.t
	desc = russia2_russia.91.d
	picture = GFX_ww2_british_soldiers_russia2

	is_triggered_only = yes

	option = { #Purge the military
		name = russia2_russia.91.a
		SOV_Arseniy_golovko = {
			set_character_flag = SOV_purge_military_trotsky
			remove_unit_leader_role = yes
		}
		remove_ideas = SOV_Arseniy_golovko
		SOV_Georgy_zhukov = {
			set_character_flag = SOV_purge_military_trotsky
			remove_unit_leader_role = yes
		}
		remove_ideas = SOV_Georgy_zhukov
		SOV_Sergey_gorshkov = {
			set_character_flag = SOV_purge_military_trotsky
			remove_unit_leader_role = yes
		}
		remove_ideas = SOV_Sergey_gorshkov
		SOV_Sergei_rudenko = {
			set_character_flag = SOV_purge_military_trotsky
		}
		remove_ideas = SOV_Sergei_rudenko
		SOV_Ivan_konev = {
			set_character_flag = SOV_purge_military_trotsky
			remove_unit_leader_role = yes
		}
		remove_ideas = SOV_Ivan_konev
		SOV_Pavel_zhigarev = {
			set_character_flag = SOV_purge_military_trotsky
		}
		remove_ideas = SOV_Pavel_zhigarev
		SOV_Stepan_krasovsky = {
			set_character_flag = SOV_purge_military_trotsky
		}
		remove_ideas = SOV_Stepan_krasovsky
		SOV_Arseniy_golovko = {
			set_character_flag = SOV_purge_military_trotsky
			remove_unit_leader_role = yes
		}
		SOV_Kliment_voroshilov_military = {
			set_character_flag = SOV_purge_military_trotsky
			remove_unit_leader_role = yes
		}
		remove_ideas = SOV_Kliment_voroshilov_military
		SOV_Grigory_kulik = {
			remove_unit_leader_role = yes
		}
		hidden_effect = {
			SOV_Kliment_voroshilov_advisor = {
				set_character_flag = SOV_purge_military_trotsky
			}
			remove_ideas = SOV_Kliment_voroshilov_advisor
		}
	}

	option = { #Purge the politicians
		name = russia2_russia.91.b
		SOV_Nikolai_voznesensky = {
			set_character_flag = SOV_purge_politician_trotsky_russia
		}
		remove_ideas = SOV_Nikolai_voznesensky
		SOV_Nikolay_yezhov = {
			set_character_flag = SOV_purge_politician_trotsky_russia
		}
		remove_ideas = SOV_Nikolay_yezhov
		SOV_Mikhail_kalinin = {
			set_character_flag = SOV_purge_politician_trotsky_russia
		}
		remove_ideas = SOV_Mikhail_kalinin
		SOV_Yakov_agranov = {
			set_character_flag = SOV_purge_politician_trotsky_russia
		}
		remove_ideas = SOV_Yakov_agranov
		SOV_Grigory_sokolnikov = {
			set_character_flag = SOV_purge_politician_trotsky_russia
		}
		remove_ideas = SOV_Grigory_sokolnikov
		SOV_Mikhail_tomsky = {
			set_character_flag = SOV_purge_politician_trotsky_russia
		}
		remove_ideas = SOV_Mikhail_tomsky
		SOV_Lavrentiy_beria = {
			set_character_flag = SOV_purge_politician_trotsky_russia
		}
		remove_ideas = SOV_Lavrentiy_beria
		SOV_Genrikh_yagoda = {
			set_character_flag = SOV_purge_politician_trotsky_russia
		}
		remove_ideas = SOV_Genrikh_yagoda
	}

	option = { #Reconciliation
		name = russia2_russia.91.c
		add_political_power = -150
		add_stability = -0.15
		SOV_Yakov_agranov = {
			set_character_flag = SOV_purge_politician_trotsky_russia
		}
		remove_ideas = SOV_Yakov_agranov
		SOV_Ivan_konev = {
			set_character_flag = SOV_purge_military_trotsky
			remove_unit_leader_role = yes
		}
		remove_ideas = SOV_Ivan_konev
		SOV_Lavrentiy_beria = {
			set_character_flag = SOV_purge_politician_trotsky_russia
		}
		remove_ideas = SOV_Lavrentiy_beria
		SOV_Genrikh_yagoda = {
			set_character_flag = SOV_purge_politician_trotsky_russia
		}
		remove_ideas = SOV_Genrikh_yagoda
	}
}

#Socialist Meeting
country_event = {
	id = russia2_russia.92
	title = russia2_russia.92.t
	desc = russia2_russia.92.d
	picture = GFX_report_event_spr_franco_victory

	is_triggered_only = yes

	option = {
		name = russia2_russia.92.a
		set_cosmetic_tag = SUW
		add_stability = 0.1
		every_state = {
			limit = {
				is_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
			add_compliance = 10
			set_resistance = 0
		}
		set_country_flag = socialist_union_worker_formed
		hidden_effect = {
			if = {
				limit = {
					NOT = {
						is_in_array = { global.revolution_completed_achievement = THIS }
					}
				}
				add_to_array = { global.revolution_completed_achievement = THIS }
				set_variable = { global.revolution_completed_achievement_date@THIS = global.date }
				set_country_flag = russia_reworked_new_achievement
				if = {
					limit = {
						has_global_flag = russia_reworked_achievements_enabled
					}
					scoped_sound_effect = "russia_reworked_unlock_achievement"
				}
			}
			news_event = { id = newsrussia2.43 days = 1 }
		}
	}
}

#Peasant Strike
country_event = {
	id = russia2_russia.93
	title = russia2_russia.93.t
	desc = russia2_russia.93.d
	picture = GFX_report_event_soviet_purge_politicians

	is_triggered_only = yes

	immediate = {
		clr_country_flag = sov_last_peasant_strike
		set_country_flag = sov_last_peasant_strike
	}

	option = {
		name = russia2_russia.93.a
		if = {
			limit = {
				has_navy_size = {
					size > 0
					unit = destroyer
				}
			}
			destroy_ships = {
				type = destroyer
				count = 1
			}
		}
		if = {
			limit = {
				has_navy_size = {
					size > 0
					unit = light_cruiser
				}
			}
			destroy_ships = {
				type = light_cruiser
				count = 1
			}
		}
		if = {
			limit = {
				has_navy_size = {
					size > 0
					type = submarine
				}
			}
			destroy_ships = {
				type = ship_hull_submarine
				count = 1
			}
		}
		random_owned_controlled_state = {
			limit = {
				non_damaged_building_level = {
					building = industrial_complex level > 1
				}
			}
			damage_building = {
			    type = industrial_complex damage = 2
			}
		}

		random_owned_controlled_state = {
			limit = {
				non_damaged_building_level = {
					building = arms_factory level > 1
				}
			}
			damage_building = {
			    type = arms_factory damage = 2
			}
		}

		random_owned_controlled_state = {
			limit = {
				non_damaged_building_level = {
					building = infrastructure level > 1
				}
			}
			damage_building = {
			    type = infrastructure
			    damage = 2
			}
		}
	}
}

#1939 Start Date
country_event = {
	id = russia2_russia.96

	hidden = yes

	is_triggered_only = yes

	immediate = {
		add_days_mission_timeout = {
			mission = SOV_peasants_rebelion
			days = -1353
		}
	}
}

#Unholy alliance - USA Can be Annexed Due to the Risk of Capitulation
country_event = {
	id = russia2_russia.97
	title = russia2_russia.97.t
	desc = russia2_russia.97.d
	picture = GFX_battkle_kursk_russia2

	fire_only_once = yes

	trigger = {
		tag = SOV
		SOV = {
			has_war = yes
			NOT = {
				has_capitulated = yes
			}
		}
		USA = {
			is_in_faction_with = SOV
			has_country_flag = unholy_alliance
			surrender_progress > 0.7
			has_war = yes
		}
	}

	mean_time_to_happen = { days = 2 }

	option = { #Send the proposition
		ai_chance = { base = 90 }
		name = russia2_russia.97.a
		USA = {
			country_event = { days = 1 id = russia2_america.4 }
		}
	}

	option = { #They can manage on their own
		ai_chance = { base = 10 }
		name = russia2_russia.97.b
	}
}

#Invite Revolution
country_event = {
	id = russia2_russia.98
	title = russia2_russia.98.t
	desc = russia2_russia.98.d
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { #Accept
		ai_chance = {
			base = 100
			modifier = {
				add = -25
				SOV = {
					has_war = yes
				}
			}
		}
		name = russia2_russia.98.a
		SOV = {
			add_to_faction = PREV
			country_event = { id = russia2_russia.99 days = 1 }
		}
		hidden_effect = {
			news_event = { id = newsrussia2.65 days = 2 }
		}
	}

	option = { #Refuse
		ai_chance = {
			base = 0
			modifier = {
				add = 25
				SOV = {
					has_war = yes
				}
			}
		}
		name = russia2_russia.98.b
		SOV = {
			country_event = { id = russia2_russia.100 days = 1 }
		}
	}
}

#Revolution Country Accepts
country_event = {
	id = russia2_russia.99
	title = russia2_russia.99.t
	desc = russia2_russia.99.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #Nice
		name = russia2_russia.99.a
	}
}

#Revolution Country Refuses
country_event = {
	id = russia2_russia.100
	title = russia2_russia.100.t
	desc = russia2_russia.100.d
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes

	option = { #Bad
		name = russia2_russia.100.a
	}
}

#A terrible fate
country_event = {
	id = russia2_russia.102
	title = russia2_russia.102.t
	desc = russia2_russia.102.d
	picture = GFX_report_event_generic_rally2

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_party_name = {
				ideology = democratic
				long_name = SOV_russian_provisional_government
				name = SOV_russian_provisional_government
			}
		}
	}

	option = {
		ai_chance = {
			base = 33
			modifier = {
				add = 67
				OR = {
					has_country_flag = RUS_AI_KONSTANTIN_RODZAEVSKY_FASCIST_BEHAVIOR
					has_country_flag = RUS_AI_ANASTASY_VONSYATSKY_FASCIST_BEHAVIOR
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_KONSTANTIN_RODZAEVSKY_FASCIST_BEHAVIOR
					has_country_flag = RUS_AI_ANASTASY_VONSYATSKY_FASCIST_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		name = russia2_russia.102.a
		add_popularity = {
			ideology = fascism
			popularity = 0.10
		}
	}

	option = {
		ai_chance = {
			base = 33
			modifier = {
				add = 67
				OR = {
					has_country_flag = RUS_AI_ALEXANDER_KERENSKY_DEMOCRATIC_BEHAVIOR
					has_country_flag = RUS_AI_PAVEL_MILYUKOV_DEMOCRATIC_BEHAVIOR
					has_country_flag = RUS_AI_ALEXANDER_KONOVALOV_DEMOCRATIC_BEHAVIOR
					has_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_ALEXANDER_KERENSKY_DEMOCRATIC_BEHAVIOR
					has_country_flag = RUS_AI_PAVEL_MILYUKOV_DEMOCRATIC_BEHAVIOR
					has_country_flag = RUS_AI_ALEXANDER_KONOVALOV_DEMOCRATIC_BEHAVIOR
					has_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		name = russia2_russia.102.b
		add_popularity = {
			ideology = democratic
			popularity = 0.10
		}
	}

	option = {
		ai_chance = {
			base = 33
			modifier = {
				add = 67
				OR = {
					has_country_flag = RUS_AI_VLADIMIR_KIRILLOVICH_NEUTRALITY_BEHAVIOR
					has_country_flag = RUS_AI_ANASTASIA_NIKOLAEVNA_NEUTRALITY_BEHAVIOR
					has_country_flag = RUS_AI_ANDREY_VLASOV_NEUTRALITY_BEHAVIOR
					has_country_flag = RUS_AI_PAVEL_BERMONDT_AVALOV_NEUTRALITY_BEHAVIOR
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_VLADIMIR_KIRILLOVICH_NEUTRALITY_BEHAVIOR
					has_country_flag = RUS_AI_ANASTASIA_NIKOLAEVNA_NEUTRALITY_BEHAVIOR
					has_country_flag = RUS_AI_ANDREY_VLASOV_NEUTRALITY_BEHAVIOR
					has_country_flag = RUS_AI_PAVEL_BERMONDT_AVALOV_NEUTRALITY_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		name = russia2_russia.102.c
		add_popularity = {
			ideology = neutrality
			popularity = 0.10
		}
	}
}

#Democratic Insurrection
country_event = {
	id = russia2_russia.103
	title = russia2_russia.103.t
	desc = russia2_russia.103.d
	picture = GFX_cavalry_parade_russia2
	is_triggered_only = yes

	option = {
		ai_chance = {
			base = 100
		}
		name = russia2_russia.103.a
		add_stability = -0.1
		set_politics = {
			ruling_party = democratic
		}
		add_popularity = {
			ideology = democratic
			popularity = 0.20
		}
		dismantle_faction = yes
		remove_ideas = SOV_Army_disorganisation
		hidden_effect = {
			news_event = {
				id = newsrussia2.69 days = 1
			}
			set_cosmetic_tag = SOV_temp_democratic_russia
		}
	}
}

#Eastern Europe
country_event = {
	id = russia2_russia.104
	title = russia2_russia.104.t
	desc = russia2_russia.104.d
	picture = GFX_report_event_generic_rally

	is_triggered_only = yes

	immediate = { #Trains
		hidden_effect = {
			release = UKR
			release = BLR
			set_variable = { russian_investment@UKR = 0 }
			set_variable = { russian_investment@BLR = 0 }
			UKR = {
				add_ideas = SOV_Unstable_government
				set_country_flag = democratic_russia_chaos_europe
				division_template = {
					name = "Free Infantry"
					priority = 1
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
						infantry = { x = 0 y = 3 }
						infantry = { x = 0 y = 4 }
					}
				}
				capital_scope = {
					create_unit = {
						division = "name = \"1st Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = UKR
					}
					create_unit = {
						division = "name = \"2nd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = UKR
					}
					create_unit = {
						division = "name = \"3rd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = UKR
					}
					create_unit = {
						division = "name = \"4th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = UKR
					}
					create_unit = {
						division = "name = \"5th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = UKR
					}
					create_unit = {
						division = "name = \"6th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = UKR
					}
					create_unit = {
						division = "name = \"7th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = UKR
					}
					create_unit = {
						division = "name = \"8th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = UKR
					}
					create_unit = {
						division = "name = \"9th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = UKR
					}
					create_unit = {
						division = "name = \"10th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = UKR
					}
				}
			}
			BLR = {
				add_ideas = SOV_Unstable_government
				set_country_flag = democratic_russia_chaos_europe
				division_template = {
					name = "Free Infantry"
					priority = 1
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
						infantry = { x = 0 y = 3 }
						infantry = { x = 0 y = 4 }
					}
				}
				capital_scope = {
					create_unit = {
						division = "name = \"1st Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = BLR
					}
					create_unit = {
						division = "name = \"2nd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = BLR
					}
					create_unit = {
						division = "name = \"3rd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = BLR
					}
					create_unit = {
						division = "name = \"4th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = BLR
					}
					create_unit = {
						division = "name = \"5th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = BLR
					}
					create_unit = {
						division = "name = \"6th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = BLR
					}
					create_unit = {
						division = "name = \"7th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = BLR
					}
					create_unit = {
						division = "name = \"8th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = BLR
					}
					create_unit = {
						division = "name = \"9th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = BLR
					}
					create_unit = {
						division = "name = \"10th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = BLR
					}
				}
			}
		}
	}

	option = {
		ai_chance = {
			base = 100
		}
		name = russia2_russia.104.a
		custom_effect_tooltip = ukr_blr_release_tt
	}
}

#Central Asia
country_event = {
	id = russia2_russia.105
	title = russia2_russia.105.t
	desc = russia2_russia.105.d
	picture = GFX_report_event_generic_rally
	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			release = KAZ
			release = KYR
			release = TAJ
			release = UZB
			release = TMS
			set_variable = { russian_investment@KAZ = 0 }
			set_variable = { russian_investment@KYR = 0 }
			set_variable = { russian_investment@TAJ = 0 }
			set_variable = { russian_investment@UZB = 0 }
			set_variable = { russian_investment@TMS = 0 }
			KAZ = {
				add_ideas = SOV_Unstable_government
				set_country_flag = democratic_russia_chaos_asia
				division_template = {
					name = "Free Infantry"
					priority = 1
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
						infantry = { x = 0 y = 3 }
						infantry = { x = 0 y = 4 }
					}
				}
				capital_scope = {
					create_unit = {
						division = "name = \"1st Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = KAZ
					}
					create_unit = {
						division = "name = \"2nd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = KAZ
					}
					create_unit = {
						division = "name = \"3rd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = KAZ
					}
					create_unit = {
						division = "name = \"4th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = KAZ
					}
					create_unit = {
						division = "name = \"5th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = KAZ
					}
				}
			}
			KYR = {
				add_ideas = SOV_Unstable_government
				set_country_flag = democratic_russia_chaos_asia
				division_template = {
					name = "Free Infantry"
					priority = 1
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
						infantry = { x = 0 y = 3 }
						infantry = { x = 0 y = 4 }
					}
				}
				capital_scope = {
					create_unit = {
						division = "name = \"1st Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = KYR
					}
					create_unit = {
						division = "name = \"2nd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = KYR
					}
					create_unit = {
						division = "name = \"3rd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = KYR
					}
					create_unit = {
						division = "name = \"4th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = KYR
					}
					create_unit = {
						division = "name = \"5th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = KYR
					}
				}
			}
			TAJ = {
				add_ideas = SOV_Unstable_government
				set_country_flag = democratic_russia_chaos_asia
				division_template = {
					name = "Free Infantry"
					priority = 1
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
						infantry = { x = 0 y = 3 }
						infantry = { x = 0 y = 4 }
					}
				}
				capital_scope = {
					create_unit = {
						division = "name = \"1st Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = TAJ
					}
					create_unit = {
						division = "name = \"2nd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = TAJ
					}
					create_unit = {
						division = "name = \"3rd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = TAJ
					}
					create_unit = {
						division = "name = \"4th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = TAJ
					}
					create_unit = {
						division = "name = \"5th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = TAJ
					}
				}
			}
			UZB = {
				add_ideas = SOV_Unstable_government
				set_country_flag = democratic_russia_chaos_asia
				division_template = {
					name = "Free Infantry"
					priority = 1
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
						infantry = { x = 0 y = 3 }
						infantry = { x = 0 y = 4 }
					}
				}
				capital_scope = {
					create_unit = {
						division = "name = \"1st Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = UZB
					}
					create_unit = {
						division = "name = \"2nd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = UZB
					}
					create_unit = {
						division = "name = \"3rd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = UZB
					}
					create_unit = {
						division = "name = \"4th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = UZB
					}
					create_unit = {
						division = "name = \"5th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = UZB
					}
				}
			}
			TMS = {
				add_ideas = SOV_Unstable_government
				set_country_flag = democratic_russia_chaos_asia
				division_template = {
					name = "Free Infantry"
					priority = 1
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
						infantry = { x = 0 y = 3 }
						infantry = { x = 0 y = 4 }
					}
				}
				capital_scope = {
					create_unit = {
						division = "name = \"1st Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = TMS
					}
					create_unit = {
						division = "name = \"2nd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = TMS
					}
					create_unit = {
						division = "name = \"3rd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = TMS
					}
					create_unit = {
						division = "name = \"4th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = TMS
					}
					create_unit = {
						division = "name = \"5th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = TMS
					}
				}
			}
		}
	}

	option = {
		ai_chance = {
			base = 100
		}
		name = russia2_russia.105.a
		custom_effect_tooltip = kaz_kyr_taj_uzb_tms_release_tt
	}
}

#Caucasus
country_event = {
	id = russia2_russia.106
	title = russia2_russia.106.t
	desc = russia2_russia.106.d
	picture = GFX_report_event_generic_rally

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			release = AZR
			release = ARM
			release = GEO
			release = DAG
			release = CIR
			release = CRI
			set_variable = { russian_investment@AZR = 0 }
			set_variable = { russian_investment@ARM = 0 }
			set_variable = { russian_investment@GEO = 0 }
			set_variable = { russian_investment@DAG = 0 }
			set_variable = { russian_investment@CIR = 0 }
			set_variable = { russian_investment@CRI = 0 }
			AZR = {
				add_ideas = SOV_Unstable_government
				set_country_flag = democratic_russia_chaos_caucasus
				division_template = {
					name = "Free Infantry"
					priority = 1
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
						infantry = { x = 0 y = 3 }
						infantry = { x = 0 y = 4 }
					}
				}
				capital_scope = {
					create_unit = {
						division = "name = \"1st Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = AZR
					}
					create_unit = {
						division = "name = \"2nd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = AZR
					}
					create_unit = {
						division = "name = \"3rd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = AZR
					}
					create_unit = {
						division = "name = \"4th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = AZR
					}
					create_unit = {
						division = "name = \"5th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = AZR
					}
				}
			}
			ARM = {
				add_ideas = SOV_Unstable_government
				set_country_flag = democratic_russia_chaos_caucasus
				division_template = {
					name = "Free Infantry"
					priority = 1
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
						infantry = { x = 0 y = 3 }
						infantry = { x = 0 y = 4 }
					}
				}
				capital_scope = {
					create_unit = {
						division = "name = \"1st Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = ARM
					}
					create_unit = {
						division = "name = \"2nd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = ARM
					}
					create_unit = {
						division = "name = \"3rd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = ARM
					}
					create_unit = {
						division = "name = \"4th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = ARM
					}
					create_unit = {
						division = "name = \"5th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = ARM
					}
				}
			}
			GEO = {
				add_ideas = SOV_Unstable_government
				set_country_flag = democratic_russia_chaos_caucasus
				division_template = {
					name = "Free Infantry"
					priority = 1
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
						infantry = { x = 0 y = 3 }
						infantry = { x = 0 y = 4 }
					}
				}
				capital_scope = {
					create_unit = {
						division = "name = \"1st Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = GEO
					}
					create_unit = {
						division = "name = \"2nd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = GEO
					}
					create_unit = {
						division = "name = \"3rd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = GEO
					}
					create_unit = {
						division = "name = \"4th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = GEO
					}
					create_unit = {
						division = "name = \"5th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = GEO
					}
				}
			}
			DAG = {
				add_ideas = SOV_Unstable_government
				set_country_flag = democratic_russia_chaos_caucasus
				division_template = {
					name = "Free Infantry"
					priority = 1
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
						infantry = { x = 0 y = 3 }
						infantry = { x = 0 y = 4 }
					}
				}
				capital_scope = {
					create_unit = {
						division = "name = \"1st Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = DAG
					}
					create_unit = {
						division = "name = \"2nd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = DAG
					}
					create_unit = {
						division = "name = \"3rd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = DAG
					}
					create_unit = {
						division = "name = \"4th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = DAG
					}
					create_unit = {
						division = "name = \"5th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = DAG
					}
				}
			}
			CIR = {
				add_ideas = SOV_Unstable_government
				set_country_flag = democratic_russia_chaos_caucasus
				division_template = {
					name = "Free Infantry"
					priority = 1
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
						infantry = { x = 0 y = 3 }
						infantry = { x = 0 y = 4 }
					}
				}
				capital_scope = {
					create_unit = {
						division = "name = \"1st Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = CIR
					}
					create_unit = {
						division = "name = \"2nd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = CIR
					}
					create_unit = {
						division = "name = \"3rd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = CIR
					}
					create_unit = {
						division = "name = \"4th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = CIR
					}
					create_unit = {
						division = "name = \"5th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = CIR
					}
				}
			}
			CRI = {
				add_ideas = SOV_Unstable_government
				set_country_flag = democratic_russia_chaos_caucasus
				division_template = {
					name = "Free Infantry"
					priority = 1
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
						infantry = { x = 0 y = 3 }
						infantry = { x = 0 y = 4 }
					}
				}
				capital_scope = {
					create_unit = {
						division = "name = \"1st Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = CRI
					}
					create_unit = {
						division = "name = \"2nd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = CRI
					}
					create_unit = {
						division = "name = \"3rd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = CRI
					}
					create_unit = {
						division = "name = \"4th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = CRI
					}
					create_unit = {
						division = "name = \"5th Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = CRI
					}
				}
			}
		}
	}

	option = {
		ai_chance = {
			base = 100
		}
		name = russia2_russia.106.a
		custom_effect_tooltip = azr_arm_geo_release_tt
	}
}

#Democratic Path - Reunification
country_event = {
	id = russia2_russia.108
	title = russia2_russia.108.t
	desc = russia2_russia.108.d
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { #Accept
		ai_chance = {
			base = 10
			modifier = {
				add = 30
				check_variable = {
					var = russian_investment@ROOT
					value = 1
					compare = equals
				}
			}
			modifier = {
				add = 60
				check_variable = {
					var = russian_investment@ROOT
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 90
				check_variable = {
					var = russian_investment@ROOT
					value = 3
					compare = equals
				}
			}
		}
		name = russia2_russia.108.a
		FROM = {
			annex_country = {
				target = ROOT
				transfer_troops = yes
			}
		}
		SOV = {
			country_event = { id = russia2_russia.109 }
		}
		custom_effect_tooltip = SOV_game_totally_over_TT
	}

	option = { #Refuse
		trigger = {
			check_variable = {
				var = russian_investment@ROOT
				value = 3
				compare = not_equals
			}
		}
		ai_chance = {
			base = 90
			modifier = {
				add = -30
				check_variable = {
					var = russian_investment@ROOT
					value = 1
					compare = equals
				}
			}
			modifier = {
				add = -60
				check_variable = {
					var = russian_investment@ROOT
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				check_variable = {
					var = russian_investment@ROOT
					value = 3
					compare = equals
				}
			}
		}
		name = russia2_russia.108.b
		set_country_flag = sov_refused_reunification
		SOV = {
			country_event = { id = russia2_russia.110 }
		}
	}
}

#Democratic Path - Reunification - Country Accepts
country_event = {
	id = russia2_russia.109
	title = russia2_russia.109.t
	desc = russia2_russia.109.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #Yay
		ai_chance = {
			base = 100
		}
		name = russia2_russia.109.a
	}
}

#Democratic Path - Reunification - Country refuses
country_event = {
	id = russia2_russia.110
	title = russia2_russia.110.t
	desc = russia2_russia.110.d
	picture = GFX_report_event_soviet_finnish_pact

	is_triggered_only = yes

	option = { #Oh
		ai_chance = {
			base = 100
		}
		name = russia2_russia.110.a
	}
}

# ENG Blockades Russia
country_event = {
	id = russia2_russia.113
	title = russia2_russia.113.t
	desc = russia2_russia.113.d
	picture = GFX_report_event_generic_riot

	is_triggered_only = yes

	option = { #Yes!
		name = russia2_russia.113.a
		ai_chance = {
			base = 90
			modifier = {
				factor = 0
				has_civil_war = yes
			}
		}
		add_ideas = SOV_Blockade_russia
		SOV = {
			country_event = { id = russia2_russia.114 days = 1 }
		}
		set_country_flag = blockade_russian_ports
		hidden_effect = {
			news_event = {
				id = newsrussia2.71 days = 2
			}
		}
	}

	option = { #No thanks
		name = russia2_russia.113.b
		ai_chance = {
			base = 10
			modifier = {
				add = -90
				has_civil_war = yes
			}
		}
	}
}

# ENG Started the Blockade
country_event = {
	id = russia2_russia.114
	title = russia2_russia.114.t
	desc = russia2_russia.114.d
	picture = GFX_arkangel_battleship_russia2

	is_triggered_only = yes

	option = { #Damn
		name = russia2_russia.114.a
		ai_chance = { base = 100 }
		add_ideas = SOV_Blockaded_by_eng
	}
}

# SOV (Democratic) Asks ENG to stop the blockade
country_event = {
	id = russia2_russia.115
	title = russia2_russia.115.t
	desc = russia2_russia.115.d
	picture = GFX_military_parade_russia2

	is_triggered_only = yes

	option = { #We will stop
		name = russia2_russia.115.a
		ai_chance = {
			base = 20
			modifier = {
				add = 80
				has_civil_war = yes
			}
		}
		SOV = {
			country_event = { id = russia2_russia.116 days = 5 }
		}
		remove_ideas = SOV_Blockade_russia
		hidden_effect = {
			news_event = {
				id = newsrussia2.72 days = 6
			}
		}
	}

	option = { #Certainly not
		name = russia2_russia.115.b
		ai_chance = {
			base = 80
			modifier = {
				factor = 0
				has_civil_war = yes
			}
		}
		SOV = {
			country_event = { id = russia2_russia.117 days = 5 }
		}
	}
}

# ENG Ends the Blockade
country_event = {
	id = russia2_russia.116
	title = russia2_russia.116.t
	desc = russia2_russia.116.d
	picture = GFX_soldiers_handshaking_kolchak_russia2

	is_triggered_only = yes

	option = { #Amazing
		name = russia2_russia.116.a
		ai_chance = { base = 100 }
		remove_ideas = SOV_Blockaded_by_eng
		hidden_effect = {
			complete_national_focus = SOV_end_naval_blockade
		}
	}
}

# ENG Won't Stop...
country_event = {
	id = russia2_russia.117
	title = russia2_russia.117.t
	desc = russia2_russia.117.d
	picture = GFX_report_event_vienna_award_hungary

	is_triggered_only = yes

	option = { #Alright, ask for a compromise
		name = russia2_russia.117.a
		ai_chance = { base = 100 }
		ENG = {
			country_event = { id = russia2_russia.118 days = 5 }
		}
	}
}

# SOV Offers Compromise
country_event = {
	id = russia2_russia.118
	title = russia2_russia.118.t
	desc = russia2_russia.118.d
	picture = GFX_report_event_soviet_finnish_pact

	is_triggered_only = yes

	option = { #We'll gladly accept!
		name = russia2_russia.118.a
		ai_chance = {
			base = 45
			modifier = {
				add = 55
				has_civil_war = yes
			}
		}
		hidden_effect = {
			remove_ideas = SOV_Blockade_russia
			news_event = {
				id = newsrussia2.72 days = 6
			}
		}
		add_timed_idea = {
			idea = SOV_Blockade_russia
			days = 365
		}
		SOV = {
			country_event = { id = russia2_russia.119 days = 5 }
		}
	}

	option = { #No
		name = russia2_russia.118.b
		ai_chance = {
			base = 45
			modifier = {
				factor = 0
				has_civil_war = yes
			}
		}
		SOV = {
			country_event = { id = russia2_russia.120 days = 5 }
		}
	}

	option = { #End all diplomatic relations with SOV
		name = russia2_russia.118.c
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				has_civil_war = yes
			}
		}
		add_opinion_modifier = {
			target = SOV
			modifier = cut_diplomatic_ties
		}
		SOV = {
			country_event = { id = russia2_russia.121 days = 5 }
		}
		hidden_effect = {
			news_event = {
				id = newsrussia2.73 days = 6
			}
		}
	}
}

# ENG Accepts Compromise
country_event = {
	id = russia2_russia.119
	title = russia2_russia.119.t
	desc = russia2_russia.119.d
	picture = GFX_soldiers_handshaking_kolchak_russia2

	is_triggered_only = yes

	option = { #Thank god
		name = russia2_russia.119.a
		ai_chance = { base = 100 }
		hidden_effect = {
			complete_national_focus = SOV_end_naval_blockade
			remove_ideas = SOV_Blockaded_by_eng
		}
		add_timed_idea = {
			idea = SOV_Blockaded_by_eng
			days = 365
		}
	}
}

# ENG Refuses Compromise
country_event = {
	id = russia2_russia.120
	title = russia2_russia.120.t
	desc = russia2_russia.120.d
	picture = GFX_report_event_vienna_award_hungary

	is_triggered_only = yes

	option = { #Threaten with war
		name = russia2_russia.120.a
		ai_chance = { base = 50 }
		add_political_power = -50
		ENG = {
			country_event = { id = russia2_russia.122 days = 5 }
		}
		hidden_effect = {
			news_event = {
				id = newsrussia2.74 days = 5
			}
		}
	}

	option = { #Give up... For now
		name = russia2_russia.120.b
		ai_chance = { base = 50 }
		ENG = {
			country_event = { id = russia2_russia.123 days = 5 }
		}
		hidden_effect = {
			news_event = {
				id = newsrussia2.75 days = 5
			}
		}
	}
}

# ENG Cuts Diplomatic Relations with SOV
country_event = {
	id = russia2_russia.121
	title = russia2_russia.121.t
	desc = russia2_russia.121.d
	picture = GFX_report_event_hol_cabinet_gerbrandy

	is_triggered_only = yes

	option = { #Okay...
		name = russia2_russia.121.a
		ai_chance = { base = 100 }
		add_opinion_modifier = {
			target = ENG
			modifier = cut_diplomatic_ties
		}
		ENG = {
			set_country_flag = cut_all_diplomatic_ties_with_sov
		}
	}
}

# SOV Threatens with War
country_event = {
	id = russia2_russia.122
	title = russia2_russia.122.t
	desc = russia2_russia.122.d
	picture = GFX_ship_dockyard_russia2

	is_triggered_only = yes

	option = { #Alright...
		name = russia2_russia.122.a
		ai_chance = {
			base = 65
			modifier = {
				add = 35
				has_civil_war = yes
			}
		}
		SOV = {
			country_event = { id = russia2_russia.124 days = 5 }
		}
		remove_ideas = SOV_Blockade_russia
		hidden_effect = {
			news_event = {
				id = newsrussia2.72 days = 6
			}
		}
	}

	option = { #We're not scared
		name = russia2_russia.122.b
		ai_chance = { base = 15 }
		SOV = {
			country_event = { id = russia2_russia.125 days = 5 }
		}
	}

	option = { #End all diplomatic relations with SOV
		name = russia2_russia.122.c
		ai_chance = { base = 20 }
		add_opinion_modifier = {
			target = SOV
			modifier = cut_diplomatic_ties
		}
		SOV = {
			country_event = { id = russia2_russia.121 days = 5 }
		}
		hidden_effect = {
			news_event = {
				id = newsrussia2.73 days = 6
			}
		}
	}
}

# SOV Gives Up
country_event = {
	id = russia2_russia.123
	title = russia2_russia.123.t
	desc = russia2_russia.123.d
	picture = GFX_report_event_hol_cabinet_de_geer

	is_triggered_only = yes

	option = { #Ahah
		name = russia2_russia.123.a
		ai_chance = { base = 100 }
		set_country_flag = ENG_resists_pressure
	}
}

# ENG Finally Ends the Blockade
country_event = {
	id = russia2_russia.124
	title = russia2_russia.124.t
	desc = russia2_russia.124.d
	picture = GFX_report_event_chamberlain_announce

	is_triggered_only = yes

	option = { #Amazing
		name = russia2_russia.124.a
		ai_chance = { base = 100 }
		remove_ideas = SOV_Blockaded_by_eng
		hidden_effect = {
			complete_national_focus = SOV_end_naval_blockade
		}
	}
}

# ENG Really doesn't care
country_event = {
	id = russia2_russia.125
	title = russia2_russia.125.t
	desc = russia2_russia.125.d
	picture = GFX_report_event_polish_army

	is_triggered_only = yes

	option = { #Prepare a plan for later
		name = russia2_russia.125.a
		ai_chance = { base = 100 }
		ENG = {
			set_country_flag = ENG_resists_pressure
		}
	}
}

# Air Raid Over ENG Ships!
country_event = {
	id = russia2_russia.126
	title = russia2_russia.126.t
	desc = russia2_russia.126.d
	picture = GFX_report_event_usa_heavy_cruiser

	is_triggered_only = yes

	option = { #??!
		name = russia2_russia.126.a
		ai_chance = { base = 100 }
		destroy_ships = {
			type = destroyer
			count = 6
		}
		destroy_ships = {
			type = light_cruiser
			count = 2
		}
		remove_ideas = SOV_Blockade_russia
		SOV = {
			country_event = { id = russia2_russia.127 days = 1 }
		}
		hidden_effect = {
			news_event = {
				id = newsrussia2.76 days = 2
			}
		}
	}
}

# Air Raid Over ENG Ships!
country_event = {
	id = russia2_russia.127
	title = russia2_russia.127.t
	desc = russia2_russia.127.d
	picture = GFX_arkroyale_russia2

	is_triggered_only = yes

	option = { #That's what you get
		name = russia2_russia.127.a
		ai_chance = { base = 100 }
		remove_ideas = SOV_Blockaded_by_eng
		add_war_support = 0.05
	}
}

# Final Warning
country_event = {
	id = russia2_russia.128
	title = russia2_russia.128.t
	desc = russia2_russia.128.d
	picture = GFX_menacing_tanks_russia2

	is_triggered_only = yes

	option = { #Alright
		name = russia2_russia.128.a
		ai_chance = {
			base = 90
			modifier = {
				add = 10
				has_civil_war = yes
			}
		}
		remove_ideas = SOV_Blockade_russia
		SOV = {
			country_event = { id = russia2_russia.129 days = 1 }
		}
		hidden_effect = {
			news_event = {
				id = newsrussia2.72 days = 2
			}
		}
	}

	option = { #No
		name = russia2_russia.128.b
		ai_chance = { base = 10 }
		add_stability = -0.1
		add_war_support = -0.1
		SOV = {
			country_event = { id = russia2_russia.130 days = 1 }
		}
	}
}

# ENG Gives Up
country_event = {
	id = russia2_russia.129
	title = russia2_russia.129.t
	desc = russia2_russia.129.d
	picture = GFX_report_event_chamberlain_announce

	is_triggered_only = yes

	option = { #Finally
		name = russia2_russia.129.a
		ai_chance = { base = 100 }
		remove_ideas = SOV_Blockaded_by_eng
	}
}

# ENG Resists...
country_event = {
	id = russia2_russia.130
	title = russia2_russia.130.t
	desc = russia2_russia.130.d
	picture = GFX_report_event_soviet_tank_parade

	is_triggered_only = yes

	option = { #Then it's War
		name = russia2_russia.130.a
		ai_chance = { base = 100 }
		add_stability = 0.05
		add_war_support = 0.05
		declare_war_on = {
			target = ENG
			type = puppet_wargoal_focus
		}
		hidden_effect = {
			news_event = {
				id = newsrussia2.77 hours = 6
			}
		}
	}
}

#Second Civil War
country_event = {
	id = russia2_russia.131
	title = russia2_russia.131.t
	desc = russia2_russia.131.d
	picture = GFX_russian_civil_war_russia2

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_global_flag = second_russian_civil_war_in_progress
			SOJ = {
				declare_war_on = {
					target = SOV
					type = second_russian_civil_war
				}
			}
			every_state = {
				limit = {
					original_white_province_second_civil_war = no
					is_owned_by = SOJ
				}
				SOV = {
					add_state_core = PREV
				}
			}
			every_state = {
				limit = {
					original_white_province_second_civil_war = yes
				}
				SOJ = {
					add_state_core = PREV
				}
			}
			if = {
				limit = {
					UKR = {
						has_country_flag = accept_to_help_whiteguard
					}
				}
				UKR = {
					add_ideas = SOV_Second_civil_war_idea_modifier
					add_to_war = {
						targeted_alliance = SOV
						enemy = SOJ
						hostility_reason = anti_soviet_alliance
					}
				}
				hidden_effect = {
					SOJ = {
						country_event = { id = russia2_ukraine.38 days = 1 }
					}
				}
			}
			clr_country_flag = preparation_done_russian_civil_war_russia2
			SOV = {
				country_event = { id = russia2_russia.187 }
				country_event = { id = russia2_russia.188 }
				country_event = { id = russia2_russia.189 }
			}
			news_event = {
				id = newsrussia2.78 hours = 6
			}
		}
	}

	timeout_days = 5

	option = { #Civil War
		name = russia2_russia.131.a
	}
}

#Weapons Cache - Buying Guns Effect
country_event = {
	id = russia2_russia.132
	title = russia2_russia.132.t
	desc = russia2_russia.132.d
	picture = GFX_report_event_generic_rifles

	fire_only_once = yes

	trigger = {
		has_country_flag = buy_weaps
		has_global_flag = second_russian_civil_war_in_progress
		check_variable = {
			var = buy_weapons_count
			value = 0
			compare = greater_than
		}
		#Add a country flag later, like has_country_flag = preparation_over
	}

	mean_time_to_happen = { days = 1 }

	option = {
		name = russia2_russia.132.a
		add_equipment_to_stockpile = {
			type = infantry_equipment
			amount = buy_weapons_final_count
			producer = SOV
		}
		clr_country_flag = buy_weaps
	}
}

#Stealing Weapons From Soviet
country_event = {
	id = russia2_russia.133
	title = russia2_russia.133.t
	desc = russia2_russia.133.d
	picture = GFX_report_event_swedish_soldier

	fire_only_once = yes

	trigger = {
		has_country_flag = steal_weaps
		has_global_flag = second_russian_civil_war_in_progress
		check_variable = {
			var = steal_weapons_count
			value = 0
			compare = greater_than
		}
		#Add a country flag later, like has_country_flag = preparation_over
	}

	mean_time_to_happen = { days = 1 }

	option = {
		name = russia2_russia.133.a
		add_equipment_to_stockpile = {
			type = infantry_equipment
			amount = steal_weapons_final_count
			producer = SOV
		}
		set_temp_variable = { destroy_weapons_final_count = steal_weapons_count }
		multiply_temp_variable = { destroy_weapons_final_count = -1000 }
		SOJ = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = destroy_weapons_final_count
			}
		}
		clr_country_flag = steal_weaps
	}
}

#Sabotage Military Industry
country_event = {
	id = russia2_russia.134

	fire_only_once = yes

	hidden = yes

	trigger = {
		has_country_flag = sabotage_mils
		has_global_flag = second_russian_civil_war_in_progress
		is_in_array = {
			array = sabotage_military_count
			value = 1
		}
		#Add a country flag later, like has_country_flag = preparation_over
	}

	mean_time_to_happen = { days = 1 }

	immediate = {
		for_each_loop = {
			array = sabotage_military_count
			value = current #Should always be 1 for now, but can be useful in case we want to go deeper with the decisions
			index = i

			SOJ = {
				random_owned_controlled_state = {
					limit = {
						arms_factory > current
					}
					remove_building = {
						type = arms_factory
						level = current
					}
				}
			}
		}
		clr_country_flag = sabotage_mils
	}
}

#Sabotage Civilian Industry
country_event = {
	id = russia2_russia.135

	hidden = yes

	fire_only_once = yes

	trigger = {
		has_country_flag = sabotage_civs
		has_global_flag = second_russian_civil_war_in_progress
		is_in_array = {
			array = sabotage_civilian_count
			value = 1
		}
		#Add a country flag later, like has_country_flag = preparation_over
	}

	mean_time_to_happen = { days = 6 }

	immediate = {

	}

	option = {
		for_each_loop = {
			array = sabotage_civilian_count
			value = current #Should always be 1 for now, but can be useful in case we want to go deeper with the decisions
			index = i

			SOJ = {
				random_owned_controlled_state = {
					limit = {
						industrial_complex > current
					}
					remove_building = {
						type = industrial_complex
						level = current
					}
				}
			}
		}
		clr_country_flag = sabotage_civs
	}
}

#Status of Ukraine
country_event = {
	id = russia2_russia.136
	title = russia2_russia.136.t
	desc = russia2_russia.136.d
	picture = GFX_broken_tank_russia2

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			SOV = {
				every_character = {
					limit = {
						OR = {
							is_character = SOV_Vladimir_kislitsin
							is_character = SOV_boris_shteifon_RR
							is_character = SOV_Alexander_rodzyanko
							is_character = SOV_Semyon_timoshenko
							is_character = SOV_Ivan_chernyakhovsky
							is_character = SOV_Andrey_yeryomenko
						}
					}
					set_character_flag = flag_former_deserting_generals
				}
			}
			SOJ = {
				every_character = {
					limit = {
						OR = {
							is_character = SOV_Vladimir_kislitsin
							is_character = SOV_boris_shteifon_RR
							is_character = SOV_Alexander_rodzyanko
							is_character = SOV_Semyon_timoshenko
							is_character = SOV_Ivan_chernyakhovsky
							is_character = SOV_Andrey_yeryomenko
						}
					}
					set_character_flag = flag_former_deserting_generals
				}
			}
		}
	}

	option = { #Ask Them to Join Us - No Country Flag
		name = russia2_russia.136.a
		ai_chance = { base = 20 }
		trigger = {
			NOT = {
				has_country_flag = sympathize_with_ukraine
			}
		}
		UKR = {
			country_event = { id = russia2_ukraine.1 hours = 6 }
		}
	}

	option = { #Ask Them to Join Us - Has Country Flag
		name = russia2_russia.136.b
		ai_chance = { base = 100 }
		trigger = {
			has_country_flag = sympathize_with_ukraine
		}
		UKR = {
			country_event = { id = russia2_ukraine.4 hours = 6 }
		}
	}

	option = { #Ask Them to stay Neutral During the Conflict
		name = russia2_russia.136.c
		ai_chance = {
			base = 80
			modifier = {
				factor = 0
				SOV = {
					has_country_flag = sympathize_with_ukraine
				}
			}
		}
		UKR = {
			country_event = { id = russia2_ukraine.7 hours = 6 }
		}
	}
}

#Russia Asks for Karelia
country_event = {
	id = russia2_russia.141
	title = russia2_russia.141.t
	desc = russia2_russia.141.d
	picture = GFX_cavalry_parade_russia2

	is_triggered_only = yes

	option = { #Okay
		ai_chance = {
			base = 50
			modifier = {
				add = -25
				OR = {
					is_major = yes
					any_country = {
						is_major = yes
						is_in_faction_with = ROOT
					}
				}
			}
		}
		name = russia2_russia.141.a
		if = {
			limit = {
				has_war_with = SOV
			}
			white_peace = {
				tag = SOV
				message = SURRENDER_KARELIA_MESSAGE
			}
		}
		SOV = {
			country_event = { id = russia2_russia.142 days = 1 }
		}
		if = {
			limit = {
				any_country = {
					is_subject_of = ROOT
					owns_state = 213
					NOT = {
						tag = ROOT
					}
				}
 			}
			custom_effect_tooltip = SOV_karelia_213_subject_tt
		}
		else_if = {
			limit = {
				any_country = {
					is_subject_of = ROOT
					owns_state = 215
					NOT = {
						tag = ROOT
					}
				}
 			}
			custom_effect_tooltip = SOV_karelia_215_subject_tt
		}
		else_if = {
			limit = {
				any_country = {
					is_subject_of = ROOT
					owns_state = 216
					NOT = {
						tag = ROOT
					}
				}
 			}
			custom_effect_tooltip = SOV_karelia_216_subject_tt
		}
		if = {
			limit = {
				all_owned_state = {
					OR = {
						state = 213
						state = 215
						state = 216
					}
				}
			}
			custom_effect_tooltip = SOV_game_totally_over_TT
		}
	}

	option = { #No
		ai_chance = {
			base = 50
			modifier = {
				add = 25
				OR = {
					is_major = yes
					any_country = {
						is_major = yes
						is_in_faction_with = ROOT
					}
				}
			}
		}
		name = russia2_russia.141.b
		SOV = {
			country_event = { id = russia2_russia.143 days = 1 }
		}
		if = {
			limit = {
				any_country = {
					is_subject_of = ROOT
					owns_state = 213
					NOT = {
						tag = ROOT
					}
				}
 			}
			custom_effect_tooltip = SOV_karelia_213_subject_tt
		}
		else_if = {
			limit = {
				any_country = {
					is_subject_of = ROOT
					owns_state = 215
					NOT = {
						tag = ROOT
					}
				}
 			}
			custom_effect_tooltip = SOV_karelia_215_subject_tt
		}
		else_if = {
			limit = {
				any_country = {
					is_subject_of = ROOT
					owns_state = 216
					NOT = {
						tag = ROOT
					}
				}
 			}
			custom_effect_tooltip = SOV_karelia_216_subject_tt
		}
	}
}

#We give back Karelia
country_event = {
	id = russia2_russia.142
	title = russia2_russia.142.t
	desc = russia2_russia.142.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #Take back the Land
		ai_chance = { base = 100 }
		name = russia2_russia.142.a
		if = {
			limit = {
				OR = {
					FROM = {
						owns_state = 213
					}
					any_country = {
						is_subject_of = FROM
						owns_state = 213
					}
				}
			}
			transfer_state = 213
		}
		if = {
			limit = {
				OR = {
					FROM = {
						owns_state = 215
					}
					any_country = {
						is_subject_of = FROM
						owns_state = 215
					}
				}
			}
			transfer_state = 215
		}
		if = {
			limit = {
				OR = {
					FROM = {
						owns_state = 216
					}
					any_country = {
						is_subject_of = FROM
						owns_state = 216
					}
				}
			}
			transfer_state = 216
		}
	}

	option = { #Keep them as a puppet
		ai_chance = { base = 100 }
		name = russia2_russia.142.b
		trigger = {
			KAR = {
				exists = yes
				is_subject_of = FROM
				OR = {
					owns_state = 216
					owns_state = 215
					owns_state = 213
				}
			}
		}
		puppet = KAR
		hidden_effect = {
			if = {
				limit = {
					has_completed_focus = SOV_freedom_all
				}
				set_autonomy = {
					target = KAR
					autonomy_state = autonomy_russian_protectorate
				}
			}
			else = {
				set_autonomy = {
					target = KAR
					autonomy_state = autonomy_supervised_state
				}
			}
		}
		if = {
			limit = {
				FROM = {
					owns_state = 213
				}
			}
			transfer_state = 213
		}
		if = {
			limit = {
				FROM = {
					owns_state = 215
				}
			}
			transfer_state = 215
		}
		if = {
			limit = {
				FROM = {
					owns_state = 216
				}
			}
			transfer_state = 216
		}
	}
}

#No!
country_event = {
	id = russia2_russia.143
	title = russia2_russia.143.t
	desc = russia2_russia.143.d
	picture = GFX_military_parade_russia2

	is_triggered_only = yes

	option = {
		ai_chance = { base = 100 }
		name = russia2_russia.143.a
		if = {
			limit = {
				any_country = {
					is_subject_of = FROM
					OR = {
						owns_state = 213
						owns_state = 215
						owns_state = 216
					}
				}
			}
			every_country = {
				limit = {
					is_subject_of = FROM
					OR = {
						owns_state = 213
						owns_state = 215
						owns_state = 216
					}
				}
				SOV = {
					create_wargoal = {
						type = take_state_focus
						target = PREV
						generator = { 213 215 216 }
					}
				}
			}
		}
		create_wargoal = {
			type = take_state_focus
			target = FROM
			generator = { 213 215 216 }
		}
	}
}

#Russia Asks for North Sakhalin
country_event = {
	id = russia2_russia.144
	title = russia2_russia.144.t
	desc = russia2_russia.144.d
	picture = GFX_report_event_japanese_soldiers_03

	is_triggered_only = yes

	option = { #Okay
		ai_chance = {
			base = 50
			modifier = {
				add = -25
				OR = {
					is_major = yes
					any_country = {
						is_major = yes
						is_in_faction_with = ROOT
					}
				}
			}
		}
		name = russia2_russia.144.a
		if = {
			limit = {
				has_war_with = SOV
			}
			white_peace = {
				tag = SOV
				message = SURRENDER_NORTH_SAKHALIN_MESSAGE
			}
		}
		SOV = {
			transfer_state = 655
			country_event = { id = russia2_russia.145 days = 1 }
		}
		if = {
			limit = {
				any_country = {
					is_subject_of = ROOT
					owns_state = 655
					NOT = {
						tag = ROOT
					}
				}
 			}
			custom_effect_tooltip = SOV_sakhalin_subject_tt
		}
		if = {
			limit = {
				all_owned_state = {
					state = 655
				}
			}
			custom_effect_tooltip = SOV_game_totally_over_TT
		}
	}

	option = { #No
		ai_chance = {
			base = 50
			modifier = {
				add = 25
				OR = {
					is_major = yes
					any_country = {
						is_major = yes
						is_in_faction_with = ROOT
					}
				}
			}
		}
		name = russia2_russia.144.b
		SOV = {
			country_event = { id = russia2_russia.146 days = 1 }
		}
	}
}

#We give back North Sakhalin
country_event = {
	id = russia2_russia.145
	title = russia2_russia.145.t
	desc = russia2_russia.145.d
	picture = GFX_soldiers_handshaking_kolchak_russia2

	is_triggered_only = yes

	option = {
		ai_chance = { base = 100 }
		name = russia2_russia.145.a
	}
}

#No!
country_event = {
	id = russia2_russia.146
	title = russia2_russia.146.t
	desc = russia2_russia.146.d
	picture = GFX_military_parade_russia2

	is_triggered_only = yes

	option = { #Doesn't give a wargoal because why would you declare war over Sakhalin?
		ai_chance = { base = 100 }
		name = russia2_russia.146.a
	}
}

#Reform the Entente
country_event = {
	id = russia2_russia.151
	title = russia2_russia.151.t
	desc = russia2_russia.151.d
	picture = GFX_report_event_pierre_laval

	is_triggered_only = yes

	option = {
		ai_chance = {
			base = 80
			modifier = {
				add = -50
				is_faction_leader = yes
			}
		}
		name = russia2_russia.151.a
		SOV = {
			if = {
				limit = {
					FRA = {
						is_faction_leader = yes
					}
				}
				every_country = {
					limit = {
						is_in_faction_with = FRA
					}
					SOV = {
						add_to_faction = PREV
					}
				}
			}
			else = {
				add_to_faction = FRA
			}
			country_event = { id = russia2_russia.152 days = 1 }
		}
		FRA = {
			add_ai_strategy = {
				type = alliance
				id = SOV
				value = 500
			}
		}
	}

	option = {
		ai_chance = {
			base = 0
			modifier = {
				add = 50
				is_faction_leader = yes
			}
		}
		name = russia2_russia.151.b
		SOV = {
			country_event = { id = russia2_russia.254 days = 1 }
		}
	}

	option = {
		ai_chance = {
			base = 20
		}
		name = russia2_russia.151.c
		SOV = {
			country_event = { id = russia2_russia.153 days = 1 }
		}
	}
}

#France Accepts
country_event = {
	id = russia2_russia.152
	title = russia2_russia.152.t
	desc = russia2_russia.152.d
	picture = GFX_report_event_worried_french

	is_triggered_only = yes

	option = {
		ai_chance = { base = 100 }
		name = russia2_russia.152.a
	}
}

#France Refuses
country_event = {
	id = russia2_russia.153
	title = russia2_russia.153.t
	desc = russia2_russia.153.d
	picture = GFX_report_event_poland_rejects

	is_triggered_only = yes

	option = {
		ai_chance = { base = 100 }
		name = russia2_russia.153.a
	}
}

#Country Gets Event to Join to Entente
country_event = {
	id = russia2_russia.154
	title = russia2_russia.154.t
	desc = russia2_russia.154.d
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = {
		ai_chance = {
			base = 80
			modifier = {
				add = -40
				OR = {
					is_faction_leader = yes
					any_country = {
						is_in_faction_with = ROOT
						is_major = yes
					}
					SOV = {
						has_war = yes
					}
				}
			}
		}
		name = russia2_russia.154.a
		every_country = {
			limit = {
				is_in_faction_with = SOV
				is_faction_leader = yes
			}
			add_to_faction = ROOT
			if = {
				limit = {
					any_country = {
						is_in_faction_with = SOV
						is_faction_leader = yes
						NOT = {
							tag = SOV
						}
					}
				}
				country_event = { id = russia2_russia.257 days = 1 }
			}
		}
		SOV = {
			country_event = { id = russia2_russia.155 days = 1 }
		}
		ROOT = {
			add_ai_strategy = {
				type = alliance
				id = SOV
				value = 100
			}
		}
		if = {
			limit = {
				SOV = {
					is_faction_leader = no
				}
			}
			every_country = {
				limit = {
					is_in_faction_with = SOV
					is_faction_leader = yes
				}
				ROOT = {
					add_ai_strategy = {
						type = alliance
						id = PREV
						value = 100
					}
				}
			}
		}
	}

	option = {
		ai_chance = {
			base = 20
			modifier = {
				add = 40
				OR = {
					is_faction_leader = yes
					any_country = {
						is_in_faction_with = ROOT
						is_major = yes
					}
					SOV = {
						has_war = yes
					}
				}
			}
		}
		name = russia2_russia.154.b
		SOV = {
			country_event = { id = russia2_russia.156 days = 1 }
		}
	}
}

#FROM Accepts
country_event = {
	id = russia2_russia.155
	title = russia2_russia.155.t
	desc = russia2_russia.155.d
	picture = GFX_soldiers_handshaking_kolchak_russia2

	is_triggered_only = yes

	option = {
		ai_chance = { base = 100 }
		name = russia2_russia.155.a
	}
}

#FROM Refuses
country_event = {
	id = russia2_russia.156
	title = russia2_russia.156.t
	desc = russia2_russia.156.d
	picture = GFX_report_event_poland_rejects

	is_triggered_only = yes

	option = {
		ai_chance = { base = 100 }
		name = russia2_russia.156.a
	}
}

#Russia Asks for Karelia - Compromise
country_event = {
	id = russia2_russia.159
	title = russia2_russia.159.t
	desc = russia2_russia.159.d
	picture = GFX_report_event_second_vienna_award_pact

	is_triggered_only = yes

	option = { #Okay - We want factories
		ai_chance = {
			base = 40
			modifier = {
				add = -5
				OR = {
					is_major = yes
					any_country = {
						is_major = yes
						is_in_faction_with = ROOT
					}
				}
			}
		}
		name = russia2_russia.159.a
		if = {
			limit = {
				has_war_with = SOV
			}
			white_peace = {
				tag = SOV
				message = SURRENDER_KARELIA_MESSAGE
			}
		}
		add_timed_idea = {
			idea = SOV_Received_karelia_payment
			days = 180
		}
		SOV = {
			diplomatic_relation = {
				country = ROOT
				relation = guarantee
				active = yes
			}
			country_event = { id = russia2_russia.160 days = 1 }
		}
		if = {
			limit = {
				any_country = {
					is_subject_of = ROOT
					owns_state = 213
					NOT = {
						tag = ROOT
					}
				}
 			}
			custom_effect_tooltip = SOV_karelia_213_subject_tt
		}
		else_if = {
			limit = {
				any_country = {
					is_subject_of = ROOT
					owns_state = 215
					NOT = {
						tag = ROOT
					}
				}
 			}
			custom_effect_tooltip = SOV_karelia_215_subject_tt
		}
		else_if = {
			limit = {
				any_country = {
					is_subject_of = ROOT
					owns_state = 216
					NOT = {
						tag = ROOT
					}
				}
 			}
			custom_effect_tooltip = SOV_karelia_216_subject_tt
		}
		if = {
			limit = {
				all_owned_state = {
					OR = {
						state = 213
						state = 215
						state = 216
					}
				}
			}
			custom_effect_tooltip = SOV_game_totally_over_TT
		}
	}

	option = { #Okay - We want military aid
		ai_chance = {
			base = 40
			modifier = {
				add = -5
				OR = {
					is_major = yes
					any_country = {
						is_major = yes
						is_in_faction_with = ROOT
					}
				}
			}
		}
		name = russia2_russia.159.b
		if = {
			limit = {
				has_war_with = SOV
			}
			white_peace = {
				tag = SOV
				message = SURRENDER_KARELIA_MESSAGE
			}
		}
		add_timed_idea = {
			idea = SOV_Received_karelia_aid
			days = 180
		}
		SOV = {
			diplomatic_relation = {
				country = ROOT
				relation = guarantee
				active = yes
			}
			country_event = { id = russia2_russia.161 days = 1 }
		}
		if = {
			limit = {
				any_country = {
					is_subject_of = ROOT
					owns_state = 213
					NOT = {
						tag = ROOT
					}
				}
 			}
			custom_effect_tooltip = SOV_karelia_213_subject_tt
		}
		else_if = {
			limit = {
				any_country = {
					is_subject_of = ROOT
					owns_state = 215
					NOT = {
						tag = ROOT
					}
				}
 			}
			custom_effect_tooltip = SOV_karelia_215_subject_tt
		}
		else_if = {
			limit = {
				any_country = {
					is_subject_of = ROOT
					owns_state = 216
					NOT = {
						tag = ROOT
					}
				}
 			}
			custom_effect_tooltip = SOV_karelia_216_subject_tt
		}
		if = {
			limit = {
				all_owned_state = {
					OR = {
						state = 213
						state = 215
						state = 216
					}
				}
			}
			custom_effect_tooltip = SOV_game_totally_over_TT
		}
	}

	option = { #No
		ai_chance = {
			base = 20
			modifier = {
				add = 10
				OR = {
					is_major = yes
					any_country = {
						is_major = yes
						is_in_faction_with = ROOT
					}
				}
			}
		}
		name = russia2_russia.159.c
		SOV = {
			country_event = { id = russia2_russia.162 days = 1 }
		}
		if = {
			limit = {
				any_country = {
					is_subject_of = ROOT
					owns_state = 213
					NOT = {
						tag = ROOT
					}
				}
 			}
			custom_effect_tooltip = SOV_karelia_213_subject_tt
		}
		else_if = {
			limit = {
				any_country = {
					is_subject_of = ROOT
					owns_state = 215
					NOT = {
						tag = ROOT
					}
				}
 			}
			custom_effect_tooltip = SOV_karelia_215_subject_tt
		}
		else_if = {
			limit = {
				any_country = {
					is_subject_of = ROOT
					owns_state = 216
					NOT = {
						tag = ROOT
					}
				}
 			}
			custom_effect_tooltip = SOV_karelia_216_subject_tt
		}
	}
}

#We give back Karelia - Industry
country_event = {
	id = russia2_russia.160
	title = russia2_russia.160.t
	desc = russia2_russia.160.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = {
		ai_chance = { base = 100 }
		name = russia2_russia.160.a
		if = {
			limit = {
				NOT = {
					has_idea = SOV_Karelia_payment
				}
			}
			add_timed_idea = {
				idea = SOV_Karelia_payment
				days = 180
			}
		}
		if = {
			limit = {
				OR = {
					FROM = {
						owns_state = 213
					}
					any_country = {
						is_subject_of = FROM
						owns_state = 213
					}
				}
			}
			transfer_state = 213
		}
		if = {
			limit = {
				OR = {
					FROM = {
						owns_state = 215
					}
					any_country = {
						is_subject_of = FROM
						owns_state = 215
					}
				}
			}
			transfer_state = 215
		}
		if = {
			limit = {
				OR = {
					FROM = {
						owns_state = 216
					}
					any_country = {
						is_subject_of = FROM
						owns_state = 216
					}
				}
			}
			transfer_state = 216
		}
	}

	option = { #Keep them as a puppet
		ai_chance = { base = 0 }
		name = russia2_russia.160.b
		trigger = {
			KAR = {
				exists = yes
				is_subject_of = FROM
				OR = {
					owns_state = 216
					owns_state = 215
					owns_state = 213
				}
			}
		}
		if = {
			limit = {
				NOT = {
					has_idea = SOV_Karelia_payment
				}
			}
			add_timed_idea = {
				idea = SOV_Karelia_payment
				days = 180
			}
		}
		puppet = KAR
		hidden_effect = {
			if = {
				limit = {
					has_completed_focus = SOV_freedom_all
				}
				set_autonomy = {
					target = KAR
					autonomy_state = autonomy_russian_protectorate
				}
			}
			else = {
				set_autonomy = {
					target = KAR
					autonomy_state = autonomy_supervised_state
				}
			}
		}
		if = {
			limit = {
				FROM = {
					owns_state = 213
				}
			}
			transfer_state = 213
		}
		if = {
			limit = {
				FROM = {
					owns_state = 215
				}
			}
			transfer_state = 215
		}
		if = {
			limit = {
				FROM = {
					owns_state = 216
				}
			}
			transfer_state = 216
		}
	}
}

#We give back Karelia - Military
country_event = {
	id = russia2_russia.161
	title = russia2_russia.161.t
	desc = russia2_russia.161.d
	picture = GFX_soldiers_handshaking_kolchak_russia2

	is_triggered_only = yes

	option = {
		ai_chance = { base = 100 }
		name = russia2_russia.161.a
		if = {
			limit = {
				NOT = {
					has_idea = SOV_Karelia_aid
				}
			}
			add_timed_idea = {
				idea = SOV_Karelia_aid
				days = 180
			}
		}
		if = {
			limit = {
				OR = {
					FROM = {
						owns_state = 213
					}
					any_country = {
						is_subject_of = FROM
						owns_state = 213
					}
				}
			}
			transfer_state = 213
		}
		if = {
			limit = {
				OR = {
					FROM = {
						owns_state = 215
					}
					any_country = {
						is_subject_of = FROM
						owns_state = 215
					}
				}
			}
			transfer_state = 215
		}
		if = {
			limit = {
				OR = {
					FROM = {
						owns_state = 216
					}
					any_country = {
						is_subject_of = FROM
						owns_state = 216
					}
				}
			}
			transfer_state = 216
		}
	}

	option = { #Keep them as a puppet
		ai_chance = { base = 0 }
		name = russia2_russia.161.b
		trigger = {
			KAR = {
				exists = yes
				is_subject_of = FROM
				OR = {
					owns_state = 216
					owns_state = 215
					owns_state = 213
				}
			}
		}
		if = {
			limit = {
				NOT = {
					has_idea = SOV_Karelia_payment
				}
			}
			add_timed_idea = {
				idea = SOV_Karelia_payment
				days = 180
			}
		}
		puppet = KAR
		hidden_effect = {
			if = {
				limit = {
					has_completed_focus = SOV_freedom_all
				}
				set_autonomy = {
					target = KAR
					autonomy_state = autonomy_russian_protectorate
				}
			}
			else = {
				set_autonomy = {
					target = KAR
					autonomy_state = autonomy_supervised_state
				}
			}
		}
		if = {
			limit = {
				FROM = {
					owns_state = 213
				}
			}
			transfer_state = 213
		}
		if = {
			limit = {
				FROM = {
					owns_state = 215
				}
			}
			transfer_state = 215
		}
		if = {
			limit = {
				FROM = {
					owns_state = 216
				}
			}
			transfer_state = 216
		}
	}
}

#No!
country_event = {
	id = russia2_russia.162
	title = russia2_russia.162.t
	desc = russia2_russia.162.d
	picture = GFX_report_event_finnish_soldiers_snow

	is_triggered_only = yes

	option = {
		ai_chance = { base = 100 }
		name = russia2_russia.162.a
		if = {
			limit = {
				any_country = {
					is_subject_of = FROM
					OR = {
						owns_state = 213
						owns_state = 215
						owns_state = 216
					}
				}
			}
			every_country = {
				limit = {
					is_subject_of = FROM
					OR = {
						owns_state = 213
						owns_state = 215
						owns_state = 216
					}
				}
			}
			SOV = {
				create_wargoal = {
					type = take_state_focus
					target = PREV
					generator = { 213 215 216 }
				}
			}
		}
		create_wargoal = {
			type = take_state_focus
			target = FROM
			generator = { 213 215 216 }
		}
	}
}

#Russia Asks for North Sakhalin
country_event = {
	id = russia2_russia.163
	title = russia2_russia.163.t
	desc = russia2_russia.163.d
	picture = GFX_report_event_japan_europe_pact

	is_triggered_only = yes

	option = { #Okay
		ai_chance = { base = 90 }
		name = russia2_russia.163.a
		add_timed_idea = {
			idea = SOV_Received_sakhalin_payment
			days = 180
		}
		if = {
			limit = {
				has_war_with = SOV
			}
			white_peace = {
				tag = SOV
				message = SURRENDER_NORTH_SAKHALIN_MESSAGE
			}
		}
		SOV = {
			transfer_state = 655
			country_event = { id = russia2_russia.164 days = 1 }
		}
		if = {
			limit = {
				any_country = {
					is_subject_of = ROOT
					owns_state = 655
					NOT = {
						tag = ROOT
					}
				}
 			}
			custom_effect_tooltip = SOV_sakhalin_subject_tt
		}
		if = {
			limit = {
				all_owned_state = {
					state = 655
				}
			}
			custom_effect_tooltip = SOV_game_totally_over_TT
		}
	}

	option = { #No
		ai_chance = { base = 10 }
		name = russia2_russia.163.b
		SOV = {
			country_event = { id = russia2_russia.165 days = 1 }
		}
	}
}

#We give back North Sakhalin
country_event = {
	id = russia2_russia.164
	title = russia2_russia.164.t
	desc = russia2_russia.164.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = {
		ai_chance = { base = 100 }
		name = russia2_russia.164.a
		add_timed_idea = {
			idea = SOV_Sakhalin_payment
			days = 180
		}
	}
}

#No!
country_event = {
	id = russia2_russia.165
	title = russia2_russia.165.t
	desc = russia2_russia.165.d
	picture = GFX_report_event_japanese_transport_soldiers

	is_triggered_only = yes

	option = { #Doesn't give a wargoal because why would you declare war over Sakhalin?
		ai_chance = { base = 100 }
		name = russia2_russia.165.a
	}
}

#Russian Culture Promoted!
country_event = {
	id = russia2_russia.166
	title = russia2_russia.166.t
	desc = russia2_russia.166.d
	picture = GFX_report_event_crowd_in_prague

	is_triggered_only = yes

	immediate = {
		clr_country_flag = russian_culture_promote
		set_country_flag = receive_promote_russian_culture_event
	}

	option = { #Okay
		ai_chance = {
			base = 100
			modifier = {
				factor = 0
				SOV = {
					has_completed_focus = SOV_freedom_all
				}
			}
		}
		name = russia2_russia.166.a
		custom_effect_tooltip = SOV_game_totally_over_TT
		SOV = {
			country_event = { id = russia2_russia.167 days = 1 }
		}
	}

	option = { #No, only if a player somehow wants to play a Russian State OR the Reunification was not completed
		ai_chance = {
			base = 0
			modifier = {
				add = 100
				SOV = {
					has_completed_focus = SOV_freedom_all
				}
			}
		}
		name = russia2_russia.166.b
	}
}

#FROM Gets Annexed
country_event = {
	id = russia2_russia.167
	title = russia2_russia.167.t
	desc = russia2_russia.167.d
	picture = GFX_report_event_communists_cheer

	is_triggered_only = yes

	option = {
		ai_chance = { base = 100 }
		name = russia2_russia.167.a
		annex_country = {
			target = FROM
			transfer_troops = yes
		}
		clr_country_flag = russian_culture_promote
	}
}

#Demand Government Change
country_event = {
	id = russia2_russia.170
	title = russia2_russia.170.t
	desc = russia2_russia.170.d
	picture = GFX_menacing_tanks_russia2

	is_triggered_only = yes

	option = { #Submit
		name = russia2_russia.170.a
		ai_chance = {
			base = 75
			modifier = {
				add = -60
				OR = {
					is_major = yes
					any_country = {
						is_major = yes
						is_in_faction_with = ROOT
					}
				}
			}
			modifier = {
				add = 15
				OR = {
					tag = LAT
					tag = LIT
					tag = EST
					tag = ROM
				}
			}
			modifier = {
				add = 10
				tag = POL
			}
		}
		SOV = {
			set_autonomy = {
				target = ROOT
				autonomy_state = autonomy_supervised_state
			}
			country_event = { id = russia2_russia.171 days = 1 }
		}
		hidden_effect = {
			news_event = { id = newsrussia2.139 days = 2 }
		}
	}

	option = { #No
		name = russia2_russia.170.b
		ai_chance = {
			base = 25
			modifier = {
				add = 60
				OR = {
					is_major = yes
					any_country = {
						is_major = yes
						is_in_faction_with = ROOT
					}
				}
			}
			modifier = {
				add = -15
				OR = {
					tag = LAT
					tag = LIT
					tag = EST
					tag = POL
					tag = ROM
				}
			}
			modifier = {
				add = -10
				tag = POL
			}
		}
		SOV = {
			country_event = { id = russia2_russia.172 days = 1 }
		}
		hidden_effect = {
			news_event = { id = newsrussia2.142 days = 2 }
		}
	}
}

#FROM Changes Government
country_event = {
	id = russia2_russia.171
	title = russia2_russia.171.t
	desc = russia2_russia.171.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes

	option = {
		ai_chance = { base = 100 }
		name = russia2_russia.171.a
	}
}

#FROM Refuses
country_event = {
	id = russia2_russia.172
	title = russia2_russia.172.t
	desc = russia2_russia.172.d
	picture = GFX_report_event_czech_soldiers_02

	is_triggered_only = yes

	option = {
		name = russia2_russia.172.a
		ai_chance = { base = 100 }
		create_wargoal = {
			type = defense_liberty
			target = FROM
		}
	}
}

#Invite Slavic Nation
country_event = {
	id = russia2_russia.178
	title = russia2_russia.178.t
	desc = russia2_russia.178.d
	picture = GFX_report_event_finnish_letter

	is_triggered_only = yes

	option = { #Join
		name = russia2_russia.178.a
		ai_chance = {
			base = 75
			modifier = {
				add = -70
				tag = BUL
				any_country = {
					OR = {
						tag = YUG
						tag = MAC
					}
					is_in_faction_with = SOV
				}
			}
			modifier = {
				add = -50
				any_country = {
					is_major = yes
					has_war_with = SOV
				}
			}
		}
		SOV = {
			add_to_faction = ROOT
			country_event = { id = russia2_russia.182 days = 1 }
		}
		add_opinion_modifier = {
			target = FROM
			modifier = russian_diplomats
		}
		set_country_flag = sov_invited_focus_tsar
		ROOT = {
			add_ai_strategy = {
				type = alliance
				id = SOV
				value = 500
			}
			add_ai_strategy = {
				type = befriend
				id = SOV
				value = 2
			}
		}
	}

	option = { #Demand Claims
		name = russia2_russia.178.b
		ai_chance = {
			base = 25
			modifier = {
				add = 50
				any_country = {
					OR = {
						tag = YUG
						tag = MAC
					}
					is_in_faction_with = SOV
				}
			}
		}
		trigger = {
			tag = BUL
		}
		SOV = {
			country_event = { id = russia2_bulgaria.1 days = 1 }
		}
	}

	option = { #Refuse
		name = russia2_russia.178.c
		ai_chance = {
			base = 25
			modifier = {
				add = -5
				tag = BUL
				any_country = {
					OR = {
						tag = YUG
						tag = MAC
					}
					is_in_faction_with = SOV
				}
			}
			modifier = {
				add = 50
				any_country = {
					is_major = yes
					has_war_with = SOV
				}
			}
		}
		SOV = {
			country_event = { id = russia2_russia.183 days = 1 }
		}
	}
}

#FROM Accepts
country_event = {
	id = russia2_russia.179
	title = russia2_russia.179.t
	desc = russia2_russia.179.d
	picture = GFX_report_event_soviet_german_soldier_handshake

	is_triggered_only = yes

	option = {
		ai_chance = { base = 100 }
		name = russia2_russia.179.a
	}
}

#FROM Refuses
country_event = {
	id = russia2_russia.180
	title = russia2_russia.180.t
	desc = russia2_russia.180.d
	picture = GFX_report_event_czech_soldiers_01

	is_triggered_only = yes

	option = {
		name = russia2_russia.180.a
		ai_chance = { base = 100 }
	}
}

#Invite Non Slavic Nation
country_event = {
	id = russia2_russia.181
	title = russia2_russia.181.t
	desc = russia2_russia.181.d
	picture = GFX_report_event_romania_poland_visit

	is_triggered_only = yes

	option = { #Join
		name = russia2_russia.181.a
		ai_chance = {
			base = 75
			modifier = {
				add = -50
				any_country = {
					is_major = yes
					has_war_with = SOV
				}
			}
		}
		SOV = {
			add_to_faction = ROOT
			country_event = { id = russia2_russia.182 days = 1 }
		}
		add_opinion_modifier = {
			target = FROM
			modifier = russian_diplomats
		}
		set_country_flag = sov_invited_focus_tsar
		ROOT = {
			add_ai_strategy = {
				type = alliance
				id = SOV
				value = 100
			}
			add_ai_strategy = {
				type = befriend
				id = SOV
				value = 2
			}
		}
	}

	option = { #Refuse
		name = russia2_russia.181.b
		ai_chance = {
			base = 25
			modifier = {
				add = 50
				any_country = {
					is_major = yes
					has_war_with = SOV
				}
			}
		}
		SOV = {
			country_event = { id = russia2_russia.183 days = 1 }
		}
	}
}

#FROM Accepts
country_event = {
	id = russia2_russia.182
	title = russia2_russia.182.t
	desc = russia2_russia.182.d
	picture = GFX_soldiers_handshaking_kolchak_russia2

	is_triggered_only = yes

	option = {
		ai_chance = { base = 100 }
		name = russia2_russia.182.a
	}
}

#FROM Refuses
country_event = {
	id = russia2_russia.183
	title = russia2_russia.183.t
	desc = russia2_russia.183.d
	picture = GFX_report_event_czech_soldiers_01

	is_triggered_only = yes

	option = {
		name = russia2_russia.183.a
		ai_chance = { base = 100 }
	}
}

#Add Country to the Slavic Research Agreement
country_event = {
	id = russia2_russia.184

	hidden = yes

	is_triggered_only = yes

	immediate = {
		add_to_tech_sharing_group = sov_slavic_research
	}
}

#Remove Country from the Slavic Research Agreement
country_event = {
	id = russia2_russia.185

	hidden = yes

	is_triggered_only = yes

	immediate = {
		remove_from_tech_sharing_group = sov_slavic_research
	}
}

#Opinion Factor for SOJ - Civil War
country_event = {
	id = russia2_russia.186

	hidden = yes

	is_triggered_only = yes

	immediate = {
		SOJ = {
			add_opinion_modifier = {
				target = EST
				modifier = neutral_second_war
			}
			add_opinion_modifier = {
				target = LAT
				modifier = neutral_second_war
			}
			add_opinion_modifier = {
				target = FIN
				modifier = neutral_second_war
			}
			add_opinion_modifier = {
				target = POL
				modifier = neutral_second_war
			}
		}
		EST = {
			add_opinion_modifier = {
				target = SOJ
				modifier = neutral_second_war
			}
		}
		LAT = {
			add_opinion_modifier = {
				target = SOJ
				modifier = neutral_second_war
			}
		}
		FIN = {
			add_opinion_modifier = {
				target = SOJ
				modifier = neutral_second_war
			}
		}
		POL = {
			add_opinion_modifier = {
				target = SOJ
				modifier = neutral_second_war
			}
		}
	}
}

#Event to Add Liberated Countries (Caucasus) Without Creating Too Much World Tension
country_event = {
	id = russia2_russia.187

	hidden = yes

	is_triggered_only = yes

	immediate = {
		if = {
			limit = {
				SOV = {
					has_country_flag = control_caucasus
				}
			}
			GEO = {
				add_to_war = {
					targeted_alliance = SOV
					enemy = SOJ
					hostility_reason = anti_soviet_alliance
				}
			}
			ARM = {
				add_to_war = {
					targeted_alliance = SOV
					enemy = SOJ
					hostility_reason = anti_soviet_alliance
				}
			}
			AZR = {
				add_to_war = {
					targeted_alliance = SOV
					enemy = SOJ
					hostility_reason = anti_soviet_alliance
				}
			}
		}
	}
}

#Event to Add Liberated Countries (Central Asia) Without Creating Too Much World Tension
country_event = {
	id = russia2_russia.188

	hidden = yes

	is_triggered_only = yes

	immediate = {
		if = {
			limit = {
				SOV = {
					has_country_flag = control_central_asia
				}
			}
			KAZ = {
				add_to_war = {
					targeted_alliance = SOV
					enemy = SOJ
					hostility_reason = anti_soviet_alliance
				}
			}
			TMS = {
				add_to_war = {
					targeted_alliance = SOV
					enemy = SOJ
					hostility_reason = anti_soviet_alliance
				}
			}
		}
	}
}

#Event to Add Liberated Countries (Belarus) Without Creating Too Much World Tension
country_event = {
	id = russia2_russia.189

	hidden = yes

	is_triggered_only = yes

	immediate = {
		if = {
			limit = {
				SOV = {
					has_country_flag = control_belarus
				}
			}
			BLR = {
				add_to_war = {
					targeted_alliance = SOV
					enemy = SOJ
					hostility_reason = anti_soviet_alliance
				}
			}
		}
	}
}

#End of the Civil War - Aftermath
country_event = {
	id = russia2_russia.190
	title = russia2_russia.190.t
	desc = russia2_russia.190.d
	picture = GFX_report_event_generic_ruins

	fire_only_once = yes

	is_triggered_only = yes

	option = {
		name = russia2_russia.190.a
		set_global_flag = second_russian_civil_war_over
		clr_global_flag = second_russian_civil_war_in_progress
		every_country = {
			limit = {
				OR = {
					is_subject_of = SOV
					tag = CRI
				}
				NOT = {
					tag = MON
					tag = TAN
				}
			}
			add_timed_idea = {
				idea = SOV_Isolation
				days = 2000
			}
		}
		every_country = {
			limit = {
				is_subject_of = SOV
				NOT = {
					tag = MON
					tag = TAN
				}
			}
			SOV = {
				set_autonomy = {
					target = PREV
					autonomy_state = autonomy_free
				}
			}
		}
		if = {
			limit = {
				OR = {
					NOT = {
						country_exists = TAN
					}
					NOT = {
						country_exists = MON
					}
				}
				OR = {
					owns_state = 329
					owns_state = 820
					owns_state = 818
					owns_state = 817
					owns_state = 819
					owns_state = 330
				}
			}
			country_event = { id = russia2_russia.647 days = 1 }
		}
		custom_effect_tooltip = end_civil_war_focus
		hidden_effect = {
			UKR = {
				every_character = {
					limit = {
						has_character_flag = flag_former_deserting_generals
						OR = {
							is_character = SOV_Semyon_timoshenko
							is_character = SOV_Ivan_chernyakhovsky
							is_character = SOV_Andrey_yeryomenko
						}
					}
					set_nationality = SOV
					set_character_flag = russia_is_in_prison_cw
					clr_character_flag = sov_character_switched_to_sou
					clr_character_flag = flag_former_deserting_generals
				}
				every_character = {
					limit = {
						has_character_flag = flag_former_deserting_generals
						OR = {
							is_character = SOV_Vladimir_kislitsin
							is_character = SOV_boris_shteifon_RR
							is_character = SOV_Alexander_rodzyanko
						}
					}
					set_nationality = SOV
					clr_character_flag = flag_former_deserting_generals
				}
			}
			if = {
				limit = {
					country_exists = UKR
					UKR = {
						has_completed_focus = UKR_boost_industry
					}
				}
				UKR = {
					add_offsite_building = {
						type = industrial_complex
						level = -1
					}
					add_offsite_building = {
						type = arms_factory
						level = -2
					}
				}
			}
			if = {
				limit = {
					SOV = {
						OR = {
							has_country_flag = japan_accept_to_help_give_russian_far_east
							has_country_flag = has_negotiated_with_germany_ressource_rights
							has_country_flag = accept_american_occupation_siberia_after_cw
							has_country_flag = accept_french_factories_after_cw
							has_country_flag = accept_diplomatic_relation_with_italy
							has_country_flag = accept_english_help_for_shipment
						}
					}
				}
				SOV = {
					country_event = { id = russia2_generic.34 days = 7 }
				}
			}
			every_state = {
				limit = {
					is_core_of = SOJ
				}
				remove_core_of = SOJ
			}
			if = {
				limit = {
					has_country_flag = control_central_asia
				}
				KAZ = {
					transfer_state = 406
					transfer_state = 407
					transfer_state = 589
					transfer_state = 588
					transfer_state = 882
				}
			}
			582 = {
				remove_dynamic_modifier = {
					modifier = urals_secret
				}
			}
			573 = {
				remove_dynamic_modifier = {
					modifier = urals_secret
				}
			}
			581 = {
				remove_dynamic_modifier = {
					modifier = urals_secret
				}
			}
			if = {
				limit = {
					has_country_flag = control_caucasus
				}
				delete_unit_template_and_units = {
					division_template = "Kavkazskaya kazach'ya diviziya"
				}
				delete_unit_template_and_units = {
					division_template = "Opytnyy Kavkazskaya kazach'ya diviziya"
				}
			}
			if = {
				limit = {
					has_equipment = {
						infantry_equipment > 50000
					}
				}
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = -50000
				}
			}
			if = {
				limit = {
					has_equipment = {
						infantry_equipment > 40000
					}
					has_equipment = {
						infantry_equipment < 50000
					}
				}
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = -40000
				}
			}
			else_if = {
				limit = {
					has_equipment = {
						infantry_equipment > 30000
					}
					has_equipment = {
						infantry_equipment < 40000
					}
				}
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = -30000
				}
			}
			else_if = {
				limit = {
					has_equipment = {
						infantry_equipment > 20000
					}
					has_equipment = {
						infantry_equipment < 30000
					}
				}
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = -20000
				}
			}
			every_country = {
				limit = {
					exists = yes
					OR = {
						tag = SOV
						tag = UKR
						tag = BLR
						tag = AZR
						tag = GER
						tag = ARM
						tag = KAZ
						tag = TMS
						tag = CRI
					}
				}
				delete_unit_template_and_units = {
					division_template = "Yaponskiy Dobrovol'cheskiy Diviziya"
				}
				delete_unit_template_and_units = {
					division_template = "Ital'yanskiy Dobrovol'cheskiy Diviziya"
				}
			}
			every_country = {
				limit = {
					exists = yes
					OR = {
						tag = UKR
						tag = BLR
						tag = AZR
						tag = GER
						tag = ARM
						tag = KAZ
						tag = TMS
						tag = CRI
					}
				}
				delete_unit_template_and_units = {
					division_template = "Kavkazskaya kazach'ya diviziya"
				}
				delete_unit_template_and_units = {
					division_template = "Opytnyy Kavkazskaya kazach'ya diviziya"
				}
				delete_unit_template_and_units = {
					division_template = "gvardeyskaya pekhotnaya diviziya"
				}
				delete_unit_template_and_units = {
					division_template = "Gvardeyskaya kavaleriyskaya diviziya"
				}
				delete_unit_template_and_units = {
					division_template = "Panzer Diviziya"
				}
				delete_unit_template_and_units = {
					division_template = "Diviziya Morskoy Pekhoty"
				}
			}
			SOV = {
				every_character = {
					limit = {
						OR = {
							is_character = SOV_Mikhail_kalinin
							is_character = SOV_Nikita_khrushchev
							is_character = SOV_Vyacheslav_molotov
							is_character = SOV_Alexander_yegorov
							is_character = SOV_Vasily_blyukher
						}
					}
					set_character_flag = russia_is_in_prison_cw
				}
			}
		}
		add_threat = -5
		remove_ideas = SOV_Supply_line
		remove_ideas = SOV_Second_civil_war_idea_modifier
		hidden_effect = {
			every_country = {
				limit = {
					has_idea = SOV_Second_civil_war_idea_modifier
				}
				remove_ideas = SOV_Second_civil_war_idea_modifier
			}
		}
		remove_ideas = SOV_Urals_secret
		remove_ideas = SOV_Slow_industry
		dismantle_faction = yes
		add_ideas = low_economic_mobilisation
		add_ideas = limited_conscription
		add_ideas = SOV_Political_Unstability
	}
}

#SOJ Annex SOV puppets if it's AI controlled and almost at 100% surrender
country_event = {
	id = russia2_russia.191

	hidden = yes

	fire_only_once = yes

	trigger = {
		tag = SOJ
		has_war = yes
		SOV = {
			exists = yes
			surrender_progress > 0.75
			has_country_flag = sov_near_capitulation
			is_ai = yes
		}
	}

	mean_time_to_happen = { days = 1 }

	immediate = {
		every_country = {
			limit = {
				is_subject_of = SOV
			}
			SOJ = {
				annex_country = {
					target = PREV
					transfer_troops = no
				}
			}
		}
	}
}

#Contact the German Exiles
country_event = {
	id = russia2_russia.192
	title = russia2_russia.192.t
	desc = russia2_russia.192.d
	picture = GFX_report_event_fascist_gathering

	is_triggered_only = yes

	option = { #Yes
		name = russia2_russia.192.a
		ai_chance = {
			base = 70
		}
		set_temp_variable = { random_factor_german_exilee = 0 }
		randomize_temp_variable = {
			var = random_factor_german_exilee
			distribution = uniform
			min = 0
			max = 100
		}
		round_variable = random_factor_german_exilee
		hidden_effect = {
			if = {
				limit = {
					check_variable = {
						var = random_factor_german_exilee
						value = 40
						compare = less_than_or_equals
					}
				}
				SOV = {
					country_event = { id = russia2_russia.193 hours = 2 }
				}
			}
			else = {
				SOV = {
					country_event = { id = russia2_russia.194 hours = 2 }
				}
			}
		}
	}

	option = { #Germany shall never be unified again
		name = russia2_russia.192.b
		ai_chance = {
			base = 30
		}
		custom_effect_tooltip = choosing_this_option_destroy_german_unification
		set_country_flag = decide_to_restore_prussia_and_other_kingdom_for_decisions
	}

	option = { #No
		name = russia2_russia.192.c
		ai_chance = {
			base = 0
		}
	}
}

#German Exiles Accept
country_event = {
	id = russia2_russia.193
	title = russia2_russia.193.t
	desc = russia2_russia.193.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #Yay
		name = russia2_russia.193.a
		ai_chance = {
			base = 100
		}
		set_country_flag = ger_exiles_accept_puppet
	}
}

#German Exiles Refuse
country_event = {
	id = russia2_russia.194
	title = russia2_russia.194.t
	desc = russia2_russia.194.d
	picture = GFX_report_event_poland_rejects

	is_triggered_only = yes

	option = { #Okay, you'll get more freedom
		name = russia2_russia.194.a
		ai_chance = {
			base = 75
		}
		set_temp_variable = { random_factor_german_exilee2 = 0 }
		randomize_temp_variable = {
			var = random_factor_german_exilee2
			distribution = uniform
			min = 0
			max = 100
		}
		round_variable = random_factor_german_exilee2
		hidden_effect = {
			if = {
				limit = {
					check_variable = {
						var = random_factor_german_exilee2
						value = 75
						compare = less_than_or_equals
					}
				}
				SOV = {
					country_event = { id = russia2_russia.195 hours = 2 }
				}
			}
			else = {
				SOV = {
					country_event = { id = russia2_russia.196 hours = 2 }
				}
			}
		}
	}

	option = { #Ask one more time
		name = russia2_russia.194.b
		ai_chance = {
			base = 25
		}
		set_temp_variable = { random_factor_german_exilee = 0 }
		randomize_temp_variable = {
			var = random_factor_german_exilee
			distribution = uniform
			min = 0
			max = 100
		}
		round_variable = random_factor_german_exilee
		hidden_effect = {
			if = {
				limit = {
					check_variable = {
						var = random_factor_german_exilee
						value = 50
						compare = less_than_or_equals
					}
				}
				SOV = {
					country_event = { id = russia2_russia.193 hours = 2 }
				}
			}
			else = {
				SOV = {
					country_event = { id = russia2_russia.196 hours = 2 }
				}
			}
		}
	}

	option = { #Ok then, bye
		name = russia2_russia.194.c
		ai_chance = {
			base = 0
		}
	}
}

#German Exiles Accept Reduced Puppet
country_event = {
	id = russia2_russia.195
	title = russia2_russia.195.t
	desc = russia2_russia.195.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #Yay
		name = russia2_russia.195.a
		ai_chance = {
			base = 100
		}
		set_country_flag = ger_exiles_accept_puppet_reduced
	}
}

#German Exiles Still Refuse
country_event = {
	id = russia2_russia.196
	title = russia2_russia.196.t
	desc = russia2_russia.196.d
	picture = GFX_report_event_poland_rejects

	is_triggered_only = yes

	option = { #Okay, you'll get independence
		name = russia2_russia.196.a
		ai_chance = {
			base = 50
		}
		custom_effect_tooltip = GER_no_puppet_kaiser
		hidden_effect = {
			country_event = russia2_russia.197
		}
	}

	option = { #Bye
		name = russia2_russia.196.b
		ai_chance = {
			base = 50
		}
	}
}

#German Exiles Accept No Puppet
country_event = {
	id = russia2_russia.197
	title = russia2_russia.197.t
	desc = russia2_russia.197.d
	picture = GFX_report_event_hol_cabinet_de_geer

	is_triggered_only = yes

	option = { #Yay?
		name = russia2_russia.197.a
		ai_chance = {
			base = 100
		}
		set_country_flag = ger_exiles_accept_no_puppet
	}
}

#Restoration of the Orthodox Church
country_event = {
	id = russia2_russia.198
	title = russia2_russia.198.t
	desc = russia2_russia.198.d
	picture = GFX_report_event_generic_military_parade

	is_triggered_only = yes

	option = { #Yay
		name = russia2_russia.198.a
		ai_chance = {
			base = 100
		}
		add_ideas = SOV_Orthodox_church_restored
		add_ideas = SOV_Tsar_watching
	}
}


#Recon Successful - Central Russia
country_event = {
	id = russia2_russia.199
	title = russia2_russia.199.t
	desc = russia2_russia.199.d
	picture = GFX_report_event_china_infiltration

	is_triggered_only = yes

	immediate = {
		clr_country_flag = central_russia_claims
	}

	option = { #Noice
		name = russia2_russia.199.a
		ai_chance = {
			base = 100
		}
		set_country_flag = central_russia_raids
		custom_effect_tooltip = recon_successful_central_russia
	}
}

#Recon Unsuccessful
country_event = {
	id = russia2_russia.200
	title = russia2_russia.200.t
	desc = russia2_russia.200.d
	picture = GFX_report_event_dead_soldiers

	is_triggered_only = yes

	option = { #Damn
		name = russia2_russia.200.a
		ai_chance = {
			base = 100
		}
		add_manpower = -2000
	}
}

#Recon Successful - Kuban Region
country_event = {
	id = russia2_russia.201
	title = russia2_russia.201.t
	desc = russia2_russia.201.d
	picture = GFX_report_event_china_infiltration

	is_triggered_only = yes

	immediate = {
		clr_country_flag = kuban_region_claims
	}

	option = { #Noice
		name = russia2_russia.201.a
		ai_chance = {
			base = 100
		}
		set_country_flag = kuban_region_raids
		custom_effect_tooltip = recon_successful_kuban_region
	}
}

#Recon Successful - Transvolga Region
country_event = {
	id = russia2_russia.202
	title = russia2_russia.202.t
	desc = russia2_russia.202.d
	picture = GFX_report_event_china_infiltration

	is_triggered_only = yes

	immediate = {
		clr_country_flag = transvolga_region_claims
	}

	option = { #Noice
		name = russia2_russia.202.a
		ai_chance = {
			base = 100
		}
		set_country_flag = transvolga_region_raids
		custom_effect_tooltip = recon_successful_transvolga_region
	}
}

#Recon Successful - Urals Region
country_event = {
	id = russia2_russia.203
	title = russia2_russia.203.t
	desc = russia2_russia.203.d
	picture = GFX_report_event_china_infiltration

	is_triggered_only = yes

	immediate = {
		clr_country_flag = urals_region_claims
	}

	option = { #Noice
		name = russia2_russia.203.a
		ai_chance = {
			base = 100
		}
		set_country_flag = urals_region_raids
		custom_effect_tooltip = recon_successful_urals_region
	}
}

#Recon Successful - Artic Region
country_event = {
	id = russia2_russia.204
	title = russia2_russia.204.t
	desc = russia2_russia.204.d
	picture = GFX_report_event_china_infiltration

	is_triggered_only = yes

	immediate = {
		clr_country_flag = artic_region_claims
	}

	option = { #Noice
		name = russia2_russia.204.a
		ai_chance = {
			base = 100
		}
		set_country_flag = artic_region_raids
		custom_effect_tooltip = recon_successful_artic_region
	}
}

#Recon Successful - Siberia Region
country_event = {
	id = russia2_russia.205
	title = russia2_russia.205.t
	desc = russia2_russia.205.d
	picture = GFX_report_event_china_infiltration

	is_triggered_only = yes

	immediate = {
		clr_country_flag = siberia_region_claims
	}

	option = { #Noice
		name = russia2_russia.205.a
		ai_chance = {
			base = 100
		}
		set_country_flag = siberia_region_raids
		custom_effect_tooltip = recon_successful_siberia_region
	}
}

#Recon Successful - Novgorod Region
country_event = {
	id = russia2_russia.206
	title = russia2_russia.206.t
	desc = russia2_russia.206.d
	picture = GFX_report_event_china_infiltration

	is_triggered_only = yes

	immediate = {
		clr_country_flag = novgorod_region_claims
	}

	option = { #Noice
		name = russia2_russia.206.a
		ai_chance = {
			base = 100
		}
		set_country_flag = novgorod_region_raids
		custom_effect_tooltip = recon_successful_novgorod_region
	}
}

#Hidden Event to trigger when the player select compensate generals
country_event = {
	id = russia2_russia.207

	hidden = yes

	is_triggered_only = yes

	immediate = {
		set_temp_variable = { random_generals_2 = 0 }
		randomize_temp_variable = {
			var = random_generals_2
			distribution = uniform
			min = 0
			max = 100
		}
		round_variable = random_generals_2
		if = {
			limit = {
				check_variable = {
					var = random_generals_2
					value = 20
					compare = less_than_or_equals
				}
			}
			SOV = {
				SOV_Georgy_zhukov = {
					clr_character_flag = russia_is_in_prison_cw
				}
			}
		}
		else_if = {
			limit = {
				check_variable = {
					var = random_generals_2
					value = 60
					compare = greater_than_or_equals
				}
			}
			SOV = {
				SOV_Yakov_cherevichenko = {
					clr_character_flag = russia_is_in_prison_cw
				}
			}
		}
		else = {
			SOV = {
				SOV_Markian_popov = {
					clr_character_flag = russia_is_in_prison_cw
				}
			}
		}
	}
}

#Hidden Event to trigger when the player select compensate generals - 2
country_event = {
	id = russia2_russia.208

	hidden = yes

	is_triggered_only = yes

	immediate = {
		set_temp_variable = { random_generals_3 = 0 }
		randomize_temp_variable = {
			var = random_generals_3
			distribution = uniform
			min = 0
			max = 100
		}
		round_variable = random_generals_3
		if = {
			limit = {
				check_variable = {
					var = random_generals_3
					value = 20
					compare = less_than_or_equals
				}
			}
			SOV = {
				SOV_Ivan_konev = {
					clr_character_flag = russia_is_in_prison_cw
				}
			}
			clr_country_flag = sov_enemy_second_civil_war_russia2_konev
		}
		else_if = {
			limit = {
				check_variable = {
					var = random_generals_3
					value = 60
					compare = greater_than_or_equals
				}
			}
			SOV = {
				SOV_Kirill_meretskov = {
					clr_character_flag = russia_is_in_prison_cw
				}
			}
		}
		else = {
			SOV = {
				SOV_Ivan_fedyuninsky = {
					clr_character_flag = russia_is_in_prison_cw
				}
			}
		}
	}
}

#Hidden Event to trigger when the player select compensate generals - 3
country_event = {
	id = russia2_russia.209

	hidden = yes

	is_triggered_only = yes

	immediate = {
		set_temp_variable = { random_generals_4 = 0 }
		randomize_temp_variable = {
			var = random_generals_4
			distribution = uniform
			min = 0
			max = 100
		}
		round_variable = random_generals_4
		if = {
			limit = {
				check_variable = {
					var = random_generals_4
					value = 20
					compare = less_than_or_equals
				}
			}
			SOV = {
				SOV_Aleksandr_vasilevsky = {
					clr_character_flag = russia_is_in_prison_cw
				}
			}
			clr_country_flag = sov_enemy_second_civil_war_russia2_vasilevsky
		}
		else_if = {
			limit = {
				check_variable = {
					var = random_generals_4
					value = 60
					compare = greater_than_or_equals
				}
			}
			SOV = {
				SOV_Maksim_purkayev = {
					clr_character_flag = russia_is_in_prison_cw
				}
			}
		}
		else = {
			SOV = {
				SOV_Grigory_kulik = {
					clr_character_flag = russia_is_in_prison_cw
				}
			}
		}
	}
}

#Event to Choose Political Path in the Non-alligned Path
country_event = {
	id = russia2_russia.210
	title = russia2_russia.210.t
	desc = russia2_russia.210.d
	picture = GFX_report_event_german_italian_pact

	is_triggered_only = yes

	option = { #Bring Back Monarchy
		name = russia2_russia.210.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_VLADIMIR_KIRILLOVICH_NEUTRALITY_BEHAVIOR
					has_country_flag = RUS_AI_ANASTASIA_NIKOLAEVNA_NEUTRALITY_BEHAVIOR
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_VLADIMIR_KIRILLOVICH_NEUTRALITY_BEHAVIOR
					has_country_flag = RUS_AI_ANASTASIA_NIKOLAEVNA_NEUTRALITY_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		custom_effect_tooltip = monarchist_restoration_possible
		set_country_flag = sov_monarchist_restoration_path
	}

	option = { #Become Junta
		name = russia2_russia.210.b
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_ANDREY_VLASOV_NEUTRALITY_BEHAVIOR
					has_country_flag = RUS_AI_PAVEL_BERMONDT_AVALOV_NEUTRALITY_BEHAVIOR
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_ANDREY_VLASOV_NEUTRALITY_BEHAVIOR
					has_country_flag = RUS_AI_PAVEL_BERMONDT_AVALOV_NEUTRALITY_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		custom_effect_tooltip = military_junta_possible
		set_country_flag = sov_military_junta_leader
	}
}

#Player Can Choose a New Law to Enact for the Parliament
country_event = {
	id = russia2_russia.211
	title = russia2_russia.211.t
	desc = russia2_russia.211.d
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes

	option = { #Remove Country Flag
		name = russia2_russia.211.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = new_law_enact_possible
	}
}

#Constitutional Monarchy
country_event = {
	id = russia2_russia.212
	title = russia2_russia.212.t
	desc = russia2_russia.212.d
	picture = GFX_report_event_hungary_parliament

	is_triggered_only = yes

	option = {
		name = russia2_russia.212.a
		set_country_flag = SOV_has_constitutional_monarchy
		add_stability = 0.05
		custom_effect_tooltip = SOV_unlock_constitutional_monarchy_tt
	}
}

#Vassalization of Ukraine - Reintegrate the Lost State
country_event = {
	id = russia2_russia.213
	title = russia2_russia.213.t
	desc = russia2_russia.213.d
	picture = GFX_cavalry_parade_russia2

	is_triggered_only = yes

	option = { #Accepts and Become Puppets
		name = russia2_russia.213.a
		ai_chance = {
			base = 30
			modifier = {
				add = 70
				SOV = {
					has_country_flag = sympathize_with_ukraine
				}
			}
		}
		custom_effect_tooltip = imperial_annexation_lost
		if = {
			limit = {
				SOV = {
					has_country_flag = sympathize_with_ukraine
				}
			}
			SOV = {
				set_autonomy = {
					target = UKR
					autonomy_state = autonomy_dominion
				}
				country_event = { id = russia2_russia.214 hours = 6 }
			}
			UKR = {
				set_country_flag = ukraine_no_imperial_govern
			}
		}
		else = {
			SOV = {
				if = {
					limit = {
						has_idea = SOV_Tsar_we_trust
					}
					set_autonomy = {
						target = UKR
						autonomy_state = autonomy_imperial_governorates
					}
				}
				else = {
					set_autonomy = {
						target = UKR
						autonomy_state = autonomy_puppet
					}
				}
				country_event = { id = russia2_russia.214 hours = 6 }
			}
		}
	}

	option = { #Refuse and Stay Independent - Gets National Spirit
		name = russia2_russia.213.b
		ai_chance = {
			base = 70
			modifier = {
				factor = 0
				SOV = {
					has_country_flag = sympathize_with_ukraine
				}
			}
		}
		SOV = {
			country_event = { id = russia2_russia.215 hours = 6 }
		}
		set_country_flag = ukr_refused_vassalization_process
		UKR = {
			add_ideas = SOV_Fight_for_independence
		}
	}
}

#Ukraine Accepts Vassalization
country_event = {
	id = russia2_russia.214
	title = russia2_russia.214.t
	desc = russia2_russia.214.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #Nice
		name = russia2_russia.214.a
		ai_chance = {
			base = 100
		}
	}
}

#Ukraine Refuses Vassalization
country_event = {
	id = russia2_russia.215
	title = russia2_russia.215.t
	desc = russia2_russia.215.d
	picture = GFX_report_event_soviet_in_riga

	is_triggered_only = yes

	option = { #Damn
		name = russia2_russia.215.a
		ai_chance = {
			base = 100
		}
		SOV = {
			create_wargoal = {
				type = annex_everything
				target = UKR
			}
		}
	}
}

#"Lost States" Received Russian Vassalization offer
country_event = {
	id = russia2_russia.216
	title = russia2_russia.216.t
	desc = russia2_russia.216.d
	picture = GFX_cavalry_parade_russia2

	is_triggered_only = yes

	option = { #Accepts and Become Puppets
		name = russia2_russia.216.a
		ai_chance = {
			base = 90
		}
		custom_effect_tooltip = imperial_annexation_lost
		SOV = {
			if = {
				limit = {
					has_idea = SOV_Tsar_we_trust
				}
				set_autonomy = {
					target = ROOT
					autonomy_state = autonomy_imperial_governorates
				}
			}
			else = {
				set_autonomy = {
					target = ROOT
					autonomy_state = autonomy_puppet
				}
			}
			country_event = { id = russia2_russia.217 hours = 6 }
		}
		remove_ideas = SOV_Isolation
		if = {
			limit = {
				tag = CRI
			}
			CRI = {
				transfer_navy = {
					target = SOV
				}
			}
		}
	}

	option = { #Refuse and Stay Independent
		name = russia2_russia.216.b
		ai_chance = {
			base = 10
		}
		SOV = {
			country_event = { id = russia2_russia.218 hours = 6 }
		}
		add_ideas = SOV_Fight_for_independence
	}
}

#Lost State Accepts Vassalization
country_event = {
	id = russia2_russia.217
	title = russia2_russia.217.t
	desc = russia2_russia.217.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #Nice
		name = russia2_russia.217.a
		ai_chance = {
			base = 100
		}
	}
}

#Lost State Refuse Vassalization
country_event = {
	id = russia2_russia.218
	title = russia2_russia.218.t
	desc = russia2_russia.218.d
	picture = GFX_report_event_soviet_in_riga

	is_triggered_only = yes

	option = { #Damn
		name = russia2_russia.218.a
		ai_chance = {
			base = 100
		}
		SOV = {
			create_wargoal = {
				type = annex_everything
				target = FROM
			}
		}
	}
}

#Tsar's Death. His Son Takes Over
country_event = {
	id = russia2_russia.226
	title = russia2_russia.226.t
	desc = russia2_russia.226.d
	picture = GFX_report_event_generic_funeral

	fire_only_once = yes

	trigger = {
		has_country_leader = {
			character = SOV_Kirill_vladimirovich
			ruling_only = yes
		}
		has_country_flag = {
			flag = kirill_vladimirovich_is_country_leader_for_a_year
			days > 345
		}
	}

	mean_time_to_happen = {
		days = 10
	}

	option = {
		name = russia2_russia.226.a
		ai_chance = {
			base = 100
		}
		hidden_effect = {
			kill_country_leader = yes
			retire_character = SOV_Kirill_vladimirovich
		}
		custom_effect_tooltip = sov_tsar_kirill_dies
		add_stability = -0.05
		add_country_leader_role = {
			character = SOV_Vladimir_kirillovich
			promote_leader = yes
			country_leader = {
				desc = SOV_Vladimir_kirillovich_desc
				ideology = despotism
				expire = "1965.1.1.1"
				traits = {
					russia2_heir_of_the_tsar
				}
			}
		}
	}
}

#Option to Cedes South Sakhalin to Japan if In Second Civil War
country_event = {
	id = russia2_russia.227
	title = russia2_russia.227.t
	desc = {
		text = russia2_russia.227.d
		trigger = {
			NOT = {
				has_country_flag = japan_accept_to_help_give_north_sakhalin
				has_country_flag = japan_accept_to_help_give_russian_far_east
			}
		}
	}
	desc = {
		text = russia2_russia.227.d_2
		trigger = {
			OR = {
				has_country_flag = japan_accept_to_help_give_north_sakhalin
				has_country_flag = japan_accept_to_help_give_russian_far_east
			}
		}
	}
	picture = GFX_report_event_japanese_transport_soldiers

	is_triggered_only = yes

	option = { #Ask Non-Aggression Pact for North Sakhalin
		trigger = {
			NOT = {
				has_country_flag = japan_accept_to_help_give_north_sakhalin
				has_country_flag = japan_accept_to_help_give_russian_far_east
			}
		}
		name = russia2_russia.227.a
		ai_chance = {
			base = 100
		}
		JAP = {
			country_event = { id = russia2_japan.8 hours = 2 }
		}
	}

	option = { #Never
		trigger = {
			NOT = {
				has_country_flag = japan_accept_to_help_give_north_sakhalin
				has_country_flag = japan_accept_to_help_give_russian_far_east
			}
		}
		name = russia2_russia.227.b
		ai_chance = {
			base = 0
		}
	}

	option = { #Give Them due to the Deal
		trigger = {
			OR = {
				has_country_flag = japan_accept_to_help_give_north_sakhalin
				has_country_flag = japan_accept_to_help_give_russian_far_east
			}
		}
		name = russia2_russia.227.c
		ai_chance = {
			base = 100
		}
		JAP = {
			transfer_state = 655
			JAP = {
				add_ideas = SOV_Japan_non_agression_pact_sakhalin
			}
		}
	}
}

#Germany Has Been Defeated and the Negotiation Was Succesful - Bring Back German Monarchy
country_event = {
	id = russia2_russia.228
	title = russia2_russia.228.t
	desc = russia2_russia.228.d
	picture = GFX_report_event_german_reichstag_gathering

	is_triggered_only = yes

	option = {
		name = russia2_russia.228.a
		custom_effect_tooltip = unlock_decision_fate_of_poland_monarchist
		if = {
			limit = {
				has_country_flag = ger_exiles_accept_puppet
			}
			ROOT = {
				add_war_support = 0.05
				add_political_power = 50
				if = {
					limit = {
						NOT = {
							country_exists = GER
						}
					}
					release_autonomy = {
						target = GER
						autonomy_state = autonomy_imperial_governorates
						freedom_level = 0.5
					}
				}
				else_if = {
					limit = {
						country_exists = GER
					}
					set_autonomy = {
						target = GER
						autonomy_state = autonomy_imperial_governorates
					}
				}
			}
			GER = {
				set_politics = {
					ruling_party = neutrality
					elections_allowed = no
				}
				hidden_effect = {
					set_popularities = {
						democratic = 10
						neutrality = 70
						fascism = 10
						communism = 10
					}
				}
				if = {
					limit = {
						date < 1941.06.04
					}
					create_country_leader = {
						name = "Wilhelm II"
						picture = GFX_portrait_ger_wilhelm_ii
						expire = "1965.1.1"
						ideology = despotism
						traits = {
							anti_democrat imperial_connections
						}
					}
				}
				else = {
					create_country_leader = {
						name = "Wilhelm III"
						picture = GFX_portrait_ger_wilhelm_iii
						expire = "1965.1.1"
						ideology = despotism
						traits = {
							popular_figurehead2
						}
					}
				}
			}
		}
		else_if = {
			limit = {
				has_country_flag = ger_exiles_accept_puppet_reduced
			}
			ROOT = {
				add_stability = 0.05
				add_war_support = 0.05
				add_political_power = 100
				if = {
					limit = {
						NOT = {
							country_exists = GER
						}
					}
					release_autonomy = {
						target = GER
						autonomy_state = autonomy_dominion
						freedom_level = 0.5
					}
				}
				else_if = {
					limit = {
						country_exists = GER
					}
					set_autonomy = {
						target = GER
						autonomy_state = autonomy_dominion
					}
					GER = {
						set_cosmetic_tag = GEC
					}
				}
			}
			GER = {
				set_politics = {
					ruling_party = neutrality
					elections_allowed = no
				}
				hidden_effect = {
					set_popularities = {
						democratic = 10
						neutrality = 70
						fascism = 10
						communism = 10
					}
				}
				if = {
					limit = {
						date < 1941.06.04
					}
					create_country_leader = {
						name = "Wilhelm II"
						picture = GFX_portrait_ger_wilhelm_ii
						expire = "1965.1.1"
						ideology = despotism
						traits = {
							anti_democrat imperial_connections
						}
					}
				}
				else = {
					create_country_leader = {
						name = "Wilhelm III"
						picture = GFX_portrait_ger_wilhelm_iii
						expire = "1965.1.1"
						ideology = despotism
						traits = {
							popular_figurehead2
						}
					}
				}
				set_country_flag = GER_dominion_no_imperial
				set_country_flag = germany_no_imperial_transform
			}
		}
		else = {
			ROOT = {
				add_stability = 0.1
				add_war_support = 0.1
				add_political_power = 200
				if = {
					limit = {
						GER = {
							is_subject_of = ROOT
						}
					}
					release_puppet = GER
				}
				else = {
					release = GER
				}
				add_to_faction = GER
			}
			GER = {
				add_ai_strategy = {
					type = alliance
					id = SOV
					value = 200
				}
				set_politics = {
					ruling_party = neutrality
					elections_allowed = no
				}
				hidden_effect = {
					set_popularities = {
						democratic = 10
						neutrality = 70
						fascism = 10
						communism = 10
					}
				}
				if = {
					limit = {
						date < 1941.06.04
					}
					create_country_leader = {
						name = "Wilhelm II"
						picture = GFX_portrait_ger_wilhelm_ii
						expire = "1965.1.1"
						ideology = despotism
						traits = {
							anti_democrat imperial_connections
						}
					}
				}
				else = {
					create_country_leader = {
						name = "Wilhelm III"
						picture = GFX_portrait_ger_wilhelm_iii
						expire = "1965.1.1"
						ideology = despotism
						traits = {
							popular_figurehead2
						}
					}
				}
			}
			if = {
				limit = {
					GER = {
						is_subject = yes
					}
				}
				PREV = {
					set_autonomy = {
						target = GER
						autonomy_state = autonomy_free
					}
				}
			}
		}
		GER = {
			random_owned_state = {
				create_unit = {
					division = "name = \"1st Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"2nd Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"3rd Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"4th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"5th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"6th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"7th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"1st Panzer-Division\" division_template = \"Panzer-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"2nd Panzer-Division\" division_template = \"Panzer-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
			}
			random_owned_state = {
				create_unit = {
					division = "name = \"8th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"9th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"10th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"11th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"12th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"13th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"14th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"15th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"16th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"3rd Panzer-Division\" division_template = \"Panzer-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"4th Panzer-Division\" division_template = \"Panzer-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
			}
			random_owned_state = {
				create_unit = {
					division = "name = \"17th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"18th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"19th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"20th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"21th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"22th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"23th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"24th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"25th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"26th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"5th Panzer-Division\" division_template = \"Panzer-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
				create_unit = {
					division = "name = \"6th Panzer-Division\" division_template = \"Panzer-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
					owner = GER
				}
			}
		}
		every_state = {
			limit = {
				is_core_of = GER
				any_country = {
					OR = {
						is_in_faction_with = SOV #GER or ROOT or whatever
						is_subject_of = SOV
					}
					owns_state = PREV
					NOT = { tag = GER }
				}
			}
			GER = {
				transfer_state = PREV
			}
		}
		if = {
			limit = {
				NOT = {
					country_exists = AUS
				}
			}
			every_state = {
				limit = {
					is_core_of = AUS
					NOT = {
						is_core_of = ITA
					}
					any_country = {
						OR = {
							is_in_faction_with = SOV
							is_subject_of = SOV
							tag = SOV
						}
						owns_state = PREV
					}
				}
				AUS = {
					transfer_state = PREV
				}
				SOV = {
					set_autonomy = {
						target = AUS
						autonomy_state = autonomy_puppet
					}
				}
			}
		}
		else = {
			every_state = {
				limit = {
					is_core_of = AUS
					NOT = {
						is_core_of = ITA
					}
					any_country = {
						OR = {
							is_in_faction_with = SOV
							is_subject_of = SOV
							tag = SOV
						}
						owns_state = PREV
					}
				}
				AUS = {
					transfer_state = PREV
				}
			}
		}
		if = {
			limit = {
				POL = {
					is_subject_of = SOV
				}
				SOV = {
					has_country_flag = poland_accept_imperial_puppet
				}
			}
			every_state = {
				limit = {
					is_core_of = POL
					any_country = {
						OR = {
							tag = SOV
							tag = GER
							is_in_faction_with = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				POL = {
					transfer_state = PREV
				}
			}
		}
		if = {
			limit = {
				NOT = {
					country_exists = CZE
				}
			}
			every_state = {
				limit = {
					is_core_of = CZE
					any_country = {
						OR = {
							is_in_faction_with = SOV
							is_subject_of = SOV
							tag = SOV
						}
						owns_state = PREV
					}
				}
				CZE = {
					transfer_state = PREV
				}
				SOV = {
					set_autonomy = {
						target = CZE
						autonomy_state = autonomy_puppet
					}
				}
			}
		}
		else = {
			every_state = {
				limit = {
					is_core_of = CZE
					any_country = {
						OR = {
							is_in_faction_with = SOV
							is_subject_of = SOV
							tag = SOV
						}
						owns_state = PREV
					}
				}
				CZE = {
					transfer_state = PREV
				}
			}
		}
		every_state = {
			limit = {
				is_core_of = FRA
				any_country = {
					OR = {
						is_in_faction_with = SOV
						is_subject_of = SOV
						tag = SOV
					}
					owns_state = PREV
				}
			}
			FRA = {
				transfer_state = PREV
			}
		}
		hidden_effect = {
			news_event = {
				id = newsrussia2.97 days = 2
			}
		}
		set_country_flag = restoration_german_monarchy_kaiser
	}
}

#Russian Ultimatum to Return the Land of Germany
country_event = {
	id = russia2_russia.229
	title = russia2_russia.229.t
	desc = russia2_russia.229.d
	picture = GFX_report_event_german_troops

	is_triggered_only = yes

	option = { #Return the Land
		name = russia2_russia.229.a
		ai_chance = {
			base = 80
			modifier = {
				add = -40
				is_major = yes
			}
		}
		every_owned_state = {
			limit = {
				is_core_of = GER
			}
			GER = {
				transfer_state = PREV
			}
		}
		SOV = {
			country_event = { id = russia2_russia.230 hours = 6 }
		}
	}

	option = { #Never
		name = russia2_russia.229.b
		ai_chance = {
			base = 20
			modifier = {
				add = 40
				is_major = yes
			}
		}
		every_owned_state = {
			limit = {
				is_core_of = GER
			}
			PREV.PREV = {
				add_resistance = 50
			}
		}
		SOV = {
			country_event = { id = russia2_russia.231 hours = 6 }
		}
	}
}

#FROM Accepts
country_event = {
	id = russia2_russia.230
	title = russia2_russia.230.t
	desc = russia2_russia.230.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #Nice
		name = russia2_russia.230.a
		ai_chance = {
			base = 100
		}
	}
}

#FROM Refused
country_event = {
	id = russia2_russia.231
	title = russia2_russia.231.t
	desc = russia2_russia.231.d
	picture = GFX_report_event_romanian_soldiers

	is_triggered_only = yes

	option = { #Nice
		name = russia2_russia.231.a
		ai_chance = {
			base = 100
		}
	}
}

#Cannot Reinstore the German Monarchy - Player Gets Event Telling Him What to do
country_event = {
	id = russia2_russia.232
	title = russia2_russia.232.t
	desc = russia2_russia.232.d
	picture = GFX_report_event_german_reichstag_gathering

	fire_only_once = yes

	is_triggered_only = yes

	option = { #Send Ultimatum
		name = russia2_russia.232.a
		ai_chance = {
			base = 100
		}
		every_other_country = {
			limit = {
				NOT = {
					is_in_faction_with = SOV
				}
				GER = {
					is_subject_of = PREV
				}
			}
			country_event = { id = russia2_russia.233 days = 2 }
		}
	}

	option = { #Declare War
		name = russia2_russia.232.b
		ai_chance = {
			base = 0
		}
		SOV = {
			declare_war_on = {
				target = GER
				type = puppet_wargoal_focus
			}
		}
	}

	option = { #Do Nothing
		name = russia2_russia.232.c
		ai_chance = {
			base = 0
		}
		custom_effect_tooltip = anger_german_monarchist
		clr_country_flag = ger_exiles_accept_puppet
		clr_country_flag = ger_exiles_accept_puppet_reduced
		clr_country_flag = ger_exiles_accept_no_puppet
	}
}

#Russian Ultimatum to Cede Germany
country_event = {
	id = russia2_russia.233
	title = russia2_russia.233.t
	desc = russia2_russia.233.d
	picture = GFX_report_event_german_troops

	is_triggered_only = yes

	option = { #Cede Germany
		name = russia2_russia.233.a
		ai_chance = {
			base = 80
			modifier = {
				add = -20
				is_major = yes
			}
		}
		every_country = {
			limit = {
				GER = {
					is_subject_of = PREV
				}
				NOT = {
					is_in_faction_with = SOV
				}
			}
			PREV = {
				set_autonomy = {
					target = GER
					autonomy_state = autonomy_free
				}
			}
		}
		SOV = {
			country_event = { id = russia2_russia.234 hours = 6 }
		}
	}

	option = { #Never
		name = russia2_russia.233.b
		ai_chance = {
			base = 20
			modifier = {
				add = 20
				is_major = yes
			}
		}
		custom_effect_tooltip = war_over_germany_overlord
		SOV = {
			country_event = { id = russia2_russia.235 hours = 6 }
		}
	}
}

#FROM Accepts
country_event = {
	id = russia2_russia.234
	title = russia2_russia.234.t
	desc = russia2_russia.234.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #Nice
		name = russia2_russia.234.a
		ai_chance = {
			base = 100
		}
		SOV = {
			set_autonomy = {
				target = GER
				autonomy_state = autonomy_puppet
			}
		}
	}
}

#FROM Refuse
country_event = {
	id = russia2_russia.235
	title = russia2_russia.235.t
	desc = russia2_russia.235.d
	picture = GFX_operation_barbarossa_russia2

	is_triggered_only = yes

	option = { #Give Up
		name = russia2_russia.235.a
		ai_chance = {
			base = 100
		}
		add_stability = -0.05
	}

	option = { #Declare War
		name = russia2_russia.235.b
		ai_chance = {
			base = 0
		}
		SOV = {
			declare_war_on = {
				target = GER
				type = puppet_wargoal_focus
			}
		}
	}
}

#Event To Relocate the Capital to St Petersburg
country_event = {
	id = russia2_russia.236
	title = russia2_russia.236.t
	desc = russia2_russia.236.d
	picture = GFX_report_event_generic_military_parade

	is_triggered_only = yes

	option = { #Restore the Old Capital
		name = russia2_russia.236.a
		ai_chance = {
			base = 80
		}
		add_stability = 0.05
		set_capital = {
			state = 195
		}
		hidden_effect = {
			set_country_flag = has_choosen_st_petersburg_as_capital
			set_victory_points = {
				province = 3151
				value = 50
			}
			set_victory_points = {
				province = 6380
				value = 40
			}
		}
	}

	option = { #We'll Change It Later
		name = russia2_russia.236.b
		ai_chance = {
			base = 20
		}
	}
}

#Is at War Against a Major and the Player has Arrested the Generals
country_event = {
	id = russia2_russia.237
	title = russia2_russia.237.t
	desc = russia2_russia.237.d
	picture = GFX_russia_civil_war2_russia2

	trigger = {
		any_country = {
			has_war_with = ROOT
			is_major = yes
		}
		SOV = {
			has_country_flag = arrest_generals
			has_government = neutrality
			is_subject = no
			NOT = {
				has_global_flag = second_russian_civil_war_in_progress
			}
		}
	}

	fire_only_once = yes

	mean_time_to_happen = {
		days = 15
	}

	option = { #Let's Recruit Them
		name = russia2_russia.237.a
		ai_chance = {
			base = 100
		}
		SOV = {
			every_character = {
				limit = {
					has_character_flag = russia_is_in_prison_cw
				}
				clr_character_flag = russia_is_in_prison_cw
			}
		}
		custom_effect_tooltip = SOV_russia2_general_communist_will_be_freed
		add_political_power = -100
		add_stability = -0.1
		add_popularity = {
			ideology = communism
			popularity = 0.15
		}
	}

	option = { #No
		name = russia2_russia.237.b
		ai_chance = {
			base = 0
		}
	}
}

#Event for SOJ to Release SOV if it Wins the Civil War
country_event = {
	id = russia2_russia.238
	title = russia2_russia.238.t
	desc = russia2_russia.238.d
	picture = GFX_report_event_finnish_soldiers_snow

	is_triggered_only = yes

	fire_only_once = yes

	option = {
		name = russia2_russia.238.a
		every_state = {
			limit = {
				is_core_of = UKR
				is_owned_by = UKR
			}
			SOV = {
				add_state_core = PREV
			}
		}
		if = {
			limit = {
				NOT = {
					country_exists = UKR
				}
			}
			every_state = {
				limit = {
					is_core_of = UKR
					NOT = {
						is_owned_by = POL
						is_owned_by = ROM
					}
				}
				SOV = {
					add_state_core = PREV
				}
			}
		}
		every_state = {
			limit = {
				is_core_of = SOV
				any_country = {
					owns_state = PREV
					NOT = {
						tag = SOV
						tag = TAN
						tag = JAP
						tag = UKR
						tag = CRI
					}
				}
			}
			SOV = {
				transfer_state = PREV
			}
		}
		SOV = {
			set_country_flag = white_guard_lost_civil_war
			set_politics = {
				ruling_party = communism
			}
			kill_ideology_leader = neutrality
			drop_cosmetic_tag = yes
			add_country_leader_role = {
				character = SOV_Joseph_stalin
				promote_leader = yes
				country_leader = {
					desc = SOV_Joseph_stalin_desc
					ideology = stalinism
					expire = "1953.3.1"
				}
			}
			set_popularities = {
				democratic = 10
				neutrality = 0
				fascism = 2
				communism = 88
			}
			set_global_flag = second_russian_civil_war_over
			clr_global_flag = second_russian_civil_war_in_progress
			clr_country_flag = sov_enemy_second_civil_war_russia2
			unlock_national_focus = SOV_great_purge2
			remove_ideas = SOV_Supply_line
			remove_ideas = SOV_Second_civil_war_idea_modifier
			remove_ideas = SOV_Urals_secret
			remove_ideas = SOV_Slow_industry
			remove_ideas = SOV_Organize_volunteer_forces
			add_ideas = SOV_Suppressed_research
			add_ideas = SOV_Trotskyite_plot_purged_russia2
			add_ideas = SOV_Home_of_revolution_russia2
			create_faction = Comintern
			add_to_faction = MON
			add_to_faction = TAN
			set_country_flag = no_purgenoncivilwar
			set_country_flag = SOV_purged_4
			load_oob = "SOV_1936"
			582 = {
				remove_dynamic_modifier = {
					modifier = urals_secret
				}
			}
			573 = {
				remove_dynamic_modifier = {
					modifier = urals_secret
				}
			}
			581 = {
				remove_dynamic_modifier = {
					modifier = urals_secret
				}
			}
		}
		hidden_effect = {
			if = {
				limit = {
					country_exists = UKR
					UKR = {
						has_completed_focus = UKR_boost_industry
					}
				}
				UKR = {
					add_offsite_building = {
						type = industrial_complex
						level = -1
					}
					add_offsite_building = {
						type = arms_factory
						level = -2
					}
				}
			}
			SOV = {
				change_tag_from = ROOT
			}
			SOV = {
				country_event = { id = russia2_russia.239 hours = 2 }
				country_event = { id = russia2_russia.240 hours = 2 }
				country_event = { id = russia2_russia.241 hours = 2 }
			}
		}
		every_state = {
			limit = {
				is_core_of = SOJ
			}
			SOJ = {
				remove_state_core = PREV
			}
		}
	}
}

#Annex the Caucasus if the Player Choose to Liberate Them
country_event = {
	id = russia2_russia.239

	hidden = yes

	is_triggered_only = yes

	immediate = {
		if = {
			limit = {
				has_country_flag = control_caucasus
			}
			SOV = {
				add_state_core = 229
				add_state_core = 826
				add_state_core = 230
				add_state_core = 231
			}
			every_state = {
				limit = {
					is_core_of = SOV
					any_country = {
						owns_state = PREV
						NOT = {
							tag = SOV
							tag = TAN
							tag = JAP
						}
					}
				}
				SOV = {
					transfer_state = PREV
				}
			}
		}
	}
}

#Annex Central Asia if the Player Choose to Liberate Them
country_event = {
	id = russia2_russia.240

	hidden = yes

	is_triggered_only = yes

	immediate = {
		if = {
			limit = {
				has_country_flag = control_central_asia
			}
		}
		SOV = {
            add_state_core = 402
            add_state_core = 587
            add_state_core = 583
            add_state_core = 404
            add_state_core = 590
            add_state_core = 586
            add_state_core = 732
            add_state_core = 742
            add_state_core = 405
            add_state_core = 585
            add_state_core = 584
            add_state_core = 823
            add_state_core = 831
            add_state_core = 830
		}
		every_state = {
			limit = {
				is_core_of = SOV
				any_country = {
					owns_state = PREV
					NOT = {
						tag = SOV
						tag = TAN
						tag = JAP
					}
				}
			}
			SOV = {
				transfer_state = PREV
			}
		}
	}
}

#Annex Belarus if the Player Choose to Liberate Them
country_event = {
	id = russia2_russia.241

	hidden = yes

	is_triggered_only = yes

	immediate = {
		if = {
			limit = {
				has_country_flag = control_belarus
			}
			SOV = {
				add_state_core = 194
				add_state_core = 241
				add_state_core = 204
				add_state_core = 206
				add_state_core = 207
			}
			every_state = {
				limit = {
					is_core_of = SOV
					any_country = {
						owns_state = PREV
						NOT = {
							tag = SOV
							tag = TAN
							tag = JAP
						}
					}
				}
				SOV = {
					transfer_state = PREV
				}
			}			
		}
	}
}

#Recon Unsucessful - Kuban region
country_event = {
	id = russia2_russia.242
	title = russia2_russia.242.t
	desc = russia2_russia.242.d
	picture = GFX_report_event_dead_soldiers

	is_triggered_only = yes

	option = { #Damn
		name = russia2_russia.242.a
		ai_chance = {
			base = 100
		}
		add_manpower = -2000
	}
}

#Recon Unsucessful - Transvolga region
country_event = {
	id = russia2_russia.243
	title = russia2_russia.243.t
	desc = russia2_russia.243.d
	picture = GFX_report_event_dead_soldiers

	is_triggered_only = yes

	option = { #Damn
		name = russia2_russia.243.a
		ai_chance = {
			base = 100
		}
		add_manpower = -2000
	}
}

#Recon Unsucessful - Urals Region
country_event = {
	id = russia2_russia.244
	title = russia2_russia.244.t
	desc = russia2_russia.244.d
	picture = GFX_report_event_dead_soldiers

	is_triggered_only = yes

	option = { #Damn
		name = russia2_russia.244.a
		ai_chance = {
			base = 100
		}
		add_manpower = -2000
	}
}

#Recon Unsucessful - Artic Region
country_event = {
	id = russia2_russia.245
	title = russia2_russia.245.t
	desc = russia2_russia.245.d
	picture = GFX_report_event_dead_soldiers

	is_triggered_only = yes

	option = { #Damn
		name = russia2_russia.245.a
		ai_chance = {
			base = 100
		}
		add_manpower = -2000
	}
}

#Recon Unsucessful - Artic Region
country_event = {
	id = russia2_russia.246
	title = russia2_russia.246.t
	desc = russia2_russia.246.d
	picture = GFX_report_event_dead_soldiers

	is_triggered_only = yes

	option = { #Damn
		name = russia2_russia.246.a
		ai_chance = {
			base = 100
		}
		add_manpower = -2000
	}
}

#Recon Unsucessful - Novgorod Region
country_event = {
	id = russia2_russia.247
	title = russia2_russia.247.t
	desc = russia2_russia.247.d
	picture = GFX_report_event_dead_soldiers

	is_triggered_only = yes

	option = { #Damn
		name = russia2_russia.247.a
		ai_chance = {
			base = 100
		}
		add_manpower = -2000
	}
}

#Poland After War - Puppet and Germany is Subject
country_event = {
	id = russia2_russia.248
	title = russia2_russia.248.t
	desc = russia2_russia.248.d
	picture = GFX_report_event_hol_cabinet_gerbrandy

	is_triggered_only = yes

	option = { #Ask to Trade Land for the Three Nations
		name = russia2_russia.248.a
		ai_chance = {
			base = 70
		}
		if = {
			limit = {
				has_country_flag = decide_to_restore_prussia_and_other_kingdom_for_decisions
				country_exists = PRE
				PRE = {
					is_subject_of = SOV
				}
			}
			PRE = {
				country_event = { id = russia2_russia.249 days = 1 }
			}
		}
		else = {
			GER = {
				country_event = { id = russia2_russia.249 days = 1 }
			}
		}
	}

	option = { #We'll Give Eastern Germany for Eastern Poland
		name = russia2_russia.248.b
		ai_chance = {
			base = 10
		}
		trigger = {
			OR = {
				AND = {
					GER = {
						is_subject_of = SOV
					}
					5 = {
						is_owned_by = GER
					}
					763 = {
						is_owned_by = GER
					}
					63 = {
						is_owned_by = GER
					}
					68 = {
						is_owned_by = GER
					}
					66 = {
						is_owned_by = GER
					}
					67 = {
						is_owned_by = GER
					}
				}
				AND = {
					PRE = {
						is_subject_of = SOV
					}
					5 = {
						is_owned_by = PRE
					}
					763 = {
						is_owned_by = PRE
					}
					63 = {
						is_owned_by = PRE
					}
					68 = {
						is_owned_by = PRE
					}
					66 = {
						is_owned_by = PRE
					}
					67 = {
						is_owned_by = PRE
					}
				}
			}
		}
		SOV = {
			transfer_state = 96
			transfer_state = 784
			transfer_state = 95
			transfer_state = 94
			transfer_state = 93
			transfer_state = 91
			transfer_state = 89
			add_state_core = 96
			add_state_core = 784
			add_state_core = 95
			add_state_core = 94
			add_state_core = 93
			add_state_core = 91
			add_state_core = 89
		}
		POL = {
			transfer_state = 5
			transfer_state = 763
			transfer_state = 67
			transfer_state = 66
			transfer_state = 68
			transfer_state = 63
			add_state_core = 5
			add_state_core = 763
			add_state_core = 67
			add_state_core = 66
			add_state_core = 68
			add_state_core = 63
			if = {
				limit = {
					188 = {
						is_owned_and_controlled_by = GER
					}
				}
				POL = {
					transfer_state = 188
					add_state_core = 188
				}
			}
		}
		custom_effect_tooltip = anger_germany_poland_deal
		hidden_effect = {
			if = {
				limit = {
					has_country_flag = decide_to_restore_prussia_and_other_kingdom_for_decisions
					country_exists = PRE
					PRE = {
						is_subject_of = SOV
					}
				}
				PRE = {
					add_ideas = SOV_German_independence_movement
				}
			}
			else = {
				GER = {
					add_ideas = SOV_German_independence_movement
				}
			}
			news_event = {
				id = newsrussia2.99 days = 1
			}
		}
	}

	option = { #Give Back the German Lands
		name = russia2_russia.248.c
		ai_chance = {
			base = 20
		}
		if = {
			limit = {
				has_country_flag = decide_to_restore_prussia_and_other_kingdom_for_decisions
				country_exists = PRE
				PRE = {
					is_subject_of = SOV
				}
			}
			PRE = {
				transfer_state = 86
				transfer_state = 85
				transfer_state = 762
				transfer_state = 807
				add_state_core = 86
				add_state_core = 85
				add_state_core = 762
				add_state_core = 807
			}
			hidden_effect = {
				every_state = {
					limit = {
						is_owned_by = POL
						is_core_of = PRE
					}
					PRE = {
						transfer_state = PREV
					}
				}
			}
		}
		else = {
			GER = {
				transfer_state = 86
				transfer_state = 85
				transfer_state = 762
				transfer_state = 807
				add_state_core = 86
				add_state_core = 85
				add_state_core = 762
				add_state_core = 807
			}
			hidden_effect = {
				every_state = {
					limit = {
						is_owned_by = POL
						is_core_of = GER
					}
					GER = {
						transfer_state = PREV
					}
				}
			}
		}
	}

	option = { #Do Nothing
		name = russia2_russia.248.e
		ai_chance = {
			base = 0
		}
	}
}

#German Proposition to exchange Konigsberg for Poznan
country_event = {
	id = russia2_russia.249
	title = russia2_russia.249.t
	desc = russia2_russia.249.d
	picture = GFX_report_event_hol_cabinet_gerbrandy

	is_triggered_only = yes

	option = { #It's a Good Deal
		name = russia2_russia.249.a
		ai_chance = {
			base = 95
		}
		SOV = {
			country_event = { id = russia2_russia.250 hours = 10 }
		}
	}

	option = { #Are They Insane !
		name = russia2_russia.249.b
		ai_chance = {
			base = 5
		}
		SOV = {
			country_event = { id = russia2_russia.251 hours = 10 }
		}
	}
}

#Germany Accepts the Deal
country_event = {
	id = russia2_russia.250
	title = russia2_russia.250.t
	desc = russia2_russia.250.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #Good
		name = russia2_russia.250.a
		ai_chance = {
			base = 100
		}
		SOV = {
			transfer_state = 96
			transfer_state = 784
			transfer_state = 95
			transfer_state = 94
			transfer_state = 93
			transfer_state = 91
			transfer_state = 89
			add_state_core = 96
			add_state_core = 784
			add_state_core = 95
			add_state_core = 94
			add_state_core = 93
			add_state_core = 91
			add_state_core = 89
		}
		POL = {
			transfer_state = 5
			transfer_state = 763
			add_state_core = 5
			add_state_core = 763
		}
		if = {
			limit = {
				has_country_flag = decide_to_restore_prussia_and_other_kingdom_for_decisions
				country_exists = PRE
				PRE = {
					is_subject_of = SOV
				}
			}
			PRE = {
				transfer_state = 86
				add_state_core = 86
			}
			every_state = {
				limit = {
					is_owned_by = POL
					is_core_of = PRE
					NOT = {
						state = 5
						state = 763
						state = 85
						state = 807
					}
				}
				PRE = {
					transfer_state = PREV
				}
			}
		}
		else = {
			GER = {
				transfer_state = 86
				add_state_core = 86
			}
			every_state = {
				limit = {
					is_owned_by = POL
					is_core_of = GER
					NOT = {
						state = 5
						state = 763
						state = 85
						state = 807
					}
				}
				GER = {
					transfer_state = PREV
				}
			}
		}

		hidden_effect = {
			news_event = {
				id = newsrussia2.98 days = 1
			}
		}
	}
}

#Germany Refused Proposition to exchange Konigsberg for Poznan
country_event = {
	id = russia2_russia.251
	title = russia2_russia.251.t
	desc = russia2_russia.251.d
	picture = GFX_report_event_poland_rejects

	is_triggered_only = yes

	option = { #Damn
		name = russia2_russia.251.a
		ai_chance = {
			base = 100
		}
	}
}

#Gets event to Get Poland as A Puppet or Integrate Them After Germany Has Been Puppeted by SOV - Poland Cedes the East
country_event = {
	id = russia2_russia.252
	title = russia2_russia.252.t
	desc = russia2_russia.252.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes

	option = { #Ask Poland to Become a Puppet
		name = russia2_russia.252.a
		ai_chance = {
			base = 50
		}
		POL = {
			country_event = { id = russia2_poland.11 days = 1 }
		}
	}

	option = { #Ask Poland to Integrate With Us
		name = russia2_russia.252.b
		ai_chance = {
			base = 50
		}
		POL = {
			country_event = { id = russia2_poland.14 days = 1 }
		}
	}

	option = { #Let's Leave Them Alone
		name = russia2_russia.252.c
		ai_chance = {
			base = 0
		}
	}
}

#France Asks for Leadership
country_event = {
	id = russia2_russia.254
	title = russia2_russia.254.t
	desc = russia2_russia.254.d
	picture = GFX_report_event_worried_french

	is_triggered_only = yes

	option = { #Okay
		ai_chance = { base = 80 }
		name = russia2_russia.254.a
		FRA = {
			if = {
				limit = {
					FRA = {
						is_faction_leader = yes
					}
				}
				set_faction_name = entente_reformed
			}
			else = {
				create_faction = entente_reformed
			}
			if = {
				limit = {
					SOV = {
						is_faction_leader = yes
					}
				}
				every_country = {
					limit = {
						is_in_faction_with = SOV
					}
					FRA = {
						add_to_faction = PREV
					}
				}
			}
			else = {
				add_to_faction = SOV
			}
		}
		FRA = {
			country_event = { id = russia2_russia.255 days = 1 }
		}
		FRA = {
			add_ai_strategy = {
				type = alliance
				id = SOV
				value = 500
			}
		}
	}

	option = {
		ai_chance = { base = 20 }
		name = russia2_russia.254.b
		FRA = {
			country_event = { id = russia2_russia.256 days = 1 }
		}
	}
}

#We say yes
country_event = {
	id = russia2_russia.255
	title = russia2_russia.255.t
	desc = russia2_russia.255.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = {
		ai_chance = { base = 100 }
		name = russia2_russia.255.a
	}
}

#We say no
country_event = {
	id = russia2_russia.256
	title = russia2_russia.256.t
	desc = russia2_russia.256.d
	picture = GFX_report_event_poland_rejects

	is_triggered_only = yes

	option = {
		ai_chance = { base = 100 }
		name = russia2_russia.256.a
	}
}

#SOV Invites a Country
country_event = {
	id = russia2_russia.257
	title = russia2_russia.257.t
	desc = russia2_russia.257.d
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { #Okay
		ai_chance = { base = 100 }
		name = russia2_russia.257.a
	}
}

#Gets Event to Choose Poland's Fate if They Refused Any Offers
country_event = {
	id = russia2_russia.258
	title = russia2_russia.258.t
	desc = russia2_russia.258.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes

	option = { #Repartionante the Land Between Germany and Russia
		name = russia2_russia.258.a
		ai_chance = {
			base = 33
		}
		POL = {
			country_event = { id = russia2_poland.17 days = 1 }
		}
	}

	option = { #Just Return the Stolen Land
		name = russia2_russia.258.b
		ai_chance = {
			base = 33
		}
		POL = {
			country_event = { id = russia2_poland.20 days = 1 }
		}
	}

	option = { #Ask Them to Become Puppet
		name = russia2_russia.258.c
		ai_chance = {
			base = 33
		}
		POL = {
			country_event = { id = russia2_poland.23 days = 1 }
		}
	}

	option = { #Do Nothing
		name = russia2_russia.258.e
		ai_chance = {
			base = 0
		}
	}
}

#Gets Event Germany want to regain it's old territories if SOV Owns Them
country_event = {
	id = russia2_russia.259
	title = russia2_russia.259.t
	desc = russia2_russia.259.d
	picture = GFX_report_event_generic_parliament

	fire_only_once = yes

	trigger = {
		tag = SOV
		is_subject = no
		has_war = no
		has_government = neutrality
		OR = {
			has_country_flag = ger_exiles_accept_puppet
			has_country_flag = ger_exiles_accept_puppet_reduced
			has_country_flag = ger_exiles_accept_no_puppet
			has_country_flag = decide_to_restore_prussia_and_other_kingdom_for_decisions
		}
		OR = {
			AND = {
				GER = {
					OR = {
						is_subject_of = SOV
						AND = {
							is_in_faction_with = SOV
							has_government = neutrality
						}
					}
				}
			}
			AND = {
				PRE = {
					OR = {
						is_subject_of = SOV
						AND = {
							is_in_faction_with = SOV
							has_government = neutrality
						}
					}
				}
			}
		}
		OR = {
			85 = {
				is_owned_and_controlled_by = SOV
			}
			86 = {
				is_owned_and_controlled_by = SOV
			}
			807 = {
				is_owned_and_controlled_by = SOV
			}
		}
	}

	option = { #Return German Lands
		name = russia2_russia.259.a
		ai_chance = {
			base = 100
		}
		if = {
			limit = {
				has_country_flag = decide_to_restore_prussia_and_other_kingdom_for_decisions
				PRE = {
					is_subject = yes
				}
			}
			if = {
				limit = {
					owns_state = 85
				}
				PRE = {
					transfer_state = 85
					add_state_core = 85
				}
			}
			if = {
				limit = {
					owns_state = 86
				}
				PRE = {
					transfer_state = 86
					add_state_core = 86
				}
			}
			if = {
				limit = {
					owns_state = 807
				}
				PRE = {
					transfer_state = 807
					add_state_core = 807
				}
			}
		}
		else = {
			if = {
				limit = {
					owns_state = 85
				}
				GER = {
					transfer_state = 85
					add_state_core = 85
				}
			}
			if = {
				limit = {
					owns_state = 86
				}
				GER = {
					transfer_state = 86
					add_state_core = 86
				}
			}
			if = {
				limit = {
					owns_state = 807
				}
				GER = {
					transfer_state = 807
					add_state_core = 807
				}
			}
		}
	}

	option = { #Don't Return German Lands
		name = russia2_russia.259.b
		ai_chance = {
			base = 100
		}
		if = {
			limit = {
				has_country_flag = decide_to_restore_prussia_and_other_kingdom_for_decisions
				PRE = {
					is_subject = yes
				}
			}
			custom_effect_tooltip = anger_germany_poland_deal
			hidden_effect = {
				GER = {
					add_ideas = SOV_German_independence_movement
				}
			}
		}
		else_if = {
			limit = {
				NOT = {
					has_country_flag = decide_to_restore_prussia_and_other_kingdom_for_decisions
				}
				GER = {
					is_subject_of = SOV
				}
			}
			custom_effect_tooltip = anger_germany_poland_deal
			hidden_effect = {
				GER = {
					add_ideas = SOV_German_independence_movement
				}
			}
		}
		else = {
			GER = {
				leave_faction = yes
			}
		}
	}
}

#End of the Civil War - Aftermath If For Some Reasons the Event Wasn't Triggered After the Capitulation
country_event = {
	id = russia2_russia.260
	title = russia2_russia.260.t
	desc = russia2_russia.260.d
	picture = GFX_report_event_generic_ruins

	fire_only_once = yes

	is_triggered_only = yes

	option = {
		name = russia2_russia.260.a
		set_global_flag = second_russian_civil_war_over
		clr_global_flag = second_russian_civil_war_in_progress
		every_country = {
			limit = {
				OR = {
					is_subject_of = SOV
					tag = CRI
				}
				NOT = {
					tag = MON
					tag = TAN
				}
			}
			add_timed_idea = {
				idea = SOV_Isolation
				days = 2000
			}
		}
		every_country = {
			limit = {
				is_subject_of = SOV
				NOT = {
					tag = MON
					tag = TAN
				}
			}
			SOV = {
				set_autonomy = {
					target = PREV
					autonomy_state = autonomy_free
				}
			}
		}
		if = {
			limit = {
				OR = {
					NOT = {
						country_exists = TAN
					}
					NOT = {
						country_exists = MON
					}
				}
				OR = {
					owns_state = 329
					owns_state = 820
					owns_state = 818
					owns_state = 817
					owns_state = 819
					owns_state = 330
				}
			}
			country_event = { id = russia2_russia.647 days = 1 }
		}
		custom_effect_tooltip = end_civil_war_focus
		hidden_effect = {
			UKR = {
				every_character = {
					limit = {
						has_character_flag = flag_former_deserting_generals
						OR = {
							is_character = SOV_Semyon_timoshenko
							is_character = SOV_Ivan_chernyakhovsky
							is_character = SOV_Andrey_yeryomenko
						}
					}
					set_nationality = SOV
					set_character_flag = russia_is_in_prison_cw
					clr_character_flag = sov_character_switched_to_sou
					clr_character_flag = flag_former_deserting_generals
				}
				every_character = {
					limit = {
						has_character_flag = flag_former_deserting_generals
						OR = {
							is_character = SOV_Vladimir_kislitsin
							is_character = SOV_boris_shteifon_RR
							is_character = SOV_Alexander_rodzyanko
						}
					}
					set_nationality = SOV
					clr_character_flag = flag_former_deserting_generals
				}
			}
			if = {
				limit = {
					country_exists = UKR
					UKR = {
						has_completed_focus = UKR_boost_industry
					}
				}
				UKR = {
					add_offsite_building = {
						type = industrial_complex
						level = -1
					}
					add_offsite_building = {
						type = arms_factory
						level = -2
					}
				}
			}
			if = {
				limit = {
					SOV = {
						OR = {
							has_country_flag = japan_accept_to_help_give_russian_far_east
							has_country_flag = has_negotiated_with_germany_ressource_rights
							has_country_flag = accept_american_occupation_siberia_after_cw
							has_country_flag = accept_french_factories_after_cw
							has_country_flag = accept_diplomatic_relation_with_italy
							has_country_flag = accept_english_help_for_shipment
						}
					}
				}
				SOV = {
					country_event = { id = russia2_generic.34 days = 7 }
				}
			}
			every_state = {
				limit = {
					is_core_of = SOJ
				}
				remove_core_of = SOJ
			}
			if = {
				limit = {
					has_country_flag = control_central_asia
				}
				KAZ = {
					transfer_state = 406
					transfer_state = 407
					transfer_state = 589
					transfer_state = 588
					transfer_state = 882
				}
			}
			582 = {
				remove_dynamic_modifier = {
					modifier = urals_secret
				}
			}
			573 = {
				remove_dynamic_modifier = {
					modifier = urals_secret
				}
			}
			581 = {
				remove_dynamic_modifier = {
					modifier = urals_secret
				}
			}
			if = {
				limit = {
					has_country_flag = control_caucasus
				}
				delete_unit_template_and_units = {
					division_template = "Kavkazskaya kazach'ya diviziya"
				}
				delete_unit_template_and_units = {
					division_template = "Opytnyy Kavkazskaya kazach'ya diviziya"
				}
			}
			if = {
				limit = {
					has_equipment = {
						infantry_equipment > 50000
					}
				}
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = -50000
				}
			}
			if = {
				limit = {
					has_equipment = {
						infantry_equipment > 40000
					}
					has_equipment = {
						infantry_equipment < 50000
					}
				}
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = -40000
				}
			}
			else_if = {
				limit = {
					has_equipment = {
						infantry_equipment > 30000
					}
					has_equipment = {
						infantry_equipment < 40000
					}
				}
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = -30000
				}
			}
			else_if = {
				limit = {
					has_equipment = {
						infantry_equipment > 20000
					}
					has_equipment = {
						infantry_equipment < 30000
					}
				}
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = -20000
				}
			}
			every_country = {
				limit = {
					exists = yes
					OR = {
						tag = SOV
						tag = UKR
						tag = BLR
						tag = AZR
						tag = GER
						tag = ARM
						tag = KAZ
						tag = TMS
						tag = CRI
					}
				}
				delete_unit_template_and_units = {
					division_template = "Yaponskiy Dobrovol'cheskiy Diviziya"
				}
				delete_unit_template_and_units = {
					division_template = "Ital'yanskiy Dobrovol'cheskiy Diviziya"
				}
			}
			every_country = {
				limit = {
					exists = yes
					OR = {
						tag = UKR
						tag = BLR
						tag = AZR
						tag = GER
						tag = ARM
						tag = KAZ
						tag = TMS
						tag = CRI
					}
				}
				delete_unit_template_and_units = {
					division_template = "Kavkazskaya kazach'ya diviziya"
				}
				delete_unit_template_and_units = {
					division_template = "Opytnyy Kavkazskaya kazach'ya diviziya"
				}
				delete_unit_template_and_units = {
					division_template = "gvardeyskaya pekhotnaya diviziya"
				}
				delete_unit_template_and_units = {
					division_template = "Gvardeyskaya kavaleriyskaya diviziya"
				}
				delete_unit_template_and_units = {
					division_template = "Panzer Diviziya"
				}
				delete_unit_template_and_units = {
					division_template = "Diviziya Morskoy Pekhoty"
				}
			}
			SOV = {
				every_character = {
					limit = {
						OR = {
							is_character = SOV_Mikhail_kalinin
							is_character = SOV_Nikita_khrushchev
							is_character = SOV_Vyacheslav_molotov
							is_character = SOV_Alexander_yegorov
							is_character = SOV_Vasily_blyukher
						}
					}
					set_character_flag = russia_is_in_prison_cw
				}
			}
		}
		add_threat = -5
		remove_ideas = SOV_Supply_line
		remove_ideas = SOV_Second_civil_war_idea_modifier
		hidden_effect = {
			every_country = {
				limit = {
					has_idea = SOV_Second_civil_war_idea_modifier
				}
				remove_ideas = SOV_Second_civil_war_idea_modifier
			}
		}
		remove_ideas = SOV_Urals_secret
		remove_ideas = SOV_Slow_industry
		dismantle_faction = yes
		add_ideas = low_economic_mobilisation
		add_ideas = limited_conscription
		add_ideas = SOV_Political_Unstability
	}
}

#Communist Generals desert their post after Democratic Insurection
country_event = {
	id = russia2_russia.261
	title = russia2_russia.261.t
	desc = russia2_russia.261.d
	picture = GFX_report_event_soviet_tank_parade

	is_triggered_only = yes

	option = {
		name = russia2_russia.261.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = deserting_communist_generals
		hidden_effect = {
			SOV_Georgy_zhukov = {
				remove_unit_leader_role = yes
			}
			remove_ideas = SOV_Georgy_zhukov
			SOV_Ivan_konev = {
				remove_unit_leader_role = yes
			}
			remove_ideas = SOV_Ivan_konev
			SOV_Kliment_voroshilov_military = {
				remove_unit_leader_role = yes
			}
			remove_ideas = SOV_Kliment_voroshilov_military
			remove_ideas = SOV_Kliment_voroshilov_advisor
			SOV_Aleksandr_vasilevsky = {
				remove_unit_leader_role = yes
			}
			remove_ideas = SOV_Aleksandr_vasilevsky
			SOV_Boris_shaposhnikov = {
				remove_unit_leader_role = yes
			}
			remove_ideas = SOV_Boris_shaposhnikov
			set_temp_variable = { random_factor = 0 }
			randomize_temp_variable = {
				var = random_factor_mikhail
				distribution = uniform
				min = 0
				max = 100
			}
			round_variable = random_factor_mikhail
			if = {
				limit = {
					check_variable = {
						var = random_factor_mikhail
						value = 50
						compare = less_than_or_equals
					}
				}
				SOV_Mikhail_tukhachevsky = {
					remove_unit_leader_role = yes
				}
				remove_ideas = SOV_Mikhail_tukhachevsky
				set_country_flag = SOV_mikhail_deserted_democratic_russia
			}
			set_country_flag = SOV_has_deserted_military_democratic_russia
		}
	}
}

#White Generals are Coming Back to the Country to Offer their Service
country_event = {
	id = russia2_russia.262
	title = russia2_russia.262.t
	desc = russia2_russia.262.d
	picture = GFX_russian_civil_war_russia2

	is_triggered_only = yes

	option = {
		name = russia2_russia.262.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = sov_white_generals_coming_dems
		hidden_effect = {
			SOV = {
				add_field_marshal_role = {
					character = SOV_Anton_ivanovich_denikin
					traits = {
						infantry_leader
						bearer_of_artillery
						offensive_doctrine
					}
					skill = 5
					attack_skill = 4
					defense_skill = 3
					planning_skill = 4
					logistics_skill = 3
					legacy_id = 514
				}
				add_corps_commander_role = {
					character = SOV_boris_shteifon_RR
					traits = {
						war_hero
						trickster
					}
					skill = 3
					attack_skill = 3
					defense_skill = 2
					planning_skill = 3
					logistics_skill = 2
				}
				add_field_marshal_role = {
					character = SOV_Alexander_rodzyanko
					traits = {
						inspirational_leader
						cavalry_officer
					}
					skill = 2
					attack_skill = 2
					defense_skill = 2
					planning_skill = 4
					logistics_skill = 2
					legacy_id = 512
				}
				add_corps_commander_role = {
					character = SOV_Pavel_bermondt_avalov
					traits = {
						infantry_officer
					}
					skill = 3
					attack_skill = 3
					defense_skill = 2
					planning_skill = 2
					logistics_skill = 3
				}
				add_corps_commander_role = {
					character = SOV_Pyotr_Nikolayevich_Krasnov
					traits = {
						trait_reckless
						infantry_officer
						trait_mountaineer
					}
					skill = 4
					attack_skill = 4
					defense_skill = 3
					planning_skill = 3
					logistics_skill = 3
				}
			}
			set_country_flag = soviet_generals_deserted
		}
	}
}

#Event If Poland Agrees to Become an Imperial Subject and Owns Danzig, Poznan and Katowice
country_event = {
	id = russia2_russia.263
	title = russia2_russia.263.t
	desc = russia2_russia.263.d
	picture = GFX_operation_barbarossa_russia2

	fire_only_once = yes

	trigger = {
		tag = SOV
		has_government = neutrality
		is_subject = no
		has_country_flag = poland_accept_imperial_puppet
		GER = {
			has_government = fascism
		}
		has_completed_focus = SOV_fate_poland
		POL = {
			is_subject_of = SOV
			OR = {
				owns_state = 86
				owns_state = 807
				owns_state = 85
				owns_state = 762
			}
		}

	}

	mean_time_to_happen = {
		days = 10
	}

	option = { #Give Back the German Territory
		name = russia2_russia.263.a
		ai_chance = {
			base = 100
		}
		GER = {
			country_event = { id = russia2_germany.17 days = 1 }
		}
	}

	option = { #Poland Will Keep Its Territory
		name = russia2_russia.263.b
		ai_chance = {
			base = 0
		}
	}
}

#Tsar Comes Back - Democratic Path
country_event = {
	id = russia2_russia.264
	title = russia2_russia.264.t
	desc = russia2_russia.264.d
	picture = GFX_report_event_royal_parade

	is_triggered_only = yes

	option = { #Nice
		ai_chance = {
			base = 100
		}
		name = russia2_russia.264.a
		add_ideas = SOV_Tsar_is_back
		hidden_effect = {
			news_event = {
				id = newsrussia2.113 days = 1
			}
		}
		set_country_flag = return_tsar_democratic
	}
}

#FROM Had a Fascist Coup (MON or TAN)
country_event = {
	id = russia2_russia.265
	title = russia2_russia.265.t
	desc = russia2_russia.265.d
	picture = GFX_report_event_generic_rally2

	is_triggered_only = yes

	option = { #Amazing
		ai_chance = {
			base = 100
		}
		name = russia2_russia.265.a
	}
}

#Remove Political Insecurity Idea if more than 15% Surrender Progress
country_event = {
	id = russia2_russia.266
	title = russia2_russia.266.t
	desc = russia2_russia.266.d
	picture = GFX_artillery_with_building_russia2

	trigger = {
		tag = SOV
		OR = {
			has_idea = SOV_Political_Unstability
			has_idea = SOV_Political_Unstability2
		}
		surrender_progress > 0.15
	}

	fire_only_once = yes

	mean_time_to_happen = {
		days = 10
	}

	option = { #Thank you
		ai_chance = {
			base = 100
		}
		name = russia2_russia.266.a
		add_political_power = -100
		add_war_support = 0.1
		if = {
			limit = {
				has_idea = SOV_Political_Unstability
			}
			remove_ideas = SOV_Political_Unstability
		}
		else_if = {
			limit = {
				has_idea = SOV_Political_Unstability2
			}
			remove_ideas = SOV_Political_Unstability2
		}
	}
}

#Alexander's Rodzyanko Tour de France
country_event = {
	id = russia2_russia.267
	title = russia2_russia.267.t
	desc = russia2_russia.267.d
	picture = GFX_russia2event_tour_de_france

	trigger = {
		tag = SOV
		has_character = SOV_Alexander_rodzyanko
		SOV_Alexander_rodzyanko = { is_unit_leader = yes }
		date > 1939.01.01
		OR = {
			21 = {
				is_controlled_by = SOV
			}
			any_allied_country = {
				controls_state = 21
			}
		}
		OR = {
			735 = {
				is_controlled_by = SOV
			}
			any_allied_country = {
				controls_state = 735
			}
		}
		OR = {
			20 = {
				is_controlled_by = SOV
			}
			any_allied_country = {
				controls_state = 20
			}
		}
		OR = {
			27 = {
				is_controlled_by = SOV
			}
			any_allied_country = {
				controls_state = 27
			}
		}
		OR = {
			16 = {
				is_controlled_by = SOV
			}
			any_allied_country = {
				controls_state = 16
			}
		}
		OR = {
			15 = {
				is_controlled_by = SOV
			}
			any_allied_country = {
				controls_state = 15
			}
		}
		OR = {
			30 = {
				is_controlled_by = SOV
			}
			any_allied_country = {
				controls_state = 30
			}
		}
		OR = {
			14 = {
				is_controlled_by = SOV
			}
			any_allied_country = {
				controls_state = 14
			}
		}
		OR = {
			23 = {
				is_controlled_by = SOV
			}
			any_allied_country = {
				controls_state = 23
			}
		}
		OR = {
			19 = {
				is_controlled_by = SOV
			}
			any_allied_country = {
				controls_state = 19
			}
		}
		OR = {
			31 = {
				is_controlled_by = SOV
			}
			any_allied_country = {
				controls_state = 31
			}
		}
		OR = {
			22 = {
				is_controlled_by = SOV
			}
			any_allied_country = {
				controls_state = 22
			}
		}
	}

	fire_only_once = yes

	immediate = {
		hidden_effect = {
			if = {
				limit = {
					NOT = {
						is_in_array = { global.tour_de_france_achievement = THIS }
					}
				}
				add_to_array = { global.tour_de_france_achievement = THIS }
				set_variable = { global.tour_de_france_achievement_date@THIS = global.date }
				set_country_flag = russia_reworked_new_achievement
				if = {
					limit = {
						has_global_flag = russia_reworked_achievements_enabled
					}
					scoped_sound_effect = "russia_reworked_unlock_achievement"
				}
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	option = { #Congrats
		ai_chance = {
			base = 100
		}
		name = russia2_russia.267.a
		SOV_Alexander_rodzyanko = {
			add_attack = 1
			add_logistics = 1
			add_unit_leader_trait = russia2_yellow_jersey
		}
	}
}

#Hidden event to remove Anti-Soviet Pact Idea if the Player has it for Some Reasons
country_event = {
	id = russia2_russia.269

	trigger = {
		is_in_faction_with = SOV
		has_idea = anti_soviet_pact
	}

	mean_time_to_happen = {
		days = 1
	}

	fire_only_once = yes

	hidden = yes

	immediate = {
		remove_ideas = anti_soviet_pact
	}
}

#Ultimatum to Romania and Hungary
country_event = {
	id = russia2_russia.270
	title = russia2_russia.270.t
	desc = russia2_russia.270.d
	picture = GFX_menacing_tanks_russia2

	is_triggered_only = yes

	option = { #We Have to Accept for our Survival
		name = russia2_russia.270.a
		ai_chance = {
			base = 60
			modifier = {
				add = -40
				is_in_faction = yes
			}
		}
		SOV = {
			country_event = { id = russia2_russia.271 days = 1 }
		}
	}

	option = { #We Won't Let them Control our Country !
		name = russia2_russia.270.b
		ai_chance = {
			base = 40
			modifier = {
				add = 40
				OR = {
					is_major = yes
					is_in_faction = yes
				}
			}
		}
		custom_effect_tooltip = lead_to_war_against_russian_junta
		SOV = {
			country_event = { id = russia2_russia.272 days = 1 }
		}
	}
}

#From Accepts Ultimatum
country_event = {
	id = russia2_russia.271
	title = russia2_russia.271.t
	desc = russia2_russia.271.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #We Have to Accept for our Survival
		name = russia2_russia.271.a
		ai_chance = {
			base = 100
		}
		SOV = {
			set_autonomy = {
				target = FROM
				autonomy_state = autonomy_dominion
			}
		}
	}
}

#From Refuses Ultimatum
country_event = {
	id = russia2_russia.272
	title = russia2_russia.272.t
	desc = russia2_russia.272.d
	picture = GFX_report_event_hungarian_soldiers

	is_triggered_only = yes

	option = { #Die
		name = russia2_russia.272.a
		ai_chance = {
			base = 100
		}
		SOV = {
			create_wargoal = {
				type = puppet_wargoal_focus
				target = FROM
			}
		}
	}
}

#Hungary Puppet
country_event = {
	id = russia2_russia.273
	title = russia2_russia.273.t
	desc = russia2_russia.273.d
	picture = GFX_menacing_tanks_russia2

	is_triggered_only = yes

	option = { #We Have to Accept for our Survival
		name = russia2_russia.273.a
		ai_chance = {
			base = 60
			modifier = {
				add = -40
				OR = {
					is_major = yes
					is_in_faction = yes
				}
			}
		}
		custom_effect_tooltip = receive_this_event_bercause_rom_or_hun_is_our_puppet
		SOV = {
			country_event = { id = russia2_russia.275 days = 1 }
		}
	}

	option = { #We Won't Let them Control our Country !
		name = russia2_russia.273.b
		ai_chance = {
			base = 40
			modifier = {
				add = 40
				OR = {
					is_major = yes
					is_in_faction = yes
				}
			}
		}
		custom_effect_tooltip = lead_to_war_against_russian_junta
		custom_effect_tooltip = receive_this_event_bercause_rom_or_hun_is_our_puppet
		SOV = {
			country_event = { id = russia2_russia.276 days = 1 }
		}
	}
}

#Romania Puppet
country_event = {
	id = russia2_russia.274
	title = russia2_russia.274.t
	desc = russia2_russia.274.d
	picture = GFX_menacing_tanks_russia2

	is_triggered_only = yes

	option = { #We Have to Accept for our Survival
		name = russia2_russia.274.a
		ai_chance = {
			base = 60
			modifier = {
				add = -40
				OR = {
					is_major = yes
					is_in_faction = yes
				}
			}
		}
		custom_effect_tooltip = receive_this_event_bercause_rom_or_hun_is_our_puppet
		SOV = {
			country_event = { id = russia2_russia.277 days = 1 }
		}
	}

	option = { #We Won't Let them Control our Country !
		name = russia2_russia.274.b
		ai_chance = {
			base = 40
			modifier = {
				add = 40
				OR = {
					is_major = yes
					is_in_faction = yes
				}
			}
		}
		custom_effect_tooltip = lead_to_war_against_russian_junta
		custom_effect_tooltip = receive_this_event_bercause_rom_or_hun_is_our_puppet
		SOV = {
			country_event = { id = russia2_russia.278 days = 1 }
		}
	}
}

#From Accepts Ultimatum (HUN)
country_event = {
	id = russia2_russia.275
	title = russia2_russia.275.t
	desc = russia2_russia.275.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = {
		name = russia2_russia.275.a
		ai_chance = {
			base = 100
		}
		SOV = {
			set_autonomy = {
				target = HUN
				autonomy_state = autonomy_dominion
			}
		}
	}
}

#From Refuses Ultimatum (HUN)
country_event = {
	id = russia2_russia.276
	title = russia2_russia.276.t
	desc = russia2_russia.276.d
	picture = GFX_report_event_hungarian_soldiers

	is_triggered_only = yes

	option = {
		name = russia2_russia.276.a
		ai_chance = {
			base = 100
		}
		SOV = {
			create_wargoal = {
				type = puppet_wargoal_focus
				target = HUN
			}
		}
	}
}

#From Accepts Ultimatum (ROM)
country_event = {
	id = russia2_russia.277
	title = russia2_russia.277.t
	desc = russia2_russia.277.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = {
		name = russia2_russia.277.a
		ai_chance = {
			base = 100
		}
		SOV = {
			set_autonomy = {
				target = ROM
				autonomy_state = autonomy_dominion
			}
		}
	}
}

#From Refuses Ultimatum (ROM)
country_event = {
	id = russia2_russia.278
	title = russia2_russia.278.t
	desc = russia2_russia.278.d
	picture = GFX_report_event_hungarian_soldiers

	is_triggered_only = yes

	option = {
		name = russia2_russia.278.a
		ai_chance = {
			base = 100
		}
		SOV = {
			create_wargoal = {
				type = puppet_wargoal_focus
				target = ROM
			}
		}
	}
}

#Bye Bye to the Communists
country_event = {
	id = russia2_russia.279
	title = russia2_russia.279.t
	desc = russia2_russia.279.d
	picture = GFX_report_event_generic_riot

	is_triggered_only = yes

	option = {
		name = russia2_russia.279.a
		ai_chance = {
			base = 100
		}
		every_country = {
			limit = {
				has_government = communism
				NOT = {
					has_war_with = ROOT
					tag = ROOT
				}
			}
			country_event = { id = russia2_generic.20 days = 1 }
		}
		add_ideas = SOV_Russian_communist_rebels
	}
}

#Return of Konstantin
country_event = {
	id = russia2_russia.280
	title = russia2_russia.280.t
	desc = russia2_russia.280.d
	picture = GFX_konstantin_russia2

	is_triggered_only = yes

	option = {
		name = russia2_russia.280.a
		ai_chance = {
			base = 100
		}
		set_politics = {
			ruling_party = fascism
		}
		if = {
			limit = {
				MON = {
					is_subject_of = SOV
				}
			}
			MON = {
				set_politics = {
					ruling_party = fascism
				}
			}
		}
		if = {
			limit = {
				TAN = {
					is_subject_of = SOV
				}
			}
			TAN = {
				set_politics = {
					ruling_party = fascism
				}
			}
		}
		add_ideas = SOV_Uncertain_fate
		add_ideas = SOV_Russian_hypernationalism
		if = {
			limit = {
				is_faction_leader = yes
			}
			dismantle_faction = yes
		}
		else_if = {
			limit = {
				is_in_faction = yes
			}
			leave_faction = yes
		}
		hidden_effect = {
			set_cosmetic_tag = RFP
			country_event = { id = russia2_russia.282 days = 100 }
			news_event = { id = newsrussia2.114 days = 1 }
		}
	}
}

#The Fate of Anastasy
country_event = {
	id = russia2_russia.282
	title = russia2_russia.282.t
	desc = russia2_russia.282.d
	picture = GFX_russia2event_anastasy_vonsiatsky

	is_triggered_only = yes

	option = { #Accept his return
		name = russia2_russia.282.a
		ai_chance = {
			base = 40
			modifier = {
				add = 60
				has_country_flag = RUS_AI_ANASTASY_VONSYATSKY_FASCIST_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_ANASTASY_VONSYATSKY_FASCIST_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		add_stability = 0.05
		hidden_effect = {
			country_event = { id = russia2_russia.283 days = 100 }
		}
	}

	option = { #Keep small contacts with him
		name = russia2_russia.282.b
		ai_chance = {
			base = 30
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_KONSTANTIN_RODZAEVSKY_FASCIST_BEHAVIOR
					has_country_flag = RUS_AI_ANASTASY_VONSYATSKY_FASCIST_BEHAVIOR
				}
			}
		}
		hidden_effect = {
			country_event = { id = russia2_russia.290 days = 100 }
		}
	}

	option = { #Refuse his return
		name = russia2_russia.282.c
		ai_chance = {
			base = 20
			modifier = {
				add = 80
				has_country_flag = RUS_AI_KONSTANTIN_RODZAEVSKY_FASCIST_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_KONSTANTIN_RODZAEVSKY_FASCIST_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		add_stability = -0.05
		hidden_effect = {
			country_event = { id = russia2_russia.298 days = 100 }
		}
	}

	option = { #Demand the controller of 366 (Florida) to arrest him
		name = russia2_russia.282.e
		trigger = {
			NOT = {
				controls_state = 366
			}
		}
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_country_flag = RUS_AI_KONSTANTIN_RODZAEVSKY_FASCIST_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_KONSTANTIN_RODZAEVSKY_FASCIST_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		add_stability = -0.1
		hidden_effect = {
			366 = {
				CONTROLLER = {
					country_event = { id = russia2_russia.305 days = 50 }
				}
			}
		}
	}

	option = { #Arrest him
		name = russia2_russia.282.f
		trigger = {
			controls_state = 366
		}
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_country_flag = RUS_AI_KONSTANTIN_RODZAEVSKY_FASCIST_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_KONSTANTIN_RODZAEVSKY_FASCIST_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		add_stability = -0.1
		hidden_effect = {
			country_event = { id = russia2_russia.309 days = 50 }
		}
		#This is just in case you control 366, very unlikely
	}
}

#Anastasy Vonsyatsky Arrives
country_event = {
	id = russia2_russia.283
	title = russia2_russia.283.t
	desc = russia2_russia.283.d
	picture = GFX_report_event_spr_nationalist_soldiers

	is_triggered_only = yes

	option = { #Welcome back
		name = russia2_russia.283.a
		ai_chance = {
			base = 100
		}
		hidden_effect = {
			country_event = { id = russia2_russia.284 days = 50 }
		}
	}
}

#The Place of Anastasy
country_event = {
	id = russia2_russia.284
	title = russia2_russia.284.t
	desc = russia2_russia.284.d
	picture = GFX_report_event_saf_coup

	is_triggered_only = yes

	option = { #Minister
		name = russia2_russia.284.a
		ai_chance = {
			base = 75
			modifier = {
				add = 25
				has_country_flag = RUS_AI_KONSTANTIN_RODZAEVSKY_FASCIST_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_KONSTANTIN_RODZAEVSKY_FASCIST_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		add_war_support = 0.05
		hidden_effect = {
			country_event = { id = russia2_russia.285 days = 75 }
		}
	}

	option = { #Let him rule with Konstantin
		name = russia2_russia.284.b
		ai_chance = {
			base = 25
			modifier = {
				add = 75
				has_country_flag = RUS_AI_ANASTASY_VONSYATSKY_FASCIST_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_ANASTASY_VONSYATSKY_FASCIST_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		add_political_power = -200
		hidden_effect = {
			country_event = { id = russia2_russia.289 days = 150 }
		}
	}
}

#Dinner in the Kremlin
country_event = {
	id = russia2_russia.285
	title = russia2_russia.285.t
	desc = russia2_russia.285.d
	picture = GFX_report_event_mussolini_hotel

	is_triggered_only = yes

	option = { #Popcorn please
		name = russia2_russia.285.a
		ai_chance = {
			base = 100
		}
		hidden_effect = {
			country_event = { id = russia2_russia.286 days = 50 }
		}
	}
}

#Konstantin falls (not dead yet)
country_event = {
	id = russia2_russia.286
	title = russia2_russia.286.t
	desc = russia2_russia.286.d
	picture = GFX_report_event_fascist_speech

	is_triggered_only = yes

	option = {
		name = russia2_russia.286.a
		ai_chance = {
			base = 100
		}
		add_political_power = -25
		set_temp_variable = { konstantin_death_factor = 0 }
		randomize_temp_variable = {
			var = konstantin_death_factor
			distribution = uniform
			min = 1
			max = 2
		}
		round_variable = konstantin_death_factor
		if = { #Dead
			limit = {
				check_variable = {
					var = konstantin_death_factor
					value = 1
					compare = equals
				}
			}
			hidden_effect = {
				country_event = { id = russia2_russia.287 days = 50 }
			}
		}
		else = { #Not dead
			hidden_effect = {
				country_event = { id = russia2_russia.288 days = 50 }
			}
		}
	}
}

#Konstantin Dies
country_event = {
	id = russia2_russia.287
	title = russia2_russia.287.t
	desc = russia2_russia.287.d
	picture = GFX_report_event_generic_funeral

	is_triggered_only = yes

	option = { #Anastasy wins
		name = russia2_russia.287.a
		ai_chance = {
			base = 100
		}
		add_political_power = -100
		add_country_leader_role = {
			character = SOV_Anastasy_vonsyatsky
			promote_leader = yes
			country_leader = {
				desc = SOV_Anastasy_vonsyatsky_desc
				ideology = fascism_anastasy
				expire = "1965.1.1.1"
				traits = {
					dictator
				}
			}
		}
		custom_effect_tooltip = SOV_can_have_anastasy_tt
		set_country_flag = order_triumphed_over_law
		hidden_effect = {
			news_event = { id = newsrussia2.116 days = 2 }
		}
	}
}

#Konstantin Survives
country_event = {
	id = russia2_russia.288
	title = russia2_russia.288.t
	desc = russia2_russia.288.d
	picture = GFX_report_event_generic_rally_3

	is_triggered_only = yes

	option = { #Too late, Anastasy already won
		name = russia2_russia.288.a
		ai_chance = {
			base = 75
		}
		add_stability = -0.1
		add_country_leader_role = {
			character = SOV_Anastasy_vonsyatsky
			promote_leader = yes
			country_leader = {
				desc = SOV_Anastasy_vonsyatsky_desc
				ideology = fascism_anastasy
				expire = "1965.1.1.1"
				traits = {
					dictator
				}
			}
		}
		custom_effect_tooltip = SOV_can_have_anastasy_tt
		set_country_flag = order_triumphed_over_law
		hidden_effect = {
			news_event = { id = newsrussia2.116 days = 2 }
		}
	}

	option = { #The guards manage to stop him at the last moment
		name = russia2_russia.288.b
		ai_chance = {
			base = 25
		}
		add_stability = -0.1
		add_war_support = -0.1
		custom_effect_tooltip = SOV_can_have_konstantin_tt
		set_country_flag = law_triumphed_over_order
		hidden_effect = {
			news_event = { id = newsrussia2.115 days = 2 }
		}
	}
}

#Konstantin Assassinated
country_event = {
	id = russia2_russia.289
	title = russia2_russia.289.t
	desc = russia2_russia.289.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes

	option = { #Anastasy wins
		name = russia2_russia.289.a
		ai_chance = {
			base = 100
		}
		add_stability = -0.15
		add_war_support = 0.05
		add_political_power = 100
		add_country_leader_role = {
			character = SOV_Anastasy_vonsyatsky
			promote_leader = yes
			country_leader = {
				desc = SOV_Anastasy_vonsyatsky_desc
				ideology = fascism_anastasy
				expire = "1965.1.1.1"
				traits = {
					dictator
				}
			}
		}
		custom_effect_tooltip = SOV_can_have_anastasy_tt
		set_country_flag = order_triumphed_over_law
		hidden_effect = {
			news_event = { id = newsrussia2.116 days = 2 }
		}
	}
}

#The Second Letter
country_event = {
	id = russia2_russia.290
	title = russia2_russia.290.t
	desc = russia2_russia.290.d
	picture = GFX_russia2event_anastasy_vonsiatsky

	is_triggered_only = yes

	option = { #Let him return
		name = russia2_russia.290.a
		ai_chance = {
			base = 50
		}
		add_stability = 0.05
		hidden_effect = {
			country_event = { id = russia2_russia.291 days = 75 }
		}
	}

	option = { #Let him return under heavy surveillance
		name = russia2_russia.290.b
		ai_chance = {
			base = 50
		}
		hidden_effect = {
			country_event = { id = russia2_russia.294 days = 150 }
		}
	}
}

#The Few Warnings
country_event = {
	id = russia2_russia.291
	title = russia2_russia.291.t
	desc = russia2_russia.291.d
	picture = GFX_report_event_german_detained_china

	is_triggered_only = yes

	option = { #Listen to them and arrest him (might backfire)
		name = russia2_russia.291.a
		ai_chance = {
			base = 50
		}
		add_political_power = -100
		add_stability = -0.05
		set_temp_variable = { konstantin_death_factor = 0 }
		randomize_temp_variable = {
			var = konstantin_death_factor
			distribution = uniform
			min = 1
			max = 4
		}
		round_variable = konstantin_death_factor
		if = { #Dead
			limit = {
				check_variable = {
					var = konstantin_death_factor
					value = 3
					compare = less_than_or_equals
				}
			}
			hidden_effect = {
				country_event = { id = russia2_russia.297 days = 50 }
			}
		}
		else = { #Not dead
			hidden_effect = {
				country_event = { id = russia2_russia.294 days = 25 }
			}
		}
	}

	option = { #Ignore them
		name = russia2_russia.291.b
		ai_chance = {
			base = 50
		}
		add_political_power = 15
		hidden_effect = {
			country_event = { id = russia2_russia.292 days = 50 }
		}
	}
}

#Anastasy's proposal
country_event = {
	id = russia2_russia.292
	title = russia2_russia.292.t
	desc = russia2_russia.292.d
	picture = GFX_report_event_german_inspect_troops

	is_triggered_only = yes

	option = { #Yes
		name = russia2_russia.292.a
		ai_chance = {
			base = 50
		}
		add_political_power = -50
		set_temp_variable = { konstantin_death_factor = 0 }
		randomize_temp_variable = {
			var = konstantin_death_factor
			distribution = uniform
			min = 1
			max = 4
		}
		round_variable = konstantin_death_factor
		if = { #Dead
			limit = {
				check_variable = {
					var = konstantin_death_factor
					value = 3
					compare = less_than_or_equals
				}
			}
			hidden_effect = {
				country_event = { id = russia2_russia.293 days = 75 }
			}
		}
		else = { #Not dead
			hidden_effect = {
				country_event = { id = russia2_russia.295 days = 50 }
			}
		}
	}

	option = { #No
		name = russia2_russia.292.b
		ai_chance = {
			base = 50
		}
		add_political_power = -50
		hidden_effect = {
			country_event = { id = russia2_russia.294 days = 50 }
		}
	}
}

#The Great Betrayal
country_event = {
	id = russia2_russia.293
	title = russia2_russia.293.t
	desc = russia2_russia.293.d
	picture = GFX_report_event_generic_funeral

	is_triggered_only = yes

	option = { #Anastasy wins
		name = russia2_russia.293.a
		ai_chance = {
			base = 100
		}
		add_stability = -0.1
		add_country_leader_role = {
			character = SOV_Anastasy_vonsyatsky
			promote_leader = yes
			country_leader = {
				desc = SOV_Anastasy_vonsyatsky_desc
				ideology = fascism_anastasy
				expire = "1965.1.1.1"
				traits = {
					dictator
				}
			}
		}
		custom_effect_tooltip = SOV_can_have_anastasy_tt
		set_country_flag = order_triumphed_over_law
		hidden_effect = {
			news_event = { id = newsrussia2.116 days = 2 }
		}
	}
}

#Anastasy Opposes Konstantin
country_event = {
	id = russia2_russia.294
	title = russia2_russia.294.t
	desc = russia2_russia.294.d
	picture = GFX_report_event_generic_military_parade

	is_triggered_only = yes

	option = { #Hurry
		name = russia2_russia.294.a
		ai_chance = {
			base = 50
		}
		set_temp_variable = { konstantin_death_factor = 0 }
		randomize_temp_variable = {
			var = konstantin_death_factor
			distribution = uniform
			min = 1
			max = 4
		}
		round_variable = konstantin_death_factor
		if = { #Dead
			limit = {
				check_variable = {
					var = konstantin_death_factor
					value = 1
					compare = less_than_or_equals
				}
			}
			hidden_effect = {
				country_event = { id = russia2_russia.296 days = 50 }
			}
		}
		else = { #Not dead
			hidden_effect = {
				country_event = { id = russia2_russia.295 days = 50 }
			}
		}
	}

	option = { #Not hurry
		name = russia2_russia.294.b
		ai_chance = {
			base = 50
		}
		set_temp_variable = { konstantin_death_factor = 0 }
		randomize_temp_variable = {
			var = konstantin_death_factor
			distribution = uniform
			min = 1
			max = 4
		}
		round_variable = konstantin_death_factor
		if = { #Dead
			limit = {
				check_variable = {
					var = konstantin_death_factor
					value = 3
					compare = less_than_or_equals
				}
			}
			hidden_effect = {
				country_event = { id = russia2_russia.296 days = 50 }
			}
		}
		else = { #Not dead
			hidden_effect = {
				country_event = { id = russia2_russia.295 days = 50 }
			}
		}
	}
}

#Anastasy Arrested
country_event = {
	id = russia2_russia.295
	title = russia2_russia.295.t
	desc = russia2_russia.295.d
	picture = GFX_report_event_poland_rejects

	is_triggered_only = yes

	option = {
		name = russia2_russia.295.a
		ai_chance = {
			base = 100
		}
		add_political_power = 50
		custom_effect_tooltip = SOV_can_have_konstantin_tt
		set_country_flag = law_triumphed_over_order
		hidden_effect = {
			news_event = { id = newsrussia2.115 days = 2 }
		}
	}
}

#Assassination of Konstantin
country_event = {
	id = russia2_russia.296
	title = russia2_russia.296.t
	desc = russia2_russia.296.d
	picture = GFX_report_event_crowd_in_prague

	is_triggered_only = yes

	option = {
		name = russia2_russia.296.a
		ai_chance = {
			base = 100
		}
		add_stability = -0.1
		add_country_leader_role = {
			character = SOV_Anastasy_vonsyatsky
			promote_leader = yes
			country_leader = {
				desc = SOV_Anastasy_vonsyatsky_desc
				ideology = fascism_anastasy
				expire = "1965.1.1.1"
				traits = {
					dictator
				}
			}
		}
		custom_effect_tooltip = SOV_can_have_anastasy_tt
		set_country_flag = order_triumphed_over_law
		hidden_effect = {
			news_event = { id = newsrussia2.116 days = 2 }
		}
	}
}

#Anastasy Deported
country_event = {
	id = russia2_russia.297
	title = russia2_russia.297.t
	desc = russia2_russia.297.d
	picture = GFX_report_event_poland_rejects

	is_triggered_only = yes

	option = { #Uh
		name = russia2_russia.297.a
		ai_chance = {
			base = 100
		}
		add_political_power = 50
		custom_effect_tooltip = SOV_can_have_konstantin_tt
		set_country_flag = law_triumphed_over_order
		set_country_flag = anastasy_deported_siberia
		hidden_effect = {
			news_event = { id = newsrussia2.115 days = 1 }
		}
	}
}

#The Prepared Return of Anastasy
country_event = {
	id = russia2_russia.298
	title = russia2_russia.298.t
	desc = russia2_russia.298.d
	picture = GFX_report_event_generic_bombers

	is_triggered_only = yes

	option = { #Sabotage his plane
		name = russia2_russia.298.a
		ai_chance = {
			base = 75
			modifier = {
				add = 25
				has_country_flag = RUS_AI_KONSTANTIN_RODZAEVSKY_FASCIST_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_KONSTANTIN_RODZAEVSKY_FASCIST_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		add_political_power = -200
		set_temp_variable = { konstantin_death_factor = 0 }
		randomize_temp_variable = {
			var = konstantin_death_factor
			distribution = uniform
			min = 1
			max = 4
		}
		round_variable = konstantin_death_factor
		if = { #Dead
			limit = {
				check_variable = {
					var = konstantin_death_factor
					value = 3
					compare = less_than_or_equals
				}
			}
			hidden_effect = {
				country_event = { id = russia2_russia.300 days = 75 }
			}
		}
		else = { #Not dead
			hidden_effect = {
				country_event = { id = russia2_russia.299 days = 50 }
			}
		}
	}

	option = { #Who cares
		name = russia2_russia.298.b
		ai_chance = {
			base = 25
			modifier = {
				add = 75
				has_country_flag = RUS_AI_ANASTASY_VONSYATSKY_FASCIST_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_ANASTASY_VONSYATSKY_FASCIST_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		hidden_effect = {
			country_event = { id = russia2_russia.299 days = 50 }
		}
	}
}

#Anastasy Returns
country_event = {
	id = russia2_russia.299
	title = russia2_russia.299.t
	desc = russia2_russia.299.d
	picture = GFX_report_event_gathering_protest

	is_triggered_only = yes

	option = { #Use force
		name = russia2_russia.299.a
		ai_chance = {
			base = 75
			modifier = {
				add = 25
				has_country_flag = RUS_AI_KONSTANTIN_RODZAEVSKY_FASCIST_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_KONSTANTIN_RODZAEVSKY_FASCIST_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		add_stability = -0.15
		hidden_effect = {
			country_event = { id = russia2_russia.301 days = 100 }
		}
	}

	option = { #Let him be
		name = russia2_russia.299.b
		ai_chance = {
			base = 25
			modifier = {
				add = 75
				has_country_flag = RUS_AI_ANASTASY_VONSYATSKY_FASCIST_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_ANASTASY_VONSYATSKY_FASCIST_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		add_political_power = -50
		hidden_effect = {
			country_event = { id = russia2_russia.302 days = 50 }
		}
	}
}

#Anastasy Dies
country_event = {
	id = russia2_russia.300
	title = russia2_russia.300.t
	desc = russia2_russia.300.d
	picture = GFX_report_event_generic_bombers

	is_triggered_only = yes

	option = { #Oops
		name = russia2_russia.300.a
		ai_chance = {
			base = 100
		}
		add_political_power = -50
		custom_effect_tooltip = SOV_can_have_konstantin_tt
		set_country_flag = law_triumphed_over_order
		set_country_flag = anastasy_was_killed
		hidden_effect = {
			news_event = { id = newsrussia2.115 days = 2 }
		}
	}
}

#Anastasy Arrested
country_event = {
	id = russia2_russia.301
	title = russia2_russia.301.t
	desc = russia2_russia.301.d
	picture = GFX_report_event_czech_soldiers_01

	is_triggered_only = yes

	option = {
		name = russia2_russia.301.a
		ai_chance = {
			base = 100
		}
		add_political_power = 50
		custom_effect_tooltip = SOV_can_have_konstantin_tt
		set_country_flag = law_triumphed_over_order
		hidden_effect = {
			news_event = { id = newsrussia2.115 days = 2 }
		}
	}
}

#A Great Menace
country_event = {
	id = russia2_russia.302
	title = russia2_russia.302.t
	desc = russia2_russia.302.d
	picture = GFX_report_event_german_inspect_troops

	is_triggered_only = yes

	option = { #Ok
		name = russia2_russia.302.a
		ai_chance = {
			base = 100
		}
		set_temp_variable = { konstantin_death_factor = 0 }
		randomize_temp_variable = {
			var = konstantin_death_factor
			distribution = uniform
			min = 1
			max = 4
		}
		round_variable = konstantin_death_factor
		if = { #Dead
			limit = {
				check_variable = {
					var = konstantin_death_factor
					value = 3
					compare = less_than_or_equals
				}
			}
			hidden_effect = {
				country_event = { id = russia2_russia.303 days = 75 }
			}
		}
		else = { #Not dead
			hidden_effect = {
				country_event = { id = russia2_russia.304 days = 75 }
			}
		}
	}
}

#Anastasy's coup
country_event = {
	id = russia2_russia.303
	title = russia2_russia.303.t
	desc = russia2_russia.303.d
	picture = GFX_report_event_hungary_parliament

	is_triggered_only = yes

	option = {
		name = russia2_russia.303.a
		ai_chance = {
			base = 100
		}
		add_country_leader_role = {
			character = SOV_Anastasy_vonsyatsky
			promote_leader = yes
			country_leader = {
				desc = SOV_Anastasy_vonsyatsky_desc
				ideology = fascism_anastasy
				expire = "1965.1.1.1"
				traits = {
					dictator
				}
			}
		}
		custom_effect_tooltip = SOV_can_have_anastasy_tt
		set_country_flag = order_triumphed_over_law
		hidden_effect = {
			news_event = { id = newsrussia2.116 days = 2 }
		}
	}
}

#Failed coup
country_event = {
	id = russia2_russia.304
	title = russia2_russia.304.t
	desc = russia2_russia.304.d
	picture = GFX_report_event_dead_soldiers

	is_triggered_only = yes

	option = {
		name = russia2_russia.304.a
		ai_chance = {
			base = 100
		}
		add_stability = 0.05
		add_political_power = -100
		custom_effect_tooltip = SOV_can_have_konstantin_tt
		set_country_flag = law_triumphed_over_order
		hidden_effect = {
			news_event = { id = newsrussia2.115 days = 2 }
		}
	}
}

#FROM (366 CONTROLLER) gets event "The Arrestation of Anastasy Vonsyatsky"
country_event = {
	id = russia2_russia.305
	title = russia2_russia.305.t
	desc = russia2_russia.305.d
	picture = GFX_report_event_eng_blackshirt_march

	is_triggered_only = yes

	option = { #Arrest him
		name = russia2_russia.305.a
		ai_chance = {
			base = 75
			modifier = {
				add = -25
				has_government = fascism
			}
		}
		add_popularity = {
			ideology = fascism
			popularity = -0.5
		}
		add_political_power = 25
		SOV = {
			country_event = { id = russia2_russia.306 days = 10 }
			add_opinion_modifier = {
				target = ROOT
				modifier = arrested_anastasy
			}
		}
	}

	option = { #No
		name = russia2_russia.305.b
		ai_chance = {
			base = 25
			modifier = {
				add = 25
				has_government = fascism
			}
		}
		add_political_power = 50
		SOV = {
			country_event = { id = russia2_russia.307 days = 10 }
			add_opinion_modifier = {
				target = ROOT
				modifier = refused_arrest
			}
		}
	}
}

#FROM accepts
country_event = {
	id = russia2_russia.306
	title = russia2_russia.306.t
	desc = russia2_russia.306.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = {
		name = russia2_russia.306.a
		ai_chance = {
			base = 100
		}
		add_stability = -0.1
		add_opinion_modifier = {
			target = FROM
			modifier = arrested_anastasy
		}
		custom_effect_tooltip = SOV_can_have_konstantin_tt
		set_country_flag = law_triumphed_over_order
		set_country_flag = anastasy_still_in_america
		hidden_effect = {
			news_event = { id = newsrussia2.115 days = 2 }
		}
	}
}

#FROM refuses
country_event = {
	id = russia2_russia.307
	title = russia2_russia.307.t
	desc = russia2_russia.307.d
	picture = GFX_report_event_germany_politician_handshake

	is_triggered_only = yes

	option = {
		name = russia2_russia.307.a
		ai_chance = {
			base = 100
		}
		add_opinion_modifier = {
			target = FROM
			modifier = refused_arrest
		}
		hidden_effect = {
			country_event = { id = russia2_russia.308 days = 100 }
		}
	}
}

#Anastasy Intercepted
country_event = {
	id = russia2_russia.308
	title = russia2_russia.308.t
	desc = russia2_russia.308.d
	picture = GFX_report_event_czech_soldiers_01

	is_triggered_only = yes

	option = { #Goodbye
		name = russia2_russia.308.a
		ai_chance = {
			base = 100
		}
		add_stability = -0.15
		custom_effect_tooltip = SOV_can_have_konstantin_tt
		set_country_flag = law_triumphed_over_order
		hidden_effect = {
			news_event = { id = newsrussia2.115 days = 2 }
		}
	}
}

#The Arrestation of Anastasy Vonsyatsky (if you control 366)
country_event = {
	id = russia2_russia.309
	title = russia2_russia.309.t
	desc = russia2_russia.309.d
	picture = GFX_report_event_communist_leader

	is_triggered_only = yes

	option = {
		name = russia2_russia.309.a
		ai_chance = {
			base = 100
		}
		add_political_power = 50
		custom_effect_tooltip = SOV_can_have_konstantin_tt
		set_country_flag = law_triumphed_over_order
		hidden_effect = {
			news_event = { id = newsrussia2.115 days = 2 }
		}
	}
}

#Neutralize Foreign Nuisance Event
country_event = {
	id = russia2_russia.310
	title = russia2_russia.310.t
	desc = russia2_russia.310.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes

	option = { #Sure
		name = russia2_russia.310.a
		ai_chance = {
			base = 75
			modifier = {
				add = 25
				has_government = fascism
			}
		}
		add_stability = 0.05
		add_timed_idea = {
			idea = SOV_Root_russian_pact
			days = 730
		}
		set_country_flag = accepted_russian_root_agreement
		diplomatic_relation = {
			country = SOV
			relation = non_aggression_pact
			active = yes
		}
		SOV = {
			country_event = { id = russia2_russia.311 days = 1 }
		}
	}

	option = { #Refuse
		name = russia2_russia.310.b
		ai_chance = {
			base = 25
			modifier = {
				factor = 0
				has_government = fascism
			}
		}
		add_political_power = 50
		SOV = {
			country_event = { id = russia2_russia.312 days = 1 }
		}
	}
}

#FROM Accepts
country_event = {
	id = russia2_russia.311
	title = russia2_russia.311.t
	desc = russia2_russia.311.d
	picture = GFX_soldiers_handshaking_kolchak_russia2

	is_triggered_only = yes

	option = { #Nice
		name = russia2_russia.311.a
		ai_chance = {
			base = 100
		}
	}
}

#FROM Refuses
country_event = {
	id = russia2_russia.312
	title = russia2_russia.312.t
	desc = russia2_russia.312.d
	picture = GFX_report_event_french_british_officers

	is_triggered_only = yes

	option = { #Why
		name = russia2_russia.312.a
		ai_chance = {
			base = 100
		}
	}
}

#Broken ROOT-Russian Agreement
country_event = {
	id = russia2_russia.313
	title = russia2_russia.313.t
	desc = russia2_russia.313.d
	picture = GFX_report_event_generic_lend_lease

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			remove_ideas = SOV_Root_russian_pact
		}
	}

	option = { #Oh
		name = russia2_russia.313.a
		ai_chance = {
			base = 100
		}
		if = {
			limit = {
				has_offensive_war_with = SOV
			}
			set_temp_variable = { stability_loss_fascism_factor = ROOT.party_popularity@fascism }
			multiply_temp_variable = { stability_loss_fascism_factor = -1 }
			clamp_temp_variable = {
				var = stability_loss_fascism_factor
				min = -0.25
				max = -0.1
			}
			add_stability = stability_loss_fascism_factor
		}
		else = { #Won't punish the player too hard if SOV is the attacker
			add_stability = -0.05
		}
		hidden_effect = {
			SOV = {
				country_event = russia2_russia.314
			}
			clr_country_flag = accepted_russian_root_agreement
			every_country = {
				limit = {
					has_country_flag = is_target_of_russia_with_agreement
				}
				ROOT = {
					add_ai_strategy = {
						type = support
						id = PREV
						value = 1000
					}

					add_ai_strategy = {
						type = alliance
						id = PREV
						value = 1000
					}

					add_ai_strategy = {
						type = send_volunteers_desire
						id = PREV
						value = 1000
					}
				}
			}
		}
	}
}

#FROM Breaks the pact
country_event = {
	id = russia2_russia.314
	title = russia2_russia.314.t
	desc = russia2_russia.314.d
	picture = GFX_battkle_kursk_russia2

	is_triggered_only = yes

	option = { #Uh
		name = russia2_russia.314.a
		ai_chance = {
			base = 100
		}
	}
}

#Policy of Aggression
country_event = {
	id = russia2_russia.315
	title = russia2_russia.315.t
	desc = russia2_russia.315.d
	picture = GFX_report_event_french_liberation

	is_triggered_only = yes

	option = {
		name = russia2_russia.315.a
		ai_chance = {
			base = 30
		}
		add_ideas = SOV_Policy_aggression1
		custom_effect_tooltip = SOV_konstantin_can_justify
		clr_country_flag = SOV_konstantin_no_justify_allowed
	}

	option = {
		name = russia2_russia.315.b
		ai_chance = {
			base = 40
		}
		add_ideas = SOV_Policy_aggression2
		custom_effect_tooltip = SOV_konstantin_can_justify
		clr_country_flag = SOV_konstantin_no_justify_allowed
	}

	option = {
		name = russia2_russia.315.c
		ai_chance = {
			base = 30
		}
		add_ideas = SOV_Policy_aggression3
		custom_effect_tooltip = SOV_konstantin_can_justify
		clr_country_flag = SOV_konstantin_no_justify_allowed
	}
}

#Our Future Foes
country_event = {
	id = russia2_russia.316
	title = russia2_russia.316.t
	desc = russia2_russia.316.d
	picture = GFX_report_event_finnish_letter

	is_triggered_only = yes

	option = { #Europe
		name = russia2_russia.316.a
		ai_chance = {
			base = 40
		}
		custom_effect_tooltip = SOV_future_foes_tt1
		custom_effect_tooltip = SOV_future_foes_europe_tt
		every_country = {
			limit = {
				NOT = {
					original_tag = SOV
				}
				capital_scope = {
					is_on_continent = europe
				}
			}
			add_opinion_modifier = {
				target = SOV
				modifier = russian_european_focus
			}
		}
		set_country_flag = SOV_fascist_focus_on_europe
		hidden_effect = {
			news_event = { id = newsrussia2.117 days = 1 }
		}
	}

	option = { #Asia
		name = russia2_russia.316.b
		ai_chance = {
			base = 30
		}
		custom_effect_tooltip = SOV_future_foes_tt2
		custom_effect_tooltip = SOV_future_foes_asia_tt
		every_country = {
			limit = {
				NOT = {
					original_tag = SOV
				}
				capital_scope = {
					is_on_continent = asia
				}
			}
			add_opinion_modifier = {
				target = SOV
				modifier = russian_asian_focus
			}
		}
		set_country_flag = SOV_fascist_focus_on_asia
		hidden_effect = {
			news_event = { id = newsrussia2.118 days = 1 }
		}
	}

	option = { #America
		name = russia2_russia.316.c
		ai_chance = {
			base = 30
		}
		custom_effect_tooltip = SOV_future_foes_tt3
		custom_effect_tooltip = SOV_future_foes_america_tt
		every_country = {
			limit = {
				NOT = {
					original_tag = SOV
				}
				capital_scope = {
					OR = {
						is_on_continent = north_america
						is_on_continent = south_america
					}
				}
			}
			add_opinion_modifier = {
				target = SOV
				modifier = russian_american_focus
			}
		}
		set_country_flag = SOV_fascist_focus_on_america
		hidden_effect = {
			news_event = { id = newsrussia2.119 days = 1 }
		}
	}

	option = { #Defense
		name = russia2_russia.316.e
		ai_chance = {
			base = 30
		}
		add_political_power = 100
		custom_effect_tooltip = SOV_future_foes_tt4
		custom_effect_tooltip = SOV_future_foes_closed_tt
		set_country_flag = SOV_fascist_focus_on_defense
		hidden_effect = {
			news_event = { id = newsrussia2.120 days = 1 }
		}
	}
}

#Undo the hostile behaviors towards Russian enemies
country_event = {
	id = russia2_russia.317

	hidden = yes

	is_triggered_only = yes

	immediate = {
		clr_country_flag = accepted_russian_root_agreement
		every_country = {
			limit = {
				has_country_flag = is_target_of_russia_with_agreement
			}
			ROOT = {
				add_ai_strategy = {
					type = support
					id = PREV
					value = 1000
				}

				add_ai_strategy = {
					type = alliance
					id = PREV
					value = 1000
				}

				add_ai_strategy = {
					type = send_volunteers_desire
					id = PREV
					value = 1000
				}
			}
		}
	}
}

#Used for AI strategy, should work fine now, using event instead of on_action to avoid bugs and performance issues
country_event = {
	id = russia2_russia.318

	hidden = yes

	trigger = {
		OR = {
			SOV = {
				AND = {
					has_war = yes
					has_country_flag = {
						flag = SOV_ai_strategy_count_enemy_planes
						days > 7
					}
				}
			}
			has_global_flag = {
				flag = SOV_ai_strategy_count_enemy_planes_global
				days > 15
			}
		}
	}

	immediate = {
		clr_country_flag = SOV_ai_strategy_count_enemy_planes
		set_country_flag = SOV_ai_strategy_count_enemy_planes
		clr_global_flag = SOV_ai_strategy_count_enemy_planes_global
		set_global_flag = SOV_ai_strategy_count_enemy_planes_global
		set_variable = { plane_count_enemy_sov = 0 }
		for_each_scope_loop = {
			array = SOV.enemies
			break = end_array

			set_temp_variable = { temp_var_plane_count = num_deployed_planes }
			SOV = {
				add_to_variable = { plane_count_enemy_sov = temp_var_plane_count }
			}
		}
	}
}

#The fate of FROM
country_event = {
	id = russia2_russia.319
	title = russia2_russia.319.t
	desc = russia2_russia.319.d
	picture = GFX_military_parade_russia2

	is_triggered_only = yes

	option = { #Demande puppet
		name = russia2_russia.319.a
		ai_chance = {
			base = 30
		}
		event_target:SOV_target_country_fascist = {
			country_event = { id = russia2_russia.320 days = 1 }
		}
		#clear_global_event_target = SOV_target_country_fascist
		#Resets anyways, and causes errors for the next events for some reasons
	}

	option = { #Demande annex
		name = russia2_russia.319.b
		ai_chance = {
			base = 40
		}
		event_target:SOV_target_country_fascist = {
			country_event = { id = russia2_russia.323 days = 1 }
		}
		#clear_global_event_target = SOV_target_country_fascist
	}

	option = { #Enforce military access
		name = russia2_russia.319.c
		ai_chance = {
			base = 30
		}
		event_target:SOV_target_country_fascist = {
			country_event = { id = russia2_russia.326 days = 1 }
		}
		#clear_global_event_target = SOV_target_country_fascist
	}
}

#SOV Demands Puppet
country_event = {
	id = russia2_russia.320
	title = russia2_russia.320.t
	desc = russia2_russia.320.d
	picture = GFX_artillery_with_building_russia2

	is_triggered_only = yes

	option = { #Ok
		name = russia2_russia.320.a
		ai_chance = {
			base = 50
			modifier = {
				add = -40
				is_major = yes
			}
			modifier = {
				add = -25
				is_major = no
				OR = {
					any_country = {
						is_in_faction_with = ROOT
						is_major = yes
					}
					any_country = {
						has_guaranteed = ROOT
						is_major = yes
					}
				}
			}
			modifier = {
				add = 120
				ROOT = {
					is_in_faction = yes
				}
			}
		}
		if = {
			limit = {
				SOV = {
					has_idea = SOV_Impose_order
				}
			}
			SOV = {
				set_autonomy = {
					target = ROOT
					autonomy_state = autonomy_state_magistrate
				}
				country_event = { id = russia2_russia.321 days = 1 }
			}
		}
		else = {
			SOV = {
				set_autonomy = {
					target = ROOT
					autonomy_state = autonomy_puppet
				}
				country_event = { id = russia2_russia.321 days = 1 }
			}
		}
		hidden_effect = {
			news_event = { id = newsrussia2.141 days = 2 }
		}
	}

	option = { #No
		name = russia2_russia.320.b
		ai_chance = {
			base = 50
			modifier = {
				add = 40
				is_major = yes
			}
			modifier = {
				add = 25
				is_major = no
				OR = {
					any_country = {
						is_in_faction_with = ROOT
						is_major = yes
					}
					any_country = {
						has_guaranteed = ROOT
						is_major = yes
					}
				}
			}
			modifier = {
				add = 10
				ROOT = {
					is_in_faction = yes
				}
			}
		}
		SOV = {
			country_event = { id = russia2_russia.322 days = 1 }
		}
		hidden_effect = {
			news_event = { id = newsrussia2.144 days = 2 }
		}
	}
}

#FROM Accepts
country_event = {
	id = russia2_russia.321
	title = russia2_russia.321.t
	desc = russia2_russia.321.d
	picture = GFX_soldiers_handshaking_kolchak_russia2

	is_triggered_only = yes

	option = { #Yay
		name = russia2_russia.321.a
		ai_chance = {
			base = 100
		}
		clr_country_flag = is_building_up_border_fascist
	}
}

#FROM Refuses
country_event = {
	id = russia2_russia.322
	title = russia2_russia.322.t
	desc = russia2_russia.322.d
	picture = GFX_report_event_germany_politician_handshake

	is_triggered_only = yes

	option = { #Oh
		name = russia2_russia.322.a
		ai_chance = {
			base = 100
		}
		create_wargoal = {
			type = annex_everything
			target = FROM
		}
		clr_country_flag = is_building_up_border_fascist
	}
}

#SOV Demands Annex
country_event = {
	id = russia2_russia.323
	title = russia2_russia.323.t
	desc = russia2_russia.323.d
	picture = GFX_report_event_german_polish_border

	is_triggered_only = yes

	option = { #Ok
		name = russia2_russia.323.a
		ai_chance = {
			base = 60
			modifier = {
				factor = 0
				is_major = yes
			}
			modifier = {
				add = -50
				is_major = no
				OR = {
					any_country = {
						is_in_faction_with = ROOT
						is_major = yes
					}
					any_country = {
						has_guaranteed = ROOT
						is_major = yes
					}
				}
			}
			modifier = {
				add = -20
				ROOT = {
					is_in_faction = yes
				}
			}
		}
		custom_effect_tooltip = SOV_game_totally_over_TT
		hidden_effect = {
			news_event = { id = newsrussia2.140 }
		}
		SOV = {
			annex_country = {
				target = ROOT
				transfer_troops = no
			}
			country_event = { id = russia2_russia.324 days = 1 }
		}
	}

	option = { #No
		name = russia2_russia.323.b
		ai_chance = {
			base = 40
			modifier = {
				add = 60
				is_major = yes
			}
			modifier = {
				add = 50
				is_major = no
				OR = {
					any_country = {
						is_in_faction_with = ROOT
						is_major = yes
					}
					any_country = {
						has_guaranteed = ROOT
						is_major = yes
					}
				}
			}
			modifier = {
				add = 20
				ROOT = {
					is_in_faction = yes
				}
			}
		}
		hidden_effect = {
			news_event = { id = newsrussia2.143 }
		}
		SOV = {
			country_event = { id = russia2_russia.325 days = 1 }
		}
	}
}

#FROM Accepts
country_event = {
	id = russia2_russia.324
	title = russia2_russia.324.t
	desc = russia2_russia.324.d
	picture = GFX_soldiers_handshaking_kolchak_russia2

	is_triggered_only = yes

	option = { #Yay
		name = russia2_russia.324.a
		ai_chance = {
			base = 100
		}
		clr_country_flag = is_building_up_border_fascist
	}
}

#FROM Refuses
country_event = {
	id = russia2_russia.325
	title = russia2_russia.325.t
	desc = russia2_russia.325.d
	picture = GFX_operation_barbarossa_russia2

	is_triggered_only = yes

	option = { #Oh
		name = russia2_russia.325.a
		ai_chance = {
			base = 100
		}
		create_wargoal = {
			type = annex_everything
			target = FROM
		}
		clr_country_flag = is_building_up_border_fascist
	}
}

#SOV Demands Enforced Military Access
country_event = {
	id = russia2_russia.326
	title = russia2_russia.326.t
	desc = russia2_russia.326.d
	picture = GFX_menacing_tanks_russia2

	is_triggered_only = yes

	option = { #Ok
		name = russia2_russia.326.a
		ai_chance = {
			base = 80
		}
		set_country_flag = SOV_enforced_military_access
		add_ideas = SOV_Given_military_access
		SOV = {
			diplomatic_relation = {
				country = ROOT
				relation = military_access
				active = yes
			}
			country_event = { id = russia2_russia.327 days = 1 }
		}
	}

	option = { #No
		name = russia2_russia.326.b
		ai_chance = {
			base = 40
		}
		SOV = {
			country_event = { id = russia2_russia.328 days = 1 }
		}
	}
}

#FROM Accepts
country_event = {
	id = russia2_russia.327
	title = russia2_russia.327.t
	desc = russia2_russia.327.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #Yay
		name = russia2_russia.327.a
		ai_chance = {
			base = 100
		}
		clr_country_flag = is_building_up_border_fascist
	}
}

#FROM Refuses
country_event = {
	id = russia2_russia.328
	title = russia2_russia.328.t
	desc = russia2_russia.328.d
	picture = GFX_report_event_pierre_laval

	is_triggered_only = yes

	option = { #Oh
		name = russia2_russia.328.a
		ai_chance = {
			base = 100
		}
		create_wargoal = {
			type = annex_everything
			target = FROM
		}
		clr_country_flag = is_building_up_border_fascist
	}
}

#Enforced military access ends!
country_event = {
	id = russia2_russia.329
	title = russia2_russia.329.t
	desc = russia2_russia.329.d
	picture = GFX_report_event_poland_rejects

	is_triggered_only = yes

	immediate = {
		clr_country_flag = SOV_enforced_military_access
	}

	option = { #Yes
		name = russia2_russia.329.a
		ai_chance = {
			base = 100
		}
		remove_ideas = SOV_Given_military_access
		custom_effect_tooltip = can_cancel_military_access_from_SOV
		hidden_effect = {
			SOV = {
				country_event = russia2_russia.332
			}
		}
	}
}

#SOV ends enforced military access
country_event = {
	id = russia2_russia.330
	title = russia2_russia.330.t
	desc = russia2_russia.330.d
	picture = GFX_report_event_por_salazar_franco2

	is_triggered_only = yes

	immediate = {
		clr_country_flag = SOV_enforced_military_access
	}

	option = { #Yes
		name = russia2_russia.330.a
		ai_chance = {
			base = 100
		}
		remove_ideas = SOV_Given_military_access
		custom_effect_tooltip = can_cancel_military_access_from_SOV
	}
}

#SOV building up on border
country_event = {
	id = russia2_russia.331
	title = russia2_russia.331.t
	desc = russia2_russia.331.d
	picture = GFX_military_parade_kremlin_russia2

	is_triggered_only = yes

	option = { #Fuck
		name = russia2_russia.331.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = revolutions_event_tt
	}
}

#Military Access from FROM ends
country_event = {
	id = russia2_russia.332
	title = russia2_russia.332.t
	desc = russia2_russia.332.d
	picture = GFX_report_event_polish_tanks_02

	is_triggered_only = yes

	option = { #Oh
		name = russia2_russia.332.a
		ai_chance = {
			base = 100
		}
	}
}

#Tsar Marriage
country_event = {
	id = russia2_russia.333
	title = russia2_russia.333.t
	desc = russia2_russia.333.d
	picture = GFX_royal_marriage_tsar_russia2

	fire_only_once = yes

	trigger = {
		has_country_leader = {
			character = SOV_Vladimir_kirillovich
			ruling_only = yes
		}
		date > 1938.01.01
	}

	option = { #Yay
		name = russia2_russia.333.a
		ai_chance = {
			base = 100
		}
		add_political_power = 100
		set_country_flag = tsar_marriage_happened
	}
}

#Cancel military access with SOV if war
country_event = {
	id = russia2_russia.334

	hidden = yes

	is_triggered_only = yes

	immediate = {
		clr_country_flag = SOV_enforced_military_access
	}
}

#Lost State Receive Events to be Integreated Back to Russia
country_event = {
	id = russia2_russia.335
	title = russia2_russia.335.t
	desc = russia2_russia.335.d
	picture = GFX_report_event_south_africa_patrol

	is_triggered_only = yes

	option = { #Yay
		name = russia2_russia.335.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				ROOT = {
					is_faction_leader = yes
				}
			}
		}
		SOV = {
			annex_country = {
				target = ROOT
			}
			country_event = { id = russia2_russia.336 hours = 12 }
		}
	}

	option = { #No
		name = russia2_russia.335.b
		ai_chance = {
			base = 90
			modifier = {
				add = 100
				is_faction_leader = yes
			}
		}
		SOV = {
			country_event = { id = russia2_russia.337 hours = 12 }
		}
		if = {
			limit = {
				SOV = {
					is_ai = no
				}
			}
			ROOT = {
				add_ideas = SOV_Fighting_against_the_russians
			}
		}
		if = {
			limit = {
				ROOT = {
					NOT = {
						is_faction_leader = yes
					}
				}
				any_country = {
					is_faction_leader = yes
					is_lost_state = yes
					exists = yes
				}
			}
			random_country = {
				limit = {
					is_faction_leader = yes
					is_lost_state = yes
					exists = yes
				}
				add_to_faction = ROOT
			}
		}
	}
}

#Lost State has Accepted to be Reintegrated
country_event = {
	id = russia2_russia.336
	title = russia2_russia.336.t
	desc = russia2_russia.336.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #Yay
		name = russia2_russia.336.a
		ai_chance = {
			base = 100
		}
	}
}

#Lost State has Refused to be Reintegrated
country_event = {
	id = russia2_russia.337
	title = russia2_russia.337.t
	desc = russia2_russia.337.d
	picture = GFX_artillery_with_building_russia2

	is_triggered_only = yes

	option = { #Yay
		name = russia2_russia.337.a
		ai_chance = {
			base = 100
		}
		create_wargoal = {
			type = annex_everything
			target = FROM
		}
	}
}

#Event for Germany (Memories)
country_event = {
	id = russia2_russia.338
	title = russia2_russia.338.t
	desc = russia2_russia.338.d
	picture = GFX_report_event_fascist_gathering

	is_triggered_only = yes

	option = { #Ask for a treaty of friendship
		name = russia2_russia.338.a
		ai_chance = {
			base = 40
		}
		trigger = {
			GER = {
				has_government = fascism
			}
		}
		add_war_support = -0.05
		GER = {
			country_event = { id = russia2_russia.339 days = 1 }
		}
	}

	option = { #Announce hostility
		name = russia2_russia.338.b
		ai_chance = {
			base = 60
		}
		add_stability = 0.05
		add_opinion_modifier = {
			target = GER
			modifier = hostile_russian_german_relations
		}
		GER = {
			country_event = { id = russia2_russia.342 days = 1 }
		}
	}
}

#Russo-German Treaty
country_event = {
	id = russia2_russia.339
	title = russia2_russia.339.t
	desc = russia2_russia.339.d
	picture = GFX_report_event_hol_cabinet_de_geer

	is_triggered_only = yes

	option = { #Yes
		name = russia2_russia.339.a
		ai_chance = {
			base = 75
		}
		add_timed_idea = {
			idea = SOV_Russo_german_treaty_fascist
			days = 180
		}
		diplomatic_relation = {
			country = SOV
			relation = non_aggression_pact
			active = yes
		}
		add_opinion_modifier = {
			target = SOV
			modifier = accepted_russo_german_treaty
		}
		SOV = {
			country_event = { id = russia2_russia.340 days = 1 }
		}
	}

	option = { #No
		name = russia2_russia.339.b
		ai_chance = {
			base = 25
		}
		add_opinion_modifier = {
			target = SOV
			modifier = refused_russo_german_treaty
		}
		SOV = {
			country_event = { id = russia2_russia.341 days = 1 }
		}
	}
}

#GER Accepts
country_event = {
	id = russia2_russia.340
	title = russia2_russia.340.t
	desc = russia2_russia.340.d
	picture = GFX_report_event_hitler_handshake

	is_triggered_only = yes

	option = { #Yay
		name = russia2_russia.340.a
		ai_chance = {
			base = 100
		}
		add_timed_idea = {
			idea = SOV_Russo_german_treaty_fascist
			days = 180
		}
		add_opinion_modifier = {
			target = GER
			modifier = accepted_russo_german_treaty
		}
	}
}

#GER Refuses
country_event = {
	id = russia2_russia.341
	title = russia2_russia.341.t
	desc = russia2_russia.341.d
	picture = GFX_report_event_germany_politician_handshake

	is_triggered_only = yes

	option = { #Uh
		name = russia2_russia.341.a
		ai_chance = {
			base = 100
		}
		add_opinion_modifier = {
			target = GER
			modifier = refused_russo_german_treaty
		}
	}
}

#SOV Announces Hostilities
country_event = {
	id = russia2_russia.342
	title = russia2_russia.342.t
	desc = russia2_russia.342.d
	picture = GFX_report_event_hitler_parade

	is_triggered_only = yes

	option = { #Uh
		name = russia2_russia.342.a
		ai_chance = {
			base = 100
		}
		add_opinion_modifier = {
			target = SOV
			modifier = hostile_russian_german_relations
		}
	}
}

#Return of Konstantin (control state)
country_event = {
	id = russia2_russia.343
	title = russia2_russia.343.t
	desc = russia2_russia.343.d
	picture = GFX_konstantin_russia2

	is_triggered_only = yes

	option = {
		name = russia2_russia.343.a
		ai_chance = {
			base = 100
		}
		set_politics = {
			ruling_party = fascism
		}
		add_popularity = {
			ideology = fascism
			popularity = 0.2
		}
		hidden_effect = {
			set_cosmetic_tag = RFP
			country_event = { id = russia2_russia.282 days = 100 }
			if = {
				limit = {
					MON = {
						is_subject_of = SOV
					}
				}
				MON = {
					set_politics = {
						ruling_party = fascism
					}
				}
			}
			if = {
				limit = {
					TAN = {
						is_subject_of = SOV
					}
				}
				TAN = {
					set_politics = {
						ruling_party = fascism
					}
				}
			}
		}
	}
}

#Konstantin was executed and Anastasy takes over
country_event = {
	id = russia2_russia.344
	title = russia2_russia.344.t
	desc = russia2_russia.344.d
	picture = GFX_report_event_german_reichstag_gathering

	is_triggered_only = yes

	option = { #If Konstantin is executed, Anastasy is supposed to take over anyways
		name = russia2_russia.344.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = SOV_can_have_anastasy_tt
		set_country_flag = order_triumphed_over_law
		add_ideas = SOV_Uncertain_fate
		add_ideas = SOV_Russian_hypernationalism
		set_politics = {
			ruling_party = fascism
		}
		add_popularity = {
			ideology = fascism
			popularity = 0.2
		}
		hidden_effect = {
			set_cosmetic_tag = RFP
		}
	}
}

#The Tragedy of GetYear (Anastasy)
country_event = {
	id = russia2_russia.345
	title = russia2_russia.345.t
	desc = russia2_russia.345.d
	picture = GFX_report_event_dead_soldiers

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			news_event = {
				id = newsrussia2.126
				days = 2
			}
		}
	}

	option = { #Blame it on GER
		trigger = {
			country_exists = GER
		}
		name = russia2_russia.345.a
		ai_chance = {
			base = 25
		}
		add_manpower = -2
		add_war_support = 0.05
		add_political_power = -150
		add_opinion_modifier = {
			target = GER
			modifier = anti_german_sentiment
		}
		add_ideas = SOV_Anti_german_sentiment
		hidden_effect = {
			GER = {
				country_event = { id = russia2_russia.347 days = 1 }
			}
		}
	}

	option = { #Blame it on JAP
		trigger = {
			country_exists = JAP
		}
		name = russia2_russia.345.b
		ai_chance = {
			base = 25
		}
		add_manpower = -2
		add_war_support = 0.05
		add_political_power = -100
		add_opinion_modifier = {
			target = JAP
			modifier = anti_japanese_sentiment
		}
		add_ideas = SOV_Anti_japanese_sentiment
		hidden_effect = {
			JAP = {
				country_event = { id = russia2_russia.347 days = 1 }
			}
		}
	}

	option = { #Blame it on the real murderers
		name = russia2_russia.345.c
		ai_chance = {
			base = 25
		}
		add_stability = 0.05
		add_war_support = -0.1
		add_political_power = -50
	}

	option = { #This is our fault
		name = russia2_russia.345.e
		ai_chance = {
			base = 25
		}
		add_manpower = -2
		add_war_support = 0.05
		add_stability = 0.05
		add_popularity = {
			ideology = fascism
			popularity = -0.1
		}
		add_political_power = -250
	}
}

#The Tragedy of GetYear (SOV_pavel_bermondt)
country_event = {
	id = russia2_russia.346
	title = russia2_russia.346.t
	desc = russia2_russia.346.d
	picture = GFX_report_event_dead_soldiers

	immediate = {
		hidden_effect = {
			set_country_flag = SOV_pavel_bermondt_killed
			SOV = {
				SOV_Pavel_bermondt_avalov = {
					remove_unit_leader_role = yes
				}
			}
			news_event = {
				id = newsrussia2.127
				days = 2
			}
		}
	}

	is_triggered_only = yes

	option = { #Blame it on GER
		trigger = {
			country_exists = GER
		}
		name = russia2_russia.346.a
		ai_chance = {
			base = 25
		}
		add_manpower = -2
		add_war_support = 0.05
		add_political_power = -150
		add_opinion_modifier = {
			target = GER
			modifier = anti_german_sentiment
		}
		add_ideas = SOV_Anti_german_sentiment
		hidden_effect = {
			GER = {
				country_event = { id = russia2_russia.348 days = 1 }
			}
		}
	}

	option = { #Blame it on JAP
		trigger = {
			country_exists = JAP
		}
		name = russia2_russia.346.b
		ai_chance = {
			base = 25
		}
		add_manpower = -2
		add_war_support = 0.05
		add_political_power = -100
		add_opinion_modifier = {
			target = JAP
			modifier = anti_japanese_sentiment
		}
		add_ideas = SOV_Anti_japanese_sentiment
		hidden_effect = {
			JAP = {
				country_event = { id = russia2_russia.348 days = 1 }
			}
		}
	}

	option = { #Blame it on the real murderers
		name = russia2_russia.346.c
		ai_chance = {
			base = 25
		}
		add_manpower = -2
		add_stability = 0.05
		add_war_support = -0.1
		add_political_power = -50
	}

	option = { #This is our fault
		name = russia2_russia.346.e
		ai_chance = {
			base = 25
		}
		add_manpower = -2
		add_war_support = 0.05
		add_stability = 0.05
		add_popularity = {
			ideology = fascism
			popularity = -0.1
		}
		add_political_power = -200
	}
}

#Anastasy Tragedy and JAP or GER was accused
country_event = {
	id = russia2_russia.347
	title = russia2_russia.347.t
	desc = russia2_russia.347.d
	picture = GFX_report_event_generic_military_parade

	is_triggered_only = yes

	option = {
		name = russia2_russia.347.a
		ai_chance = {
			base = 100
		}
		add_opinion_modifier = {
			target = SOV
			modifier = accused_by_sov
		}
	}
}

#Pavel Tragedy and JAP or GER was accused
country_event = {
	id = russia2_russia.348
	title = russia2_russia.348.t
	desc = russia2_russia.348.d
	picture = GFX_report_event_generic_military_parade

	is_triggered_only = yes

	option = {
		name = russia2_russia.348.a
		ai_chance = {
			base = 100
		}
		add_opinion_modifier = {
			target = SOV
			modifier = accused_by_sov
		}
	}
}

#Transfer of Power Pavel
country_event = {
	id = russia2_russia.349
	title = russia2_russia.349.t
	desc = russia2_russia.349.d
	picture = GFX_soldiers_handshaking_kolchak_russia2

	is_triggered_only = yes

	option = { #Yes
		name = russia2_russia.349.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				has_country_flag = RUS_AI_PAVEL_BERMONDT_AVALOV_NEUTRALITY_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_PAVEL_BERMONDT_AVALOV_NEUTRALITY_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		add_stability = 0.05
		add_country_leader_role = {
			character = SOV_Pavel_bermondt_avalov
			promote_leader = yes
			country_leader = {
				desc = SOV_Pavel_bermondt_avalov_desc
				ideology = military_junta_russia
				expire = "1965.1.1.1"
				traits = {
					russia2_firm_grip
					russia2_imperial_russian_army
				}
			}
		}
	}

	option = { #No
		name = russia2_russia.349.b
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				has_country_flag = RUS_AI_ANDREY_VLASOV_NEUTRALITY_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_ANDREY_VLASOV_NEUTRALITY_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		add_political_power = 50
	}
}

#Anton Denikin resigns if fascists take power
country_event = {
	id = russia2_russia.350
	title = russia2_russia.350.t
	desc = russia2_russia.350.d
	picture = GFX_denikin_portrait_russia2

	trigger = {
		original_tag = SOV
		has_government = fascism
		has_completed_focus = SOV_new_way_life
		is_subject = no
		OR = {
			SOV_Anton_ivanovich_denikin = { is_unit_leader = yes }
			any_unit_leader = {
				has_id = 514
			}
		}
	}

	mean_time_to_happen = {
		days = 140
	}

	fire_only_once = yes

	option = { #Goodbye Denikin
		name = russia2_russia.350.a
		ai_chance = {
			base = 100
		}
		SOV = {
			every_character = {
				limit = {
					OR = {
						is_character = SOV_Anton_ivanovich_denikin
						is_character = SOV_Vladimir_kislitsin
						is_character = SOV_Mikhail_diterikhs
						is_character = SOV_Mikhail_skorodumov
						is_character = SOV_Viktorin_molchanov
						is_character = SOV_Andrei_shkuro
					}
				}
				remove_unit_leader_role = yes
			}
		}
		set_country_flag = denikin_resigned_fascist
	}
}

#Review our position
country_event = {
	id = russia2_russia.351
	title = russia2_russia.351.t
	desc = russia2_russia.351.d
	picture = GFX_military_parade_kremlin_russia2

	is_triggered_only = yes

	option = { #Europe
		name = russia2_russia.351.a
		ai_chance = {
			base = 20
		}
		if = {
			limit = {
				has_country_flag = SOV_fascist_focus_on_europe
			}
			add_stability = -0.15
			add_war_support = -0.15
		}
		else = {
			add_stability = -0.05
			add_war_support = -0.05
		}
		remove_ideas = SOV_Uncertain_fate
		add_ideas = SOV_Alliance_with_europe
		create_faction = russian_accords
		hidden_effect = {
			news_event = { id = newsrussia2.121 days = 1 }
		}
	}

	option = { #Asia
		name = russia2_russia.351.b
		ai_chance = {
			base = 40
		}
		if = {
			limit = {
				has_country_flag = SOV_fascist_focus_on_asia
			}
			add_stability = -0.1
			add_war_support = -0.1
		}
		remove_ideas = SOV_Uncertain_fate
		add_ideas = SOV_Alliance_with_asia
		create_faction = russian_accords
		hidden_effect = {
			news_event = { id = newsrussia2.122 days = 1 }
		}
	}

	option = { #Closed
		name = russia2_russia.351.c
		ai_chance = {
			base = 40
		}
		if = {
			limit = {
				has_country_flag = SOV_fascist_focus_on_defense
			}
			add_stability = 0.1
			add_war_support = 0.1
		}
		else = {
			add_stability = 0.05
			add_war_support = 0.05
		}
		remove_ideas = SOV_Uncertain_fate
		add_ideas = SOV_Closed_alliance
		create_faction = russian_accords
		custom_effect_tooltip = assure_neighbouring_safety_tt
		hidden_effect = {
			news_event = { id = newsrussia2.124 days = 1 }
		}
	}
}

#The "Outside" Question
country_event = {
	id = russia2_russia.352
	title = russia2_russia.352.t
	desc = russia2_russia.352.d
	picture = GFX_military_parade_kremlin_russia2

	is_triggered_only = yes

	option = { #Europe
		name = russia2_russia.352.a
		ai_chance = {
			base = 20
		}
		if = {
			limit = {
				has_country_flag = SOV_fascist_focus_on_europe
			}
			add_stability = -0.15
			add_war_support = -0.15
		}
		else = {
			add_stability = -0.05
			add_war_support = -0.05
		}
		remove_ideas = SOV_Uncertain_fate
		add_ideas = SOV_Alliance_with_europe
		create_faction = russian_accords
		hidden_effect = {
			news_event = { id = newsrussia2.121 days = 1 }
		}
	}

	option = { #America
		name = russia2_russia.352.b
		ai_chance = {
			base = 40
		}
		if = {
			limit = {
				has_country_flag = SOV_fascist_focus_on_america
			}
			add_stability = -0.1
			add_war_support = -0.1
		}
		remove_ideas = SOV_Uncertain_fate
		add_ideas = SOV_Alliance_with_america
		create_faction = russian_accords
		hidden_effect = {
			news_event = { id = newsrussia2.123 days = 1 }
		}
	}

	option = { #Closed
		name = russia2_russia.352.c
		ai_chance = {
			base = 40
		}
		if = {
			limit = {
				has_country_flag = SOV_fascist_focus_on_defense
			}
			add_stability = 0.1
			add_war_support = 0.1
		}
		else = {
			add_stability = 0.05
			add_war_support = 0.05
		}
		remove_ideas = SOV_Uncertain_fate
		add_ideas = SOV_Closed_alliance
		create_faction = russian_accords
		custom_effect_tooltip = assure_neighbouring_safety_tt
		hidden_effect = {
			news_event = { id = newsrussia2.124 days = 1 }
		}
	}
}

#SOV Wants an Alliance
country_event = {
	id = russia2_russia.353
	title = russia2_russia.353.t
	desc = russia2_russia.353.d
	picture = GFX_report_event_bose_meeting

	is_triggered_only = yes

	option = { #Join
		name = russia2_russia.353.a
		ai_chance = {
			base = 85
			modifier = {
				add = -30
				NOT = {
					has_government = fascism
				}
			}
		}
		SOV = {
			country_event = { id = russia2_russia.354 days = 1}
			add_ai_strategy = {
				type = alliance
				id = ROOT
				value = 100
			}
		}
		ROOT = {
			add_ai_strategy = {
				type = alliance
				id = SOV
				value = 100
			}
		}
	}

	option = {
		name = russia2_russia.353.a
		ai_chance = {
			base = 15
			modifier = {
				add = 30
				NOT = {
					has_government = fascism
				}
			}
		}
		SOV = {
			country_event = { id = russia2_russia.355 days = 1}
		}
	}
}

#FROM Accepts
country_event = {
	id = russia2_russia.354
	title = russia2_russia.354.t
	desc = russia2_russia.354.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #Good
		name = russia2_russia.354.a
		ai_chance = {
			base = 100
		}
		ROOT = {
			add_to_faction = FROM
		}
		FROM = {
			clr_country_flag = SOV_is_demanding_alliance
		}
	}
}

#FROM Refuses
country_event = {
	id = russia2_russia.355
	title = russia2_russia.355.t
	desc = russia2_russia.355.d
	picture = GFX_report_event_ast_paras

	is_triggered_only = yes

	option = { #Eh
		name = russia2_russia.355.a
		ai_chance = {
			base = 100
		}
		FROM = {
			clr_country_flag = SOV_is_demanding_alliance
		}
	}
}

#Gains core on Alaska if the Player Owns the State
country_event = {
	id = russia2_russia.356
	title = russia2_russia.356.t
	desc = russia2_russia.356.d
	picture = GFX_report_event_eng_blackshirt_march

	trigger = {
		tag = SOV
		has_government = fascism
		OR = {
			controls_state = 463
			any_country = {
				is_subject_of = SOV
				controls_state = 463
			}
		}
		has_completed_focus = SOV_new_russian_era
	}

	mean_time_to_happen = {
		days = 35
	}

	fire_only_once = yes

	option = { #Good
		name = russia2_russia.356.a
		ai_chance = {
			base = 100
		}
		add_state_core = 463
		if = {
			limit = {
				NOT = {
					owns_state = 463
				}
			}
			transfer_state = 463
		}
	}
}

#Profit from FROM (Russian States)
country_event = {
	id = russia2_russia.360
	title = russia2_russia.360.t
	desc = russia2_russia.360.d
	picture = GFX_military_parade_kremlin_russia2

	is_triggered_only = yes

	option = { #Great!
		name = russia2_russia.360.a
		ai_chance = {
			base = 100
		}
		set_variable = { economicgainfactor = 0 }
		randomize_variable = {
			var = economicgainfactor
			distribution = uniform
			min = 0.5
			max = 3.5
		}
		round_variable = economicgainfactor
		if = {
			limit = {
				check_variable = {
					var = economicgainfactor
					value = 1
					compare = equals
				}
			}
			random_owned_controlled_state = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
		}
		else_if = {
			limit = {
				check_variable = {
					var = economicgainfactor
					value = 2
					compare = equals
				}
			}
			random_owned_controlled_state = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
		}
		else_if = {
			limit = {
				check_variable = {
					var = economicgainfactor
					value = 3
					compare = equals
				}
			}
			random_owned_controlled_state = {
				limit = {
					is_coastal = yes
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
		}
	}
}

#Send Profit to SOV
country_event = {
	id = russia2_russia.361

	is_triggered_only = yes

	hidden = yes

	immediate = {
		if = {
			limit = {
				is_subject_of = SOV
			}
			set_temp_variable = { nexteconomicevent = 0 }
			randomize_temp_variable = {
				var = nexteconomicevent
				distribution = uniform
				min = 100
				max = 365
			}
			round_temp_variable = nexteconomicevent
			SOV = {
				country_event = { id = russia2_russia.360 days = var:nexteconomicevent }
			}
		}
	}
}

#International Influence 1
country_event = {
	id = russia2_russia.362
	title = russia2_russia.362.t
	desc = russia2_russia.362.d
	picture = GFX_report_event_generic_rally2

	is_triggered_only = yes

	option = { #Uh
		name = russia2_russia.362.a
		ai_chance = {
			base = 100
		}
		if = {
			limit = {
				communism < 0.05
			}
			add_popularity = {
				ideology = communism
				popularity = 0.10
			}
		}
		else = {
			add_popularity = {
				ideology = communism
				popularity = 0.05
			}
		}
		add_ideas = SOV_Communist_influence_international_1
		activate_mission = SOV_appeal_communist_supporters
	}
}

#Can promote Communism in FROM - level 2
country_event = {
	id = russia2_russia.363
	title = russia2_russia.363.t
	desc = russia2_russia.363.d
	picture = GFX_report_event_generic_rally2

	is_triggered_only = yes

	option = { #Great
		name = russia2_russia.363.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = unlock_decision_international_recognition_from_tt
	}
}

#International Influence 2
country_event = {
	id = russia2_russia.364
	title = russia2_russia.364.t
	desc = russia2_russia.364.d
	picture = GFX_military_parade_kremlin_russia2

	is_triggered_only = yes

	option = { #Uh
		name = russia2_russia.364.a
		ai_chance = {
			base = 100
		}
		swap_ideas = {
			remove_idea = SOV_Communist_influence_international_1
			add_idea = SOV_Communist_influence_international_2
		}
		activate_mission = SOV_international_recognition
	}
}

#Can promote Communism in FROM - level 3
country_event = {
	id = russia2_russia.365
	title = russia2_russia.365.t
	desc = russia2_russia.365.d
	picture = GFX_report_event_generic_rifles

	is_triggered_only = yes

	option = { #Great
		name = russia2_russia.365.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = unlock_decision_armed_communist_forces_from_tt
	}
}

#International Influence 3
country_event = {
	id = russia2_russia.366
	title = russia2_russia.366.t
	desc = russia2_russia.366.d
	picture = GFX_soldiers_parade_russia2

	is_triggered_only = yes

	option = { #UH
		name = russia2_russia.366.a
		ai_chance = {
			base = 100
		}
		swap_ideas = {
			remove_idea = SOV_Communist_influence_international_2
			add_idea = SOV_Communist_influence_international_3
		}
		activate_mission = SOV_armed_communist_forces
	}
}

#Communist Ultimatum
country_event = {
	id = russia2_russia.367
	title = russia2_russia.367.t
	desc = russia2_russia.367.d
	picture = GFX_report_event_soviet_in_riga

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_country_flag = communist_ultimatum_triggered
			remove_ideas = SOV_Communist_influence_international_3
			clr_country_flag = SOV_AI_is_target_international
			SOV = {
				clr_country_flag = SOV_AI_is_influencing_international
			}
		}
	}

	option = { #Civil war
		name = russia2_russia.367.a
		trigger = {
			num_of_controlled_states > 1
		}
		ai_chance = {
			base = 50
			modifier = {
				add = 25
				is_major = yes
			}
		}
		start_civil_war = {
			ruling_party = ROOT
			ideology = communism
			size = party_popularity@communism
		}
		set_country_flag = is_civil_war_international
		hidden_effect = {
			news_event = { id = newsrussia2.145 hours = 5 }
			SOV = {
				country_event = { id = russia2_russia.370 }
			}
			every_other_country = {
				limit = {
					has_civil_war = yes
					has_government = communism
					original_tag = ROOT
					any_country = {
						has_war_with = PREV
						has_civil_war = yes
						has_country_flag = communist_ultimatum_triggered
					}
				}
				set_country_flag = is_communist_triggered_revolution
				add_ideas = SOV_Supporters_fourth_international
			}
		}
	}

	option = { #Submit
		name = russia2_russia.367.b
		ai_chance = {
			base = 50
			modifier = {
				add = -25
				is_major = yes
			}
		}
		add_stability = -0.1
		set_politics = {
			ruling_party = communism
		}
		add_popularity = {
			ideology = communism
			popularity = 0.1
		}
		add_ideas = SOV_Supporters_fourth_international
		set_country_flag = submit_communism_international
		hidden_effect = {
			news_event = { id = newsrussia2.149 hours = 5 }
			SOV = {
				country_event = { id = russia2_russia.371 }
			}
		}
	}
}

#Communism Defeated
country_event = {
	id = russia2_russia.368
	title = russia2_russia.368.t
	desc = russia2_russia.368.d
	picture = GFX_report_event_soviet_purge_trial

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			clr_country_flag = SOV_AI_is_target_international
		}
	}

	option = { #Good
		name = russia2_russia.368.a
		ai_chance = {
			base = 100
		}
		add_stability = 0.05
		add_timed_idea = {
			idea = SOV_Communism_defeated
			days = 100
		}
		SOV = {
			country_event = russia2_russia.369
		}
	}
}

#Communism Defeated in FROM
country_event = {
	id = russia2_russia.369
	title = russia2_russia.369.t
	desc = russia2_russia.369.d
	picture = GFX_report_event_soviet_purge_trial

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			clr_country_flag = SOV_AI_is_influencing_international
		}
	}

	option = { #Uh
		name = russia2_russia.369.a
		ai_chance = {
			base = 100
		}
	}
}

#Civil war in FROM
country_event = {
	id = russia2_russia.370
	title = russia2_russia.370.t
	desc = russia2_russia.370.d
	picture = GFX_battkle_kursk_russia2

	is_triggered_only = yes

	option = { #Let's go
		name = russia2_russia.370.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = unlock_decision_can_puppet_communist_uprising
		hidden_effect = {
			SOV = {
				add_to_variable = { sov_trotsky_successful_revolution_count = 1 }
				if = {
					limit = {
						check_variable = {
							var = sov_trotsky_successful_revolution_count
							value = 5
							compare = greater_than_or_equals
						}
						NOT = {
							is_in_array = { global.quick_revolution_achievement = THIS }
						}
					}
					add_to_array = { global.quick_revolution_achievement = THIS }
					set_variable = { global.quick_revolution_achievement_date@THIS = global.date }
					set_country_flag = russia_reworked_new_achievement
					if = {
						limit = {
							has_global_flag = russia_reworked_achievements_enabled
						}
						scoped_sound_effect = "russia_reworked_unlock_achievement"
					}
				}
			}
		}
	}
}

#FROM Submits (becomes Communist)
country_event = {
	id = russia2_russia.371
	title = russia2_russia.371.t
	desc = russia2_russia.371.d
	picture = GFX_report_event_spain_civil_war_volunteers_02

	is_triggered_only = yes

	option = { #Good
		name = russia2_russia.371.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = unlock_decision_can_invite_communist_submit
		hidden_effect = {
			SOV = {
				add_to_variable = { sov_trotsky_successful_revolution_count = 1 }
				if = {
					limit = {
						check_variable = {
							var = sov_trotsky_successful_revolution_count
							value = 5
							compare = greater_than_or_equals
						}
						NOT = {
							is_in_array = { global.quick_revolution_achievement = THIS }
						}
					}
					add_to_array = { global.quick_revolution_achievement = THIS }
					set_variable = { global.quick_revolution_achievement_date@THIS = global.date }
					set_country_flag = russia_reworked_new_achievement
					if = {
						limit = {
							has_global_flag = russia_reworked_achievements_enabled
						}
						scoped_sound_effect = "russia_reworked_unlock_achievement"
					}
				}
			}
		}
	}
}

#Invitation to 4th International (Submited)
country_event = {
	id = russia2_russia.372
	title = russia2_russia.372.t
	desc = russia2_russia.372.d
	picture = GFX_report_event_soviet_purge_speech

	is_triggered_only = yes

	option = { #Yes
		name = russia2_russia.372.a
		ai_chance = {
			base = 100
		}
		SOV = {
			add_to_faction = ROOT
			country_event = russia2_russia.373
		}
		hidden_effect = {
			news_event = { id = newsrussia2.146 hours = 5 }
		}
	}

	option = { #No (player only)
		name = russia2_russia.372.b
		ai_chance = {
			base = 0
		}
		SOV = {
			country_event = russia2_russia.374
		}
	}
}

#FROM Joins
country_event = {
	id = russia2_russia.373
	title = russia2_russia.373.t
	desc = russia2_russia.373.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #Good
		name = russia2_russia.373.a
		ai_chance = {
			base = 100
		}
	}
}

#FROM Refuses
country_event = {
	id = russia2_russia.374
	title = russia2_russia.374.t
	desc = russia2_russia.374.d
	picture = GFX_report_event_poland_rejects

	is_triggered_only = yes

	option = { #Oh
		name = russia2_russia.374.a
		ai_chance = {
			base = 100
		}
	}
}

#Country gets investment from SOV
country_event = {
	id = russia2_russia.375
	title = russia2_russia.375.t
	desc = russia2_russia.375.d
	picture = GFX_report_event_physics_lab_02

	is_triggered_only = yes

	option = { #Cool
		name = russia2_russia.375.a
		ai_chance = {
			base = 100
		}
		add_opinion_modifier = {
			target = SOV
			modifier = soviet_investment
		}
		random_owned_state = {
			add_extra_state_shared_building_slots = 2
			add_building_construction  = {
				type = arms_factory
				level = 2
				instant_build = yes
			}
		}
		random_owned_state = {
			add_extra_state_shared_building_slots = 2
			add_building_construction  = {
				type = industrial_complex
				level = 2
				instant_build = yes
			}
		}
		add_popularity = {
			ideology = communism
			popularity = 0.1
		}
	}
}

#FROM Communists can fire revolution
country_event = {
	id = russia2_russia.376
	title = russia2_russia.376.t
	desc = russia2_russia.376.d
	picture = GFX_soldiers_handshaking_kolchak_russia2

	is_triggered_only = yes

	option = { #Great
		name = russia2_russia.376.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = from_communists_may_fire_revolution
	}
}

#Puppet asks OVERLORD for help against Communism
country_event = {
	id = russia2_russia.377
	title = russia2_russia.377.t
	desc = russia2_russia.377.d
	picture = GFX_report_event_generic_riot

	is_triggered_only = yes

	option = { #Yes
		name = russia2_russia.377.a
		ai_chance = {
			base = 75
		}
		add_political_power = -100
		FROM = {
			country_event = russia2_russia.378
		}
	}

	option = { #Yes extra
		name = russia2_russia.377.b
		ai_chance = {
			base = 75
		}
		add_political_power = -200
		FROM = {
			country_event = russia2_russia.380
		}
	}

	option = { #No
		name = russia2_russia.377.c
		ai_chance = {
			base = 25
		}
		FROM = {
			country_event = russia2_russia.379
		}
	}
}

#OVERLORD Accepts
country_event = {
	id = russia2_russia.378
	title = russia2_russia.378.t
	desc = russia2_russia.378.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #Great
		name = russia2_russia.378.a
		ai_chance = {
			base = 100
		}
		add_popularity = {
			ideology = communism
			popularity = -0.05
		}
		add_opinion_modifier = {
			target = FROM
			modifier = help_against_communism
		}
	}
}

#OVERLORD Refuses
country_event = {
	id = russia2_russia.379
	title = russia2_russia.379.t
	desc = russia2_russia.379.d
	picture = GFX_report_event_generic_riot

	is_triggered_only = yes

	option = { #Uh..
		name = russia2_russia.379.a
		ai_chance = {
			base = 100
		}
	}
}

#OVERLORD Accepts extra aid
country_event = {
	id = russia2_russia.380
	title = russia2_russia.380.t
	desc = russia2_russia.380.d
	picture = GFX_report_event_british_inspect_troops

	is_triggered_only = yes

	option = { #Great!
		name = russia2_russia.380.a
		ai_chance = {
			base = 100
		}
		add_popularity = {
			ideology = communism
			popularity = -0.1
		}
		add_opinion_modifier = {
			target = FROM
			modifier = help_against_communism2
		}
	}
}

#Influence of Komintern (Iron Curtain)
country_event = {
	id = russia2_russia.381
	title = russia2_russia.381.t
	desc = russia2_russia.381.d
	picture = GFX_report_event_stalin_01

	is_triggered_only = yes

	option = { #Uhh
		name = russia2_russia.381.a
		ai_chance = {
			base = 100
		}
		add_popularity = {
			ideology = communism
			popularity = 0.05
		}
		add_timed_idea = {
			idea = SOV_Influence_iron_curtain
			days = 365
		}
		set_country_flag = target_influence_iron_curtain
	}
}

#Civil War is close
country_event = {
	id = russia2_russia.382
	title = russia2_russia.382.t
	desc = russia2_russia.382.d
	picture = GFX_soldiers_parade_russia2

	is_triggered_only = yes

	immediate = {
		set_country_flag = target_civil_war_iron_curtain
	}

	option = { #Uhh
		name = russia2_russia.382.a
		ai_chance = {
			base = 100
		}
		add_popularity = {
			ideology = communism
			popularity = 0.1
		}
		activate_mission = SOV_civil_war_iron_curtain_timeout
	}
}

#Civil War!
country_event = {
	id = russia2_russia.383
	title = russia2_russia.383.t
	desc = russia2_russia.383.d
	picture = GFX_soldiers_with_guns_russia2

	is_triggered_only = yes

	option = { #UHH
		name = russia2_russia.383.a
		ai_chance = {
			base = 100
		}
		hidden_effect = {
			if = {
				limit = {
					is_subject = yes
				}
				OVERLORD = {
					country_event = russia2_russia.388
					set_autonomy = {
						target = ROOT
						autonomy_state = autonomy_free
					}
				}
			}
			if = {
				limit = {
					is_in_faction = yes
				}
				leave_faction = yes
			}
		}
		add_timed_idea = {
			idea = SOV_Cold_civil_war
			days = 180
		}
		start_civil_war = {
			ruling_party = ROOT
			ideology = communism
			size = party_popularity@communism
		}
		hidden_effect = {
			news_event = { id = newsrussia2.147 hours = 5 }
			SOV = {
				country_event = { id = russia2_russia.384 }
			}
			every_other_country = {
				limit = {
					has_civil_war = yes
					has_government = communism
					original_tag = ROOT
					any_country = {
						has_war_with = PREV
						has_civil_war = yes
						has_country_flag = civil_war_iron_curtain
					}
				}
				set_country_flag = is_communist_civil_war_iron_curtain
				add_timed_idea = {
					idea = SOV_Cold_civil_war
					days = 180
				}
				SOV = {
					add_ai_strategy = {
						type = send_volunteers_desire
						id = PREV
						value = 100
					}
				}
			}
		}
	}
}

#Civil War in FROM
country_event = {
	id = russia2_russia.384
	title = russia2_russia.384.t
	desc = russia2_russia.384.d
	picture = GFX_report_event_stalin_01

	is_triggered_only = yes

	option = { #Good
		name = russia2_russia.384.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = unlock_decision_puppet_country_iron_curtain
	}
}

#Invitation to Komintern (Iron Curtain)
country_event = {
	id = russia2_russia.385
	title = russia2_russia.385.t
	desc = russia2_russia.385.d
	picture = GFX_report_event_stalin_meeting

	is_triggered_only = yes

	option = { #Yes
		name = russia2_russia.385.a
		ai_chance = {
			base = 100
		}
		SOV = {
			add_to_faction = ROOT
			country_event = russia2_russia.386
		}
		hidden_effect = {
			news_event = { id = newsrussia2.148 hours = 5 }
		}
	}

	option = { #No
		name = russia2_russia.385.b
		ai_chance = {
			base = 0
		}
		SOV = {
			country_event = russia2_russia.387
		}
	}
}

#FROM Accepts
country_event = {
	id = russia2_russia.386
	title = russia2_russia.386.t
	desc = russia2_russia.386.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #Good
		name = russia2_russia.386.a
		ai_chance = {
			base = 100
		}
	}
}

#FROM Refuses
country_event = {
	id = russia2_russia.387
	title = russia2_russia.387.t
	desc = russia2_russia.387.d
	picture = GFX_report_event_stalin_02

	is_triggered_only = yes

	option = { #Bad
		name = russia2_russia.387.a
		ai_chance = {
			base = 100
		}
	}
}

#Civil War in puppet nation
country_event = {
	id = russia2_russia.388
	title = russia2_russia.388.t
	desc = russia2_russia.388.d
	picture = GFX_report_event_ger_civil_war

	is_triggered_only = yes

	option = { #Oh
		name = russia2_russia.388.a
		ai_chance = {
			base = 100
		}
	}
}

#Civil War Prevented
country_event = {
	id = russia2_russia.389
	title = russia2_russia.389.t
	desc = russia2_russia.389.d
	picture = GFX_report_event_german_detained_china

	is_triggered_only = yes

	option = { #Good
		name = russia2_russia.389.a
		ai_chance = {
			base = 100
		}
		add_popularity = {
			ideology = communism
			popularity = -0.1
		}
		SOV = {
			country_event = russia2_russia.390
		}
	}
}

#Civil War Prevented in FROM
country_event = {
	id = russia2_russia.390
	title = russia2_russia.390.t
	desc = russia2_russia.390.d
	picture = GFX_report_event_german_detained_china

	is_triggered_only = yes

	option = { #Oh
		name = russia2_russia.390.a
		ai_chance = {
			base = 100
		}
	}
}

#Allow Grand Moscow
country_event = {
	id = russia2_russia.391

	trigger = {
		SOV = {
			OR = {
				exists = no
				is_subject = yes
			}
		}
		NOT = {
			any_state = {
				is_core_of = GPM
			}
		}
	}

	hidden = yes

	fire_only_once = yes

	immediate = {
		GPM = {
			add_state_core = 219
			add_state_core = 223
			add_state_core = 254
			add_state_core = 253
			add_state_core = 248
			add_state_core = 247
			add_state_core = 246
			add_state_core = 242
			add_state_core = 205
			add_state_core = 243
			add_state_core = 224
			add_state_core = 220
			add_state_core = 252
			add_state_core = 255
			add_state_core = 239
			add_state_core = 260
			add_state_core = 240
			add_state_core = 222
			add_state_core = 250
			add_state_core = 256
			add_state_core = 257
			add_state_core = 258
			add_state_core = 833
			add_ideas = SOV_Grand_muscovy
		}
	}
}

#Give Ideas to other Russian puppets
country_event = {
	id = russia2_russia.393

	is_triggered_only = yes

	hidden = yes

	immediate = {
		if = {
			limit = {
				NOT = {
					has_idea = SOV_Russian_overlord
				}
			}
			add_ideas = SOV_Russian_overlord
		}
		if = {
			limit = {
				NOT = {
					has_idea = SOV_Russian_sphere_market
				}
			}
			add_ideas = SOV_Russian_sphere_market
		}
		if = {
			limit = {
				NOT = {
					has_idea = SOV_Russian_military_training
				}
			}
			add_ideas = SOV_Russian_military_training
		}
	}
}

#Give Guided by Russia to all the Puppets
country_event = {
	id = russia2_russia.394

	is_triggered_only = yes

	hidden = yes

	immediate = {
		add_ideas = SOV_Guided_by_russia
	}
}

#Give Guided by Russia 2 to all the Puppets
country_event = {
	id = russia2_russia.395

	is_triggered_only = yes

	hidden = yes

	immediate = {
		if = {
			limit = {
				has_idea = SOV_Guided_by_russia
			}
			swap_ideas = {
				remove_idea = SOV_Guided_by_russia
				add_idea = SOV_Guided_by_russia2
			}
		}
		else = {
			add_ideas = SOV_Guided_by_russia2
		}
	}
}

#Hidden Event in case on_action didn't work
country_event = {
	id = russia2_russia.400

	trigger = {
		any_state = {
			OR = {
				NOT = {
					is_core_of = SIB
				}
				NOT = {
					is_core_of = KAR
				}
				NOT = {
					is_core_of = CIR
				}
				NOT = {
					is_core_of = CRI
				}
				NOT = {
					is_core_of = DAG
				}
				NOT = {
					is_core_of = KAL
				}
				NOT = {
					is_core_of = KUB
				}
				NOT = {
					is_core_of = NOV
				}
				NOT = {
					is_core_of = PRM
				}
				NOT = {
					is_core_of = ROS
				}
				NOT = {
					is_core_of = STP
				}
				NOT = {
					is_core_of = VLG
				}
				NOT = {
					is_core_of = TAT
				}
				NOT = {
					is_core_of = URA
				}
				NOT = {
					is_core_of = EFR
				}
				NOT = {
					is_core_of = KMI
				}
				NOT = {
					is_core_of = VYA
				}
			}
		}
	}

	fire_only_once = yes

	hidden = yes

	immediate = {
		EFR = {
			add_state_core = 644
			add_state_core = 637
			add_state_core = 562
			add_state_core = 574
			add_state_core = 565
			add_state_core = 564
			add_state_core = 563
			add_state_core = 561
			add_state_core = 560
			add_state_core = 657
			add_state_core = 409
			add_state_core = 408
			add_state_core = 655
			add_state_core = 537
			add_state_core = 822
		}
		FER = {
			remove_state_core = 637
			remove_state_core = 562
			remove_state_core = 563
			remove_state_core = 561
			remove_state_core = 560
			remove_state_core = 657
			remove_state_core = 409
			remove_state_core = 408
			remove_state_core = 655
			remove_state_core = 822
		}
		SIB = {
			add_state_core = 581
			add_state_core = 408
			add_state_core = 409
			add_state_core = 560
			add_state_core = 655
			add_state_core = 537
			add_state_core = 822
			add_state_core = 657
			add_state_core = 561
			add_state_core = 574
			add_state_core = 562
			add_state_core = 637
			add_state_core = 644
			add_state_core = 563
			add_state_core = 565
			add_state_core = 564
			add_state_core = 575
			add_state_core = 516
			add_state_core = 566
			add_state_core = 567
			add_state_core = 576
			add_state_core = 568
			add_state_core = 569
			add_state_core = 578
			add_state_core = 570
			add_state_core = 577
			add_state_core = 571
			add_state_core = 654
			add_state_core = 40
			add_state_core = 329
			add_state_core = 572
			add_state_core = 653
			add_state_core = 580
			add_state_core = 579
			add_state_core = 403
			add_state_core = 824
		}
		KAR = {
			add_state_core = 216
			add_state_core = 215
			add_state_core = 213
		}
		CIR = {
			add_state_core = 233
			add_state_core = 234
			add_state_core = 235
			add_state_core = 827
			add_state_core = 828
			add_state_core = 821
		}
		CRI = {
			add_state_core = 137
		}
		DAG = {
			add_state_core = 232
		}
		KAL = {
			add_state_core = 236
			add_state_core = 237
		}
		KUB = {
			add_state_core = 236
			add_state_core = 237
			add_state_core = 217
			add_state_core = 265
			add_state_core = 245
			add_state_core = 238
			add_state_core = 218
			add_state_core = 234
			add_state_core = 235
			add_state_core = 232
			add_state_core = 821
			add_state_core = 828
			add_state_core = 827
			add_state_core = 233
			add_state_core = 829
		}
		KMI = {
			add_state_core = 262
			add_state_core = 397
			add_state_core = 825
			add_state_core = 581
		}
		KOM = {
			remove_state_core = 397
			remove_state_core = 581
			remove_state_core = 262
		}
		VYA = {
			add_state_core = 400
		}
		NOV = {
			add_state_core = 208
			add_state_core = 209
			add_state_core = 210
			add_state_core = 263
			add_state_core = 244
			add_state_core = 264
			add_state_core = 216
			add_state_core = 215
			add_state_core = 351
			add_state_core = 214
			add_state_core = 262
			add_state_core = 397
			add_state_core = 400
			add_state_core = 825
			add_state_claim = 195
		}
		PRM = {
			add_state_core = 398
			add_state_core = 399
		}
		ROS = {
			add_state_core = 218
			add_state_core = 238
			add_state_core = 245
		}
		STP = {
			add_state_core = 195
		}
		VLG = {
			add_state_core = 217
			add_state_core = 265
			add_state_core = 829
		}
		TAT = {
			add_state_core = 249
			add_state_core = 251
			add_state_core = 652
			add_state_core = 401
			add_state_core = 651
		}
		URA = {
			add_state_core = 581
			add_state_core = 573
			add_state_core = 582
			add_state_core = 572
			add_state_core = 653
			add_state_core = 580
			add_state_core = 579
			add_state_core = 403
		}
	}
}

#Terrorist Anarchist are Wreaking Havoc
country_event = {
	id = russia2_russia.402
	title = russia2_russia.402.t
	desc = russia2_russia.402.d
	picture = GFX_report_event_generic_riot

	is_triggered_only = yes

	option = { #Those Damn Terrorists !
		name = russia2_russia.402.a
		ai_chance = {
			base = 100
		}
		add_ideas = SOV_Anarchist_terrorist
		remove_ideas = SOV_Trotskyite_plot_russia2
		remove_ideas = SOV_Unhappy_peasants1
		hidden_effect = {
			remove_ideas = SOV_Unhappy_peasants2
			remove_ideas = SOV_Unhappy_peasants3
			remove_ideas = SOV_Unhappy_peasants4
			remove_ideas = SOV_Unhappy_peasants5
			remove_ideas = SOV_Unhappy_peasants6
		}
	}
}

#The State of the Country
country_event = {
	id = russia2_russia.403
	title = russia2_russia.403.t
	desc = russia2_russia.403.d
	picture = GFX_report_event_ger_civil_war

	is_triggered_only = yes

	option = { #It's Chaos everywhere
		name = russia2_russia.403.a
		ai_chance = {
			base = 100
		}
		add_ideas = SOV_No_work
		add_ideas = SOV_Bandits_problem
		add_ideas = SOV_Anti_revolutionary
		custom_effect_tooltip = change_economy_law_useless_money
		hidden_effect = {
			add_ideas = SOV_Useless_money
		}
	}
}

#Hidden Event to spawn the Divisions and ships for the Black Revolution
country_event = {
	id = russia2_russia.404

	is_triggered_only = yes

	hidden = yes

	immediate = {
		SOV = {
			load_oob = "SOV_black_revolution_oob"
			if = {
				limit = {
					has_country_flag = anarchist_hold_leningrad
				}
				load_oob = "SOV_leningrad_ships"
				load_oob = "SOV_naval_ships_black_revolution"
			}
			else_if = {
				limit = {
					NOT = {
						has_country_flag = anarchist_hold_leningrad
					}
				}
				load_oob = "SOV_naval_ships_black_revolution"
			}
			if = {
				limit = {
					has_country_flag = anarchist_hold_leningrad
					NOT = {
						has_dlc = "Man the Guns"
					}
				}
				load_oob = "SOV_leningrad_ships_nomtg"
				load_oob = "SOV_naval_ships_black_revolution_nomtg"
			}
			else_if = {
				limit = {
					NOT = {
						has_country_flag = anarchist_hold_leningrad
						has_dlc = "Man the Guns"
					}
				}
				load_oob = "SOV_naval_ships_black_revolution_nomtg"
			}
		}
		SOJ = {
			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				load_oob = "SOJ_black_revolution_air_BBA"
			}
			else = {
				load_oob = "SOJ_black_revolution_air_legacy"
			}
			if = {
				limit = {
					NOT = {
						has_dlc = "No Step Back"
					}
				}
				if = {
					limit = {
						SOV = {
							NOT = {
								has_country_flag = anarchist_soldiers_desert
							}
						}
					}
					load_oob = "SOJ_black_revolution"
				}
				else_if = {
					limit = {
						SOV = {
							has_country_flag = anarchist_soldiers_desert
						}
					}
					load_oob = "SOJ_black_revolution_deserted_version"
				}
			}
			else_if = {
				limit = {
					has_dlc = "No Step Back"
				}
				if = {
					limit = {
						SOV = {
							NOT = {
								has_country_flag = anarchist_soldiers_desert
							}
						}
					}
					load_oob = "SOJ_black_revolution_nsb"
				}
				else_if = {
					limit = {
						SOV = {
							has_country_flag = anarchist_soldiers_desert
						}
					}
					load_oob = "SOJ_black_revolution_deserted_version_nsb"
				}
			}
			if = {
				limit = {
					SOV = {
						NOT = {
							has_country_flag = anarchist_hold_leningrad
						}
					}
				}
				load_oob = "SOJ_naval_ships_black_revolution"
			}
			else_if = {
				limit = {
					NOT = {
						has_dlc = "Man the Guns"
					}
					SOV = {
						NOT = {
							has_country_flag = anarchist_hold_leningrad
						}
					}
				}
				load_oob = "SOJ_naval_ships_black_revolution_nomtg"
			}
		}
	}
}

#Hidden Event to Create Generals for the Black Revolution
country_event = {
	id = russia2_russia.405

	is_triggered_only = yes

	hidden = yes

	immediate = {
		SOV = {
			add_field_marshal_role = {
				character = SOV_Supreme_military_council
				traits = {
					winter_specialist
					logistics_wizard
					aggressive_assaulter
				}
				skill = 3
				attack_skill = 3
				defense_skill = 3
				planning_skill = 2
				logistics_skill = 2
			}
			add_corps_commander_role = {
				character = SOV_Military_council_ukraine
				traits = {
					infantry_officer
					armor_officer
				}
				skill = 4
				attack_skill = 4
				defense_skill = 4
				planning_skill = 5
				logistics_skill = 4
			}
			add_corps_commander_role = {
				character = SOV_Military_council_belarus
				traits = {
					ranger
					brilliant_strategist
				}
				skill = 3
				attack_skill = 4
				defense_skill = 3
				planning_skill = 2
				logistics_skill = 3
			}
			add_corps_commander_role = {
				character = SOV_Military_council_urals
				traits = {
					trait_mountaineer
					inflexible_strategist
				}
				skill = 3
				attack_skill = 2
				defense_skill = 5
				planning_skill = 4
				logistics_skill = 4
			}
			add_corps_commander_role = {
				character = SOV_Military_council_siberia
				traits = {
					winter_specialist
					winter_expert
				}
				skill = 4
				attack_skill = 4
				defense_skill = 2
				planning_skill = 2
				logistics_skill = 5
			}
			add_corps_commander_role = {
				character = SOV_Military_council_artic
				traits = {
					winter_specialist
					ranger
				}
				skill = 3
				attack_skill = 2
				defense_skill = 3
				planning_skill = 2
				logistics_skill = 5
			}
			add_corps_commander_role = {
				character = SOV_Military_council_steppe_kuban
				traits = {
					cavalry_leader
					desert_fox
				}
				skill = 3
				attack_skill = 3
				defense_skill = 2
				planning_skill = 3
				logistics_skill = 4
			}
		}
	}
}

#Hidden Event to Spawn units in Leningrad if the Player has the Country Flag for the Black Revolution
country_event = {
	id = russia2_russia.406

	is_triggered_only = yes

	hidden = yes

	immediate = {
		if = {
			limit = {
				SOV = {
					has_country_flag = anarchist_hold_leningrad
				}
			}
			SOV = {
				load_oob = "SOV_leningrad_black_revolution_oob"
				add_corps_commander_role = {
					character = SOV_Military_council_leningrad
					traits = {
						infantry_officer
						urban_assault_specialist
					}
					skill = 3
					attack_skill = 3
					defense_skill = 4
					planning_skill = 3
					logistics_skill = 2
				}
			}
		}
	}
}

#Hidden Event to Spawn more units in Siberia if the Player has the Country Flag for the Black Revolution
country_event = {
	id = russia2_russia.407

	is_triggered_only = yes

	hidden = yes

	immediate = {
		if = {
			limit = {
				SOV = {
					has_country_flag = anarchist_hold_more_siberia
				}
			}
			SOV = {
				load_oob = "SOV_hold_siberia_black_revolution_oob"
				add_corps_commander_role = {
					character = SOV_Military_council_western_siberia
					traits = {
						ranger
						winter_specialist
						winter_expert
					}
					skill = 3
					attack_skill = 2
					defense_skill = 3
					planning_skill = 2
					logistics_skill = 4
				}
			}
		}
	}
}

#Hidden Event to Spawn more units Between Urals and Kuban if the Player has the Country Flag for the Black Revolution
country_event = {
	id = russia2_russia.408

	is_triggered_only = yes

	hidden = yes

	immediate = {
		if = {
			limit = {
				SOV = {
					has_country_flag = anarchist_hold_more_central_asia
				}
			}
			SOV = {
				load_oob = "SOV_hold_central_asia_black_revolution_oob"
			}
		}
	}
}

#The Trials Begin
country_event = {
	id = russia2_russia.409
	title = russia2_russia.409.t
	desc = russia2_russia.409.d
	picture = GFX_report_event_SOV_national_academy_of_sciences

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_country_flag = sov_trials_begin
			country_event = { id = russia2_russia.422 days = 30 }
		}
	}

	option = { #Very well
		name = russia2_russia.409.a
		ai_chance = {
			base = 100
		}
	}
}

#First Trial - Fate of the Syndicates
country_event = {
	id = russia2_russia.410
	title = russia2_russia.410.t
	desc = russia2_russia.410.d
	picture = GFX_report_event_tanks_mexico_city

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_country_flag = sov_fate_syndicates
			country_event = { id = russia2_russia.426 days = 15 }
		}
	}

	option = { #They are clearly Communist
		name = russia2_russia.410.a
		ai_chance = {
			base = 50
		}
		add_stability = -0.05
	}

	option = { #We will take control over them
		name = russia2_russia.410.b
		ai_chance = {
			base = 25
		}
		add_to_variable = { united_russia_strength = 1 }
		round_variable = united_russia_strength
		clamp_variable = {
			var = united_russia_strength
			min = 0
			max = 4
		}
		custom_effect_tooltip = united_russia_gains_strength
	}

	option = { #We will let them operate, the workers need the Syndicates
		name = russia2_russia.410.c
		ai_chance = {
			base = 25
		}
		subtract_from_variable = { united_russia_strength = 1 }
		round_variable = united_russia_strength
		clamp_variable = {
			var = united_russia_strength
			min = 0
			max = 4
		}
		custom_effect_tooltip = united_russia_lose_strength
		add_popularity = {
			ideology = democratic
			popularity = -0.10
		}
	}
}

#Hidden Event to Spawn more units SOJ for each selected state they control
country_event = {
	id = russia2_russia.411

	is_triggered_only = yes

	hidden = yes

	immediate = {
		if = {
			limit = {
				198 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_198"
			}
		}

		if = {
			limit = {
				199 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_199"
			}
		}

		if = {
			limit = {
				203 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_203"
			}
		}

		if = {
			limit = {
				226 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_226"
			}
		}

		if = {
			limit = {
				227 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_227"
			}
		}

		if = {
			limit = {
				218 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_218"
			}
		}

		if = {
			limit = {
				228 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_228"
			}
		}

		if = {
			limit = {
				221 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_221"
			}
		}

		if = {
			limit = {
				259 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_259"
			}
		}

		if = {
			limit = {
				225 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_225"
			}
		}

		if = {
			limit = {
				193 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_193"
			}
		}

		if = {
			limit = {
				201 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_201"
			}
		}

		if = {
			limit = {
				194 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_194"
			}
		}

		if = {
			limit = {
				204 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_204"
			}
		}

		if = {
			limit = {
				241 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_241"
			}
		}

		if = {
			limit = {
				234 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_234"
			}
		}

		if = {
			limit = {
				235 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_235"
			}
		}

		if = {
			limit = {
				233 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_233"
			}
		}

		if = {
			limit = {
				263 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_263"
			}
		}

		if = {
			limit = {
				209 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_209"
			}
		}

		if = {
			limit = {
				208 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_208"
			}
		}

		if = {
			limit = {
				244 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_244"
			}
		}

		if = {
			limit = {
				584 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_584"
			}
		}

		if = {
			limit = {
				585 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_585"
			}
		}

		if = {
			limit = {
				405 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_405"
			}
		}

		if = {
			limit = {
				742 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_742"
			}
		}

		if = {
			limit = {
				404 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_404"
			}
		}

		if = {
			limit = {
				732 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_732"
			}
		}

		if = {
			limit = {
				586 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_586"
			}
		}

		if = {
			limit = {
				589 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_589"
			}
		}

		if = {
			limit = {
				583 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_583"
			}
		}

		if = {
			limit = {
				572 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_572"
			}
		}

		if = {
			limit = {
				653 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_653"
			}
		}

		if = {
			limit = {
				580 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_580"
			}
		}

		if = {
			limit = {
				590 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_590"
			}
		}

		if = {
			limit = {
				588 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_588"
			}
		}

		if = {
			limit = {
				571 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_571"
			}
		}

		if = {
			limit = {
				403 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_403"
			}
		}

		if = {
			limit = {
				657 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_657"
			}
		}

		if = {
			limit = {
				561 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_561"
			}
		}

		if = {
			limit = {
				563 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_563"
			}
		}

		if = {
			limit = {
				654 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_654"
			}
		}

		if = {
			limit = {
				40 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_40"
			}
		}

		if = {
			limit = {
				570 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_570"
			}
		}

		if = {
			limit = {
				578 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_578"
			}
		}

		if = {
			limit = {
				569 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_569"
			}
		}

		if = {
			limit = {
				568 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_568"
			}
		}

		if = {
			limit = {
				567 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_567"
			}
		}

		if = {
			limit = {
				565 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_565"
			}
		}

		if = {
			limit = {
				575 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_575"
			}
		}

		if = {
			limit = {
				823 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_823"
			}
		}

		if = {
			limit = {
				831 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_831"
			}
		}

		if = {
			limit = {
				832 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_832"
			}
		}

		if = {
			limit = {
				830 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_830"
			}
		}

		if = {
			limit = {
				827 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_827"
			}
		}

		if = {
			limit = {
				828 = {
					is_owned_by = SOJ
				}
			}
			SOJ = {
				load_oob = "SOJ_cb_828"
			}
		}
	}
}

#End of the Black Revolution - Civil War
country_event = {
	id = russia2_russia.412
	title = russia2_russia.412.t
	desc = russia2_russia.412.d
	picture = GFX_soldiers_with_guns_russia2

	is_triggered_only = yes

	option = {
		name = russia2_russia.412.a
		ai_chance = {
			base = 100
		}
		set_country_flag = end_of_the_revolution
		clr_country_flag = black_revolution_civil_war_in_progress
		add_ideas = SOV_no_export_anarchy
		custom_effect_tooltip = end_revolution_focus_available
		custom_effect_tooltip = division_will_be_locked_anarchy
		hidden_effect = {
			SOJ = {
				every_character = {
					limit = {
						OR = {
							is_character = SOV_Georgy_zhukov
							is_character = SOV_Aleksandr_vasilevsky
							is_character = SOV_Boris_shaposhnikov
							is_character = SOV_Nikolai_vatutin
							is_character = SOV_Ivan_konev
							is_character = SOV_Semyon_timoshenko
							is_character = SOV_Kliment_voroshilov_military
							is_character = SOV_Kliment_voroshilov_advisor
							is_character = SOV_Mikhail_tukhachevsky
							is_character = SOV_Semyon_budyonny
							is_character = SOV_Ivan_chernyakhovsky
							is_character = SOV_Issa_pliyev
							is_character = SOV_Leonid_govorov
							is_character = SOV_Grigory_kulik
							is_character = SOV_Kirill_meretskov
							is_character = SOV_Filipp_golikov
							is_character = SOV_Andrey_yeryomenko
							is_character = SOV_Georgiy_zakharov
							is_character = SOV_Yakov_cherevichenko
							is_character = SOV_Nikandr_chibisov
							is_character = SOV_Vasily_kuznetsov
							is_character = SOV_Ivan_fedyuninsky
							is_character = SOV_Maksim_purkayev
							is_character = SOV_Kuzma_galitsky
							is_character = SOV_Markian_popov
							is_character = SOV_Nikolai_berzarin
							is_character = SOV_Kirill_moskalenko
							is_character = SOV_Dmitry_lelyushenko
							is_character = SOV_Andrei_grechko
							is_character = SOV_Rodion_malinovsky
							is_character = SOV_Vasily_chuikov
							is_character = SOV_Konstantin_rokossovsky
							is_character = SOV_Ivan_kononov
							is_character = SOV_Alexander_gorbatov
							is_character = SOV_Vasily_blyukher
							is_character = SOV_Alexander_yegorov
							is_character = SOV_Maks_reyter
						}
					}
					set_character_flag = SOV_character_agains_anarchist_government
					clr_character_flag = sov_character_switched_to_sou
					set_nationality = SOV
				}
			}
			every_state = {
				limit = {
					is_core_of = SOJ
				}
				remove_core_of = SOJ
			}
		}
		add_threat = -5
		remove_ideas = SOV_Determination
		hidden_effect = {
			black_revolution_division_template_organiser = yes
		}
		if = {
			limit = {
				has_idea = SOV_Surprise_attack_black_revolution
			}
			remove_ideas = SOV_Surprise_attack_black_revolution
		}
	}
}

#Aftermath of the Coup - Black Revolution
country_event = {
	id = russia2_russia.413
	title = russia2_russia.413.t
	desc = russia2_russia.413.d
	picture = GFX_artillery_with_building_russia2

	is_triggered_only = yes

	option = {
		name = russia2_russia.413.a
		ai_chance = {
			base = 100
		}
		set_country_flag = end_of_the_revolution
		clr_country_flag = black_revolution_civil_war_in_progress
		add_ideas = SOV_no_export_anarchy
		custom_effect_tooltip = end_revolution_focus_available
		custom_effect_tooltip = division_will_be_locked_anarchy
		hidden_effect = {
			SOV = {
				add_field_marshal_role = {
					character = SOV_Supreme_military_council
					traits = {
						winter_specialist
						logistics_wizard
						aggressive_assaulter
					}
					skill = 3
					attack_skill = 3
					defense_skill = 3
					planning_skill = 2
					logistics_skill = 2
				}
				add_corps_commander_role = {
					character = SOV_Military_council_ukraine
					traits = {
						infantry_officer
						armor_officer
					}
					skill = 4
					attack_skill = 4
					defense_skill = 4
					planning_skill = 5
					logistics_skill = 4
				}
				add_corps_commander_role = {
					character = SOV_Military_council_belarus
					traits = {
						ranger
						brilliant_strategist
					}
					skill = 3
					attack_skill = 4
					defense_skill = 3
					planning_skill = 2
					logistics_skill = 3
				}
				add_corps_commander_role = {
					character = SOV_Military_council_urals
					traits = {
						trait_mountaineer
						inflexible_strategist
					}
					skill = 3
					attack_skill = 2
					defense_skill = 5
					planning_skill = 4
					logistics_skill = 4
				}
				add_corps_commander_role = {
					character = SOV_Military_council_siberia
					traits = {
						winter_specialist
						winter_expert
					}
					skill = 4
					attack_skill = 4
					defense_skill = 2
					planning_skill = 2
					logistics_skill = 5
				}
				add_corps_commander_role = {
					character = SOV_Military_council_artic
					traits = {
						winter_specialist
						ranger
					}
					skill = 3
					attack_skill = 2
					defense_skill = 3
					planning_skill = 2
					logistics_skill = 5
				}
				add_corps_commander_role = {
					character = SOV_Military_council_steppe_kuban
					traits = {
						cavalry_leader
						desert_fox
					}
					skill = 3
					attack_skill = 3
					defense_skill = 2
					planning_skill = 3
					logistics_skill = 4
				}
			}
			set_division_template_lock = {
				division_template = "Vozdushno-Desantnaya Brigada"
				is_locked = yes
			}
		}
	}
}

#Hidden Event to create state flag for Send Recon Units without making a mess
country_event = {
	id = russia2_russia.414

	fire_only_once = yes

	is_triggered_only = yes

	hidden = yes

	immediate = {
		set_variable = { sov_count_state_recon = 0 }
		while_loop_effect = {
			limit = {
				check_variable = {
					var = sov_count_state_recon
					value = 90
					compare = less_than
				}
			}

			random_scope_in_array = {
				array = SOV.owned_controlled_states
				limit = {
					NOT = {
						has_state_flag = recon_units_scout_place
						has_state_flag = small_counter_revolution_resistance_1
						has_state_flag = small_counter_revolution_resistance_2
						has_state_flag = small_counter_revolution_resistance_3
						has_state_flag = medium_counter_revolution_resistance_1
						has_state_flag = medium_counter_revolution_resistance_2
						has_state_flag = large_counter_revolution_resistance_1
						state = 219
						state = 137
						state = 195
						state = 217
						state = 408
						state = 202
					}
				}

				remove_from_array = { SOV.sov_recon_rebel_anarchy_states = THIS }
				THIS = {
					set_state_flag = recon_units_scout_place
				}
			}

			add_to_variable = { sov_count_state_recon = 1 }
		}
	}
}

#Recon was Unssucessful
country_event = {
	id = russia2_russia.415
	title = russia2_russia.415.t
	desc = russia2_russia.415.d
	picture = GFX_report_event_soviet_soldiers

	is_triggered_only = yes

	option = {
		name = russia2_russia.415.a
		ai_chance = {
			base = 100
		}
	}
}

#Recon was sucessful - small base
country_event = {
	id = russia2_russia.416
	title = russia2_russia.416.t
	desc = russia2_russia.416.d
	picture = GFX_report_event_czech_soldiers_02

	is_triggered_only = yes

	option = {
		name = russia2_russia.416.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = can_raid_small_base_now_tt
	}
}

#Recon was sucessful - medium base
country_event = {
	id = russia2_russia.417
	title = russia2_russia.417.t
	desc = russia2_russia.417.d
	picture = GFX_report_event_finnish_soldiers_snow

	is_triggered_only = yes

	option = {
		name = russia2_russia.417.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = can_raid_medium_base_now_tt
	}
}

#Recon was sucessful - large base
country_event = {
	id = russia2_russia.418
	title = russia2_russia.418.t
	desc = russia2_russia.418.d
	picture = GFX_report_event_soviet_soldiers_tank

	is_triggered_only = yes

	option = {
		name = russia2_russia.418.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = can_raid_large_base_now_tt
	}
}

#Result of the headquarters Raid
country_event = {
	id = russia2_russia.419
	title = russia2_russia.419.t
	desc = russia2_russia.419.d
	picture = GFX_report_event_soviet_purge_officers_01

	is_triggered_only = yes

	option = { #Let them surrender
		name = russia2_russia.419.a
		custom_effect_tooltip = soviet_general_will_survive
		set_country_flag = not_kill_soviet_general_anarchist_russia
		hidden_effect = {
			SOV = {
				every_character = {
					limit = {
						has_character_flag = SOV_character_agains_anarchist_government
					}
					clr_character_flag = SOV_character_agains_anarchist_government
					set_character_flag = russia_is_in_prison_cw
				}
			}
		}
	}

	option = { #Kill em all
		name = russia2_russia.419.b
		add_manpower = -25000
		army_experience = 50
		add_to_variable = {
			var = chaos_triumphed_over_order
			value = 1
		}
	}
}

#Result of Forced Quota - Industry
country_event = {
	id = russia2_russia.420
	title = russia2_russia.420.t
	desc = russia2_russia.420.d
	picture = GFX_report_event_generic_factory

	is_triggered_only = yes

	option = { #they worked well
		name = russia2_russia.420.a
		ai_chance = {
			base = 90
		}
	}

	option = { #More Work
		name = russia2_russia.420.b
		ai_chance = {
			base = 10
		}
		custom_effect_tooltip = this_could_bite_us_back
		random_owned_controlled_state = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}
		random_owned_controlled_state = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}
		random_owned_controlled_state = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = arms_factory
				level = 1
				instant_build = yes
			}
		}
		hidden_effect = {
			random_list = {
				40 = {
					set_country_flag = worker_catastrophe_1
					country_event = { id = russia2_russia.440  days = 15 }
				}
				60 = {
					set_country_flag = has_forced_work_not_failed_1
				}
			}
		}
	}
}

#Result of Forced Labor - Industry
country_event = {
	id = russia2_russia.421
	title = russia2_russia.421.t
	desc = russia2_russia.421.d
	picture = GFX_report_event_generic_rifles

	is_triggered_only = yes

	option = { #they worked well
		name = russia2_russia.421.a

	}

	option = { #More Work
		name = russia2_russia.421.b
		custom_effect_tooltip = this_could_bite_us_back
		random_owned_controlled_state = {
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
			add_building_construction = {
				type = arms_factory
				level = 1
				instant_build = yes
			}
		}
		random_owned_controlled_state = {
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
			add_building_construction = {
				type = arms_factory
				level = 1
				instant_build = yes
			}
		}
		random_owned_controlled_state = {
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = arms_factory
				level = 1
				instant_build = yes
			}
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}
		hidden_effect = {
			if = {
				limit = {
					has_country_flag = has_forced_work_not_failed_1
				}
				random_list = {
					90 = {
						country_event = { id = russia2_russia.440  days = 10 }
					}
					10 = {

					}
				}
			}
			else = {
				random_list = {
					40 = {
						country_event = { id = russia2_russia.440  days = 10 }
					}
					60 = {

					}
				}
			}
			add_to_variable = {
				var = chaos_triumphed_over_order
				value = 1
			}
		}
	}
}

#Opposition forms
country_event = {
	id = russia2_russia.422
	title = russia2_russia.422.t
	desc = russia2_russia.422.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_country_flag = sov_democratic_opposition_formed
			country_event = { id = russia2_russia.410 days = 30 }
		}
	}

	option = { #Uh
		name = russia2_russia.422.a
		ai_chance = {
			base = 100
		}
		add_political_power = -25
		custom_effect_tooltip = united_russia_gains_strength
		set_variable = { united_russia_strength = 1 }
	}
}

#Students protesting
country_event = {
	id = russia2_russia.423
	title = russia2_russia.423.t
	desc = russia2_russia.423.d
	picture = GFX_report_event_worker_protests

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_country_flag = sov_students_protest_flag
			country_event = { id = russia2_russia.428 days = 30 }
		}
	}

	option = { #Help them
		name = russia2_russia.423.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_ALEXANDER_KERENSKY_DEMOCRATIC_BEHAVIOR
					has_country_flag = RUS_AI_PAVEL_MILYUKOV_DEMOCRATIC_BEHAVIOR
					AND = {
						has_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
						check_variable = {
							var = united_russia_strength
							value = 1
							compare = greater_than
						}
					}
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_ALEXANDER_KERENSKY_DEMOCRATIC_BEHAVIOR
					has_country_flag = RUS_AI_PAVEL_MILYUKOV_DEMOCRATIC_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
					if = {
						limit = {
							has_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
						}
						check_variable = {
							var = united_russia_strength
							value = 1
							compare = less_than_or_equals
						}
					}
				}
			}
		}
		add_political_power = -200
		add_stability = 0.05
	}

	option = { #Ignore
		name = russia2_russia.423.b
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_ALEXANDER_KONOVALOV_DEMOCRATIC_BEHAVIOR
					AND = {
						has_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
						check_variable = {
							var = united_russia_strength
							value = 1
							compare = less_than_or_equals
						}
					}
				}
			}
			modifier = {
				factor = 0
				if = {
					limit = {
						has_country_flag = RUS_AI_ALEXANDER_KONOVALOV_DEMOCRATIC_BEHAVIOR
					}
					always = yes
				}
				else_if = {
					limit = {
						has_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
					}
					check_variable = {
						var = united_russia_strength
						value = 1
						compare = greater_than
					}
				}
				else = {
					always = no
				}
			}
		}
		add_political_power = 50
		add_timed_idea = {
			idea = SOV_Students_protest
			days = 467
		}
		add_to_variable = { united_russia_strength = 1 }
		round_variable = united_russia_strength
		clamp_variable = {
			var = united_russia_strength
			min = 0
			max = 4
		}
		custom_effect_tooltip = united_russia_gains_strength
	}
}

#Fate of the Communists
country_event = {
	id = russia2_russia.424
	title = russia2_russia.424.t
	desc = russia2_russia.424.d
	picture = GFX_report_event_soviet_purge_trial

	is_triggered_only = yes

	option = { #Give them a chance
		name = russia2_russia.424.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_ALEXANDER_KERENSKY_DEMOCRATIC_BEHAVIOR
					has_country_flag = RUS_AI_PAVEL_MILYUKOV_DEMOCRATIC_BEHAVIOR
					AND = {
						has_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
						check_variable = {
							var = united_russia_strength
							value = 1
							compare = greater_than
						}
					}
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_ALEXANDER_KERENSKY_DEMOCRATIC_BEHAVIOR
					has_country_flag = RUS_AI_PAVEL_MILYUKOV_DEMOCRATIC_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
					if = {
						limit = {
							has_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
						}
						check_variable = {
							var = united_russia_strength
							value = 1
							compare = less_than_or_equals
						}
					}
				}
			}
		}
		add_stability = -0.05
	}

	option = { #Do not forgive them
		name = russia2_russia.424.b
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_ALEXANDER_KONOVALOV_DEMOCRATIC_BEHAVIOR
					AND = {
						has_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
						check_variable = {
							var = united_russia_strength
							value = 1
							compare = less_than_or_equals
						}
					}
				}
			}
			modifier = {
				factor = 0
				if = {
					limit = {
						has_country_flag = RUS_AI_ALEXANDER_KONOVALOV_DEMOCRATIC_BEHAVIOR
					}
					always = yes
				}
				else_if = {
					limit = {
						has_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
					}
					check_variable = {
						var = united_russia_strength
						value = 1
						compare = greater_than
					}
				}
				else = {
					always = no
				}
			}
		}
		add_political_power = 100
		add_to_variable = { united_russia_strength = 1 }
		round_variable = united_russia_strength
		clamp_variable = {
			var = united_russia_strength
			min = 0
			max = 4
		}
		custom_effect_tooltip = united_russia_gains_strength
	}
}

#Fate of the Deserters
country_event = {
	id = russia2_russia.425
	title = russia2_russia.425.t
	desc = russia2_russia.425.d
	picture = GFX_battkle_kursk_russia2

	is_triggered_only = yes

	option = { #Give them a chance
		name = russia2_russia.425.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_ALEXANDER_KERENSKY_DEMOCRATIC_BEHAVIOR
					has_country_flag = RUS_AI_PAVEL_MILYUKOV_DEMOCRATIC_BEHAVIOR
					AND = {
						has_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
						check_variable = {
							var = united_russia_strength
							value = 1
							compare = greater_than
						}
					}
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_ALEXANDER_KERENSKY_DEMOCRATIC_BEHAVIOR
					has_country_flag = RUS_AI_PAVEL_MILYUKOV_DEMOCRATIC_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
					if = {
						limit = {
							has_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
						}
						check_variable = {
							var = united_russia_strength
							value = 1
							compare = less_than_or_equals
						}
					}
				}
			}
		}
		add_stability = -0.05
	}

	option = { #Do not forgive them
		name = russia2_russia.425.b
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_ALEXANDER_KONOVALOV_DEMOCRATIC_BEHAVIOR
					AND = {
						has_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
						check_variable = {
							var = united_russia_strength
							value = 1
							compare = less_than_or_equals
						}
					}
				}
			}
			modifier = {
				factor = 0
				if = {
					limit = {
						has_country_flag = RUS_AI_ALEXANDER_KONOVALOV_DEMOCRATIC_BEHAVIOR
					}
					always = yes
				}
				else_if = {
					limit = {
						has_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
					}
					check_variable = {
						var = united_russia_strength
						value = 1
						compare = greater_than
					}
				}
				else = {
					always = no
				}
			}
		}
		add_political_power = 100
		add_to_variable = { united_russia_strength = 1 }
		round_variable = united_russia_strength
		clamp_variable = {
			var = united_russia_strength
			min = 0
			max = 4
		}
		custom_effect_tooltip = united_russia_gains_strength
	}
}

#Beria's Trial
country_event = {
	id = russia2_russia.426
	title = russia2_russia.426.t
	desc = russia2_russia.426.d
	picture = GFX_4_Lavrentiy_beria_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_country_flag = sov_beria_trial
			country_event = { id = russia2_russia.423 days = 15 }
		}
	}

	option = { #Execute him
		name = russia2_russia.426.a
		ai_chance = {
			base = 33
		}
		add_stability = -0.05
		add_political_power = 200
		set_country_flag = sov_lavrentiy_beria_executed
	}

	option = { #Put him in prison
		name = russia2_russia.426.b
		ai_chance = {
			base = 33
		}
		add_political_power = 50
		set_country_flag = sov_lavrentiy_beria_prison
	}

	option = { #Let him be
		name = russia2_russia.426.c
		ai_chance = {
			base = 33
		}
		add_political_power = -200
		add_war_support = 0.05
	}
}

#Problems in the Army
country_event = {
	id = russia2_russia.427
	title = russia2_russia.427.t
	desc = russia2_russia.427.d
	picture = GFX_soldiers_with_guns_russia2

	fire_only_once = yes

	trigger = {
		original_tag = SOV
		has_government = democratic
		has_country_flag = sov_democratic_opposition_formed
		has_completed_focus = SOV_reinforce_military_presence
		has_country_flag = {
			flag = sov_reinforced_military_presence
			days > 35
		}
		check_variable = {
			var = united_russia_strength
			value = 1
			compare = greater_than
		}
		NOT = {
			has_country_flag = sov_democratic_opposition_destroyed
			has_completed_focus = SOV_end_investments
			has_completed_focus = SOV_continue_investments
		}
	}

	immediate = {
		set_country_flag = sov_problems_army
	}

	mean_time_to_happen = { days = 5 }

	option = { #Let it calm down
		name = russia2_russia.427.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_ALEXANDER_KONOVALOV_DEMOCRATIC_BEHAVIOR
					AND = {
						has_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
						check_variable = {
							var = united_russia_strength
							value = 1
							compare = less_than_or_equals
						}
					}
				}
			}
			modifier = {
				factor = 0
				if = {
					limit = {
						has_country_flag = RUS_AI_ALEXANDER_KONOVALOV_DEMOCRATIC_BEHAVIOR
					}
					always = yes
				}
				else_if = {
					limit = {
						has_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
					}
					check_variable = {
						var = united_russia_strength
						value = 1
						compare = greater_than
					}
				}
				else = {
					always = no
				}
			}
		}
		add_stability = -0.05
		add_timed_idea = {
			idea = SOV_Army_disobedience
			days = 560
		}
		add_to_variable = { united_russia_strength = 1 }
		round_variable = united_russia_strength
		clamp_variable = {
			var = united_russia_strength
			min = 0
			max = 4
		}
		custom_effect_tooltip = united_russia_gains_strength
	}

	option = { #Take action
		name = russia2_russia.427.b
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_ALEXANDER_KERENSKY_DEMOCRATIC_BEHAVIOR
					has_country_flag = RUS_AI_PAVEL_MILYUKOV_DEMOCRATIC_BEHAVIOR
					AND = {
						has_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
						check_variable = {
							var = united_russia_strength
							value = 1
							compare = greater_than
						}
					}
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_ALEXANDER_KERENSKY_DEMOCRATIC_BEHAVIOR
					has_country_flag = RUS_AI_PAVEL_MILYUKOV_DEMOCRATIC_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
					if = {
						limit = {
							has_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
						}
						check_variable = {
							var = united_russia_strength
							value = 1
							compare = less_than_or_equals
						}
					}
				}
			}
		}
		add_political_power = -250
		add_stability = 0.05
	}
}

#Moscow Trials
country_event = {
	id = russia2_russia.428
	title = russia2_russia.428.t
	desc = russia2_russia.428.d
	picture = GFX_military_parade_kremlin_russia2

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_country_flag = sov_moscow_trials
			country_event = { id = russia2_russia.504 days = 15 }
		}
	}

	option = { #Force them into the army
		name = russia2_russia.428.a
		ai_chance = {
			base = 25
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_ALEXANDER_KONOVALOV_DEMOCRATIC_BEHAVIOR
					AND = {
						has_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
						check_variable = {
							var = united_russia_strength
							value = 1
							compare = less_than_or_equals
						}
					}
				}
			}
		}
		add_political_power = -50
		add_war_support = 0.05
		add_manpower = 5000
	}

	option = { #Let them rejoin the country
		name = russia2_russia.428.b
		ai_chance = {
			base = 25
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_ALEXANDER_KONOVALOV_DEMOCRATIC_BEHAVIOR
					AND = {
						has_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
						check_variable = {
							var = united_russia_strength
							value = 1
							compare = less_than_or_equals
						}
					}
				}
			}
		}
		add_political_power = -100
		add_stability = 0.05
	}

	option = { #Execute the most dangerous
		name = russia2_russia.428.c
		ai_chance = {
			base = 25
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_ALEXANDER_KONOVALOV_DEMOCRATIC_BEHAVIOR
					AND = {
						has_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
						check_variable = {
							var = united_russia_strength
							value = 1
							compare = less_than_or_equals
						}
					}
				}
			}
		}
		add_political_power = 50
	}

	option = { #Use it as an excuse to emprison opposition
		name = russia2_russia.428.e
		trigger = {
			check_variable = {
				var = united_russia_strength
				value = 1
				compare = greater_than_or_equals
			}
		}
		ai_chance = {
			base = 25
			modifier = {
				add = 75
				OR = {
					has_country_flag = RUS_AI_ALEXANDER_KONOVALOV_DEMOCRATIC_BEHAVIOR
					AND = {
						has_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
						check_variable = {
							var = united_russia_strength
							value = 1
							compare = less_than_or_equals
						}
					}
				}
			}
		}
		add_stability = -0.05
		custom_effect_tooltip = united_russia_lose_strength
		subtract_from_variable = { united_russia_strength = 1 }
		round_variable = united_russia_strength
		clamp_variable = {
			var = united_russia_strength
			min = 0
			max = 4
		}
	}
}

#Opposition Calls for Fair Elections
country_event = {
	id = russia2_russia.429
	title = russia2_russia.429.t
	desc = russia2_russia.429.d
	picture = GFX_report_event_poland_rejects

	fire_only_once = yes

	trigger = {
		original_tag = SOV
		has_government = democratic
		has_country_flag = sov_democratic_opposition_formed
		has_completed_focus = SOV_temporarily_abolish_elections
		has_country_flag = {
			flag = democratic_elections_abolished
			days > 50
		}
		has_elections = no
		NOT = {
			OR = {
				has_completed_focus = SOV_united_russia
				has_completed_focus = SOV_preemptive_coup
				has_completed_focus = SOV_continue_investments
				has_country_flag = sov_democratic_opposition_destroyed
			}
		}
	}

	immediate = {
		set_country_flag = sov_opposition_calls_fair_elections
	}

	mean_time_to_happen = { days = 5 }

	option = { #Accept
		name = russia2_russia.429.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_ALEXANDER_KERENSKY_DEMOCRATIC_BEHAVIOR
					has_country_flag = RUS_AI_PAVEL_MILYUKOV_DEMOCRATIC_BEHAVIOR
					AND = {
						has_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
						check_variable = {
							var = united_russia_strength
							value = 1
							compare = greater_than
						}
					}
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_ALEXANDER_KERENSKY_DEMOCRATIC_BEHAVIOR
					has_country_flag = RUS_AI_PAVEL_MILYUKOV_DEMOCRATIC_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
					if = {
						limit = {
							has_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
						}
						check_variable = {
							var = united_russia_strength
							value = 1
							compare = less_than_or_equals
						}
					}
				}
			}
		}
		add_political_power = -50
		add_to_variable = { united_russia_strength = 1 }
		round_variable = united_russia_strength
		clamp_variable = {
			var = united_russia_strength
			min = 0
			max = 4
		}
		custom_effect_tooltip = united_russia_gains_strength
		custom_effect_tooltip = sov_elections_will_be_held
		hidden_effect = {
			set_politics = {
				ruling_party = democratic
				elections_allowed = yes
				election_frequency = 4
			}
		}
	}

	option = { #Refuse
		name = russia2_russia.429.b
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_ALEXANDER_KONOVALOV_DEMOCRATIC_BEHAVIOR
					AND = {
						has_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
						check_variable = {
							var = united_russia_strength
							value = 1
							compare = less_than_or_equals
						}
					}
				}
			}
			modifier = {
				factor = 0
				if = {
					limit = {
						has_country_flag = RUS_AI_ALEXANDER_KONOVALOV_DEMOCRATIC_BEHAVIOR
					}
					always = yes
				}
				else_if = {
					limit = {
						has_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
					}
					check_variable = {
						var = united_russia_strength
						value = 1
						compare = greater_than
					}
				}
				else = {
					always = no
				}
			}
		}
		add_political_power = 100
		custom_effect_tooltip = united_russia_gains_strength2
		add_to_variable = { united_russia_strength = 2 }
		round_variable = united_russia_strength
		clamp_variable = {
			var = united_russia_strength
			min = 0
			max = 4
		}
	}
}

#Track Begins
country_event = {
	id = russia2_russia.430
	title = russia2_russia.430.t
	desc = russia2_russia.430.d
	picture = GFX_report_event_stalin_01

	is_triggered_only = yes

	immediate = {
		set_country_flag = sov_track_begin
	}

	option = { #Accept
		name = russia2_russia.430.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = SOV_track_begin_tt
	}
}

#The Raid of a Base has Finished
country_event = {
	id = russia2_russia.431
	title = russia2_russia.431.t
	desc = russia2_russia.431.d
	picture = GFX_report_event_yugoslavia_partisans

	is_triggered_only = yes

	option = {
		name = russia2_russia.431.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = raid_is_over_anarchis_russia
	}
}

#Stalin Found!
state_event = {
	id = russia2_russia.432
	title = russia2_russia.432.t
	desc = russia2_russia.432.d
	picture = GFX_vasily_with_stalin_russia2

	is_triggered_only = yes

	option = { #Yay
		name = russia2_russia.432.a
		ai_chance = {
			base = 100
		}
		CONTROLLER = {
			country_event = { id = russia2_russia.433 days = 1 }
		}
	}
}

#Stalin Found in our Country
country_event = {
	id = russia2_russia.433
	title = russia2_russia.433.t
	desc = russia2_russia.433.d
	picture = GFX_report_event_stalin_01

	is_triggered_only = yes

	option = { #Transfer
		name = russia2_russia.433.a
		ai_chance = {
			base = 70
			modifier = {
				ROOT = {
					OR = {
						has_government = communism
						has_government = neutrality
					}
				}
				add = -60
			}
		}
		SOV = {
			country_event = { id = russia2_russia.434 days = 1 }
		}
	}

	option = { #Refuse
		name = russia2_russia.433.b
		ai_chance = {
			base = 30
			modifier = {
				ROOT = {
					OR = {
						has_government = communism
						has_government = neutrality
					}
				}
				add = 60
			}
		}
		trigger = {
			has_government = communism
		}
		add_ideas = SOV_Joseph_stalin_exiled_idea
		SOV = {
			country_event = { id = russia2_russia.436 days = 1 }
		}
	}
}

#Stalin Transfered - Fate of Stalin
country_event = {
	id = russia2_russia.434
	title = russia2_russia.434.t
	desc = {
		text = russia2_russia.434.d
		trigger = {
			FROM = {
				NOT = {
					tag = ROOT
				}
			}
		}
	}
	desc = {
		text = russia2_russia.434.d_root
		trigger = {
			FROM = {
				tag = ROOT
			}
		}
	}
	picture = GFX_report_event_stalin_propaganda

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			SOV = {
				if = {
					limit = {
						check_variable = {
							var = sov_stalin_track_tries
							value = 1
							compare = equals
						}
						NOT = {
							is_in_array = { global.gotcha_achievement = THIS }
						}
					}
					add_to_array = { global.gotcha_achievement = THIS }
					set_variable = { global.gotcha_achievement_date@THIS = global.date }
					set_country_flag = russia_reworked_new_achievement
					if = {
						limit = {
							has_global_flag = russia_reworked_achievements_enabled
						}
						scoped_sound_effect = "russia_reworked_unlock_achievement"
					}
				}
			}
		}
	}

	option = { #Execute him
		name = russia2_russia.434.a
		set_country_flag = sov_stalin_executed
		ai_chance = {
			base = 20
		}
		add_political_power = 100
	}

	option = { #Put him in prison
		name = russia2_russia.434.b
		ai_chance = {
			base = 40
		}
		set_country_flag = sov_stalin_prison
		add_political_power = -25
	}

	option = { #Exile him in Siberia
		name = russia2_russia.434.c
		ai_chance = {
			base = 40
		}
		set_country_flag = sov_stalin_exiled_siberia
		add_political_power = -25
	}
}

#Stalin's Proposal
country_event = {
	id = russia2_russia.435
	title = russia2_russia.435.t
	desc = {
		text = russia2_russia.435.d
		trigger = {
			has_country_flag = sov_stalin_prison
		}
	}
	desc = {
		text = russia2_russia.435.d_siberia
		trigger = {
			has_country_flag = sov_stalin_exiled_siberia
		}
	}
	picture = GFX_report_event_stalin_01

	trigger = {
		tag = SOV
		has_government = democratic
		has_capitulated = no
		is_subject = no
		OR = {
			has_country_flag = sov_stalin_prison
			has_country_flag = sov_stalin_exiled_siberia
		}
		NOT = {
			has_country_flag = sov_stalin_proposal
		}
		any_country = {
			is_major = yes
			has_war_with = ROOT
		}
	}

	fire_only_once = yes

	immediate = {
		set_country_flag = sov_stalin_proposal
	}

	option = { #Sure
		name = russia2_russia.435.a
		ai_chance = {
			base = 100
		}
		set_country_flag = sov_joseph_stalin_is_cool_now
		if = {
			limit = {
				has_country_flag = sov_stalin_exiled_siberia
			}
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = SOV_Joseph_stalin_democratic_priest
		}
		else_if = {
			limit = {
				has_country_flag = sov_stalin_prison
			}
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = SOV_Joseph_stalin_democratic_army
		}
	}

	option = { #Refuse
		name = russia2_russia.435.b
		ai_chance = {
			base = 0
		}
		add_political_power = 150
	}
}

#Country refuses to give Stalin back
country_event = {
	id = russia2_russia.436
	title = russia2_russia.436.t
	desc = russia2_russia.436.d
	picture = GFX_report_event_SOV_military_offensive

	is_triggered_only = yes

	option = { #Send a warning
		name = russia2_russia.436.a
		ai_chance = {
			base = 80
		}
		FROM = {
			country_event = { id = russia2_russia.437 days = 1 }
		}
	}

	option = { #Give up
		name = russia2_russia.436.b
		ai_chance = {
			base = 20
		}
		FROM = {
			country_event = { id = russia2_russia.438 days = 1 }
		}
	}
}

#SOV Pressure for Stalin
country_event = {
	id = russia2_russia.437
	title = russia2_russia.437.t
	desc = russia2_russia.437.d
	picture = GFX_operation_barbarossa_russia2

	is_triggered_only = yes

	option = { #Ok Sorry
		name = russia2_russia.437.a
		ai_chance = {
			base = 40
			modifier = {
				ROOT = {
					has_government = communism
				}
				add = -40
			}
		}
		SOV = {
			country_event = { id = russia2_russia.434 days = 1 }
		}
	}

	option = { #No!
		name = russia2_russia.437.b
		ai_chance = {
			base = 60
			modifier = {
				ROOT = {
					has_government = communism
				}
				add = 40
			}
		}
		add_ideas = SOV_Stalinist_hideout
		SOV = {
			add_opinion_modifier = {
				target = ROOT
				modifier = refused_transfer_stalin
			}
			country_event = { id = russia2_russia.449 days = 1 }
		}
	}
}

#SOV Gives Up
country_event = {
	id = russia2_russia.438
	title = russia2_russia.438.t
	desc = russia2_russia.438.d
	picture = GFX_report_event_SOV_military_offensive

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			SOV = {
				set_country_flag = sov_gave_up_track
			}
		}
	}

	option = { #Yay
		ai_chance = {
			base = 100
		}
		name = russia2_russia.438.a
		add_ideas = SOV_Stalinist_hideout
	}
}

#Stalin found dead
state_event = {
	id = russia2_russia.439
	title = russia2_russia.439.t
	desc = russia2_russia.439.d
	picture = GFX_report_event_stalin_01

	trigger = {
		has_state_flag = sov_stalin_hidding_state
		CONTROLLER = {
			OR = {
				tag = SOV
				is_subject_of = SOV
				AND = {
					is_in_faction_with = SOV
				}
			}
			SOV = {
				OR = {
					has_country_flag = sov_gave_up_track
					has_country_flag = sov_track_on_hold
				}
				has_government = democratic
			}
		}
	}

	fire_only_once = yes

	mean_time_to_happen = { days = 1 }

	immediate = {
		clr_state_flag = sov_stalin_hidding_state
		set_state_flag = sov_stalin_hidding_state_found_dead
	}

	option = { #Oh
		name = russia2_russia.439.a
		ai_chance = {
			base = 100
		}
		SOV = {
			add_stability = 0.05
			set_country_flag = sov_stalin_found_dead
		}
	}
}

#People are not Happy and Destroy things - Forced labor/quota
country_event = {
	id = russia2_russia.440
	title = russia2_russia.440.t
	desc = russia2_russia.440.d
	picture = GFX_report_event_generic_ruins

	is_triggered_only = yes

	option = {
		name = russia2_russia.440.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				has_country_flag = worker_catastrophe_1
			}
			custom_effect_tooltip = lose_eight_factories_rebel
			hidden_effect = {
				random_owned_controlled_state = {
					limit = {
						industrial_complex > 0
					}
					remove_building = {
						type = industrial_complex
						level = 1
					}
				}
				random_owned_controlled_state = {
					limit = {
						industrial_complex > 0
					}
					remove_building = {
						type = industrial_complex
						level = 1
					}
				}
				random_owned_controlled_state = {
					limit = {
						industrial_complex > 0
					}
					remove_building = {
						type = industrial_complex
						level = 1
					}
				}
				random_owned_controlled_state = {
					limit = {
						industrial_complex > 0
					}
					remove_building = {
						type = industrial_complex
						level = 1
					}
				}
				random_owned_controlled_state = {
					limit = {
						arms_factory > 0
					}
					remove_building = {
						type = arms_factory
						level = 1
					}
				}
				random_owned_controlled_state = {
					limit = {
						arms_factory > 0
					}
					remove_building = {
						type = arms_factory
						level = 1
					}
				}
				random_owned_controlled_state = {
					limit = {
						arms_factory > 0
					}
					remove_building = {
						type = arms_factory
						level = 1
					}
				}
				random_owned_controlled_state = {
					limit = {
						arms_factory > 0
					}
					remove_building = {
						type = arms_factory
						level = 1
					}
				}
			}
			clr_country_flag = worker_catastrophe_1
		}
		else = {
			custom_effect_tooltip = lose_twelve_factories_rebel
			hidden_effect = {
				random_owned_controlled_state = {
					limit = {
						industrial_complex > 0
					}
					remove_building = {
						type = industrial_complex
						level = 1
					}
				}
				random_owned_controlled_state = {
					limit = {
						industrial_complex > 0
					}
					remove_building = {
						type = industrial_complex
						level = 1
					}
				}
				random_owned_controlled_state = {
					limit = {
						industrial_complex > 0
					}
					remove_building = {
						type = industrial_complex
						level = 1
					}
				}
				random_owned_controlled_state = {
					limit = {
						industrial_complex > 0
					}
					remove_building = {
						type = industrial_complex
						level = 1
					}
				}
				random_owned_controlled_state = {
					limit = {
						industrial_complex > 0
					}
					remove_building = {
						type = industrial_complex
						level = 1
					}
				}
				random_owned_controlled_state = {
					limit = {
						industrial_complex > 0
					}
					remove_building = {
						type = industrial_complex
						level = 1
					}
				}
				random_owned_controlled_state = {
					limit = {
						arms_factory > 0
					}
					remove_building = {
						type = arms_factory
						level = 1
					}
				}
				random_owned_controlled_state = {
					limit = {
						arms_factory > 0
					}
					remove_building = {
						type = arms_factory
						level = 1
					}
				}
				random_owned_controlled_state = {
					limit = {
						arms_factory > 0
					}
					remove_building = {
						type = arms_factory
						level = 1
					}
				}
				random_owned_controlled_state = {
					limit = {
						arms_factory > 0
					}
					remove_building = {
						type = arms_factory
						level = 1
					}
				}
				random_owned_controlled_state = {
					limit = {
						arms_factory > 0
					}
					remove_building = {
						type = arms_factory
						level = 1
					}
				}
				random_owned_controlled_state = {
					limit = {
						arms_factory > 0
					}
					remove_building = {
						type = arms_factory
						level = 1
					}
				}
			}
		}
	}
}

#Bandits Zone has been cleaned
country_event = {
	id = russia2_russia.441
	title = russia2_russia.441.t
	desc = russia2_russia.441.d
	picture = GFX_report_event_generic_battle

	is_triggered_only = yes

	option = { #Next Bandits
		name = russia2_russia.441.a
		ai_chance = { base = 100 }
		hidden_effect = {
			270 = {
				set_state_name = "Pitcairn Island"
			}
			641 = {
				set_state_name = "Tahiti"
			}
			711 = {
				set_state_name = "Christmas Island"
			}
			299 = {
				set_state_name = "Falkland Islands"
			}
			704 = {
				set_state_name = "Saint Helena"
			}
			646 = {
				set_state_name = "Saipan"
			}
			709 = {
				set_state_name = "Seychelles"
			}
		}
	}
}

#Order has been Restored
country_event = {
	id = russia2_russia.442
	title = russia2_russia.442.t
	desc = russia2_russia.442.d
	picture = GFX_report_event_generic_factory

	is_triggered_only = yes

	option = { #Order
		name = russia2_russia.442.a
		ai_chance = { base = 100 }
		set_country_flag = order_has_been_restored
		add_ideas = partial_economic_mobilisation
		custom_effect_tooltip = can_complete_focus_proclamation_commune
		custom_effect_tooltip = division_now_unlocked_anarchist
		hidden_effect = {
			anarchy_unlock_division_template = yes
		}
	}
}

#Chaos has Triumphed
country_event = {
	id = russia2_russia.443
	title = russia2_russia.443.t
	desc = russia2_russia.443.d
	picture = GFX_report_event_ger_civil_war

	is_triggered_only = yes

	option = { #Chaos
		name = russia2_russia.443.a
		ai_chance = { base = 100 }
		set_country_flag = chaos_has_triumphed
		add_ideas = partial_economic_mobilisation
		custom_effect_tooltip = can_complete_focus_embrace_total_anarchy
		custom_effect_tooltip = division_now_unlocked_anarchist
		hidden_effect = {
			anarchy_unlock_division_template = yes
		}
	}
}

#Stalin Not Found
state_event = {
	id = russia2_russia.444
	title = russia2_russia.444.t
	desc = russia2_russia.444.d
	picture = GFX_report_event_generic_ruins

	is_triggered_only = yes

	option = { #Uh
		name = russia2_russia.444.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = SOV_can_track_again
	}
}

#Anarchist Leader Election
country_event = {
	id = russia2_russia.445
	title = russia2_russia.445.t
	desc = russia2_russia.445.d
	picture = GFX_report_event_election_vote

	is_triggered_only = yes

	option = { #Elect Anarcho-Communism
		name = russia2_russia.445.a
		ai_chance = {
			base = 33
			modifier = {
				add = 67
				has_country_flag = RUS_AI_PETER_ARSHINOV_ANARCHIST_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_PETER_ARSHINOV_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		set_country_flag = has_elected_anarcho_communism
		custom_effect_tooltip = can_complete_anarcho_communism
	}

	option = { #Elect Anarcho-Syndicalism
		name = russia2_russia.445.b
		ai_chance = {
			base = 33
			modifier = {
				add = 67
				has_country_flag = RUS_AI_VSEVOLOD_MIKHAILOVICH_EIKHENBAUM_ANARCHIST_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_VSEVOLOD_MIKHAILOVICH_EIKHENBAUM_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		set_country_flag = has_elected_anarcho_syndicalism
		custom_effect_tooltip = can_complete_anarcho_syndicalism
	}

	option = { #Elect Anarcho-individualism
		name = russia2_russia.445.c
		ai_chance = {
			base = 33
			modifier = {
				add = 67
				has_country_flag = RUS_AI_ALEXEI_BOROVOI_ANARCHIST_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_ALEXEI_BOROVOI_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		set_country_flag = has_elected_anarcho_individualism
		custom_effect_tooltip = can_complete_anarcho_individualist
	}
}

#Fate of the Black Guard
country_event = {
	id = russia2_russia.446
	title = russia2_russia.446.t
	desc = russia2_russia.446.d
	picture = GFX_report_event_british_inspect_troops

	is_triggered_only = yes

	option = { #Disband the Black Guard
		name = russia2_russia.446.a
		ai_chance = { base = 0 }
		remove_ideas = SOV_Black_guard_army_2
		add_stability = -0.15
	}

	option = { #Reform the Black
		name = russia2_russia.446.b
		ai_chance = { base = 50 }
		add_political_power = -50
		add_stability = 0.1
		swap_ideas = {
			remove_idea = SOV_Black_guard_army_2
			add_idea = SOV_Black_guard_army_3
		}
	}

	option = { #Reform the Black Guard into a Professional Army
		name = russia2_russia.446.c
		ai_chance = { base = 50 }
		add_political_power = -100
		remove_ideas = SOV_Black_guard_army_2
		add_ideas = SOV_Black_guard_reformation
		custom_effect_tooltip = will_take_years_to_reform_black_guard
		hidden_effect = {
			random_list = {
				30 = {
					country_event = { id = russia2_russia.447 days = 365 }
				}
				30 = {
					country_event = { id = russia2_russia.447 days = 465 }
				}
				30 = {
					country_event = { id = russia2_russia.447 days = 565 }
				}
				10 = {
					country_event = { id = russia2_russia.447 days = 730 }
				}
			}
		}
	}
}

#The Black Guard hes been Reformed
country_event = {
	id = russia2_russia.447
	title = russia2_russia.447.t
	desc = russia2_russia.447.d
	picture = GFX_military_parade_russia2

	is_triggered_only = yes

	option = { #Mother Anarchy Loves her Sons
		name = russia2_russia.447.a
		remove_ideas = SOV_Black_guard_reformation
		add_ideas = SOV_Black_guard_reformed
	}
}

#Fate of the Red Generals
country_event = {
	id = russia2_russia.448
	title = russia2_russia.448.t
	desc = russia2_russia.448.d
	picture = GFX_report_event_soviet_purge_officers_01

	is_triggered_only = yes

	option = { #Emprison and Execute them
		name = russia2_russia.448.a
		add_stability = 0.1
		add_popularity = {
			ideology = anarchy
			popularity = 0.1
		}
		add_political_power = 75
	}

	option = { #Emprison the Leaders and Force the other to Work for us
		name = russia2_russia.448.b
		add_political_power = -40
		add_popularity = {
			ideology = communism
			popularity = 0.1
		}
		custom_effect_tooltip = some_red_generals_offer_service
		hidden_effect = {
			SOV = {
				every_character = {
					limit = {
						OR = {
							is_character = SOV_Kliment_voroshilov_advisor
							is_character = SOV_Kliment_voroshilov_military
							is_character = SOV_Semyon_budyonny
							is_character = SOV_Semyon_timoshenko
							is_character = SOV_Aleksandr_vasilevsky
							is_character = SOV_Filipp_golikov
							is_character = SOV_Georgiy_zakharov
							is_character = SOV_Markian_popov
							is_character = SOV_Nikolai_berzarin
							is_character = SOV_Kirill_moskalenko
							is_character = SOV_Ivan_chernyakhovsky
							is_character = SOV_Vasily_blyukher
							is_character = SOV_Maks_reyter
						}
					}
					clr_character_flag = russia_is_in_prison_cw
				}
			}
		}
	}

	option = { #Forgive them and Repent for the Army
		name = russia2_russia.448.c
		ai_chance = { base = 100 }
		add_political_power = -100
		add_stability = -0.1
		add_popularity = {
			ideology = anarchy
			popularity = -0.15
		}
		add_popularity = {
			ideology = communism
			popularity = 0.15
		}
		custom_effect_tooltip = red_generals_offer_service_full
		hidden_effect = {
			SOV = {
				every_character = {
					limit = {
						OR = {
							is_character = SOV_Kliment_voroshilov_advisor
							is_character = SOV_Kliment_voroshilov_military
							is_character = SOV_Semyon_budyonny
							is_character = SOV_Semyon_timoshenko
							is_character = SOV_Aleksandr_vasilevsky
							is_character = SOV_Filipp_golikov
							is_character = SOV_Georgiy_zakharov
							is_character = SOV_Markian_popov
							is_character = SOV_Nikolai_berzarin
							is_character = SOV_Kirill_moskalenko
							is_character = SOV_Ivan_chernyakhovsky
							is_character = SOV_Georgy_zhukov
							is_character = SOV_Mikhail_tukhachevsky
							is_character = SOV_Ivan_konev
							is_character = SOV_Yakov_cherevichenko
							is_character = SOV_Issa_pliyev
							is_character = SOV_Kirill_meretskov
							is_character = SOV_Nikandr_chibisov
							is_character = SOV_Vasily_blyukher
							is_character = SOV_Alexander_yegorov
							is_character = SOV_Maks_reyter
						}
					}
					clr_character_flag = russia_is_in_prison_cw
				}
			}
		}
	}
}

#FROM Still Refuses
country_event = {
	id = russia2_russia.449
	title = russia2_russia.449.t
	desc = russia2_russia.449.d
	picture = GFX_report_event_hol_cabinet_de_geer

	is_triggered_only = yes

	option = { #Uh
		name = russia2_russia.449.a
		ai_chance = { base = 100 }
		set_country_flag = sov_track_on_hold
		custom_effect_tooltip = SOV_can_capture_stalin_later
	}
}

#Ukrainian Problem
country_event = {
	id = russia2_russia.450
	title = russia2_russia.450.t
	desc = russia2_russia.450.d
	picture = GFX_report_event_gre_diplomacy

	is_triggered_only = yes

	option = { #Send them an Ultimatum to Annex
		name = russia2_russia.450.a
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				UKR = {
					is_ai = no
				}
			}
		}
		UKR = {
			country_event = { id = russia2_ukraine.12 days = 1  }
		}
		custom_effect_tooltip = send_ultimatum_to_annex_ukr
	}

	option = { #Send them an Ultimatum to Puppet
		name = russia2_russia.450.b
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				UKR = {
					is_ai = no
				}
			}
		}
		UKR = {
			country_event = { id = russia2_ukraine.13 days = 1  }
		}
		custom_effect_tooltip = send_ultimatum_to_puppet_ukr
	}
}

#Ukraine Accept to be Annex
country_event = {
	id = russia2_russia.451
	title = russia2_russia.451.t
	desc = russia2_russia.451.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #Welcome Home Brothers
		name = russia2_russia.451.a
		ai_chance = { base = 100 }
		every_state = {
			limit = {
				is_core_of = UKR
				is_owned_by = UKR
			}
			SOV = {
				add_state_core = PREV
			}
		}
		SOV = {
			annex_country = {
				target = UKR
				transfer_troops = yes
			}
		}
	}
}

#Ukraine Refuse to be Annex
country_event = {
	id = russia2_russia.452
	title = russia2_russia.452.t
	desc = russia2_russia.452.d
	picture = GFX_military_parade_kremlin_russia2

	is_triggered_only = yes

	option = { #Fools !
		name = russia2_russia.452.a
		ai_chance = { base = 100 }
		every_state = {
			limit = {
				is_core_of = UKR
				is_owned_by = UKR
			}
			SOV = {
				add_state_core = PREV
			}
		}
		SOV = {
			create_wargoal = {
				type = annex_everything
				target = UKR
			}
			set_country_flag = ukraine_refuse_lead_to_war
		}
		custom_effect_tooltip = will_take_time_to_core_ukraine_because_war
	}
}

#Ukraine Accept to be Puppeted
country_event = {
	id = russia2_russia.453
	title = russia2_russia.453.t
	desc = russia2_russia.453.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #Welcome Home Brothers
		name = russia2_russia.453.a
		ai_chance = { base = 100 }
		SOV = {
			puppet = UKR
			set_country_flag = ukr_accepted_puppet_united_russia
		}
	}
}

#Ukraine Refuse to be Puppeted
country_event = {
	id = russia2_russia.454
	title = russia2_russia.454.t
	desc = russia2_russia.454.d
	picture = GFX_military_parade_kremlin_russia2

	is_triggered_only = yes

	option = { #Fools !
		name = russia2_russia.454.a
		ai_chance = { base = 100 }
		SOV = {
			create_wargoal = {
				type = puppet_wargoal_focus
				target = UKR
			}
			set_country_flag = ukr_accepted_puppet_united_russia
		}
	}
}

#Ukraine Wants to Reintagration with SOV
country_event = {
	id = russia2_russia.455
	title = russia2_russia.455.t
	desc = russia2_russia.455.d
	picture = GFX_report_event_hol_cabinet_gerbrandy

	is_triggered_only = yes

	option = { #Welcome to the Republic
		name = russia2_russia.455.a
		ai_chance = { base = 100 }
		every_state = {
			limit = {
				is_core_of = UKR
				is_owned_by = UKR
			}
			SOV = {
				add_state_core = PREV
			}
		}
		SOV = {
			annex_country = {
				target = UKR
				transfer_troops = yes
			}
		}
	}

	option = { #No
		name = russia2_russia.455.b
		ai_chance = { base = 0 }
	}
}

#Ukraine Wants to Expand
country_event = {
	id = russia2_russia.456
	title = russia2_russia.456.t
	desc = russia2_russia.456.d
	picture = GFX_report_event_poland_rejects

	is_triggered_only = yes

	option = { #We will help them to regain their losses
		name = russia2_russia.456.a
		ai_chance = { base = 70 }
		UKR = {
			add_state_claim = 80
			add_state_claim = 78
			add_state_claim = 92
			add_state_claim = 90
			add_state_claim = 762
			add_state_claim = 88
			add_state_claim = 89
			add_state_claim = 91
			add_state_claim = 93
		}
		custom_effect_tooltip = if_not_given_ukr_wont_be_happy
		hidden_effect = {
			80 = {
				set_state_flag = claim_by_ukr_dem_rus
			}
			78 = {
				set_state_flag = claim_by_ukr_dem_rus
			}
			766 = {
				set_state_flag = claim_by_ukr_dem_rus
			}
			92 = {
				set_state_flag = claim_by_ukr_dem_rus
			}
			90 = {
				set_state_flag = claim_by_ukr_dem_rus
			}
			762 = {
				set_state_flag = claim_by_ukr_dem_rus
			}
			88 = {
				set_state_flag = claim_by_ukr_dem_rus
			}
			89 = {
				set_state_flag = claim_by_ukr_dem_rus
			}
			91 = {
				set_state_flag = claim_by_ukr_dem_rus
			}
			93 = {
				set_state_flag = claim_by_ukr_dem_rus
			}
		}
	}

	option = { #No
		name = russia2_russia.456.b
		ai_chance = { base = 30 }
		UKR = {
			add_autonomy_score = {
				value = 700
				localization = couldnt_help_ukraine_regain_territory
			}
		}
	}
}

#SOV Control any States that was Claimed by Ukraine
country_event = {
	id = russia2_russia.457
	title = russia2_russia.457.t
	desc = russia2_russia.457.d
	picture = GFX_report_event_gre_city_devastated

	is_triggered_only = yes

	immediate = {
		set_country_flag = receive_ukraine_complains_land_democratic_russia_united
	}

	option = { #We have to do something
		name = russia2_russia.457.a
		ai_chance = { base = 100 }
		UKR = {
			add_ideas = SOV_Ukraininan_uprising
		}
		custom_effect_tooltip = unlock_decision_returned_ukraine_states_tt
		hidden_effect = {
			clr_country_flag = receive_ukraine_complains_land_democratic_russia_united
			random_owned_controlled_state = {
				limit = {
					non_damaged_building_level = {
						building = industrial_complex level > 0
					}
				}
				damage_building = {
					type = industrial_complex damage = 1
				}
			}
			random_owned_controlled_state = {
				limit = {
					non_damaged_building_level = {
						building = arms_factory level > 0
					}
				}
				damage_building = {
					type = arms_factory damage = 1
				}
			}
			random_owned_controlled_state = {
				limit = {
					non_damaged_building_level = {
						building = infrastructure level > 1
					}
				}
				damage_building = {
					type = infrastructure
					damage = 1
				}
			}
			random_owned_controlled_state = {
				limit = {
					non_damaged_building_level = {
						building = industrial_complex level > 0
					}
				}
				damage_building = {
					type = industrial_complex damage = 1
				}
			}
			random_owned_controlled_state = {
				limit = {
					non_damaged_building_level = {
						building = arms_factory level > 0
					}
				}
				damage_building = {
					type = arms_factory damage = 1
				}
			}
			random_owned_controlled_state = {
				limit = {
					non_damaged_building_level = {
						building = infrastructure level > 1
					}
				}
				damage_building = {
					type = infrastructure
					damage = 1
				}
			}
		}
	}
}

#UKR Gains Core after occupiying the Claimed States for a few months
country_event = {
	id = russia2_russia.458
	title = russia2_russia.458.t
	desc = russia2_russia.458.d
	picture = GFX_report_event_gre_greek_cavalry

	trigger = {
		tag = SOV
		has_country_flag = ukr_accepted_puppet_united_russia
		UKR = {
			is_subject_of = SOV
			country_exists = UKR
		}
		80 = {
			is_owned_and_controlled_by = UKR
		}
		78 = {
			is_owned_and_controlled_by = UKR
		}
		766 = {
			is_owned_and_controlled_by = UKR
		}
		92 = {
			is_owned_and_controlled_by = UKR
		}
		90 = {
			is_owned_and_controlled_by = UKR
		}
		762 = {
			is_owned_and_controlled_by = UKR
		}
		88 = {
			is_owned_and_controlled_by = UKR
		}
		89 = {
			is_owned_and_controlled_by = UKR
		}
		91 = {
			is_owned_and_controlled_by = UKR
		}
		93 = {
			is_owned_and_controlled_by = UKR
		}
	}

	fire_only_once = yes

	mean_time_to_happen = { days = 200 }

	option = { #Good
		name = russia2_russia.458.a
		ai_chance = { base = 100 }
		every_state = {
			limit = {
				has_state_flag = claim_by_ukr_dem_rus
				is_owned_by = UKR
			}
			UKR = {
				add_state_core = PREV
			}
		}
		UKR = {
			set_cosmetic_tag = GUK
			add_ideas = SOV_Ukrainian_compliance
		}
		set_country_flag = ukr_core_claim_states
	}
}

#SOV Gains Core on Ukraine After a Moment if there was a War Between the Two
country_event = {
	id = russia2_russia.459
	title = russia2_russia.459.t
	desc = russia2_russia.459.d
	picture = GFX_report_event_communists_cheer

	trigger = {
		tag = SOV
		has_government = democratic
		has_country_flag = ukraine_refuse_lead_to_war
		NOT = {
			country_exists = UKR
			UKR = {
				is_subject_of = SOV
			}
		}
	}

	fire_only_once = yes

	mean_time_to_happen = { days = 120 }

	option = { #Good
		name = russia2_russia.459.a
		ai_chance = { base = 100 }
		every_state = {
			limit = {
				is_core_of = UKR
				is_owned_by = SOV
			}
			SOV = {
				add_state_core = PREV
			}
		}
	}
}

#Belarussian Coup was Successful
country_event = {
	id = russia2_russia.460
	title = russia2_russia.460.t
	desc = russia2_russia.460.d
	picture = GFX_report_event_generic_military_parade

	is_triggered_only = yes

	option = { #Good
		name = russia2_russia.460.a
		ai_chance = { base = 100 }
		SOV = {
			annex_country = {
				target = BLR
				transfer_troops = yes
			}
		}
	}
}

#Belarussian Coup was a Failure
country_event = {
	id = russia2_russia.461
	title = russia2_russia.461.t
	desc = russia2_russia.461.d
	picture = GFX_report_event_ger_civil_war

	is_triggered_only = yes

	option = { #We can use it as an excuse
		name = russia2_russia.461.a
		ai_chance = { base = 100 }
		set_country_flag = blr_coup_failure_dem
		SOV = {
			declare_war_on = {
				target = BLR
				type = annex_everything
			}
		}
	}
}

#Tension in Central Asia was Successful
country_event = {
	id = russia2_russia.462
	title = russia2_russia.462.t
	desc = russia2_russia.462.d
	picture = GFX_report_event_german_polish_border

	is_triggered_only = yes

	option = { #We can use it as an excuse
		name = russia2_russia.462.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = each_country_central_asia_declare_war
		set_country_flag = successfully_created_tension_central_asia
		hidden_effect = {
			country_event = { id = russia2_russia.464 days = 90 }
			KAZ = {
				declare_war_on = {
					target = UZB
					type = annex_everything
				}
				declare_war_on = {
					target = TMS
					type = annex_everything
				}
				declare_war_on = {
					target = TAJ
					type = annex_everything
				}
				declare_war_on = {
					target = KYR
					type = annex_everything
				}
			}
			UZB = {
				declare_war_on = {
					target = TMS
					type = annex_everything
				}
				declare_war_on = {
					target = TAJ
					type = annex_everything
				}
				declare_war_on = {
					target = KYR
					type = annex_everything
				}
			}
			TMS = {
				declare_war_on = {
					target = TAJ
					type = annex_everything
				}
				declare_war_on = {
					target = KYR
					type = annex_everything
				}
			}
			TAJ = {
				declare_war_on = {
					target = KYR
					type = annex_everything
				}
			}
		}
	}
}

#Tension in Central Asia is a Failure
country_event = {
	id = russia2_russia.463
	title = russia2_russia.463.t
	desc = russia2_russia.463.d
	picture = GFX_report_event_soviet_finnish_pact

	is_triggered_only = yes

	option = { #We can use it as an excuse
		name = russia2_russia.463.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = each_country_central_asia_form_coalition_against_us
		custom_effect_tooltip = declare_war_against_russian_anti_coal
		hidden_effect = {
			TMS = {
				create_faction = anti_russian_coalition
				add_to_faction = KAZ
				add_to_faction = UZB
				add_to_faction = TAJ
				add_to_faction = KYR
			}
			SOV = {
				declare_war_on = {
					target = TMS
					type = annex_everything
				}
				declare_war_on = {
					target = KAZ
					type = annex_everything
				}
				declare_war_on = {
					target = UZB
					type = annex_everything
				}
				declare_war_on = {
					target = TAJ
					type = annex_everything
				}
				declare_war_on = {
					target = KYR
					type = annex_everything
				}
			}
			every_country = {
				limit = {
					exists = yes
					OR = {
						tag = KAZ
						tag = KYR
						tag = TMS
						tag = UZB
						tag = TAJ
						tag = KKP
						tag = KHI
						tag = BUK
					}
				}
				SOV = {
					create_wargoal = {
						type = annex_everything
						target = PREV
					}
				}
			}
		}
	}
}

#We Can Now Intervene
country_event = {
	id = russia2_russia.464
	title = russia2_russia.464.t
	desc = russia2_russia.464.d
	picture = GFX_report_event_military_planning

	is_triggered_only = yes

	option = { #We can use it as an excuse
		name = russia2_russia.464.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = unlock_decision_intervene_central_asia
		set_country_flag = can_intervene_central_asia
	}
}

#March Was A Success
country_event = {
	id = russia2_russia.465
	title = russia2_russia.465.t
	desc = russia2_russia.465.d
	picture = GFX_report_event_soviet_tank_parade

	is_triggered_only = yes

	option = { #Good
		name = russia2_russia.465.a
		ai_chance = { base = 100 }
		every_state = {
			limit = {
				is_core_of = FROM
				is_owned_by = FROM
			}
			SOV = {
				add_state_core = PREV
			}
		}
		SOV = {
			annex_country = {
				target = FROM
				transfer_troops = yes
			}
		}
	}
}

#March Was A Failure
country_event = {
	id = russia2_russia.466
	title = russia2_russia.466.t
	desc = russia2_russia.466.d
	picture = GFX_report_event_generic_riot

	is_triggered_only = yes

	option = { #Damn
		name = russia2_russia.466.a
		ai_chance = { base = 100 }
		SOV = {
			annex_country = {
				target = FROM
			}
		}
	}
}

#Event for Caucasian countries to receive if march was a success
country_event = {
	id = russia2_russia.467
	title = russia2_russia.467.t
	desc = russia2_russia.467.d
	picture = GFX_report_event_generic_riot

	is_triggered_only = yes

	option = { #Damn
		name = russia2_russia.467.a
		ai_chance = { base = 100 }
		SOV = {
			country_event = { id = russia2_russia.465 days = 1 }
		}
	}
}

#Event for Caucasian countries to receive if march was a failure
country_event = {
	id = russia2_russia.468
	title = russia2_russia.468.t
	desc = russia2_russia.468.d
	picture = GFX_report_event_generic_riot

	is_triggered_only = yes

	option = { #Damn
		name = russia2_russia.468.a
		ai_chance = { base = 100 }
		SOV = {
			country_event = { id = russia2_russia.466 days = 1 }
		}
	}
}

#Ultimatum send by SOV to Middle East Country
country_event = {
	id = russia2_russia.469
	title = russia2_russia.469.t
	desc = russia2_russia.469.d
	picture = GFX_report_event_czech_soldiers_02

	is_triggered_only = yes

	option = { #Yes we want to be annexed
		name = russia2_russia.469.a
		ai_chance = {
			base = 50
			modifier = {
				add = -50
				OR = {
					is_major = yes
					is_in_faction = yes
				}
			}
		}
		SOV = {
			country_event = { id = russia2_russia.470 days = 1 }
		}
	}

	option = { #No
		name = russia2_russia.469.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					is_major = yes
					is_in_faction = yes
				}
			}
		}
		SOV = {
			country_event = { id = russia2_russia.471 days = 1 }
		}
	}
}

#Middle East Country Accept to Ultimatum
country_event = {
	id = russia2_russia.470
	title = russia2_russia.470.t
	desc = russia2_russia.470.d
	picture = GFX_report_event_dutch_soldiers_indonesia

	is_triggered_only = yes

	option = { #Annex Them
		name = russia2_russia.470.a
		ai_chance = { base = 100 }
		SOV = {
			annex_country = {
				target = FROM
			}
		}
	}
}

#Middle East Country Refuse to Ultimatum
country_event = {
	id = russia2_russia.471
	title = russia2_russia.471.t
	desc = russia2_russia.471.d
	picture = GFX_report_event_dead_soldiers

	is_triggered_only = yes

	option = { #They Refused and Shot our Soldiers
		name = russia2_russia.471.a
		ai_chance = { base = 100 }
		SOV = {
			create_wargoal = {
				type = annex_everything
				target = FROM
			}
		}
	}
}

#Middle East Country Form a Coalition
country_event = {
	id = russia2_russia.472
	title = russia2_russia.472.t
	desc = russia2_russia.472.d
	picture = GFX_report_event_tur_opposition_party

	is_triggered_only = yes

	option = { #They Want war, they will have war
		name = russia2_russia.472.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = middle_east_countries_form_huge_coalition_against_sov
		set_country_flag = middle_east_coalition_to_protect_against_sov_democratic_russia_united
	}
}

#Ultimatum send by SOV to Middle East Country - Puppet Edition
country_event = {
	id = russia2_russia.473
	title = russia2_russia.473.t
	desc = russia2_russia.473.d
	picture = GFX_report_event_czech_soldiers_02

	is_triggered_only = yes

	option = { #Yes we want to be annexed
		name = russia2_russia.473.a
		ai_chance = {
			base = 70
		}
		SOV = {
			country_event = { id = russia2_russia.474 days = 1 }
		}
	}

	option = { #No
		name = russia2_russia.473.b
		ai_chance = {
			base = 30
		}
		SOV = {
			country_event = { id = russia2_russia.475 days = 1 }
		}
	}
}

#Middle East Country Accept to Ultimatum
country_event = {
	id = russia2_russia.474
	title = russia2_russia.474.t
	desc = russia2_russia.474.d
	picture = GFX_report_event_dutch_soldiers_indonesia

	is_triggered_only = yes

	option = { #Annex Them
		name = russia2_russia.474.a
		ai_chance = { base = 100 }
		every_country = {
			limit = {
				is_subject_of = FROM
				OR = {
					tag = TUR
					tag = IRQ
					tag = PER
					tag = AFG
					tag = SAU
					tag = OMA
					tag = YEM
				}
			}
			SOV = {
				annex_country = {
					target = PREV
				}
			}
		}
	}
}

#Middle East Country Refuse to Ultimatum
country_event = {
	id = russia2_russia.475
	title = russia2_russia.475.t
	desc = russia2_russia.475.d
	picture = GFX_report_event_dead_soldiers

	is_triggered_only = yes

	option = { #They Refused and Shot our Soldiers
		name = russia2_russia.475.a
		ai_chance = { base = 100 }
		every_country = {
			limit = {
				is_subject_of = FROM
				OR = {
					tag = TUR
					tag = IRQ
					tag = PER
					tag = AFG
					tag = SAU
					tag = OMA
					tag = YEM
				}
			}
			SOV = {
				create_wargoal = {
					type = annex_everything
					target = PREV
				}
			}
		}
	}
}

#Ultimatum send by SOV Foreign Country Occupying Middle East Territory
country_event = {
	id = russia2_russia.476
	title = russia2_russia.476.t
	desc = russia2_russia.476.d
	picture = GFX_report_event_british_inspect_troops

	is_triggered_only = yes

	option = { #Yes we will give them the territory
		name = russia2_russia.476.a
		trigger = {
			NOT = {
				is_subject = yes
			}
		}
		ai_chance = {
			base = 25
			modifier = {
				add = 50
				is_in_faction_with = SOV
			}
		}
		SOV = {
			country_event = { id = russia2_russia.477 days = 1 }
		}
	}

	option = { #No we won't
		name = russia2_russia.476.b
		trigger = {
			NOT = {
				is_subject = yes
			}
		}
		ai_chance = {
			base = 75
			modifier = {
				add = -50
				is_in_faction_with = SOV
			}
		}
		SOV = {
			country_event = { id = russia2_russia.478 days = 1 }
		}
	}

	option = { #We will warn our overlord
		name = russia2_russia.476.c
		trigger = {
			is_subject = yes
		}
		ai_chance = {
			base = 100
		}
		OVERLORD = {
			country_event = { id = russia2_russia.479 hours = 8 }
		}
	}
}

#FROM Accept to cede land
country_event = {
	id = russia2_russia.477
	title = russia2_russia.477.t
	desc = russia2_russia.477.d
	picture = GFX_report_event_degaulle_churchill

	is_triggered_only = yes

	option = { #Good
		name = russia2_russia.477.a
		ai_chance = { base = 100 }
		every_state = {
			limit = {
				is_controlled_by = FROM
				OR = {
					state = 453
					state = 446
					state = 447
					state = 452
					state = 457
					state = 456
					state = 552
					state = 415
					state = 267
					state = 341
					state = 797
					state = 293
					state = 659
					state = 294
					state = 658
					state = 765
					state = 678
					state = 679
					state = 292
					state = 455
					state = 454
					state = 675
					state = 291
					state = 656
					state = 676
					state = 680
					state = 677
					state = 554
					state = 553
					state = 419
					state = 421
					state = 413
					state = 412
					state = 411
					state = 420
					state = 417
					state = 266
					state = 418
					state = 416
					state = 414
					state = 410
					state = 418
					state = 352
					state = 353
					state = 354
					state = 350
					state = 349
					state = 355
					state = 344
					state = 348
					state = 356
					state = 345
					state = 346
					state = 49
					state = 347
					state = 340
					state = 343
					state = 342
					state = 339
					state = 164
					state = 800
					state = 798
					state = 799
					state = 907
					state = 855
					state = 854
					state = 857
					state = 859
					state = 856
					state = 858
				}
			}
			SOV = {
				transfer_state = PREV
			}
		}
	}
}

#FROM Refuse to cede land
country_event = {
	id = russia2_russia.478
	title = russia2_russia.478.t
	desc = russia2_russia.478.d
	picture = GFX_report_event_finnish_letter

	is_triggered_only = yes

	option = { #Good
		name = russia2_russia.478.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				FROM = {
					is_in_faction_with = SOV
				}
			}
			custom_effect_tooltip = because_they_are_ally_no_war_goal_middle_east
			every_state = {
				limit = {
					is_controlled_by = FROM
					OR = {
						state = 453
						state = 446
						state = 447
						state = 452
						state = 457
						state = 456
						state = 552
						state = 415
						state = 267
						state = 341
						state = 797
						state = 293
						state = 659
						state = 294
						state = 658
						state = 765
						state = 678
						state = 679
						state = 292
						state = 455
						state = 454
						state = 675
						state = 291
						state = 656
						state = 676
						state = 680
						state = 677
						state = 554
						state = 553
						state = 419
						state = 421
						state = 413
						state = 412
						state = 411
						state = 420
						state = 417
						state = 266
						state = 418
						state = 416
						state = 414
						state = 410
						state = 418
						state = 352
						state = 353
						state = 354
						state = 350
						state = 349
						state = 355
						state = 344
						state = 348
						state = 356
						state = 345
						state = 346
						state = 49
						state = 347
						state = 340
						state = 343
						state = 342
						state = 339
						state = 164
						state = 800
						state = 798
						state = 799
						state = 907
						state = 855
						state = 854
						state = 857
						state = 859
						state = 856
						state = 858
					}
				}
				SOV = {
					add_state_claim = PREV
				}
			}
		}
		else = {
			SOV = {
				create_wargoal = {
					type = annex_everything
					target = FROM
				}
			}
		}
	}
}

#Ultimatum send by SOV OverLord Edition - foreign countries controlling Middl East Territories
country_event = {
	id = russia2_russia.479
	title = russia2_russia.479.t
	desc = russia2_russia.479.d
	picture = GFX_report_event_czech_soldiers_02

	is_triggered_only = yes

	option = { #War, is too risky now
		name = russia2_russia.479.a
		ai_chance = {
			base = 60
		}
		custom_effect_tooltip = we_receive_this_because_puppet_danger
		FROM = {
			country_event = { id = russia2_russia.480 hours = 8 }
		}
	}

	option = { #No, they belong to them
		name = russia2_russia.479.b
		ai_chance = {
			base = 40
		}
		custom_effect_tooltip = we_receive_this_because_puppet_danger
		FROM = {
			country_event = { id = russia2_russia.481 hours = 8 }
		}
	}
}

#Overlord Agrees to Cede Land to SOV
country_event = {
	id = russia2_russia.480
	title = russia2_russia.480.t
	desc = russia2_russia.480.d
	picture = GFX_soldiers_handshaking_kolchak_russia2

	is_triggered_only = yes

	option = { #We have no choice
		name = russia2_russia.480.a
		ai_chance = {
			base = 100
		}
		SOV = {
			country_event = { id = russia2_russia.482 days = 1 }
		}
	}
}

#Overlord Refuse to Cede Land to SOV
country_event = {
	id = russia2_russia.481
	title = russia2_russia.481.t
	desc = russia2_russia.481.d
	picture = GFX_soldiers_parade_russia2

	is_triggered_only = yes

	option = { #War is comming
		name = russia2_russia.481.a
		ai_chance = {
			base = 100
		}
		SOV = {
			country_event = { id = russia2_russia.483 days = 1 }
		}
	}
}

#Overlord Agrees to Cede Land of puppet to us
country_event = {
	id = russia2_russia.482
	title = russia2_russia.482.t
	desc = russia2_russia.482.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #Good
		name = russia2_russia.482.a
		ai_chance = {
			base = 100
		}
		every_state = {
			limit = {
				is_owned_by = FROM
				OR = {
					state = 453
					state = 446
					state = 447
					state = 452
					state = 457
					state = 456
					state = 552
					state = 415
					state = 267
					state = 341
					state = 797
					state = 293
					state = 659
					state = 294
					state = 658
					state = 765
					state = 678
					state = 679
					state = 292
					state = 455
					state = 454
					state = 675
					state = 291
					state = 656
					state = 676
					state = 680
					state = 677
					state = 554
					state = 553
					state = 419
					state = 421
					state = 413
					state = 412
					state = 411
					state = 420
					state = 417
					state = 266
					state = 418
					state = 416
					state = 414
					state = 410
					state = 418
					state = 352
					state = 353
					state = 354
					state = 350
					state = 349
					state = 355
					state = 344
					state = 348
					state = 356
					state = 345
					state = 346
					state = 49
					state = 347
					state = 340
					state = 343
					state = 342
					state = 339
					state = 164
					state = 800
					state = 798
					state = 799
					state = 907
					state = 855
					state = 854
					state = 857
					state = 859
					state = 856
					state = 858
				}
			}
			SOV = {
				transfer_state = PREV
			}
		}
	}
}

#Overlord Refuse to Cede Land of puppet to us
country_event = {
	id = russia2_russia.483
	title = russia2_russia.483.t
	desc = russia2_russia.483.d
	picture = GFX_menacing_tanks_russia2

	is_triggered_only = yes

	option = { #We will destroy them
		name = russia2_russia.483.a
		ai_chance = {
			base = 100
		}
		every_state = {
			limit = {
				is_owned_by = FROM
				OR = {
					state = 453
					state = 446
					state = 447
					state = 452
					state = 457
					state = 456
					state = 552
					state = 415
					state = 267
					state = 341
					state = 797
					state = 293
					state = 659
					state = 294
					state = 658
					state = 765
					state = 678
					state = 679
					state = 292
					state = 455
					state = 454
					state = 675
					state = 291
					state = 656
					state = 676
					state = 680
					state = 677
					state = 554
					state = 553
					state = 419
					state = 421
					state = 413
					state = 412
					state = 411
					state = 420
					state = 417
					state = 266
					state = 418
					state = 416
					state = 414
					state = 410
					state = 418
					state = 352
					state = 353
					state = 354
					state = 350
					state = 349
					state = 355
					state = 344
					state = 348
					state = 356
					state = 345
					state = 346
					state = 49
					state = 347
					state = 340
					state = 343
					state = 342
					state = 339
					state = 164
					state = 800
					state = 798
					state = 799
					state = 907
					state = 855
					state = 854
					state = 857
					state = 859
					state = 856
					state = 858
				}
			}
			SOV = {
				add_state_claim = PREV
			}
		}
		SOV = {
			create_wargoal = {
				type = annex_everything
				target = FROM
			}
		}
	}
}

#SOV Block Our Access to the Suez Canal
country_event = {
	id = russia2_russia.484
	title = russia2_russia.484.t
	desc = russia2_russia.484.d
	picture = GFX_arkroyale_russia2

	is_triggered_only = yes

	option = { #War is comming
		name = russia2_russia.484.a
		ai_chance = {
			base = 100
		}
	}
}

#SOV Open Our Access to the Suez Canal
country_event = {
	id = russia2_russia.485
	title = russia2_russia.485.t
	desc = russia2_russia.485.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #Good
		name = russia2_russia.485.a
		ai_chance = {
			base = 100
		}
	}
}

#Russia Biggest threat
country_event = {
	id = russia2_russia.486
	title = russia2_russia.486.t
	desc = russia2_russia.486.d
	picture = GFX_report_event_generic_military_parade

	is_triggered_only = yes

	option = { #The Allies
		name = russia2_russia.486.a
		trigger = {
			OR = {
				FRA = {
					has_government = democratic
				}
				ENG = {
					has_government = democratic
				}
			}
			NOT = {
				AND = {
					FRA = {
						is_in_faction_with = SOV
					}
					ENG = {
						is_in_faction_with = SOV
					}
				}
			}
		}
		ai_chance = {
			base = 33
			modifier = {
				factor = 0
				OR = {
					has_opinion = {
						target = ENG
						value > 50
					}
					has_opinion = {
						target = FRA
						value > 50
					}
				}
			}
		}
		if = {
			limit = {
				NOT = {
					ENG = {
						is_in_faction_with = SOV
					}
					is_subject_of = SOV
				}
				ENG = {
					has_government = democratic
				}
			}
			ENG = {
				add_opinion_modifier = {
					target = SOV
					modifier = russian_hostility
				}
				add_ai_strategy = {
					type = alliance
					id = SOV
					value = -25
				}
			}
		}
		if = {
			limit = {
				NOT = {
					FRA = {
						is_in_faction_with = SOV
					}
					is_subject_of = SOV
				}
				FRA = {
					has_government = democratic
				}
			}
			FRA = {
				add_opinion_modifier = {
					target = SOV
					modifier = russian_hostility
				}
				add_ai_strategy = {
					type = alliance
					id = SOV
					value = -25
				}
			}
		}
		add_ideas = SOV_Allies_menace
	}

	option = { #The Fascist
		name = russia2_russia.486.b
		trigger = {
			OR = {
				GER = {
					has_government = fascism
				}
				ITA = {
					has_government = fascism
				}
			}
			NOT = {
				AND = {
					GER = {
						is_in_faction_with = SOV
					}
					ITA = {
						is_in_faction_with = SOV
					}
				}
			}
		}
		ai_chance = {
			base = 33
			modifier = {
				factor = 0
				OR = {
					has_opinion = {
						target = GER
						value > 50
					}
					has_opinion = {
						target = ITA
						value > 50
					}
				}
			}
		}
		if = {
			limit = {
				NOT = {
					GER = {
						is_in_faction_with = SOV
					}
					is_subject_of = SOV
				}
				GER = {
					has_government = fascism
				}
			}
			GER = {
				add_opinion_modifier = {
					target = SOV
					modifier = russian_hostility
				}
				add_ai_strategy = {
					type = alliance
					id = SOV
					value = -25
				}
			}
		}
		if = {
			limit = {
				NOT = {
					ITA = {
						is_in_faction_with = SOV
					}
					is_subject_of = SOV
				}
				ITA = {
					has_government = fascism
				}
			}
			ITA = {
				add_opinion_modifier = {
					target = SOV
					modifier = russian_hostility
				}
				add_ai_strategy = {
					type = alliance
					id = SOV
					value = -25
				}
			}
		}
		add_ideas = SOV_Axis_menace
	}

	option = { #The Japanese
		name = russia2_russia.486.c
		ai_chance = {
			base = 33
			modifier = {
				factor = 0
				has_opinion = {
					target = JAP
					value > 50
				}
			}
		}
		JAP = {
			add_opinion_modifier = {
				target = SOV
				modifier = russian_hostility
			}
			add_ai_strategy = {
				type = alliance
				id = SOV
				value = -25
			}
		}
		add_ideas = SOV_Japanese_menace
	}
}

#The Role of the Tsar
country_event = {
	id = russia2_russia.487
	title = russia2_russia.487.t
	desc = russia2_russia.487.d
	picture = GFX_royal_marriage_tsar_russia2

	is_triggered_only = yes

	option = { #He shall be an Icon
		name = russia2_russia.487.a
		ai_chance = {
			base = 33
		}
		custom_effect_tooltip = unlock_vladimir_as_politician
		set_country_flag = vladimir_politician_advisor_chosen
	}

	option = { #He shall Lead an Army
		name = russia2_russia.487.b
		ai_chance = {
			base = 33
		}
		add_field_marshal_role = {
			character = SOV_Vladimir_kirillovich
			traits = {
				politically_connected
				media_personality
			}
			skill = 3
			attack_skill = 2
			defense_skill = 3
			planning_skill = 2
			logistics_skill = 2
			legacy_id = 514
		}
	}

	#option = { To Do
	#	name = russia2_russia.487.c
	#	ai_chance = {
	#		base = 33
	#	}
	#	custom_effect_tooltip = unlock_vladimir_as_chief_advisor
	#	set_country_flag = vladimir_military_advisor_chosen
	#	show_ideas_tooltip = SOV_vladimir_kirillovich_military_advisor
	#}
}

# Defense of State successful
country_event = {
	id = russia2_russia.495
	title = russia2_russia.495.t
	desc = russia2_russia.495.d
	picture = GFX_report_event_stalin_01

	is_triggered_only = yes

	option = {
		name = russia2_russia.495.a
	}
}

# Defense of State failed
country_event = {
	id = russia2_russia.496
	title = russia2_russia.496.t
	desc = russia2_russia.496.d
	picture = GFX_report_event_german_troops

	is_triggered_only = yes

	option = {
		name = russia2_russia.496.a
	}
}

# Capture of State successful
country_event = {
	id = russia2_russia.497
	title = russia2_russia.497.t
	desc = russia2_russia.497.d
	picture = GFX_report_event_stalin_01

	is_triggered_only = yes

	option = {
		name = russia2_russia.497.a
	}
}

# Capture of State failed
country_event = {
	id = russia2_russia.498
	title = russia2_russia.498.t
	desc = russia2_russia.498.d
	picture = GFX_report_event_german_troops

	is_triggered_only = yes

	option = {
		name = russia2_russia.498.a
	}
}

# Give Idea to People who Joined after
country_event = {
	id = russia2_russia.499

	hidden = yes
	fire_only_once = yes

	trigger = {
		country_exists = SOV
		SOV = {
			has_idea = SOV_Unified_komintern_red_armies
			is_faction_leader = yes
		}
		NOT = {
			original_tag = SOV
			has_idea = SOV_Unified_komintern_red_armies
		}
		is_in_faction_with = SOV
		has_war_together_with = SOV
		has_government = communism
	}

	immediate = {
		add_ideas = SOV_Unified_komintern_red_armies
	}
}

# Capture of Andrey Vlasov (loses)
country_event = {
	id = russia2_russia.500
	title = russia2_russia.500.t
	desc = russia2_russia.500.d
	picture = GFX_ww2_british_soldiers_russia2

	is_triggered_only = yes

	option = {
		name = russia2_russia.500.a
		custom_effect_tooltip = andrey_vlasov_captured_tt
	}
}

# Capture of Andrey Vlasov (receives)
country_event = {
	id = russia2_russia.501
	title = russia2_russia.501.t
	desc = russia2_russia.501.d
	picture = GFX_russian_civil_war_russia2

	is_triggered_only = yes

	option = {
		name = russia2_russia.501.a
		custom_effect_tooltip = andrey_vlasov_joins_tt
	}
}

# Country with Andrey Vlasov Capitulates to SOV (SOV)
country_event = {
	id = russia2_russia.502
	title = russia2_russia.502.t
	desc = russia2_russia.502.d
	picture = GFX_report_event_dead_soldiers

	is_triggered_only = yes

	option = {
		name = russia2_russia.502.a
		custom_effect_tooltip = andrey_vlasov_dies_tt
	}
}

# Country with Andrey Vlasov Capitulates to SOV
country_event = {
	id = russia2_russia.503
	title = russia2_russia.503.t
	desc = russia2_russia.503.d
	picture = GFX_report_event_dead_soldiers

	is_triggered_only = yes

	option = {
		name = russia2_russia.503.a
		custom_effect_tooltip = andrey_vlasov_dies_tt
	}
}

# The Trials End
country_event = {
	id = russia2_russia.504
	title = russia2_russia.504.t
	desc = russia2_russia.504.d
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes

	option = {
		name = russia2_russia.504.a
		set_country_flag = sov_trials_end
		add_stability = 0.05
	}
}

#Country gets slavic help from SOV
country_event = {
	id = russia2_russia.505
	title = russia2_russia.505.t
	desc = russia2_russia.505.d
	picture = GFX_report_event_physics_lab_02

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { random_resource_slavic = 0 }
			randomize_variable = {
				var = random_resource_slavic
				distribution = uniform
				min = 1
				max = 6
			}
			round_variable = random_resource_slavic
		}
	}

	option = { #Cool
		name = russia2_russia.505.a
		ai_chance = {
			base = 100
		}
		add_opinion_modifier = {
			target = SOV
			modifier = russian_help_slavic
		}
		random_owned_state = {
			add_extra_state_shared_building_slots = 1
			add_building_construction  = {
				type = arms_factory
				level = 1
				instant_build = yes
			}
		}
		random_owned_state = {
			add_extra_state_shared_building_slots = 1
			add_building_construction  = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}
		if = {
			limit = {
				check_variable = {
					var = random_resource_slavic
					value = 1
					compare = equals
				}
			}
			random_owned_state = {
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
		else_if = {
			limit = {
				check_variable = {
					var = random_resource_slavic
					value = 2
					compare = equals
				}
			}
			random_owned_state = {
				add_resource = {
					type = aluminium
					amount = 10
				}
			}
		}
		else_if = {
			limit = {
				check_variable = {
					var = random_resource_slavic
					value = 3
					compare = equals
				}
			}
			random_owned_state = {
				add_resource = {
					type = rubber
					amount = 10
				}
			}
		}
		else_if = {
			limit = {
				check_variable = {
					var = random_resource_slavic
					value = 4
					compare = equals
				}
			}
			random_owned_state = {
				add_resource = {
					type = tungsten
					amount = 10
				}
			}
		}
		else_if = {
			limit = {
				check_variable = {
					var = random_resource_slavic
					value = 5
					compare = equals
				}
			}
			random_owned_state = {
				add_resource = {
					type = steel
					amount = 10
				}
			}
		}
		else_if = {
			limit = {
				check_variable = {
					var = random_resource_slavic
					value = 6
					compare = equals
				}
			}
			random_owned_state = {
				add_resource = {
					type = chromium
					amount = 10
				}
			}
		}
	}
}

# Give Territory to KUR
country_event = {
	id = russia2_russia.506
	title = russia2_russia.506.t
	desc = russia2_russia.506.d
	picture = GFX_report_event_SOV_demands

	is_triggered_only = yes

	#Accept
	option = {
		name = russia2_russia.506.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					is_subject = yes
					strength_ratio = {
						tag = SOV
						ratio < 1
					}
				}
			}
		}
		every_owned_state = {
			limit = {
				OR = {
					is_core_of = KUR
					is_claimed_by = KUR
				}
			}
			KUR = {
				transfer_state = PREV
			}
		}
		SOV = {
			country_event = russia2_russia.507
		}
		hidden_effect = {
			KUR = {
				country_event = russia2_russia.507
			}
		}
	}

	#Refuse
	option = {
		name = russia2_russia.506.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					is_subject = yes
					strength_ratio = {
						tag = SOV
						ratio < 1
					}
				}
			}
		}
		trigger = {
			ROOT = {
				NOT = {
					tag = SOV
					tag = KUR
					is_in_faction_with = SOV
					if = {
						limit = {
							is_subject = yes
						}
						OVERLORD = {
							OR = {
								tag = SOV
								is_in_faction_with = SOV
							}
						}
					}
				}
			}
		}
		SOV = {
			country_event = russia2_russia.508
		}
		hidden_effect = {
			KUR = {
				country_event = russia2_russia.508
			}
		}
	}
}

# FROM Accepts
country_event = {
	id = russia2_russia.507
	title = russia2_russia.507.t
	desc = russia2_russia.507.d
	picture = GFX_soldiers_handshaking_kolchak_russia2

	is_triggered_only = yes

	#Great
	option = {
		name = russia2_russia.507.a
		ai_chance = {
			base = 100
		}
	}
}

# FROM Refuses
country_event = {
	id = russia2_russia.508
	title = russia2_russia.508.t
	desc = russia2_russia.508.d
	picture = GFX_report_event_SOV_mongolia_cavalry

	is_triggered_only = yes

	#War
	option = {
		name = russia2_russia.508.a
		ai_chance = {
			base = 100
		}
		create_wargoal = {
			target = FROM
			type = take_claimed_state
		}
	}
}

# Grand Duchess Anastasia Nikolaevna of Russia Returns (Anna Anderson)
country_event = {
	id = russia2_russia.509
	title = russia2_russia.509.t
	desc = russia2_russia.509.d
	picture = GFX_report_event_royal_parade

	is_triggered_only = yes

	timeout_days = 2

	immediate = {
		hidden_effect = {
			if = {
				limit = {
					tag = SOV
					has_government = neutrality
					is_subject = no
					has_capitulated = no
					has_completed_focus = SOV_restoration_tsar
					OR = {
						has_country_leader = {
							character = SOV_Kirill_vladimirovich
							ruling_only = yes
						}
						has_country_leader = {
							character = SOV_Vladimir_kirillovich
							ruling_only = yes
						}
					}
					NOT = {
						has_completed_focus = SOV_the_emperor
						has_completed_focus = SOV_the_empress
						has_country_leader = {
							character = SOV_Anastasia_nikolaevna
							ruling_only = yes
						}
					}
				}
				country_event = { id = russia2_russia.510 days = 50 }
			}
		}
	}

	#Oh hi
	option = {
		name = russia2_russia.509.a
		ai_chance = {
			base = 100
		}
		set_country_flag = sov_anna_anderson_returns_russia
		custom_effect_tooltip = unlock_decisions_anna_anderson
	}
}

# Meeting with Princess Irene of Hesse and by Rhine
country_event = {
	id = russia2_russia.510
	title = russia2_russia.510.t
	desc = russia2_russia.510.d
	picture = GFX_report_event_eng_edward_and_wallis

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_country_flag = sov_met_princess_irene
			if = {
				limit = {
					tag = SOV
					has_government = neutrality
					is_subject = no
					has_capitulated = no
					has_completed_focus = SOV_restoration_tsar
					OR = {
						has_country_leader = {
							character = SOV_Kirill_vladimirovich
							ruling_only = yes
						}
						has_country_leader = {
							character = SOV_Vladimir_kirillovich
							ruling_only = yes
						}
					}
					NOT = {
						has_completed_focus = SOV_the_emperor
						has_completed_focus = SOV_the_empress
						has_country_leader = {
							character = SOV_Anastasia_nikolaevna
							ruling_only = yes
						}
					}
				}
				country_event = { id = russia2_russia.511 days = 50 }
			}
		}
	}

	#Recognized
	option = {
		name = russia2_russia.510.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				has_country_flag = RUS_AI_ANASTASIA_NIKOLAEVNA_NEUTRALITY_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_ANASTASIA_NIKOLAEVNA_NEUTRALITY_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		add_to_variable = { anna_anderson_legitimacy = 0.05 }
		clamp_variable = {
			var = anna_anderson_legitimacy
			min = 0
			max = 1
		}
		set_variable = { anna_anderson_legitimacy_gui = anna_anderson_legitimacy }
		multiply_variable = { anna_anderson_legitimacy_gui = 100 }
		multiply_variable = { anna_anderson_legitimacy_gui = 2 }
		round_variable = anna_anderson_legitimacy_gui
		clamp_variable = {
			var = anna_anderson_legitimacy
			min = 0
			max = 200
		}
		custom_effect_tooltip = anna_anderson_add_legitimacy_5
		set_country_flag = sov_met_princess_irene_yes
		add_stability = 0.05
	}

	#Not Recognized
	option = {
		name = russia2_russia.510.b
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				has_country_flag = RUS_AI_VLADIMIR_KIRILLOVICH_NEUTRALITY_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_VLADIMIR_KIRILLOVICH_NEUTRALITY_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		subtract_from_variable = { anna_anderson_legitimacy = 0.05 }
		clamp_variable = {
			var = anna_anderson_legitimacy
			min = 0
			max = 1
		}
		set_variable = { anna_anderson_legitimacy_gui = anna_anderson_legitimacy }
		multiply_variable = { anna_anderson_legitimacy_gui = 100 }
		multiply_variable = { anna_anderson_legitimacy_gui = 2 }
		round_variable = anna_anderson_legitimacy_gui
		clamp_variable = {
			var = anna_anderson_legitimacy
			min = 0
			max = 200
		}
		custom_effect_tooltip = anna_anderson_remove_legitimacy_5
		set_country_flag = sov_met_princess_irene_no
		add_stability = -0.05
	}
}

# Meeting with Prince Felix Felixovich Yusupov
country_event = {
	id = russia2_russia.511
	title = russia2_russia.511.t
	desc = russia2_russia.511.d
	picture = GFX_report_event_royal_visit

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_country_flag = sov_met_prince_felix
			if = {
				limit = {
					tag = SOV
					has_government = neutrality
					is_subject = no
					has_capitulated = no
					has_completed_focus = SOV_restoration_tsar
					OR = {
						has_country_leader = {
							character = SOV_Kirill_vladimirovich
							ruling_only = yes
						}
						has_country_leader = {
							character = SOV_Vladimir_kirillovich
							ruling_only = yes
						}
					}
					NOT = {
						has_completed_focus = SOV_the_emperor
						has_completed_focus = SOV_the_empress
						has_country_leader = {
							character = SOV_Anastasia_nikolaevna
							ruling_only = yes
						}
					}
				}
				country_event = { id = russia2_russia.512 days = 50 }
			}
		}
	}

	#Recognized
	option = {
		name = russia2_russia.511.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				has_country_flag = RUS_AI_ANASTASIA_NIKOLAEVNA_NEUTRALITY_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_ANASTASIA_NIKOLAEVNA_NEUTRALITY_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		add_to_variable = { anna_anderson_legitimacy = 0.05 }
		clamp_variable = {
			var = anna_anderson_legitimacy
			min = 0
			max = 1
		}
		set_variable = { anna_anderson_legitimacy_gui = anna_anderson_legitimacy }
		multiply_variable = { anna_anderson_legitimacy_gui = 100 }
		multiply_variable = { anna_anderson_legitimacy_gui = 2 }
		round_variable = anna_anderson_legitimacy_gui
		clamp_variable = {
			var = anna_anderson_legitimacy
			min = 0
			max = 200
		}
		custom_effect_tooltip = anna_anderson_add_legitimacy_5
		add_stability = -0.05
		set_country_flag = sov_met_prince_felix_yes
	}

	#Not Recognized
	option = {
		name = russia2_russia.511.b
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				has_country_flag = RUS_AI_VLADIMIR_KIRILLOVICH_NEUTRALITY_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_VLADIMIR_KIRILLOVICH_NEUTRALITY_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		if = {
			limit = {
				check_variable = {
					var = anna_anderson_legitimacy
					value = 0.5
					compare = greater_than_or_equals
				}
			}
			subtract_from_variable = { anna_anderson_legitimacy = 0.07 }
			clamp_variable = {
				var = anna_anderson_legitimacy
				min = 0
				max = 1
			}
			set_variable = { anna_anderson_legitimacy_gui = anna_anderson_legitimacy }
			multiply_variable = { anna_anderson_legitimacy_gui = 100 }
			multiply_variable = { anna_anderson_legitimacy_gui = 2 }
			round_variable = anna_anderson_legitimacy_gui
			clamp_variable = {
				var = anna_anderson_legitimacy
				min = 0
				max = 200
			}
			custom_effect_tooltip = anna_anderson_remove_legitimacy_7
		}
		else = {
			subtract_from_variable = { anna_anderson_legitimacy = 0.03 }
			clamp_variable = {
				var = anna_anderson_legitimacy
				min = 0
				max = 1
			}
			set_variable = { anna_anderson_legitimacy_gui = anna_anderson_legitimacy }
			multiply_variable = { anna_anderson_legitimacy_gui = 100 }
			multiply_variable = { anna_anderson_legitimacy_gui = 2 }
			round_variable = anna_anderson_legitimacy_gui
			clamp_variable = {
				var = anna_anderson_legitimacy
				min = 0
				max = 200
			}
			custom_effect_tooltip = anna_anderson_remove_legitimacy_3
		}
		set_country_flag = sov_met_prince_felix_no
	}

	#He left unsure
	option = {
		name = russia2_russia.511.c
		ai_chance = {
			base = 0
		}
		add_political_power = -200
		set_country_flag = sov_met_prince_felix_unsure
	}
}

# Meeting with Grand Duchess Xenia Alexandrovna of Russia
country_event = {
	id = russia2_russia.512
	title = russia2_russia.512.t
	desc = russia2_russia.512.d
	picture = GFX_report_event_generic_bombers

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_country_flag = sov_met_grand_duchess_xenia
		}
	}

	#Recognized
	option = {
		name = russia2_russia.512.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				has_country_flag = RUS_AI_ANASTASIA_NIKOLAEVNA_NEUTRALITY_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_ANASTASIA_NIKOLAEVNA_NEUTRALITY_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		add_to_variable = { anna_anderson_legitimacy = 0.05 }
		clamp_variable = {
			var = anna_anderson_legitimacy
			min = 0
			max = 1
		}
		set_variable = { anna_anderson_legitimacy_gui = anna_anderson_legitimacy }
		multiply_variable = { anna_anderson_legitimacy_gui = 100 }
		multiply_variable = { anna_anderson_legitimacy_gui = 2 }
		round_variable = anna_anderson_legitimacy_gui
		clamp_variable = {
			var = anna_anderson_legitimacy
			min = 0
			max = 200
		}
		custom_effect_tooltip = anna_anderson_add_legitimacy_5
		add_stability = -0.1
		set_country_flag = sov_met_grand_duchess_xenia_yes
	}

	#Not Recognized
	option = {
		name = russia2_russia.512.b
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				has_country_flag = RUS_AI_VLADIMIR_KIRILLOVICH_NEUTRALITY_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_VLADIMIR_KIRILLOVICH_NEUTRALITY_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		subtract_from_variable = { anna_anderson_legitimacy = 0.05 }
		clamp_variable = {
			var = anna_anderson_legitimacy
			min = 0
			max = 1
		}
		set_variable = { anna_anderson_legitimacy_gui = anna_anderson_legitimacy }
		multiply_variable = { anna_anderson_legitimacy_gui = 100 }
		multiply_variable = { anna_anderson_legitimacy_gui = 2 }
		round_variable = anna_anderson_legitimacy_gui
		clamp_variable = {
			var = anna_anderson_legitimacy
			min = 0
			max = 200
		}
		custom_effect_tooltip = anna_anderson_remove_legitimacy_5
		add_stability = -0.1
		set_country_flag = sov_met_grand_duchess_xenia_no
	}
}

# Meeting with Prince Michael Andreevich of Russia
country_event = {
	id = russia2_russia.513
	title = russia2_russia.513.t
	desc = russia2_russia.513.d
	picture = GFX_report_event_eng_royal_family

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_country_flag = sov_met_prince_michael
		}
	}

	#Recognized
	option = {
		name = russia2_russia.513.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				has_country_flag = RUS_AI_ANASTASIA_NIKOLAEVNA_NEUTRALITY_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_ANASTASIA_NIKOLAEVNA_NEUTRALITY_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		add_to_variable = { anna_anderson_legitimacy = 0.05 }
		clamp_variable = {
			var = anna_anderson_legitimacy
			min = 0
			max = 1
		}
		set_variable = { anna_anderson_legitimacy_gui = anna_anderson_legitimacy }
		multiply_variable = { anna_anderson_legitimacy_gui = 100 }
		multiply_variable = { anna_anderson_legitimacy_gui = 2 }
		round_variable = anna_anderson_legitimacy_gui
		clamp_variable = {
			var = anna_anderson_legitimacy
			min = 0
			max = 200
		}
		custom_effect_tooltip = anna_anderson_add_legitimacy_5
		set_country_flag = sov_met_prince_michael_yes
	}

	#Not Recognized
	option = {
		name = russia2_russia.513.b
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				has_country_flag = RUS_AI_VLADIMIR_KIRILLOVICH_NEUTRALITY_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_VLADIMIR_KIRILLOVICH_NEUTRALITY_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		subtract_from_variable = { anna_anderson_legitimacy = 0.05 }
		clamp_variable = {
			var = anna_anderson_legitimacy
			min = 0
			max = 1
		}
		set_variable = { anna_anderson_legitimacy_gui = anna_anderson_legitimacy }
		multiply_variable = { anna_anderson_legitimacy_gui = 100 }
		multiply_variable = { anna_anderson_legitimacy_gui = 2 }
		round_variable = anna_anderson_legitimacy_gui
		clamp_variable = {
			var = anna_anderson_legitimacy
			min = 0
			max = 200
		}
		custom_effect_tooltip = anna_anderson_remove_legitimacy_5
		set_country_flag = sov_met_prince_michael_no
	}
}

# Anna Anderson Defeated
country_event = {
	id = russia2_russia.514
	title = russia2_russia.514.t
	desc = russia2_russia.514.d
	picture = GFX_royal_marriage_tsar_russia2

	is_triggered_only = yes

	immediate = {
		set_country_flag = sov_anna_anderson_struggle_over
		set_country_flag = sov_anna_anderson_defeated
	}

	#Bye Bye Impostor
	option = {
		name = russia2_russia.514.a
		ai_chance = {
			base = 100
		}
		remove_country_leader_trait = russia2_challenged_leader
		add_country_leader_trait = russia2_true_romanov
	}
}

# Anna Anderson Wins
country_event = {
	id = russia2_russia.515
	title = russia2_russia.515.t
	desc = russia2_russia.515.d
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes

	immediate = {
		set_country_flag = sov_anna_anderson_struggle_over
		set_country_flag = sov_anna_anderson_win
	}

	#Anastasia!
	option = {
		name = russia2_russia.515.a
		ai_chance = {
			base = 100
		}
		add_country_leader_role = {
			character = SOV_Anastasia_nikolaevna
			promote_leader = yes
			country_leader = {
				desc = SOV_Anastasia_nikolaevna_desc
				ideology = despotism
				expire = "1965.1.1.1"
				traits = {
					russia2_saint_grand_duchess_and_passion_bearer
				}
			}
		}
		hidden_effect = {
			if = {
				limit = {
					NOT = {
						is_in_array = { global.not_sus_achievement = THIS }
					}
				}
				add_to_array = { global.not_sus_achievement = THIS }
				set_variable = { global.not_sus_achievement_date@THIS = global.date }
				set_country_flag = russia_reworked_new_achievement
				if = {
					limit = {
						has_global_flag = russia_reworked_achievements_enabled
					}
					scoped_sound_effect = "russia_reworked_unlock_achievement"
				}
			}
		}
	}
}

# SOV wants to purchase african colony
country_event = {
	id = russia2_russia.516
	title = russia2_russia.516.t
	desc = russia2_russia.516.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			FROM.FROM = {
				save_event_target_as = sov_african_state_purchase
			}
		}
	}

	#Ok
	option = {
		name = russia2_russia.516.a
		ai_chance = {
			base = 70
			modifier = {
				add = 15
				strength_ratio = {
					tag = SOV
					ratio < 0.8
				}
			}
			modifier = {
				factor = 100
				FROM.FROM = {
					state = 268
				}
			}
		}
		ROOT = {
			if = {
				limit = {
					NOT = {
						has_idea = SOV_Selling_africa
					}
				}
				add_timed_idea = {
					idea = SOV_Selling_africa
					days = 30
				}
			}
			else = {
				modify_timed_idea = {
					idea = SOV_Selling_africa
					days = 30
				}
			}
		}
		FROM.FROM = {
			SOV = {
				country_event = russia2_russia.517
			}
		}
	}

	#No
	option = {
		name = russia2_russia.516.b
		ai_chance = {
			base = 30
			modifier = {
				add = -15
				strength_ratio = {
					tag = SOV
					ratio < 0.8
				}
			}
			modifier = {
				factor = 0
				FROM.FROM = {
					state = 268
				}
			}
		}
		ROOT = {
			add_political_power = 25
		}
		SOV = {
			country_event = russia2_russia.518
		}
	}
}

# FROM Accepts
country_event = {
	id = russia2_russia.517
	title = russia2_russia.517.t
	desc = russia2_russia.517.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			if = {
				limit = {
					event_target:sov_african_state_purchase = {
						state = 268
					}
				}
				goto_state = 268
				set_province_name = {
					id = 4985
					name = "New Moscow"
				}
				set_victory_points = {
					province = 4985
					value = 5
				}
				268 = {
					set_state_name = "Sagallo"
				}
			}
			else_if = {
				limit = {
					event_target:sov_african_state_purchase = {
						state = 269
					}
				}
				269 = {
					set_state_name = "Russian Somaliland"
				}
			}
		}
	}

	#Form a puppet
	option = {
		name = russia2_russia.517.a
		ai_chance = {
			base = 50
		}
		trigger = {
			any_of_scopes = {
				array = global.countries

				event_target:sov_african_state_purchase = {
					is_core_of = PREV
				}
				exists = no
			}
		}
		random_scope_in_array = {
			array = global.countries
			limit = {
				event_target:sov_african_state_purchase = {
					is_core_of = PREV
				}
				exists = no
			}

			transfer_state = event_target:sov_african_state_purchase
			ROOT = {
				set_autonomy = {
					target = PREV
					autonomy_state = autonomy_imperial_governorates
				}
			}
			hidden_effect = {
				set_popularities = {
					democratic = 10
					neutrality = 70
					fascism = 10
					communism = 10
				}
				if = {
					limit = {
						event_target:sov_african_state_purchase = {
							state = 268
						}
					}
					if = {
						limit = {
							NOT = {
								has_template = "New Moscow Imperial Guard"
							}
						}
						set_technology = {
							tech_support = 1
							tech_engineers = 1
							gw_artillery = 1
						}
						division_template = {
							name = "New Moscow Imperial Guard"
							priority = 2
							regiments = {
								infantry = { x = 0 y = 0 }
								infantry = { x = 0 y = 1 }
								infantry = { x = 0 y = 2 }
								infantry = { x = 0 y = 3 }
								infantry = { x = 0 y = 4 }
								infantry = { x = 1 y = 0 }
								infantry = { x = 1 y = 1 }
								artillery_brigade = { x = 1 y = 2 }
								artillery_brigade = { x = 1 y = 3 }
							}
							support = {
								engineer = { x = 0 y = 0 }
								artillery = { x = 0 y = 1 }
							}
						}
					}
					268 = {
						create_unit = {
							division = "name = \"1st New Moscow Imperial Guard Regiment\" division_template = \"New Moscow Imperial Guard\" start_experience_factor = 1.0 start_equipment_factor = 1.0"
							owner = PREV
							prioritize_location = 4985
						}
						create_unit = {
							division = "name = \"2nd New Moscow Imperial Guard Regiment\" division_template = \"New Moscow Imperial Guard\" start_experience_factor = 1.0 start_equipment_factor = 1.0"
							owner = PREV
							prioritize_location = 4985
						}
					}
				}
			}
		}
		if = {
			limit = {
				NOT = {
					has_idea = SOV_Purchase_africa
				}
			}
			add_timed_idea = {
				idea = SOV_Purchase_africa
				days = 30
			}
		}
		else = {
			modify_timed_idea = {
				idea = SOV_Purchase_africa
				days = 30
			}
		}
	}

	#Annex it
	option = {
		name = russia2_russia.517.b
		ai_chance = {
			base = 0
		}
		transfer_state = event_target:sov_african_state_purchase
		hidden_effect = {
			if = {
				limit = {
					event_target:sov_african_state_purchase = {
						has_resistance = no
					}
				}
				event_target:sov_african_state_purchase = {
					start_resistance = yes
				}
			}
			event_target:sov_african_state_purchase = {
				set_compliance = 25
			}
		}
		if = {
			limit = {
				NOT = {
					has_idea = SOV_Purchase_africa
				}
			}
			add_timed_idea = {
				idea = SOV_Purchase_africa
				days = 30
			}
		}
		else = {
			modify_timed_idea = {
				idea = SOV_Purchase_africa
				days = 30
			}
		}
		hidden_effect = {
			if = {
				limit = {
					event_target:sov_african_state_purchase = {
						state = 268
					}
				}
				if = {
					limit = {
						NOT = {
							has_template = "New Moscow Imperial Guard"
						}
					}
					set_technology = {
						tech_support = 1
						tech_engineers = 1
						gw_artillery = 1
					}
					division_template = {
						name = "New Moscow Imperial Guard"
						priority = 2
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							artillery_brigade = { x = 1 y = 2 }
							artillery_brigade = { x = 1 y = 3 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
				}
				268 = {
					create_unit = {
						division = "name = \"1st New Moscow Imperial Guard Regiment\" division_template = \"New Moscow Imperial Guard\" start_experience_factor = 1.0 start_equipment_factor = 1.0"
						owner = ROOT
						prioritize_location = 4985
					}
					create_unit = {
						division = "name = \"2nd New Moscow Imperial Guard Regiment\" division_template = \"New Moscow Imperial Guard\" start_experience_factor = 1.0 start_equipment_factor = 1.0"
						owner = ROOT
						prioritize_location = 4985
					}
				}
			}
		}
	}

	#Give it to ally
	option = {
		name = russia2_russia.517.c
		ai_chance = {
			base = 100
		}
		trigger = {
			any_country = {
				OR = {
					is_in_faction_with = ROOT
					is_subject_of = ROOT
				}
				event_target:sov_african_state_purchase = {
					is_core_of = PREV
				}
			}
		}
		random_scope_in_array = {
			array = global.countries
			limit = {
				OR = {
					is_in_faction_with = ROOT
					is_subject_of = ROOT
				}
				event_target:sov_african_state_purchase = {
					is_core_of = PREV
				}
			}

			transfer_state = event_target:sov_african_state_purchase
			hidden_effect = {
				if = {
					limit = {
						event_target:sov_african_state_purchase = {
							state = 268
						}
					}
					if = {
						limit = {
							NOT = {
								has_template = "New Moscow Imperial Guard"
							}
						}
						set_technology = {
							tech_support = 1
							tech_engineers = 1
							gw_artillery = 1
						}
						division_template = {
							name = "New Moscow Imperial Guard"
							priority = 2
							regiments = {
								infantry = { x = 0 y = 0 }
								infantry = { x = 0 y = 1 }
								infantry = { x = 0 y = 2 }
								infantry = { x = 0 y = 3 }
								infantry = { x = 0 y = 4 }
								infantry = { x = 1 y = 0 }
								infantry = { x = 1 y = 1 }
								artillery_brigade = { x = 1 y = 2 }
								artillery_brigade = { x = 1 y = 3 }
							}
							support = {
								engineer = { x = 0 y = 0 }
								artillery = { x = 0 y = 1 }
							}
						}
					}
					268 = {
						create_unit = {
							division = "name = \"1st New Moscow Imperial Guard Regiment\" division_template = \"New Moscow Imperial Guard\" start_experience_factor = 1.0 start_equipment_factor = 1.0"
							owner = PREV
							prioritize_location = 4985
						}
						create_unit = {
							division = "name = \"2nd New Moscow Imperial Guard Regiment\" division_template = \"New Moscow Imperial Guard\" start_experience_factor = 1.0 start_equipment_factor = 1.0"
							owner = PREV
							prioritize_location = 4985
						}
					}
				}
			}
		}
		if = {
			limit = {
				NOT = {
					has_idea = SOV_Purchase_africa
				}
			}
			add_timed_idea = {
				idea = SOV_Purchase_africa
				days = 30
			}
		}
		else = {
			modify_timed_idea = {
				idea = SOV_Purchase_africa
				days = 30
			}
		}
	}
}

# FROM Refuses
country_event = {
	id = russia2_russia.518
	title = russia2_russia.518.t
	desc = russia2_russia.518.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes

	# :(
	option = {
		name = russia2_russia.518.a
		ai_chance = {
			base = 100
		}
		add_political_power = 25
		add_state_claim = event_target:sov_african_state_purchase
	}
}

# Mass Protest in the Capital
country_event = {
	id = russia2_russia.519
	title = russia2_russia.519.t
	desc = russia2_russia.519.d
	picture = GFX_report_event_generic_riot

	is_triggered_only = yes

	option = { #We must stay vigilant
		name = russia2_russia.519.a
		add_ideas = SOV_Anti_military_junta_protestor
		hidden_effect = {
			country_event = { id = russia2_russia.520 days = 370 }
		}
	}
}

# Mass Protestor are launching an offensive !
country_event = {
	id = russia2_russia.520
	title = russia2_russia.520.t
	desc = russia2_russia.520.d
	picture = GFX_report_event_generic_riot

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			every_state = {
				limit = {
					is_owned_by = SOV
					is_core_of = SOV
					is_capital = yes
				}
				SOV = {
					remove_state_core = PREV
				}
				PRT = {
					add_state_core = PREV
				}
			}
			SOV = {
				release = PRT
			}
		}
	}

	option = { #Crush them
		name = russia2_russia.520.a
		hidden_effect = {
			set_country_flag = protestors_striked_anti_military_junta
			PRT = {
				add_ideas = SOV_Protestors_neutrality
				set_popularities = {
					democratic = 20
					neutrality = 40
					fascism = 20
					communism = 20
				}
				division_template = {
					name = "Protestors Division"
					priority = 1
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
						infantry = { x = 0 y = 3 }
						infantry = { x = 0 y = 4 }
						infantry = { x = 1 y = 0 }
						infantry = { x = 1 y = 1 }
						infantry = { x = 1 y = 2 }
						infantry = { x = 1 y = 3 }
						infantry = { x = 1 y = 4 }
					}
					support = {
						engineer = { x = 0 y = 0 }
					}
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "name = \"1st Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"2nd Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"3rd Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"4th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"5th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"6th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"7th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"8th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"9th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"10th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"11th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"12th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"13th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"14th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"15th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"16th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"17th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"18th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"19th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"20th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
				}
				declare_war_on = {
					target = SOV
					type = annex_everything
				}
			}
		}
	}
}

#The Protestors Strikes Again
country_event = {
	id = russia2_russia.521
	title = russia2_russia.521.t
	desc = russia2_russia.521.d
	picture = GFX_report_event_generic_riot

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			every_state = {
				limit = {
					is_owned_by = SOV
					has_state_flag = is_controlled_protestor_state
				}
				PRT = {
					add_state_core = PREV
				}
			}
			random_owned_controlled_state = {
				limit = {
					NOT = {
						has_state_flag = is_controlled_protestor_state
					}
					is_owned_by = SOV
					is_core_of = SOV
					NOT = {
						state = 655
					}
				}
				SOV = {
					remove_state_core = PREV
				}
				PRT = {
					add_state_core = PREV
				}
			}
			every_state = {
				limit = {
					is_core_of = PRT
				}
				PRT = {
					transfer_state = PREV
					set_state_controller = PREV
				}
			}
		}
	}

	option = { #We must stay vigilant
		name = russia2_russia.521.a
		hidden_effect = {
			if = {
				limit = {
					check_variable = {
						var = protestors_destruction_variable
						value = 85
						compare = greater_than_or_equals
					}
				}
				SOV = {
					set_country_flag = killed_the_protestor_junta
				}
			}
			else = {
				add_to_variable = {
					var = protestors_destruction_variable
					value = 10
				}
				randomize_variable = {
					var = protestors_destruction_variable
					distribution = uniform
					min = protestors_destruction_variable
					max = 100
				}
				round_variable = protestors_destruction_variable
			}
			PRT = {
				add_ideas = SOV_Protestors_neutrality
				set_popularities = {
					democratic = 20
					neutrality = 40
					fascism = 20
					communism = 20
				}
				if = {
					limit = {
						PRT = {
							NOT = {
								has_template = "Protestors Division"
							}
						}
					}
					PRT = {
						division_template = {
							name = "Protestors Division"
							priority = 1
							regiments = {
								infantry = { x = 0 y = 0 }
								infantry = { x = 0 y = 1 }
								infantry = { x = 0 y = 2 }
								infantry = { x = 0 y = 3 }
								infantry = { x = 0 y = 4 }
								infantry = { x = 1 y = 0 }
								infantry = { x = 1 y = 1 }
								infantry = { x = 1 y = 2 }
								infantry = { x = 1 y = 3 }
								infantry = { x = 1 y = 4 }
								artillery_brigade = { x = 2 y = 0 }
								artillery_brigade = { x = 2 y = 1 }
							}
							support = {
								engineer = { x = 0 y = 0 }
								artillery = { x = 0 y = 1 }
							}
						}
					}
				}
				capital_scope = {
					create_unit = {
						division = "name = \"1st Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"2nd Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"3rd Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"4th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"5th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"6th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"7th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"8th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"9th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"10th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"11th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"12th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"13th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"14th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"15th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"16th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"17th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"18th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"19th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"20th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
				}
				random_owned_controlled_state = {
					limit = {
						is_capital = no
					}
					create_unit = {
						division = "name = \"21th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"22th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"23th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"24th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"25th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
				}
				random_owned_controlled_state = {
					limit = {
						is_capital = no
					}
					create_unit = {
						division = "name = \"26th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"27th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"28th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"29th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"30th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
				}
				random_owned_controlled_state = {
					limit = {
						is_capital = no
					}
					create_unit = {
						division = "name = \"31th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"32th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"33th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"34th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"35th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
				}
				random_owned_controlled_state = {
					limit = {
						is_capital = no
					}
					create_unit = {
						division = "name = \"36th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"37th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"38th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"39th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
					create_unit = {
						division = "name = \"40th Protestors Division\" division_template = \"Protestors Division\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
						owner = PRT
					}
				}
				declare_war_on = {
					target = SOV
					type = annex_everything
				}
			}
		}
	}
}

#Protestors Movement is Dead
country_event = {
	id = russia2_russia.522
	title = russia2_russia.522.t
	desc = russia2_russia.522.d
	picture = GFX_report_event_dead_soldiers

	is_triggered_only = yes

	option = { #We are done with the protestors
		name = russia2_russia.522.a
		remove_ideas = SOV_Anti_military_junta_protestor
		clr_country_flag = is_crushing_the_protestors
	}
}

#Fuck operations
country_event = {
	id = russia2_russia.523

	hidden = yes

	is_triggered_only = yes

	immediate = {
		if = {
			limit = {
				ROOT = {
					controls_state = event_target:sov_target_country_revolution
				}
				any_of_scopes = {
					array = global.countries

					event_target:sov_target_country_revolution = {
						is_core_of = PREV
					}
					exists = no
				}
			}
			random_scope_in_array = {
				array = global.countries
				limit = {
					event_target:sov_target_country_revolution = {
						is_core_of = PREV
					}
					exists = no
				}

				set_temp_variable = { revolution_normal_division_count = 1 }
				set_temp_variable = { revolution_soviet_division_count = 1 }
				if = {
					limit = {
						event_target:sov_target_country_revolution = {
							has_resistance = yes
						}
					}
					set_temp_variable = { resistance_division_multiplier = event_target:sov_target_country_revolution.resistance }

					divide_temp_variable = { resistance_division_multiplier = 10 }
					if = {
						limit = {
							SOV = {
								has_completed_focus = SOV_liberation_of_the_workers
							}
						}
						clamp_temp_variable = {
							var = resistance_division_multiplier
							min = 1
							max = 10
						}
					}
					else = {
						clamp_temp_variable = {
							var = resistance_division_multiplier
							min = 1
							max = 5
						}
					}
					round_temp_variable = resistance_division_multiplier
					multiply_temp_variable = { revolution_normal_division_count = resistance_division_multiplier }

					divide_temp_variable = { resistance_division_multiplier = 2 }
					if = {
						limit = {
							SOV = {
								has_completed_focus = SOV_liberation_of_the_workers
							}
						}
						clamp_temp_variable = {
							var = resistance_division_multiplier
							min = 1
							max = 10
						}
					}
					else = {
						clamp_temp_variable = {
							var = resistance_division_multiplier
							min = 0
							max = 5
						}
					}
					round_temp_variable = resistance_division_multiplier
					multiply_temp_variable = { revolution_soviet_division_count = resistance_division_multiplier }
				}

				transfer_state = event_target:sov_target_country_revolution
				set_country_flag = liberated_by_sov
				leave_faction = yes
				if = {
					limit = {
						SOV = {
							has_completed_focus = SOV_liberation_of_the_workers
						}
					}
					add_political_power = 300
					army_experience = 50
				}
				else = {
					add_political_power = 150
					army_experience = 25
				}
				add_opinion_modifier = { target = SOV modifier = liberator_workers }
				hidden_effect = {
					set_popularities = {
						democratic = 0
						neutrality = 0
						fascism = 0
						communism = 100
					}
					set_politics = {
						ruling_party = communism
					}
					add_timed_idea = {
						idea = SOV_Fight_revolution
						days = 182
					}
					set_technology = {
						gw_artillery = 1
						tech_recon = 1
						tech_support = 1
						tech_engineers = 1
					}

					if = {
						limit = {
							NOT = {
								has_template = "Soviet Workers"
							}
						}
						division_template = {
							name = "Soviet Workers"
							priority = 1
							regiments = {
								infantry = { x = 0 y = 0 }
								infantry = { x = 0 y = 1 }
								infantry = { x = 0 y = 2 }
								infantry = { x = 0 y = 3 }
								infantry = { x = 0 y = 4 }
							}
							support = {
								artillery = { x = 0 y = 0 }
								recon = { x = 0 y = 1 }
							}
						}
					}

					set_division_template_lock = {
						division_template = "Soviet Workers"
						is_locked = yes
					}

					if = {
						limit = {
							NOT = {
								has_template = "Soviet Volunteers"
							}
						}
						division_template = {
							name = "Soviet Volunteers"
							priority = 2
							regiments = {
								infantry = { x = 0 y = 0 }
								infantry = { x = 0 y = 1 }
								infantry = { x = 0 y = 2 }
								infantry = { x = 0 y = 3 }
								infantry = { x = 0 y = 4 }
								artillery_brigade = { x = 1 y = 0 }
								artillery_brigade = { x = 1 y = 1 }
							}
							support = {
								artillery = { x = 0 y = 0 }
								recon = { x = 0 y = 1 }
								engineer = { x = 0 y = 2 }
							}
						}
					}

					set_division_template_lock = {
						division_template = "Soviet Volunteers"
						is_locked = yes
					}

					while_loop_effect = {
						break = break_loop
						limit = {
							check_variable = {
								var = revolution_normal_division_count
								value = 1
								compare = greater_than_or_equals
							}
						}

						event_target:sov_target_country_revolution = {
							create_unit = {
								division = "name = \"Soviet Workers\" division_template = \"Soviet Workers\" start_experience_factor = 0.3"
								owner = PREV
							}
							if = {
								limit = {
									check_variable = {
										var = revolution_soviet_division_count
										value = 1
										compare = greater_than_or_equals
									}
								}
								create_unit = {
									division = "name = \"Soviet Volunteers\" division_template = \"Soviet Volunteers\" start_experience_factor = 1"
									owner = PREV
								}
								PREV = {
									subtract_from_temp_variable = { revolution_soviet_division_count = 1 }
								}
							}
						}
						subtract_from_temp_variable = { revolution_normal_division_count = 1 }
					}

					ROOT = {
						declare_war_on = {
							target = PREV
							type = annex_everything
						}
					}
				}
			}
			SOV = {
				add_to_variable = { sov_trotsky_successful_revolution_count = 1 }
				if = {
					limit = {
						check_variable = {
							var = sov_trotsky_successful_revolution_count
							value = 5
							compare = greater_than_or_equals
						}
						NOT = {
							is_in_array = { global.quick_revolution_achievement = THIS }
						}
					}
					add_to_array = { global.quick_revolution_achievement = THIS }
					set_variable = { global.quick_revolution_achievement_date@THIS = global.date }
					set_country_flag = russia_reworked_new_achievement
					if = {
						limit = {
							has_global_flag = russia_reworked_achievements_enabled
						}
						scoped_sound_effect = "russia_reworked_unlock_achievement"
					}
				}
			}
		}
		else = {
			if = {
				limit = {
					SOV = {
						has_completed_focus = SOV_liberation_of_the_workers
					}
				}
				ROOT = {
					add_popularity = {
						ideology = communism
						popularity = 0.1
					}
				}
			}
			else = {
				ROOT = {
					add_popularity = {
						ideology = communism
						popularity = 0.05
					}
				}
			}
			if = {
				limit = {
					event_target:sov_target_country_revolution = {
						has_resistance = yes
					}
				}
				if = {
					limit = {
						SOV = {
							has_completed_focus = SOV_liberation_of_the_workers
						}
					}
					event_target:sov_target_country_revolution = {
						add_resistance = 50
					}
				}
				else = {
					event_target:sov_target_country_revolution = {
						add_resistance = 25
					}
				}
			}
		}
	}
}

#Really
country_event = {
	id = russia2_russia.524

	hidden = yes

	is_triggered_only = yes

	immediate = {
		if = {
			limit = {
				ROOT = {
					controls_state = event_target:sov_target_country_revolution
				}
				any_of_scopes = {
					array = global.countries

					event_target:sov_target_country_revolution = {
						is_core_of = PREV
					}
					exists = no
				}
			}
			random_scope_in_array = {
				array = global.countries
				limit = {
					event_target:sov_target_country_revolution = {
						is_core_of = PREV
					}
					exists = no
				}

				set_temp_variable = { revolution_normal_division_count = 2 }
				set_temp_variable = { revolution_soviet_division_count = 2 }
				if = {
					limit = {
						event_target:sov_target_country_revolution = {
							has_resistance = yes
						}
					}
					set_temp_variable = { resistance_division_multiplier = event_target:sov_target_country_revolution.resistance }

					divide_temp_variable = { resistance_division_multiplier = 10 }
					if = {
						limit = {
							SOV = {
								has_completed_focus = SOV_liberation_of_the_workers
							}
						}
						clamp_temp_variable = {
							var = resistance_division_multiplier
							min = 1
							max = 10
						}
					}
					else = {
						clamp_temp_variable = {
							var = resistance_division_multiplier
							min = 1
							max = 5
						}
					}
					round_temp_variable = resistance_division_multiplier
					multiply_temp_variable = { revolution_normal_division_count = resistance_division_multiplier }

					divide_temp_variable = { resistance_division_multiplier = 2 }
					if = {
						limit = {
							SOV = {
								has_completed_focus = SOV_liberation_of_the_workers
							}
						}
						clamp_temp_variable = {
							var = resistance_division_multiplier
							min = 1
							max = 10
						}
					}
					else = {
						clamp_temp_variable = {
							var = resistance_division_multiplier
							min = 0
							max = 5
						}
					}
					round_temp_variable = resistance_division_multiplier
					multiply_temp_variable = { revolution_soviet_division_count = resistance_division_multiplier }
				}

				transfer_state = event_target:sov_target_country_revolution
				set_country_flag = liberated_by_sov
				leave_faction = yes
				if = {
					limit = {
						SOV = {
							has_completed_focus = SOV_liberation_of_the_workers
						}
					}
					add_political_power = 300
					army_experience = 50
				}
				else = {
					add_political_power = 150
					army_experience = 25
				}
				add_opinion_modifier = { target = SOV modifier = liberator_workers }
				hidden_effect = {
					set_popularities = {
						democratic = 0
						neutrality = 0
						fascism = 0
						communism = 100
					}
					set_politics = {
						ruling_party = communism
					}
					add_timed_idea = {
						idea = SOV_Fight_revolution
						days = 182
					}
					set_technology = {
						gw_artillery = 1
						tech_recon = 1
						tech_support = 1
						tech_engineers = 1
					}

					if = {
						limit = {
							NOT = {
								has_template = "Soviet Workers"
							}
						}
						division_template = {
							name = "Soviet Workers"
							priority = 1
							regiments = {
								infantry = { x = 0 y = 0 }
								infantry = { x = 0 y = 1 }
								infantry = { x = 0 y = 2 }
								infantry = { x = 0 y = 3 }
								infantry = { x = 0 y = 4 }
							}
							support = {
								artillery = { x = 0 y = 0 }
								recon = { x = 0 y = 1 }
							}
						}
					}

					set_division_template_lock = {
						division_template = "Soviet Workers"
						is_locked = yes
					}

					if = {
						limit = {
							NOT = {
								has_template = "Soviet Volunteers"
							}
						}
						division_template = {
							name = "Soviet Volunteers"
							priority = 2
							regiments = {
								infantry = { x = 0 y = 0 }
								infantry = { x = 0 y = 1 }
								infantry = { x = 0 y = 2 }
								infantry = { x = 0 y = 3 }
								infantry = { x = 0 y = 4 }
								artillery_brigade = { x = 1 y = 0 }
								artillery_brigade = { x = 1 y = 1 }
							}
							support = {
								artillery = { x = 0 y = 0 }
								recon = { x = 0 y = 1 }
								engineer = { x = 0 y = 2 }
							}
						}
					}

					set_division_template_lock = {
						division_template = "Soviet Volunteers"
						is_locked = yes
					}

					while_loop_effect = {
						break = break_loop
						limit = {
							check_variable = {
								var = revolution_normal_division_count
								value = 1
								compare = greater_than_or_equals
							}
						}

						event_target:sov_target_country_revolution = {
							create_unit = {
								division = "name = \"Soviet Workers\" division_template = \"Soviet Workers\" start_experience_factor = 0.3"
								owner = PREV
							}
							if = {
								limit = {
									check_variable = {
										var = revolution_soviet_division_count
										value = 1
										compare = greater_than_or_equals
									}
								}
								create_unit = {
									division = "name = \"Soviet Volunteers\" division_template = \"Soviet Volunteers\" start_experience_factor = 1"
									owner = PREV
								}
								PREV = {
									subtract_from_temp_variable = { revolution_soviet_division_count = 1 }
								}
							}
						}
						subtract_from_temp_variable = { revolution_normal_division_count = 1 }
					}

					ROOT = {
						declare_war_on = {
							target = PREV
							type = annex_everything
						}
					}
				}
			}
			SOV = {
				add_to_variable = { sov_trotsky_successful_revolution_count = 1 }
				if = {
					limit = {
						check_variable = {
							var = sov_trotsky_successful_revolution_count
							value = 5
							compare = greater_than_or_equals
						}
						NOT = {
							is_in_array = { global.quick_revolution_achievement = THIS }
						}
					}
					add_to_array = { global.quick_revolution_achievement = THIS }
					set_variable = { global.quick_revolution_achievement_date@THIS = global.date }
					set_country_flag = russia_reworked_new_achievement
					if = {
						limit = {
							has_global_flag = russia_reworked_achievements_enabled
						}
						scoped_sound_effect = "russia_reworked_unlock_achievement"
					}
				}
			}
		}
		else = {
			if = {
				limit = {
					SOV = {
						has_completed_focus = SOV_liberation_of_the_workers
					}
				}
				ROOT = {
					add_popularity = {
						ideology = communism
						popularity = 0.15
					}
				}
			}
			else = {
				ROOT = {
					add_popularity = {
						ideology = communism
						popularity = 0.1
					}
				}
			}
			if = {
				limit = {
					event_target:sov_target_country_revolution = {
						has_resistance = yes
					}
				}
				if = {
					limit = {
						SOV = {
							has_completed_focus = SOV_liberation_of_the_workers
						}
					}
					event_target:sov_target_country_revolution = {
						add_resistance = 75
					}
				}
				else = {
					event_target:sov_target_country_revolution = {
						add_resistance = 50
					}
				}
			}
		}
	}
}

#Defend SOV (UNUSED)
country_event = {
	id = russia2_russia.525
	title = russia2_russia.525.t
	desc = russia2_russia.525.d
	picture = GFX_report_event_dead_soldiers

	is_triggered_only = yes

	option = { #Ok
		name = russia2_russia.525.a
		add_political_power = 25
	}
}

#Attack with SOV (UNUSED)
country_event = {
	id = russia2_russia.526
	title = russia2_russia.526.t
	desc = russia2_russia.526.d
	picture = GFX_report_event_dead_soldiers

	is_triggered_only = yes

	option = { #Ok
		name = russia2_russia.526.a
		add_political_power = 25
	}
}

#Vote on Ultimatum
country_event = {
	id = russia2_russia.527
	title = russia2_russia.527.t
	desc = russia2_russia.527.d
	picture = GFX_report_event_generic_conference

	timeout_days = 8

	is_triggered_only = yes

	option = { #Yes
		name = russia2_russia.527.a
		ai_chance = {
			base = 85
			modifier = {
				add = -75
				OR = {
					has_opinion = {
						target = event_target:sov_current_democratic_target_event_target
						value > 50
					}
					has_non_aggression_pact_with = event_target:sov_current_democratic_target_event_target
					surrender_progress > 0.1
				}
			}
			modifier = {
				add = -25
				OR = {
					has_opinion = {
						target = event_target:sov_current_democratic_target_event_target
						value > 25
					}
					has_war = yes
				}
			}
		}
		set_country_flag = sov_voted_yes_last_vote
		custom_effect_tooltip = sov_will_vote_for
		hidden_effect = {
			SOV = {
				add_to_variable = { current_democratic_vote^0 = 1 }
				add_to_array = { current_democratic_vote_for = THIS }
				add_to_array = { current_democratic_vote_registered = THIS }
				calculate_sov_gui_percentage_democratic_vote = yes
			}
		}
	}

	option = { #No
		name = russia2_russia.527.b
		ai_chance = {
			base = 10
			modifier = {
				add = 80
				OR = {
					has_opinion = {
						target = event_target:sov_current_democratic_target_event_target
						value > 50
					}
					has_non_aggression_pact_with = event_target:sov_current_democratic_target_event_target
					surrender_progress > 0.1
				}
			}
			modifier = {
				add = 40
				OR = {
					has_opinion = {
						target = event_target:sov_current_democratic_target_event_target
						value > 25
					}
					has_war = yes
				}
			}
		}
		set_country_flag = sov_voted_no_last_vote
		custom_effect_tooltip = sov_will_vote_against
		hidden_effect = {
			SOV = {
				add_to_variable = { current_democratic_vote^1 = 1 }
				add_to_array = { current_democratic_vote_against = THIS }
				add_to_array = { current_democratic_vote_registered = THIS }
				calculate_sov_gui_percentage_democratic_vote = yes
			}
		}
	}

	option = { #Don't vote
		name = russia2_russia.527.c
		ai_chance = {
			base = 5
		}
		set_country_flag = sov_voted_not_last_vote
		custom_effect_tooltip = sov_will_skip_vote
		hidden_effect = {
			SOV = {
				add_to_array = { current_democratic_vote_not = THIS }
			}
		}
	}
}

#Voting Result - We win (50% or above)
country_event = {
	id = russia2_russia.528
	title = russia2_russia.528.t
	desc = russia2_russia.528.d
	picture = GFX_report_event_communists_cheer

	is_triggered_only = yes

	timeout_days = 5

	option = { #Yay
		name = russia2_russia.528.a
		ai_chance = {
			base = 100
		}
		clear_array = SOV.current_democratic_vote
		clear_array = SOV.current_democratic_vote_not
		clear_array = SOV.current_democratic_vote_for
		clear_array = SOV.current_democratic_vote_against
		clear_array = SOV.current_democratic_vote_registered
		clear_array = SOV.current_democratic_vote_participants
		if = {
			limit = {
				has_country_flag = sov_democratic_target_alone
			}
			var:SOV.current_democratic_target = {
				country_event = russia2_russia.533
			}
			clr_country_flag = sov_democratic_target_alone
		}
		else_if = {
			limit = {
				has_country_flag = sov_democratic_target_alliance
			}
			var:SOV.current_democratic_target = {
				country_event = russia2_russia.530
			}
			clr_country_flag = sov_democratic_target_alliance
		}
		clr_country_flag = sov_democratic_vote_started
		custom_effect_tooltip = sov_democratic_can_launch_another_vote
	}
}

#Voting Result - We lose (less than 50%)
country_event = {
	id = russia2_russia.529
	title = russia2_russia.529.t
	desc = russia2_russia.529.d
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes

	timeout_days = 5

	option = { #Aw
		name = russia2_russia.529.a
		ai_chance = {
			base = 100
		}
		clear_array = SOV.current_democratic_vote
		clear_array = SOV.current_democratic_vote_not
		clear_array = SOV.current_democratic_vote_for
		clear_array = SOV.current_democratic_vote_against
		clear_array = SOV.current_democratic_vote_registered
		clear_array = SOV.current_democratic_vote_participants
		clr_country_flag = sov_democratic_target_alone
		clr_country_flag = sov_democratic_target_alliance
		add_political_power = 25
		clr_country_flag = sov_democratic_vote_started
		custom_effect_tooltip = sov_democratic_can_launch_another_vote
	}
}

#Democratic Russia Demands Dismantle of our Faction
country_event = {
	id = russia2_russia.530
	title = russia2_russia.530.t
	desc = russia2_russia.530.d
	picture = GFX_menacing_tanks_russia2

	is_triggered_only = yes

	option = { #Yes
		name = russia2_russia.530.a
		ai_chance = {
			base = 25
			modifier = {
				add = 25
				any_country = {
					has_war_with = ROOT
					is_major = yes
				}
			}
			modifier = {
				add = -10
				num_faction_members > 10
			}
			modifier = {
				factor = 0
				strength_ratio = {
					tag = SOV
					ratio < 0.25
				}
			}
			modifier = {
				add = 50
				strength_ratio = {
					tag = SOV
					ratio < 0.75
				}
			}
		}
		if = {
			limit = {
				is_faction_leader = yes
			}
			dismantle_faction = yes
		}
		else_if = {
			limit = {
				is_in_faction = yes
				is_subject = no
			}
			leave_faction = yes
		}
		add_timed_idea = {
			idea = SOV_Restrictions_democratic_russia
			days = 90
		}
		SOV = {
			country_event = { id = russia2_russia.531 days = 1 }
		}
	}

	option = { #No
		name = russia2_russia.530.b
		ai_chance = {
			base = 75
			modifier = {
				add = -25
				any_country = {
					has_war_with = ROOT
					is_major = yes
				}
			}
			modifier = {
				add = 10
				num_faction_members > 10
			}
			modifier = {
				add = 25
				strength_ratio = {
					tag = SOV
					ratio < 0.25
				}
			}
			modifier = {
				add = -50
				strength_ratio = {
					tag = SOV
					ratio < 0.75
				}
			}
		}
		custom_effect_tooltip = will_lead_to_war_with_sov_democratic
		SOV = {
			country_event = { id = russia2_russia.532 days = 1 }
		}
	}
}

#FROM Accepts
country_event = {
	id = russia2_russia.531
	title = russia2_russia.531.t
	desc = russia2_russia.531.d
	picture = GFX_soldiers_handshaking_kolchak_russia2

	is_triggered_only = yes

	option = { #Yay
		name = russia2_russia.531.a
		ai_chance = {
			base = 100
		}
		add_political_power = 50
	}
}

#FROM Refuses
country_event = {
	id = russia2_russia.532
	title = russia2_russia.532.t
	desc = russia2_russia.532.d
	picture = GFX_report_event_SOV_military_offensive

	is_triggered_only = yes

	option = { #Kill
		name = russia2_russia.532.a
		ai_chance = {
			base = 100
		}
		declare_war_on = {
			target = FROM
			type = defense_external_threats
		}
	}
}

#Democratic Russia Demands Subjugation
country_event = {
	id = russia2_russia.533
	title = russia2_russia.533.t
	desc = russia2_russia.533.d
	picture = GFX_report_event_SOV_national_academy_of_sciences

	is_triggered_only = yes

	option = { #Yes
		name = russia2_russia.533.a
		ai_chance = {
			base = 25
			modifier = {
				add = 25
				any_country = {
					has_war_with = ROOT
					is_major = yes
				}
			}
			modifier = {
				factor = 10
				strength_ratio = {
					tag = SOV
					ratio < 0.25
				}
			}
			modifier = {
				add = -25
				strength_ratio = {
					tag = SOV
					ratio < 0.75
				}
			}
			modifier = {
				add = -50
				strength_ratio = {
					tag = SOV
					ratio > 1
				}
			}
		}
		SOV = {
			set_autonomy = {
				target = ROOT
				autonomy_state = autonomy_dominion
			}
			country_event = { id = russia2_russia.534 days = 1 }
		}
		hidden_effect = {
			set_popularities = {
				democratic = 70
				neutrality = 10
				fascism = 10
				communism = 10
			}
		}
	}

	option = { #No
		name = russia2_russia.533.b
		ai_chance = {
			base = 75
			modifier = {
				add = -25
				any_country = {
					has_war_with = ROOT
					is_major = yes
				}
			}
			modifier = {
				factor = 0
				strength_ratio = {
					tag = SOV
					ratio < 0.25
				}
			}
			modifier = {
				add = 25
				strength_ratio = {
					tag = SOV
					ratio < 0.75
				}
			}
			modifier = {
				add = 50
				strength_ratio = {
					tag = SOV
					ratio > 1
				}
			}
		}
		custom_effect_tooltip = will_lead_to_war_with_sov_democratic
		SOV = {
			country_event = { id = russia2_russia.535 days = 1 }
		}
	}
}

#FROM Accepts
country_event = {
	id = russia2_russia.534
	title = russia2_russia.534.t
	desc = russia2_russia.534.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #Yay
		name = russia2_russia.534.a
		ai_chance = {
			base = 100
		}
		add_political_power = 50
	}
}

#FROM Refuses
country_event = {
	id = russia2_russia.535
	title = russia2_russia.535.t
	desc = russia2_russia.535.d
	picture = GFX_report_event_SOV_military_offensive

	is_triggered_only = yes

	option = { #Kill
		name = russia2_russia.535.a
		ai_chance = {
			base = 100
		}
		declare_war_on = {
			target = FROM
			type = defense_external_threats
		}
	}
}

#Voting Result (passes)
country_event = {
	id = russia2_russia.536
	title = russia2_russia.536.t
	desc = russia2_russia.536.d
	picture = GFX_report_event_sanation_left_victory

	is_triggered_only = yes

	timeout_days = 5

	option = { #Ok
		name = russia2_russia.536.a
		ai_chance = {
			base = 100
		}
		add_political_power = 25
		if = {
			limit = {
				NOT = {
					tag = SOV
				}
			}
			custom_effect_tooltip = will_help_sov_no_matter_what
		}
	}
}

#Voting Result (fails)
country_event = {
	id = russia2_russia.537
	title = russia2_russia.537.t
	desc = russia2_russia.537.d
	picture = GFX_report_event_poland_rejects

	is_triggered_only = yes

	timeout_days = 5

	option = { #Ok
		name = russia2_russia.537.a
		ai_chance = {
			base = 100
		}
		add_political_power = 25
	}
}

#Russian Show of Force
country_event = {
	id = russia2_russia.538
	title = russia2_russia.538.t
	desc = russia2_russia.538.d
	picture = GFX_report_event_SOV_purge_aircraft_2

	is_triggered_only = yes

	option = { #Oh
		name = russia2_russia.538.a
		ai_chance = {
			base = 100
		}
		add_timed_idea = {
			idea = SOV_Russian_show_of_force
			days = 730
		}
	}
}

#Join Democratic Russia's Faction
country_event = {
	id = russia2_russia.539
	title = russia2_russia.539.t
	desc = russia2_russia.539.d
	picture = GFX_report_event_hungary_parliament

	is_triggered_only = yes

	option = { #Accept
		name = russia2_russia.539.a
		ai_chance = {
			base = 65
			modifier = {
				factor = 0
				any_state = {
					is_claimed_by = SOV
					is_owned_by = ROOT
				}
			}
			modifier = {
				add = 25
				has_government = democratic
				OR = {
					is_guaranteed_by = SOV
					has_non_aggression_pact_with = SOV
					has_opinion = {
						target = SOV
						value > 49
					}
					has_country_flag = sov_friendship_treaty_signed
				}
			}
			modifier = {
				add = -35
				OR = {
					is_faction_leader = yes
					is_major = yes
					num_faction_members > 10
					has_opinion = {
						target = SOV
						value < -50
					}
				}
			}
		}
		if = {
			limit = {
				is_faction_leader = yes
			}
			every_other_country = {
				limit = {
					NOT = {
						is_subject_of = ROOT
					}
					is_in_faction_with = ROOT
				}
				FROM = {
					add_to_faction = PREV
				}
			}
		}
		add_ai_strategy = {
			type = alliance
			id = SOV
			value = 500
		}
		FROM = {
			add_to_faction = ROOT
			country_event = { id = russia2_russia.540 days = 1 }
		}
	}

	option = { #Refuse
		name = russia2_russia.539.b
		ai_chance = {
			base = 35
			modifier = {
				add = 65
				any_state = {
					is_claimed_by = SOV
					is_owned_by = ROOT
				}
			}
			modifier = {
				add = -25
				has_government = democratic
				OR = {
					is_guaranteed_by = SOV
					has_non_aggression_pact_with = SOV
					has_opinion = {
						target = SOV
						value > 49
					}
					has_country_flag = sov_friendship_treaty_signed
				}
			}
			modifier = {
				add = 35
				OR = {
					is_faction_leader = yes
					is_major = yes
					num_faction_members > 10
					has_opinion = {
						target = SOV
						value < -50
					}
				}
			}
		}
		if = {
			limit = {
				has_country_flag = sov_friendship_treaty_signed
			}
			add_stability = -0.05
		}
		FROM = {
			country_event = { id = russia2_russia.541 days = 1 }
		}
	}
}

#FROM Joins
country_event = {
	id = russia2_russia.540
	title = russia2_russia.540.t
	desc = russia2_russia.540.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #Nice
		name = russia2_russia.540.a
		ai_chance = {
			base = 100
		}
		add_ai_strategy = {
			type = alliance
			id = FROM
			value = 500
		}
	}
}

#FROM Refuses
country_event = {
	id = russia2_russia.541
	title = russia2_russia.541.t
	desc = russia2_russia.541.d
	picture = GFX_report_event_poland_rejects

	is_triggered_only = yes

	option = { #Oof
		name = russia2_russia.541.a
		ai_chance = {
			base = 100
		}
	}
}

#Review our Justice System
country_event = {
	id = russia2_russia.542
	title = russia2_russia.542.t
	desc = russia2_russia.542.d
	picture = GFX_report_event_sanation_left_victory

	is_triggered_only = yes

	option = { #Enforce it (more rights)
		name = russia2_russia.542.a
		ai_chance = {
			base = 30
		}
		add_ideas = SOV_Enforced_civilian_rights
	}

	option = { #We like progressive ideas
		name = russia2_russia.542.b
		ai_chance = {
			base = 40
		}
		add_ideas = SOV_Progressive_reforms
	}

	option = { #Bring back death penalty
		name = russia2_russia.542.c
		ai_chance = {
			base = 30
		}
		add_ideas = SOV_Bring_back_death_penalty
	}

	option = { #Let it be
		name = russia2_russia.542.e
		ai_chance = {
			base = 0
		}
		add_political_power = 200
		add_stability = -0.05
	}
}

#Russian Friendship Treaty
country_event = {
	id = russia2_russia.543
	title = russia2_russia.543.t
	desc = russia2_russia.543.d
	picture = GFX_report_event_SOV_national_academy_of_sciences

	is_triggered_only = yes

	option = { #Accept
		name = russia2_russia.543.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				FROM = {
					NOT = {
						has_country_flag = sov_russian_expansion_ultimatum_poland
						has_country_flag = sov_russian_expansion_ultimatum_bessarabia
						has_country_flag = sov_russian_expansion_ultimatum_lithuania
						has_country_flag = sov_russian_expansion_ultimatum_latvia
						has_country_flag = sov_russian_expansion_ultimatum_estonia
					}
				}
			}
			modifier = {
				factor = 0
				FROM = {
					OR = {
						has_country_flag = sov_russian_expansion_ultimatum_poland
						has_country_flag = sov_russian_expansion_ultimatum_bessarabia
						has_country_flag = sov_russian_expansion_ultimatum_lithuania
						has_country_flag = sov_russian_expansion_ultimatum_latvia
						has_country_flag = sov_russian_expansion_ultimatum_estonia
					}
				}
			}
		}
		set_country_flag = sov_friendship_treaty_signed
		add_opinion_modifier = {
			target = FROM
			modifier = russian_friendship_treaty
		}
		FROM = {
			country_event = { id = russia2_russia.544 days = 1 }
		}
	}

	option = { #Refuse
		name = russia2_russia.543.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				FROM = {
					NOT = {
						has_country_flag = sov_russian_expansion_ultimatum_poland
						has_country_flag = sov_russian_expansion_ultimatum_bessarabia
						has_country_flag = sov_russian_expansion_ultimatum_lithuania
						has_country_flag = sov_russian_expansion_ultimatum_latvia
						has_country_flag = sov_russian_expansion_ultimatum_estonia
					}
				}
			}
			modifier = {
				add = 50
				FROM = {
					OR = {
						has_country_flag = sov_russian_expansion_ultimatum_poland
						has_country_flag = sov_russian_expansion_ultimatum_bessarabia
						has_country_flag = sov_russian_expansion_ultimatum_lithuania
						has_country_flag = sov_russian_expansion_ultimatum_latvia
						has_country_flag = sov_russian_expansion_ultimatum_estonia
					}
				}
			}
		}
		set_country_flag = sov_friendship_treaty_refused
		FROM = {
			country_event = { id = russia2_russia.545 days = 1 }
		}
	}
}

#FROM Signs
country_event = {
	id = russia2_russia.544
	title = russia2_russia.544.t
	desc = russia2_russia.544.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #Nice
		name = russia2_russia.544.a
		ai_chance = {
			base = 100
		}
		add_opinion_modifier = {
			target = FROM
			modifier = russian_friendship_treaty
		}
	}
}

#FROM Refuses
country_event = {
	id = russia2_russia.545
	title = russia2_russia.545.t
	desc = russia2_russia.545.d
	picture = GFX_report_event_SOV_purge_aircraft_1

	is_triggered_only = yes

	option = { #Oof
		name = russia2_russia.545.a
		ai_chance = {
			base = 100
		}
	}
}

#Russian State Gets Event to Join Democratic Russian Faction
country_event = {
	id = russia2_russia.546
	title = russia2_russia.546.t
	desc = russia2_russia.546.d
	picture = GFX_report_event_SOV_demands

	is_triggered_only = yes

	option = { #Yes
		name = russia2_russia.546.a
		ai_chance = {
			base = 100
		}
		set_country_flag = accepted_faction_join_democratic_sov
		FROM = {
			add_to_faction = ROOT
			country_event = { id = russia2_russia.547 days = 1 }
		}
		hidden_effect = {
			set_temp_variable = { investment_level = SOV.russian_investment@ROOT }
			set_temp_variable = { min_days = 182 }
			set_temp_variable = { max_days = 365 }
			set_temp_variable = { days_event = 60 }
			while_loop_effect = {
				limit = {
					check_variable = {
						var = investment_level
						value = 1
						compare = greater_than_or_equals
					}
				}
				subtract_from_temp_variable = { min_days = 60 }
				subtract_from_temp_variable = { max_days = 60 }
				clamp_temp_variable = {
					var = min_days
					min = 30
					max = 182
				}
				clamp_temp_variable = {
					var = max_days
					min = 60
					max = 365
				}
				subtract_from_temp_variable = { investment_level = 1 }
			}
			randomize_temp_variable = {
				var = days_event
				distribution = uniform
				min = var:min_days
				max = var:max_days
			}
			round_temp_variable = days_event
			country_event = { id = russia2_russia.549 days = var:days_event }
		}
	}

	option = { #No
		name = russia2_russia.546.b
		ai_chance = {
			base = 0
		}
		set_country_flag = refused_faction_join_democratic_sov
		FROM = {
			country_event = { id = russia2_russia.548 days = 1 }
		}
	}
}

#FROM Accepts
country_event = {
	id = russia2_russia.547
	title = russia2_russia.547.t
	desc = russia2_russia.547.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #Nice
		name = russia2_russia.547.a
		ai_chance = {
			base = 100
		}
	}
}

#FROM Refuses
country_event = {
	id = russia2_russia.548
	title = russia2_russia.548.t
	desc = russia2_russia.548.d
	picture = GFX_report_event_poland_rejects

	is_triggered_only = yes

	option = { #Oof
		name = russia2_russia.548.a
		ai_chance = {
			base = 100
		}
	}
}

#Russian State Gets Event to get Annexed by Democratic Russia
country_event = {
	id = russia2_russia.549
	title = russia2_russia.549.t
	desc = russia2_russia.549.d
	picture = GFX_report_event_soviet_finnish_pact

	is_triggered_only = yes

	option = { #Yes
		name = russia2_russia.549.a
		ai_chance = {
			base = 100
		}
		set_country_flag = accepted_annex_by_democratic_sov
		SOV = {
			country_event = { id = russia2_russia.548 days = 1 }
		}
		custom_effect_tooltip = SOV_game_totally_over_TT
	}

	option = { #No
		name = russia2_russia.549.b
		ai_chance = {
			base = 0
		}
		set_country_flag = refused_annex_by_democratic_sov
	}
}

#Russian State Gets Annexed
country_event = {
	id = russia2_russia.550
	title = russia2_russia.550.t
	desc = russia2_russia.550.d
	picture = GFX_soldiers_handshaking_kolchak_russia2

	is_triggered_only = yes

	option = { #Yes
		name = russia2_russia.550.a
		ai_chance = {
			base = 100
		}
		annex_country = {
			target = FROM
			transfer_troops = yes
		}
	}
}

#Democratic Russian Threatens Communist/Fascist Russian States
country_event = {
	id = russia2_russia.551
	title = russia2_russia.551.t
	desc = russia2_russia.551.d
	picture = GFX_report_event_tur_machine_gunners

	is_triggered_only = yes

	option = { #Oops
		name = russia2_russia.551.a
		ai_chance = {
			base = 100
		}
		if = {
			limit = {
				any_country = {
					OR = {
						has_country_flag = democratic_russia_chaos_europe
						has_country_flag = democratic_russia_chaos_asia
						has_country_flag = democratic_russia_chaos_caucasus
					}
					has_country_flag = is_russian_state_faction_leader_democratic
					is_faction_leader = yes
				}
			}
			every_country = {
				limit = {
					OR = {
						has_country_flag = democratic_russia_chaos_europe
						has_country_flag = democratic_russia_chaos_asia
						has_country_flag = democratic_russia_chaos_caucasus
					}
					has_country_flag = is_russian_state_faction_leader_democratic
					is_faction_leader = yes
				}
				add_to_faction = ROOT
			}
		}
		else = {
			create_faction = anti_russian_coalition
			set_country_flag = is_russian_state_faction_leader_democratic
		}
		set_country_flag = russian_state_extreme_ideology
		custom_effect_tooltip = sov_democratic_russia_will_attack_soon
	}
}

#Democratic Russia Gets Event to Attack all Russian States
country_event = {
	id = russia2_russia.552
	title = russia2_russia.552.t
	desc = russia2_russia.552.d
	picture = GFX_military_parade_kremlin_russia2

	is_triggered_only = yes

	option = { #Let's go
		name = russia2_russia.552.a
		ai_chance = {
			base = 100
		}
		every_country = {
			limit = {
				has_country_flag = russian_state_extreme_ideology
			}
			ROOT = {
				declare_war_on = {
					target = PREV
					type = annex_everything
				}
			}
		}
	}
}

#You can switch country!
country_event = {
	id = russia2_russia.553
	title = russia2_russia.553.t
	desc = russia2_russia.553.d
	picture = GFX_report_event_spr_franco_victory

	is_triggered_only = yes

	option = { #Amazing
		name = russia2_russia.553.a
		ai_chance = {
			base = 100
		}
	}
}

#START OF PURGE EVENTS
#Mikhail Tukhachevsky
country_event = {
	id = russia2_russia.554
	title = russia2_russia.554.t
	desc = russia2_russia.554.d
	picture = GFX_0_Mikhail_tukhachevsky_purge_event

	fire_only_once = yes

	trigger = {
		tag = SOV
		has_government = communism
		is_subject = no
		NOT = {
			has_country_flag = mikhail_tukhachevsky_purge
			has_completed_focus = SOV_great_purge2
		}
		focus_progress = {
			focus = SOV_great_purge2
			progress > 0.25
		}
	}

	immediate = {
		hidden_effect = {
			set_country_flag = mikhail_tukhachevsky_purge
		}
	}

	mean_time_to_happen = { days = 1 }

	option = { #Purge
		name = russia2_russia.554.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_country_flag = mikhail_tukhachevsky_purged
		set_variable = { sov_great_purge_frame^0 = 2 }
		set_variable = { sov_great_purge_date^0 = global.date }
		add_to_variable = { sov_great_purge_completion = 10 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_10_purge_completion
		sov_increase_great_purge_penalties = yes
		SOV_Mikhail_tukhachevsky = {
			remove_unit_leader_role = yes
		}
		custom_effect_tooltip = remove_theorist
		show_ideas_tooltip = SOV_Mikhail_tukhachevsky
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.554.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_5_purge_completion
		set_country_flag = mikhail_tukhachevsky_not_purged
		subtract_from_variable = { sov_great_purge_completion = 5 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Georgy Zhukov
country_event = {
	id = russia2_russia.555
	title = russia2_russia.555.t
	desc = russia2_russia.555.d
	picture = GFX_1_Georgy_zhukov_purge_event

	fire_only_once = yes

	trigger = {
		tag = SOV
		has_government = communism
		is_subject = no
		NOT = {
			has_country_flag = georgy_zhukov_purge
			has_completed_focus = SOV_great_purge2
		}
		focus_progress = {
			focus = SOV_great_purge2
			progress > 0.5
		}
	}

	immediate = {
		hidden_effect = {
			set_country_flag = georgy_zhukov_purge
		}
	}

	mean_time_to_happen = { days = 1 }

	option = { #Purge
		name = russia2_russia.555.a
		ai_chance = {
			base = 0 #AI doesn't want to purge Zhukov unless necessary
			modifier = {
				add = 75
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 100
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = greater_than_or_equals
				}
			}
		}
		set_country_flag = georgy_zhukov_purged
		set_variable = { sov_great_purge_frame^1 = 2 }
		set_variable = { sov_great_purge_date^1 = global.date }
		add_to_variable = { sov_great_purge_completion = 10 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_10_purge_completion
		sov_increase_great_purge_penalties = yes
		SOV_Georgy_zhukov = {
			remove_unit_leader_role = yes
		}
		remove_ideas = SOV_Georgy_zhukov
		custom_effect_tooltip = remove_theorist
		show_ideas_tooltip = SOV_Georgy_zhukov
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.555.b
		ai_chance = {
			base = 100
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = greater_than_or_equals
				}
			}
		}
		custom_effect_tooltip = sov_remove_5_purge_completion
		set_country_flag = georgy_zhukov_not_purged
		subtract_from_variable = { sov_great_purge_completion = 5 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Mikhail Kalinin
country_event = {
	id = russia2_russia.556
	title = russia2_russia.556.t
	desc = russia2_russia.556.d
	picture = GFX_2_Mikhail_kalinin_purge_event

	fire_only_once = yes

	trigger = {
		tag = SOV
		has_government = communism
		is_subject = no
		NOT = {
			has_country_flag = mikhail_kalinin_purge
			has_completed_focus = SOV_great_purge2
		}
		focus_progress = {
			focus = SOV_great_purge2
			progress > 0.75
		}
	}

	immediate = {
		hidden_effect = {
			set_country_flag = mikhail_kalinin_purge
		}
	}

	mean_time_to_happen = { days = 1 }

	option = { #Purge
		name = russia2_russia.556.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_country_flag = mikhail_kalinin_purged
		set_variable = { sov_great_purge_frame^2 = 2 }
		set_variable = { sov_great_purge_date^2 = global.date }
		add_to_variable = { sov_great_purge_completion = 10 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_10_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_political_advisor
		show_ideas_tooltip = SOV_Mikhail_kalinin
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.556.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_5_purge_completion
		set_country_flag = mikhail_kalinin_not_purged
		subtract_from_variable = { sov_great_purge_completion = 5 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Start of the random purge events
#Kliment Voroshilov
country_event = {
	id = russia2_russia.557
	title = russia2_russia.557.t
	desc = russia2_russia.557.d
	picture = GFX_3_Kliment_voroshilov_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^0 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.557.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^3 = 2 }
		set_variable = { sov_great_purge_date^3 = global.date }
		set_variable = { sov_great_purge_status^0 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		SOV_Kliment_voroshilov_military = {
			remove_unit_leader_role = yes
		}
		custom_effect_tooltip = remove_political_advisor
		show_ideas_tooltip = SOV_Kliment_voroshilov_advisor
		show_ideas_tooltip = SOV_Kliment_voroshilov_military
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.557.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Lavrentiy Beria / Genrikh Yagoda
country_event = {
	id = russia2_russia.558
	title = russia2_russia.558.t
	desc = russia2_russia.558.d
	picture = GFX_4_Lavrentiy_beria_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^1 = 1 }
		}
	}

	option = { #Purge Beria
		name = russia2_russia.558.a
		ai_chance = {
			base = 35
			modifier = {
				add = 15
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 7.5
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
			modifier = { #Stalin doesn't want to purge Beria
				factor = 0
				has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
			}
		}
		set_variable = { sov_great_purge_frame^4 = 2 }
		set_variable = { sov_great_purge_date^4 = global.date }
		set_variable = { sov_great_purge_status^1 = 1 }
		add_to_variable = { sov_great_purge_completion = 8 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_8_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_political_advisor
		show_ideas_tooltip = SOV_Lavrentiy_beria
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Purge Yagoda
		name = russia2_russia.558.b
		ai_chance = {
			base = 35
			modifier = {
				add = 15
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 7.5
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^5 = 2 }
		set_variable = { sov_great_purge_date^5 = global.date }
		set_variable = { sov_great_purge_status^1 = 2 }
		add_to_variable = { sov_great_purge_completion = 8 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_8_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_political_advisor
		show_ideas_tooltip = SOV_Genrikh_yagoda
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.558.c
		ai_chance = {
			base = 30
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -15
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 70
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_3_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 3 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Nikolai Voznesensky
country_event = {
	id = russia2_russia.559
	title = russia2_russia.559.t
	desc = russia2_russia.559.d
	picture = GFX_6_Nikolai_voznesensky_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^2 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.559.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^6 = 2 }
		set_variable = { sov_great_purge_date^6 = global.date }
		set_variable = { sov_great_purge_status^2 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_political_advisor
		show_ideas_tooltip = SOV_nikolai_voznesensky
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.559.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Grigory Kulik
country_event = {
	id = russia2_russia.560
	title = russia2_russia.560.t
	desc = russia2_russia.560.d
	picture = GFX_7_Grigory_kulik_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^3 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.560.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^7 = 2 }
		set_variable = { sov_great_purge_date^7 = global.date }
		set_variable = { sov_great_purge_status^3 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		SOV_Grigory_kulik = {
			remove_unit_leader_role = yes
		}
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.560.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Vsevolod Merkulov
country_event = {
	id = russia2_russia.561
	title = russia2_russia.561.t
	desc = russia2_russia.561.d
	picture = GFX_8_Vsevolod_merkulov_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^4 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.561.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^8 = 2 }
		set_variable = { sov_great_purge_date^8 = global.date }
		set_variable = { sov_great_purge_status^4 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_political_advisor
		show_ideas_tooltip = SOV_Vsevolod_merkulov
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.561.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Ivan Maisky / Vyacheslav Molotov
country_event = {
	id = russia2_russia.562
	title = russia2_russia.562.t
	desc = russia2_russia.562.d
	picture = GFX_9_10_Ivan_maisky_Vyacheslav_molotov_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^5 = 1 }
		}
	}

	option = { #Purge Maisky
		name = russia2_russia.562.a
		ai_chance = {
			base = 35
			modifier = {
				add = 15
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 7.5
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^9 = 2 }
		set_variable = { sov_great_purge_date^9 = global.date }
		set_variable = { sov_great_purge_status^5 = 1 }
		add_to_variable = { sov_great_purge_completion = 8 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_8_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_political_advisor
		show_ideas_tooltip = SOV_Ivan_maisky
		custom_effect_tooltip = only_molotov_will_remain
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Purge Molotov
		name = russia2_russia.562.b
		ai_chance = {
			base = 35
			modifier = {
				add = 15
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 7.5
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^10 = 2 }
		set_variable = { sov_great_purge_date^10 = global.date }
		set_variable = { sov_great_purge_status^5 = 2 }
		add_to_variable = { sov_great_purge_completion = 8 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_8_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_political_advisor
		show_ideas_tooltip = SOV_Vyacheslav_molotov
		custom_effect_tooltip = only_maisky_will_remain
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.562.c
		ai_chance = {
			base = 30
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -15
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 70
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_3_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 3 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Nikita Khrushchev
country_event = {
	id = russia2_russia.563
	title = russia2_russia.563.t
	desc = russia2_russia.563.d
	picture = GFX_11_Nikita_khrushchev_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^6 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.563.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^11 = 2 }
		set_variable = { sov_great_purge_date^11 = global.date }
		set_variable = { sov_great_purge_status^6 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_political_advisor
		show_ideas_tooltip = SOV_Nikita_khrushchev
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.563.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Semyon Timoshenko
country_event = {
	id = russia2_russia.564
	title = russia2_russia.564.t
	desc = russia2_russia.564.d
	picture = GFX_12_Seymon_timoshenko_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^7 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.564.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^12 = 2 }
		set_variable = { sov_great_purge_date^12 = global.date }
		set_variable = { sov_great_purge_status^7 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		SOV_Semyon_timoshenko = {
			remove_unit_leader_role = yes
		}
		custom_effect_tooltip = remove_chief_of_army
		show_ideas_tooltip = SOV_Semyon_timoshenko
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.564.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Alexander Yegorov
country_event = {
	id = russia2_russia.565
	title = russia2_russia.565.t
	desc = russia2_russia.565.d
	picture = GFX_13_Alexander_yegorov_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^8 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.565.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^13 = 2 }
		set_variable = { sov_great_purge_date^13 = global.date }
		set_variable = { sov_great_purge_status^8 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_chief_of_army
		show_ideas_tooltip = SOV_Alexander_yegorov
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.565.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Vasily Blucher
country_event = {
	id = russia2_russia.566
	title = russia2_russia.566.t
	desc = russia2_russia.566.d
	picture = GFX_14_Vasily_blucher_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^9 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.566.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^14 = 2 }
		set_variable = { sov_great_purge_date^14 = global.date }
		set_variable = { sov_great_purge_status^9 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_chief_of_army
		show_ideas_tooltip = SOV_Vasily_blyukher
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.566.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Pyotr Smirnov
country_event = {
	id = russia2_russia.567
	title = russia2_russia.567.t
	desc = russia2_russia.567.d
	picture = GFX_15_Pyotr_smirnov_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^10 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.567.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^15 = 2 }
		set_variable = { sov_great_purge_date^15 = global.date }
		set_variable = { sov_great_purge_status^10 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_chief_of_navy
		show_ideas_tooltip = SOV_Pyotr_smirnov
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.567.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Mikhail Frinovsky
country_event = {
	id = russia2_russia.568
	title = russia2_russia.568.t
	desc = russia2_russia.568.d
	picture = GFX_16_Mikhail_frinovsky_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^11 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.568.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^16 = 2 }
		set_variable = { sov_great_purge_date^16 = global.date }
		set_variable = { sov_great_purge_status^11 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_chief_of_navy
		show_ideas_tooltip = SOV_Mikhail_frinovsky
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.568.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Nikolay Kuznetsov
country_event = {
	id = russia2_russia.569
	title = russia2_russia.569.t
	desc = russia2_russia.569.d
	picture = GFX_17_Nikolay_kuznetsov_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^12 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.569.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^17 = 2 }
		set_variable = { sov_great_purge_date^17 = global.date }
		set_variable = { sov_great_purge_status^12 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_chief_of_navy
		show_ideas_tooltip = SOV_Nikolay_kuznetsov
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.569.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Ivan Yumashev
country_event = {
	id = russia2_russia.570
	title = russia2_russia.570.t
	desc = russia2_russia.570.d
	picture = GFX_18_Ivan_yumashev_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^13 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.570.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^18 = 2 }
		set_variable = { sov_great_purge_date^18 = global.date }
		set_variable = { sov_great_purge_status^13 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_chief_of_navy
		show_ideas_tooltip = SOV_Ivan_yumashev
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.570.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Alexander Novikov
country_event = {
	id = russia2_russia.571
	title = russia2_russia.571.t
	desc = russia2_russia.571.d
	picture = GFX_19_Alexander_novikov_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^14 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.571.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^19 = 2 }
		set_variable = { sov_great_purge_date^19 = global.date }
		set_variable = { sov_great_purge_status^14 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_chief_of_airforce
		show_ideas_tooltip = SOV_Alexander_novikov
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.571.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Konstantin Vershinin
country_event = {
	id = russia2_russia.572
	title = russia2_russia.572.t
	desc = russia2_russia.572.d
	picture = GFX_20_Konstantin_vershinin_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^15 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.572.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^20 = 2 }
		set_variable = { sov_great_purge_date^20 = global.date }
		set_variable = { sov_great_purge_status^15 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_chief_of_airforce
		show_ideas_tooltip = SOV_Konstantin_vershinin
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.572.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Yakov Smushkevich
country_event = {
	id = russia2_russia.573
	title = russia2_russia.573.t
	desc = russia2_russia.573.d
	picture = GFX_21_Yakov_smushkevich_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^16 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.573.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^21 = 2 }
		set_variable = { sov_great_purge_date^21 = global.date }
		set_variable = { sov_great_purge_status^16 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_chief_of_airforce
		show_ideas_tooltip = SOV_Yakov_smushkevich
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.573.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Pavel Rychagov
country_event = {
	id = russia2_russia.574
	title = russia2_russia.574.t
	desc = russia2_russia.574.d
	picture = GFX_22_Pavel_rychagov_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^17 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.574.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^22 = 2 }
		set_variable = { sov_great_purge_date^22 = global.date }
		set_variable = { sov_great_purge_status^17 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_chief_of_airforce
		show_ideas_tooltip = SOV_Pavel_rychagov
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.574.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Ivan Konev / Konstantin Rokossovsky
country_event = {
	id = russia2_russia.575
	title = russia2_russia.575.t
	desc = russia2_russia.575.d
	picture = GFX_23_Ivan_konev_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^18 = 1 }
		}
	}

	option = { #Purge Konev
		name = russia2_russia.575.a
		ai_chance = {
			base = 35
			modifier = {
				add = 15
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 7.5
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^23 = 2 }
		set_variable = { sov_great_purge_date^23 = global.date }
		set_variable = { sov_great_purge_status^18 = 1 }
		add_to_variable = { sov_great_purge_completion = 8 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_8_purge_completion
		sov_increase_great_purge_penalties = yes
		SOV_Ivan_konev = {
			remove_unit_leader_role = yes
		}
		custom_effect_tooltip = remove_military_high_command
		show_ideas_tooltip = SOV_Ivan_konev
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Purge Rokossovsky
		name = russia2_russia.575.b
		ai_chance = {
			base = 35
			modifier = {
				add = 15
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 7.5
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^24 = 2 }
		set_variable = { sov_great_purge_date^24 = global.date }
		set_variable = { sov_great_purge_status^18 = 2 }
		add_to_variable = { sov_great_purge_completion = 8 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_8_purge_completion
		sov_increase_great_purge_penalties = yes
		SOV_Konstantin_rokossovsky = {
			remove_unit_leader_role = yes
		}
		custom_effect_tooltip = remove_military_high_command
		show_ideas_tooltip = SOV_Konstantin_rokossovsky
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.575.c
		ai_chance = {
			base = 30
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -15
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 70
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_3_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 3 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Aleksandr Vasilevsky
country_event = {
	id = russia2_russia.576
	title = russia2_russia.576.t
	desc = russia2_russia.576.d
	picture = GFX_25_Aleksandr_vassilevsky_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^19 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.576.a
		ai_chance = {
			base = 0 #AI doesn't want to purge him unless necessary (needed to gain army exp)
			modifier = {
				add = 75
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 100
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = greater_than_or_equals
				}
			}
		}
		set_variable = { sov_great_purge_frame^25 = 2 }
		set_variable = { sov_great_purge_date^25 = global.date }
		set_variable = { sov_great_purge_status^19 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		SOV_Aleksandr_vasilevsky = {
			remove_unit_leader_role = yes
		}
		custom_effect_tooltip = remove_military_high_command
		show_ideas_tooltip = SOV_Aleksandr_vasilevsky
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.576.b
		ai_chance = {
			base = 100
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = greater_than_or_equals
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Pavel Zhigarev
country_event = {
	id = russia2_russia.577
	title = russia2_russia.577.t
	desc = russia2_russia.577.d
	picture = GFX_26_Pavel_zhigarev_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^20 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.577.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^26 = 2 }
		set_variable = { sov_great_purge_date^26 = global.date }
		set_variable = { sov_great_purge_status^20 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_military_high_command
		show_ideas_tooltip = SOV_Pavel_zhigarev
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.577.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Sergei Khudyakov
country_event = {
	id = russia2_russia.578
	title = russia2_russia.578.t
	desc = russia2_russia.578.d
	picture = GFX_27_Sergei_khudyakov_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^21 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.578.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^27 = 2 }
		set_variable = { sov_great_purge_date^27 = global.date }
		set_variable = { sov_great_purge_status^21 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_military_high_command
		show_ideas_tooltip = SOV_Sergei_khudyakov
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.578.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Stepan Krasovsky
country_event = {
	id = russia2_russia.579
	title = russia2_russia.579.t
	desc = russia2_russia.579.d
	picture = GFX_28_Stepan_krasovsky_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^22 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.579.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^28 = 2 }
		set_variable = { sov_great_purge_date^28 = global.date }
		set_variable = { sov_great_purge_status^22 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_military_high_command
		show_ideas_tooltip = SOV_Stepan_krasovsky
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.579.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Vladimir Kasatonov
country_event = {
	id = russia2_russia.580
	title = russia2_russia.580.t
	desc = russia2_russia.580.d
	picture = GFX_29_Vladimir_kasatonov_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^23 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.580.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^29 = 2 }
		set_variable = { sov_great_purge_date^29 = global.date }
		set_variable = { sov_great_purge_status^23 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		SOV_Vladimir_kasatonov = {
			remove_unit_leader_role = yes
		}
		custom_effect_tooltip = remove_military_high_command
		show_ideas_tooltip = SOV_Vladimir_kasatonov
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.580.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Gordey Levchenko
country_event = {
	id = russia2_russia.581
	title = russia2_russia.581.t
	desc = russia2_russia.581.d
	picture = GFX_30_Gordey_levchenko_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^24 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.581.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^30 = 2 }
		set_variable = { sov_great_purge_date^30 = global.date }
		set_variable = { sov_great_purge_status^24 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		SOV_Gordey_levchenko = {
			remove_unit_leader_role = yes
		}
		custom_effect_tooltip = remove_military_high_command
		show_ideas_tooltip = SOV_Gordey_levchenko
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.581.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Arseniy Golovko
country_event = {
	id = russia2_russia.582
	title = russia2_russia.582.t
	desc = russia2_russia.582.d
	picture = GFX_31_Arseniy_golovko_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^25 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.582.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^31 = 2 }
		set_variable = { sov_great_purge_date^31 = global.date }
		set_variable = { sov_great_purge_status^25 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		SOV_Arseniy_golovko = {
			remove_unit_leader_role = yes
		}
		custom_effect_tooltip = remove_military_high_command
		show_ideas_tooltip = SOV_Arseniy_golovko
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.582.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Boris Shaposhnikov / Sergey Gorshkov
country_event = {
	id = russia2_russia.583
	title = russia2_russia.583.t
	desc = russia2_russia.583.d
	picture = GFX_32_Boris_shaposhnikov_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^26 = 1 }
		}
	}

	option = { #Purge Shaposhnikov
		name = russia2_russia.583.a
		ai_chance = {
			base = 35
			modifier = {
				add = 15
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 7.5
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^32 = 2 }
		set_variable = { sov_great_purge_date^32 = global.date }
		set_variable = { sov_great_purge_status^26 = 1 }
		add_to_variable = { sov_great_purge_completion = 8 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_8_purge_completion
		sov_increase_great_purge_penalties = yes
		SOV_Boris_shaposhnikov = {
			remove_unit_leader_role = yes
		}
		custom_effect_tooltip = remove_theorist
		show_ideas_tooltip = SOV_Boris_shaposhnikov
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Purge Gorshkov
		name = russia2_russia.583.b
		ai_chance = {
			base = 35
			modifier = {
				add = 15
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 7.5
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^33 = 2 }
		set_variable = { sov_great_purge_date^33 = global.date }
		set_variable = { sov_great_purge_status^26 = 2 }
		add_to_variable = { sov_great_purge_completion = 8 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_8_purge_completion
		sov_increase_great_purge_penalties = yes
		SOV_Sergey_gorshkov = {
			remove_unit_leader_role = yes
		}
		custom_effect_tooltip = remove_theorist
		show_ideas_tooltip = SOV_Sergey_gorshkov
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.583.c
		ai_chance = {
			base = 30
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -15
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 70
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_3_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 3 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Vladimir Tributs
country_event = {
	id = russia2_russia.584
	title = russia2_russia.584.t
	desc = russia2_russia.584.d
	picture = GFX_34_Vladimir_tributs_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^27 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.584.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^34 = 2 }
		set_variable = { sov_great_purge_date^34 = global.date }
		set_variable = { sov_great_purge_status^27 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_theorist
		show_ideas_tooltip = SOV_Vladimir_tributs
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.584.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Sergei Rudenko
country_event = {
	id = russia2_russia.585
	title = russia2_russia.585.t
	desc = russia2_russia.585.d
	picture = GFX_35_Sergei_rudenko_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^28 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.585.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^35 = 2 }
		set_variable = { sov_great_purge_date^35 = global.date }
		set_variable = { sov_great_purge_status^28 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_theorist
		show_ideas_tooltip = SOV_Sergei_rudenko
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.585.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Alexander Golovanov
country_event = {
	id = russia2_russia.586
	title = russia2_russia.586.t
	desc = russia2_russia.586.d
	picture = GFX_36_Alexander_golovanov_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^29 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.586.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^36 = 2 }
		set_variable = { sov_great_purge_date^36 = global.date }
		set_variable = { sov_great_purge_status^29 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_theorist
		show_ideas_tooltip = SOV_Alexander_golovanov
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.586.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Igor Kurchatov
country_event = {
	id = russia2_russia.587
	title = russia2_russia.587.t
	desc = russia2_russia.587.d
	picture = GFX_37_Igor_kurchatov_purge_2_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^30 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.587.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^37 = 2 }
		set_variable = { sov_great_purge_date^37 = global.date }
		set_variable = { sov_great_purge_status^30 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_theorist
		show_ideas_tooltip = SOV_Igor_kurchatov
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.587.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Sergei Korolev
country_event = {
	id = russia2_russia.588
	title = russia2_russia.588.t
	desc = russia2_russia.588.d
	picture = GFX_38_Sergei_korolev_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^31 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.588.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^38 = 2 }
		set_variable = { sov_great_purge_date^38 = global.date }
		set_variable = { sov_great_purge_status^31 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_theorist
		show_ideas_tooltip = SOV_Sergei_korolev
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.588.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Leonid Govorov
country_event = {
	id = russia2_russia.589
	title = russia2_russia.589.t
	desc = russia2_russia.589.d
	picture = GFX_39_Leonid_govorov_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^32 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.589.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^39 = 2 }
		set_variable = { sov_great_purge_date^39 = global.date }
		set_variable = { sov_great_purge_status^32 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		SOV_Leonid_govorov = {
			remove_unit_leader_role = yes
		}
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.589.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Nikolai Berzarin
country_event = {
	id = russia2_russia.590
	title = russia2_russia.590.t
	desc = russia2_russia.590.d
	picture = GFX_40_Nikolai_berzarin_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^33 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.590.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^40 = 2 }
		set_variable = { sov_great_purge_date^40 = global.date }
		set_variable = { sov_great_purge_status^33 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		SOV_Nikolai_berzarin = {
			remove_unit_leader_role = yes
		}
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.590.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Alexander Gorbatov
country_event = {
	id = russia2_russia.591
	title = russia2_russia.591.t
	desc = russia2_russia.591.d
	picture = GFX_41_Alexander_gorbatov_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^34 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.591.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^41 = 2 }
		set_variable = { sov_great_purge_date^41 = global.date }
		set_variable = { sov_great_purge_status^34 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		SOV_Alexander_gorbatov = {
			remove_unit_leader_role = yes
		}
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.591.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Yakov Agranov
country_event = {
	id = russia2_russia.592
	title = russia2_russia.592.t
	desc = russia2_russia.592.d
	picture = GFX_42_Yakov_agranov_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^35 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.592.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^42 = 2 }
		set_variable = { sov_great_purge_date^42 = global.date }
		set_variable = { sov_great_purge_status^35 = 1 }
		add_to_variable = { sov_great_purge_completion = 4 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_4_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_political_advisor
		show_ideas_tooltip = SOV_Yakov_agranov
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.592.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_1_purge_completion
		subtract_from_variable = { sov_great_purge_completion = 1 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Aleskey Rykov
country_event = {
	id = russia2_russia.593
	title = russia2_russia.593.t
	desc = russia2_russia.593.d
	picture = GFX_43_Aleskey_rykov_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^36 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.593.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^43 = 2 }
		set_variable = { sov_great_purge_date^43 = global.date }
		set_variable = { sov_great_purge_status^36 = 1 }
		add_to_variable = { sov_great_purge_completion = 6 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_6_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_political_advisor
		show_ideas_tooltip = SOV_Aleksey_rykov
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.593.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_2_purge_completion
		add_political_power = -75
		subtract_from_variable = { sov_great_purge_completion = 2 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Lev Kamenev
country_event = {
	id = russia2_russia.594
	title = russia2_russia.594.t
	desc = russia2_russia.594.d
	picture = GFX_44_Lev_kamenev_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^37 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.594.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^44 = 2 }
		set_variable = { sov_great_purge_date^44 = global.date }
		set_variable = { sov_great_purge_status^37 = 1 }
		add_to_variable = { sov_great_purge_completion = 6 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_6_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_political_advisor
		show_ideas_tooltip = SOV_Lev_kamenev
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.594.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_2_purge_completion
		add_political_power = -75
		subtract_from_variable = { sov_great_purge_completion = 2 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Nikolay Bukharin
country_event = {
	id = russia2_russia.595
	title = russia2_russia.595.t
	desc = russia2_russia.595.d
	picture = GFX_45_Nikolay_bukharin_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^38 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.595.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^45 = 2 }
		set_variable = { sov_great_purge_date^45 = global.date }
		set_variable = { sov_great_purge_status^38 = 1 }
		add_to_variable = { sov_great_purge_completion = 6 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_6_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_political_advisor
		show_ideas_tooltip = SOV_Nikolay_bukharin
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.595.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_2_purge_completion
		add_political_power = -75
		subtract_from_variable = { sov_great_purge_completion = 2 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#Grigory Zinovyev
country_event = {
	id = russia2_russia.596
	title = russia2_russia.596.t
	desc = russia2_russia.596.d
	picture = GFX_46_Grigory_zinovyev_purge_event

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_great_purge_trigger^39 = 1 }
		}
	}

	option = { #Purge
		name = russia2_russia.596.a
		ai_chance = {
			base = 50
			modifier = {
				add = 50
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = 25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				check_variable = {
					var = sov_no_purge_count
					value = 3
					compare = less_than
				}
			}
		}
		set_variable = { sov_great_purge_frame^46 = 2 }
		set_variable = { sov_great_purge_date^46 = global.date }
		set_variable = { sov_great_purge_status^39 = 1 }
		add_to_variable = { sov_great_purge_completion = 6 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		custom_effect_tooltip = sov_add_6_purge_completion
		sov_increase_great_purge_penalties = yes
		custom_effect_tooltip = remove_political_advisor
		show_ideas_tooltip = SOV_Grigory_zinovyev
		set_variable = { sov_no_purge_count = 0 }
	}

	option = { #Don't purge
		name = russia2_russia.596.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
					check_variable = {
						var = sov_no_purge_count
						value = 3
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				add = -25
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = equals
				}
			}
			modifier = {
				add = 50
				has_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = less_than
				}
			}
		}
		custom_effect_tooltip = sov_remove_2_purge_completion
		add_political_power = -75
		subtract_from_variable = { sov_great_purge_completion = 2 }
		round_variable = sov_great_purge_completion
		clamp_variable = {
			var = sov_great_purge_completion
			min = 0
			max = 100
		}
		if = {
			limit = {
				check_variable = {
					var = sov_no_purge_count
					value = 2
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = sov_stalin_too_suspicious_tt
			set_temp_variable = { pp_loss_purge = -50 }
			multiply_temp_variable = { pp_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { stability_loss_purge = -0.05 }
			multiply_temp_variable = { stability_loss_purge = var:sov_no_purge_count }
			set_temp_variable = { war_support_loss_purge = -0.05 }
			multiply_temp_variable = { war_support_loss_purge = var:sov_no_purge_count }
			add_political_power = var:pp_loss_purge
			add_stability = var:stability_loss_purge
			add_war_support = var:war_support_loss_purge
		}
		add_to_variable = { sov_no_purge_count = 1 }
	}
}

#END OF THE PURGE EVENTS

#Helping SOJ (TAN)
country_event = {
	id = russia2_russia.601
	title = russia2_russia.601.t
	desc = russia2_russia.601.d
	picture = GFX_battkle_kursk_russia2

	fire_only_once = yes

	trigger = {
		has_global_flag = second_russian_civil_war_in_progress
		is_in_array = { global.russian_scw_participants = SOJ }
		tag = TAN
		has_government = communism
		has_war = no
		any_of_scopes = {
			array = global.russian_scw_participants

			is_neighbor_of = TAN
		}
		SOJ = {
			exists = yes
			has_war = yes
			is_subject = no
			is_faction_leader = yes
		}
	}

	option = {
		name = russia2_russia.601.a
		ai_chance = {
			base = 50
		}
		set_country_flag = minor_helped_soj_scw
		add_stability = 0.05
		add_war_support = 0.1
		add_political_power = 100
		random_owned_controlled_state = {
            create_unit = {
                division = "name = \"2ya Strelkovaya Polk\" division_template = \"Strelkovaya Polk\" start_experience_factor = 0.2 start_equipment_factor = 1.0"
                owner = TAN
            }
			create_unit = {
                division = "name = \"3ya Strelkovaya Polk\" division_template = \"Strelkovaya Polk\" start_experience_factor = 0.2 start_equipment_factor = 1.0"
                owner = TAN
            }
			create_unit = {
                division = "name = \"4ya Strelkovaya Polk\" division_template = \"Strelkovaya Polk\" start_experience_factor = 0.2 start_equipment_factor = 1.0"
                owner = TAN
            }
		}
		SOJ = {
			add_to_faction = ROOT
		}
		hidden_effect = {
			for_each_scope_loop = {
				array = global.russian_scw_participants

				if = {
					limit = {
						NOT = {
							has_war_with = ROOT
						}
					}
					country_event = russia2_russia.603
				}
			}
		}
	}

	option = {
		name = russia2_russia.601.b
		ai_chance = {
			base = 50
		}
		add_stability = 0.1
	}
}

#Helping SOJ (MON)
country_event = {
	id = russia2_russia.602
	title = russia2_russia.602.t
	desc = russia2_russia.602.d
	picture = GFX_battkle_kursk_russia2

	fire_only_once = yes

	trigger = {
		has_global_flag = second_russian_civil_war_in_progress
		is_in_array = { global.russian_scw_participants = SOJ }
		tag = MON
		has_government = communism
		has_war = no
		any_of_scopes = {
			array = global.russian_scw_participants

			is_neighbor_of = MON
		}
		SOJ = {
			exists = yes
			has_war = yes
			is_subject = no
			is_faction_leader = yes
		}
	}

	option = {
		name = russia2_russia.602.a
		ai_chance = {
			base = 40
		}
		set_country_flag = minor_helped_soj_scw
		add_stability = 0.05
		add_war_support = 0.1
		add_political_power = 100
		SOJ = {
			add_to_faction = ROOT
		}
		hidden_effect = {
			for_each_scope_loop = {
				array = global.russian_scw_participants

				if = {
					limit = {
						NOT = {
							is_in_array = { global.russian_scw_participants_soj = THIS }
						}
					}
					country_event = russia2_russia.603
				}
			}
		}
	}

	option = {
		name = russia2_russia.602.b
		ai_chance = {
			base = 60
		}
		add_stability = 0.1
	}
}

#FROM Helps SOJ
country_event = {
	id = russia2_russia.603
	title = russia2_russia.603.t
	desc = russia2_russia.603.d
	picture = GFX_battkle_kursk_russia2

	is_triggered_only = yes

	option = {
		name = russia2_russia.603.a
		ai_chance = {
			base = 100
		}
		if = {
			limit = {
				NOT = {
					is_in_array = { global.russian_scw_participants_soj = ROOT }
					has_war_with = FROM
				}
			}
			declare_war_on = {
				target = FROM
				type = second_russian_civil_war
			}
		}
	}
}

#Ukraine Took too Many states during RCW
country_event = {
	id = russia2_russia.604
	title = russia2_russia.604.t
	desc = russia2_russia.604.d
	picture = GFX_report_event_soviet_tanks_snow

	is_triggered_only = yes

	option = {
		name = russia2_russia.604.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = we_will_prepare_for_standoff
	}
}

#Question of the Anarchy Market
country_event = {
	id = russia2_russia.606
	title = russia2_russia.606.t
	desc = russia2_russia.606.d
	picture = GFX_report_event_generic_train

	is_triggered_only = yes

	option = { #Yes, change trade law to export focus
		name = russia2_russia.606.a
		ai_chance = {
			base = 70
		}
		add_ideas = export_focus
		add_political_power = -100
	}

	option = { #Yes but a little bit, change trade law to limited exports
		name = russia2_russia.606.b
		ai_chance = {
			base = 30
		}
		add_ideas = limited_exports
		add_political_power = -50
	}

	option = { #No
		name = russia2_russia.606.c
		ai_chance = {
			base = 0
		}
	}
}

#Siberia Breaks Off
country_event = {
	id = russia2_russia.607
	title = russia2_russia.607.t
	desc = russia2_russia.607.d
	picture = GFX_report_event_gathering_protest

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			country_event = { id = russia2_russia.608 days = 15 }
			sov_release_far_east_anarchist_collapse = yes
			sov_release_urals_anarchist_collapse = yes
			sov_release_siberia_anarchist_collapse = yes
		}
	}

	option = { #Damn
		name = russia2_russia.607.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = urals_siberia_far_east_becomes_free_anarchist_russ
	}
}

#Central Asia Breaks Off
country_event = {
	id = russia2_russia.608
	title = russia2_russia.608.t
	desc = russia2_russia.608.d
	picture = GFX_report_event_gathering_protest

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			country_event = { id = russia2_russia.609 days = 15 }
			sov_release_kazakh_anarchist_collapse = yes
			sov_release_uzbekistan_anarchist_collapse = yes
			sov_release_turkmenistan_anarchist_collapse = yes
			sov_release_tajikstan_anarchist_collapse = yes
			sov_release_kyrghiz_anarchist_collapse = yes
		}
	}

	option = { #Damn
		name = russia2_russia.608.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = central_asia_countries_becomes_free_anarchist_russ
	}
}

#Caucasus Breaks Off
country_event = {
	id = russia2_russia.609
	title = russia2_russia.609.t
	desc = russia2_russia.609.d
	picture = GFX_report_event_gathering_protest

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			country_event = { id = russia2_russia.610 days = 15 }
			sov_release_armenia_anarchist_collapse = yes
			sov_release_georgia_anarchist_collapse = yes
			sov_release_azerbaijan_anarchist_collapse = yes
		}
	}

	option = { #Damn
		name = russia2_russia.609.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = caucasus_countries_becomes_free_anarchist_russ
	}
}

#Kuban Breaks Off
country_event = {
	id = russia2_russia.610
	title = russia2_russia.610.t
	desc = russia2_russia.610.d
	picture = GFX_report_event_gathering_protest

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			country_event = { id = russia2_russia.611 days = 15 }
			sov_release_volgograd_anarchist_collapse = yes
			sov_release_kalmykia_anarchist_collapse = yes
			sov_release_rostov_anarchist_collapse = yes
			sov_release_dagestan_anarchist_collapse = yes
			sov_release_circassia_anarchist_collapse = yes
		}
	}

	option = { #Damn
		name = russia2_russia.610.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = kuban_countries_becomes_free_anarchist_russ
	}
}

#Transvolga Breaks Off
country_event = {
	id = russia2_russia.611
	title = russia2_russia.611.t
	desc = russia2_russia.611.d
	picture = GFX_report_event_gathering_protest

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			country_event = { id = russia2_russia.612 days = 15 }
			sov_release_vyatka_anarchist_collapse = yes
			sov_release_tatarstan_anarchist_collapse = yes
			sov_release_perm_anarchist_collapse = yes
		}
	}

	option = { #Damn
		name = russia2_russia.611.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = transvolga_countries_becomes_free_anarchist_russ
	}
}

#Northern Russia Breaks Off
country_event = {
	id = russia2_russia.612
	title = russia2_russia.612.t
	desc = russia2_russia.612.d
	picture = GFX_report_event_gathering_protest

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			country_event = { id = russia2_russia.613 days = 10 }
			sov_release_karelia_anarchist_collapse = yes
			sov_release_komi_anarchist_collapse = yes
			sov_release_novgorod_anarchist_collapse = yes
		}
	}

	option = { #Damn
		name = russia2_russia.612.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = northern_russia_countries_becomes_free_anarchist_russ
	}
}

#Western Russia Breaks Off
country_event = {
	id = russia2_russia.613
	title = russia2_russia.613.t
	desc = russia2_russia.613.d
	picture = GFX_report_event_gathering_protest

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			sov_release_belarus_anarchist_collapse = yes
			sov_release_ukraine_anarchist_collapse = yes
			sov_release_crimea_anarchist_collapse = yes
		}
	}

	option = { #Damn
		name = russia2_russia.613.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = western_europe_countries_becomes_free_anarchist_russ
	}
}

#Russia Becomes Moscow
country_event = {
	id = russia2_russia.614
	title = russia2_russia.614.t
	desc = russia2_russia.614.d
	picture = GFX_report_event_generic_ruins

	is_triggered_only = yes

	option = { #Damn
		name = russia2_russia.614.a
		ai_chance = {
			base = 100
		}
		add_stability = 0.1
		add_political_power = 50
		set_cosmetic_tag = FAM
		add_country_leader_role = {
			character = SOV_Council_of_moscow
			promote_leader = yes
			country_leader = {
				desc = SOV_Council_of_moscow_desc
				ideology = anarchist
				expire = "1965.1.1.1"
			}
		}
	}
}

#Assassinate FROM leader
country_event = {
	id = russia2_russia.615
	title = russia2_russia.615.t
	desc = russia2_russia.615.d
	picture = GFX_report_event_german_inspect_troops

	is_triggered_only = yes

	immediate = {
		event_target:SOV_replace_from_leader_event_target = {
			if = {
				limit = {
					check_variable = {
						var = sov_correct_assassination_attempts^num
						value = 0
						compare = greater_than
					}
				}
				clear_array = sov_correct_assassination_attempts
			}
			while_loop_effect = {
				break = end_array
				limit = {
					check_variable = {
						var = sov_correct_assassination_attempts^num
						value = 2
						compare = less_than
					}
				}

				set_temp_variable = { get_random_option = 0 }
				randomize_temp_variable = {
					var = get_random_option
					distribution = uniform
					min = 1
					max = 5
				}
				round_temp_variable = get_random_option
				if = {
					limit = {
						check_variable = {
							var = get_random_option
							value = 5
							compare = greater_than_or_equals
						}
					}
					set_temp_variable = { get_random_option = 1 }
				}
				if = {
					limit = {
						NOT = {
							is_in_array = { sov_correct_assassination_attempts = get_random_option }
						}
					}
					add_to_array = { sov_correct_assassination_attempts = get_random_option }
				}
			}
		}
	}

	option = { #Use poison
		name = russia2_russia.615.a
		ai_chance = {
			base = 25
		}
		hidden_effect = {
			event_target:SOV_replace_from_leader_event_target = {
				if = {
					limit = {
						is_in_array = { sov_correct_assassination_attempts = 1 }
					}
					ROOT = {
						country_event = { id = russia2_russia.616 days = 1 }
					}
					country_event = { id = russia2_russia.617 days = 1 }
				}
				else = {
					ROOT = {
						country_event = { id = russia2_russia.618 days = 1 }
					}
				}
			}
		}
	}

	option = { #Hire a hitman
		name = russia2_russia.615.b
		ai_chance = {
			base = 25
		}
		hidden_effect = {
			event_target:SOV_replace_from_leader_event_target = {
				if = {
					limit = {
						is_in_array = { sov_correct_assassination_attempts = 2 }
					}
					ROOT = {
						country_event = { id = russia2_russia.616 days = 1 }
					}
					country_event = { id = russia2_russia.617 days = 1 }
				}
				else = {
					ROOT = {
						country_event = { id = russia2_russia.618 days = 1 }
					}
				}
			}
		}
	}

	option = { #Plant a bomb in their car
		name = russia2_russia.615.c
		ai_chance = {
			base = 25
		}
		hidden_effect = {
			event_target:SOV_replace_from_leader_event_target = {
				if = {
					limit = {
						is_in_array = { sov_correct_assassination_attempts = 3 }
					}
					ROOT = {
						country_event = { id = russia2_russia.616 days = 1 }
					}
					country_event = { id = russia2_russia.617 days = 1 }
				}
				else = {
					ROOT = {
						country_event = { id = russia2_russia.618 days = 1 }
					}
				}
			}
		}
	}

	option = { #Political scandal
		name = russia2_russia.615.e
		ai_chance = {
			base = 25
		}
		hidden_effect = {
			event_target:SOV_replace_from_leader_event_target = {
				if = {
					limit = {
						is_in_array = { sov_correct_assassination_attempts = 4 }
					}
					ROOT = {
						country_event = { id = russia2_russia.616 days = 1 }
					}
					country_event = { id = russia2_russia.617 days = 1 }
				}
				else = {
					ROOT = {
						country_event = { id = russia2_russia.618 days = 1 }
					}
				}
			}
		}
	}
}

#FROM Leader Assassinated
country_event = {
	id = russia2_russia.616
	title = russia2_russia.616.t
	desc = russia2_russia.616.d
	picture = GFX_report_event_soviet_tank_parade

	is_triggered_only = yes

	option = { #Good
		name = russia2_russia.616.a
		ai_chance = {
			base = 100
		}
	}
}

#Leader Assassinated!
country_event = {
	id = russia2_russia.617
	title = russia2_russia.617.t
	desc = russia2_russia.617.d
	picture = GFX_report_event_soviet_tank_parade

	is_triggered_only = yes

	timeout_days = 5

	option = { #What?!
		name = russia2_russia.617.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = leader_dies_from_sov
		hidden_effect = {
			retire_country_leader = yes
			if = {
				limit = {
					SOV = {
						has_government = communism
					}
				}
				if = {
					limit = {
						NOT = {
							has_government = communism
						}
					}
					kill_ideology_leader = communism
					set_politics = {
						ruling_party = communism
						elections_allowed = no
					}
					if = {
						limit = {
							communism < 0.5
						}
						set_political_party = {
							ideology = communism
							popularity = 50
						}
					}
					else = {
						add_popularity = {
							ideology = communism
							popularity = 0.1
						}
					}
				}
				else = {
					add_popularity = {
						ideology = communism
						popularity = 0.1
					}
				}
				add_country_leader_trait = russia2_soviet_puppet
				if = {
					limit = {
						OR = {
							tag = CHI
							tag = MAN
							tag = MEN
							tag = SHX
							tag = PRC
							tag = XSM
							tag = SIK
							tag = YUN
							tag = GXC
							is_literally_china = yes
						}
						NOT = {
							has_country_leader_with_trait = russia2_making_fun_of_me_uh
						}
					}
					add_country_leader_trait = russia2_making_fun_of_me_uh
					every_country = {
						limit = {
							is_ai = no
							NOT = {
								is_in_array = { global.making_fun_of_me_uh_achievement = THIS }
							}
						}
						add_to_array = { global.making_fun_of_me_uh_achievement = THIS }
						set_variable = { global.making_fun_of_me_uh_achievement_date@THIS = global.date }
						set_country_flag = russia_reworked_new_achievement
						if = {
							limit = {
								has_global_flag = russia_reworked_achievements_enabled
							}
							scoped_sound_effect = "russia_reworked_unlock_achievement"
						}
					}
				}
			}
			else_if = {
				limit = {
					has_government = democratic
				}
				if = {
					limit = {
						NOT = {
							has_government = democratic
						}
					}
					kill_ideology_leader = democratic
					set_politics = {
						ruling_party = democratic
						elections_allowed = no
					}
					if = {
						limit = {
							democratic < 0.5
						}
						set_political_party = {
							ideology = democratic
							popularity = 50
						}
					}
					else = {
						add_popularity = {
							ideology = democratic
							popularity = 0.1
						}
					}
				}
				else = {
					if = {
						limit = {
							has_elections = yes
						}
						set_politics = {
							ruling_party = democratic
							elections_allowed = no
						}
					}
					add_popularity = {
						ideology = democratic
						popularity = 0.1
					}
				}
				add_country_leader_trait = russia2_russian_puppet
			}
		}
	}
}

#FROM Leader not Assassinated
country_event = {
	id = russia2_russia.618
	title = russia2_russia.618.t
	desc = russia2_russia.618.d
	picture = GFX_report_event_german_detained_china

	is_triggered_only = yes

	option = { #Damn
		name = russia2_russia.618.a
		ai_chance = {
			base = 100
		}
	}
}

#Future of the League - First Part
country_event = {
	id = russia2_russia.619
	title = russia2_russia.619.t
	desc = russia2_russia.619.d
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes

	option = { #Economic
		name = russia2_russia.619.a
		ai_chance = {
			base = 33
		}
		hidden_effect = {
			every_country = {
				limit = {
					has_idea = SOV_Member_of_the_league_idea
				}
				swap_ideas = {
					remove_idea = SOV_Member_of_the_league_idea
					add_idea = SOV_Member_of_the_league_idea_1
				}
			}
			swap_ideas = {
				remove_idea = SOV_Head_of_the_league_idea
				add_idea = SOV_Head_of_the_league_idea_1
			}
			country_event = { id = russia2_russia.620 days = 5 }
		}
		custom_effect_tooltip = every_members_of_the_league_gain_economic_bonus
	}

	option = { #Military
		name = russia2_russia.619.b
		ai_chance = {
			base = 33
		}
		hidden_effect = {
			every_country = {
				limit = {
					has_idea = SOV_Member_of_the_league_idea
				}
				swap_ideas = {
					remove_idea = SOV_Member_of_the_league_idea
					add_idea = SOV_Member_of_the_league_idea_2
				}
			}
			swap_ideas = {
				remove_idea = SOV_Head_of_the_league_idea
				add_idea = SOV_Head_of_the_league_idea_2
			}
			country_event = { id = russia2_russia.620 days = 5 }
		}
		custom_effect_tooltip = every_members_of_the_league_gain_military_bonus
	}

	option = { #Internal Stability
		name = russia2_russia.619.c
		ai_chance = {
			base = 33
		}
		hidden_effect = {
			country_event = { id = russia2_russia.620 days = 5 }
			every_country = {
				limit = {
					has_idea = SOV_Member_of_the_league_idea
				}
				swap_ideas = {
					remove_idea = SOV_Member_of_the_league_idea
					add_idea = SOV_Member_of_the_league_idea_3
				}
			}
			swap_ideas = {
				remove_idea = SOV_Head_of_the_league_idea
				add_idea = SOV_Head_of_the_league_idea_3
			}
		}
		custom_effect_tooltip = every_members_of_the_league_gain_politics_bonus
	}
}

#Future of the League - Second Part
country_event = {
	id = russia2_russia.620
	title = russia2_russia.620.t
	desc = russia2_russia.620.d
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes

	option = { #Reform Russia
		name = russia2_russia.620.a
		ai_chance = {
			base = 33
			modifier = {
				add = 67
				has_country_flag = RUS_AI_CHAOS_REUNIFY_RUSSIA_ANARCHIST_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_CHAOS_REUNIFY_RUSSIA_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		custom_effect_tooltip = can_complete_focus_reform_russia_anarchist
		set_country_flag = has_chosen_reform_russia_anarchist
	}

	option = { #A Tight Grip
		name = russia2_russia.620.b
		ai_chance = {
			base = 33
			modifier = {
				add = 67
				has_country_flag = RUS_AI_CHAOS_FULL_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_CHAOS_FULL_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		custom_effect_tooltip = can_complete_focus_a_tight_grip_anarchist
		set_country_flag = has_chosen_a_tight_grip_anarchist
	}

	option = { #Semi Devolution
		name = russia2_russia.620.c
		ai_chance = {
			base = 33
			modifier = {
				add = 67
				has_country_flag = RUS_AI_CHAOS_SHARED_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
			}
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_CHAOS_SHARED_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
		}
		custom_effect_tooltip = can_complete_focus_officialize_the_act_anarchist
		set_country_flag = has_chosen_semi_devolution_anarchist
	}
}

#Hidden Event to Notify Anarchist Russia of it's Enemies
country_event = {
	id = russia2_russia.621

	is_triggered_only = yes

	hidden = yes

	immediate = {
		SOV = {
			country_event = { id = russia2_russia.622 }
		}
	}
}

#FROM is an Enemy of Anarchist Russia
country_event = {
	id = russia2_russia.622
	title = russia2_russia.622.t
	desc = russia2_russia.622.d
	picture = GFX_report_event_bul_troops_macedonia

	is_triggered_only = yes

	option = { # A Shame
		name = russia2_russia.622.a
		ai_chance = {
			base = 100
		}
	}
}

#Hidden Event to Notify Anarchist Russia of Neutral Countries
country_event = {
	id = russia2_russia.623

	is_triggered_only = yes

	hidden = yes

	immediate = {
		SOV = {
			country_event = { id = russia2_russia.624 }
		}
		country_event = { id = russia2_russia.625 days = 95 }
	}
}

#FROM is neutral of Anarchist Russia
country_event = {
	id = russia2_russia.624
	title = russia2_russia.624.t
	desc = russia2_russia.624.d
	picture = GFX_report_event_generic_communist_congress

	is_triggered_only = yes

	option = { #Neutrality
		name = russia2_russia.624.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = from_might_join_enemy_or_you
	}
}

#State of our Neutrality
country_event = {
	id = russia2_russia.625
	title = russia2_russia.625.t
	desc = russia2_russia.625.d
	picture = GFX_report_event_bul_troops_macedonia

	is_triggered_only = yes

	option = { #Join Enemy
		name = russia2_russia.625.a
		ai_chance = {
			base = 35
		}
		trigger = {
			has_global_flag = reunification_war_is_ongoing_anarchist
			NOT = {
				has_war_with = SOV
			}
		}
		clr_country_flag = is_neutral_of_anarchist_russia_league_edition
		set_country_flag = is_enemy_of_anarchist_russia_league_edition
		add_to_array = { global.sov_ancient_federation_member_who_left_the_league = ROOT }
		SOV = {
			country_event = { id = russia2_russia.626 }
		}
		for_each_scope_loop = {
			array = global.sov_ancient_federation_member_who_left_the_league
			if = {
				limit = {
					NOT = {
						has_war_with = SOV
					}
					exists = yes
					NOT = {
						tag = SOV
					}
				}
				SOV = {
					declare_war_on = {
						target = PREV
						type = annex_everything
					}
				}
				every_country = {
					limit = {
						is_in_faction_with = SOV
						has_country_flag = is_friend_of_anarchist_russia_league_edition
					}
					declare_war_on = {
						target = PREV
						type = annex_everything
					}
				}
			}
		}
		for_each_scope_loop = {
			array = global.sov_ancient_federation_member_who_left_the_league
			if = {
				limit = {
					exists = yes
					NOT = {
						tag = SOV
					}
				}
				every_country = {
					limit = {
						NOT = {
							is_in_faction_with = SOV
						}
						has_country_flag = is_enemy_of_anarchist_russia_league_edition
					}
					give_military_access = PREV
				}
			}
		}
	}

	option = { #Join SOV
		name = russia2_russia.625.b
		ai_chance = {
			base = 35
		}
		trigger = {
			NOT = {
				has_war_with = SOV
			}
			has_global_flag = reunification_war_is_ongoing_anarchist
		}
		clr_country_flag = is_neutral_of_anarchist_russia_league_edition
		set_country_flag = is_friend_of_anarchist_russia_league_edition
		SOV = {
			add_to_faction = ROOT
			country_event = { id = russia2_russia.627 }
		}
		for_each_scope_loop = {
			array = global.sov_ancient_federation_member_who_left_the_league
			if = {
				limit = {
					exists = yes
					NOT = {
						tag = SOV
					}
				}
				ROOT = {
					declare_war_on = {
						target = PREV
						type = annex_everything
					}
				}
			}
		}
	}

	option = { #Neutrality
		name = russia2_russia.625.c
		ai_chance = {
			base = 20
		}
		trigger = {
			has_global_flag = reunification_war_is_ongoing_anarchist
			NOT = {
				has_war_with = SOV
			}
		}
		SOV = {
			country_event = { id = russia2_russia.628 }
		}
	}

	option = { #Nothing
		trigger = {
			NOT = {
				has_global_flag = reunification_war_is_ongoing_anarchist
			}
			has_war_with = SOV
		}
		name = russia2_russia.625.d
		ai_chance = {
			base = 1
		}
	}
}

#FROM Join the Enemies !
country_event = {
	id = russia2_russia.626
	title = russia2_russia.626.t
	desc = russia2_russia.626.d
	picture = GFX_report_event_ger_civil_war

	is_triggered_only = yes

	option = { #Neutrality
		name = russia2_russia.626.a
		ai_chance = {
			base = 100
		}
	}
}

#FROM Join us !
country_event = {
	id = russia2_russia.627
	title = russia2_russia.627.t
	desc = russia2_russia.627.d
	picture = GFX_report_event_soviet_german_soldier_handshake

	is_triggered_only = yes

	option = { #Neutrality
		name = russia2_russia.627.a
		ai_chance = {
			base = 100
		}
	}
}

#FROM Stay Neutral !
country_event = {
	id = russia2_russia.628
	title = russia2_russia.628.t
	desc = russia2_russia.628.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes

	option = { #Neutrality
		name = russia2_russia.628.a
		ai_chance = {
			base = 100
		}
	}
}

#End of the Reunification War
country_event = {
	id = russia2_russia.629
	title = russia2_russia.629.t
	desc = russia2_russia.629.d
	picture = GFX_soldiers_with_guns_russia2

	is_triggered_only = yes

	option = { #Neutrality
		name = russia2_russia.629.a
		ai_chance = {
			base = 100
		}
	}
}

#Randomise Opinion of Russian Reunification
country_event = {
	id = russia2_russia.630
	title = russia2_russia.630.t
	desc = russia2_russia.630.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes

	immediate = {
		set_temp_variable = { opinion_russian_anarchist_var_temp = 0 }
		randomize_temp_variable = {
			var = opinion_russian_anarchist_var_temp
			distribution = uniform
			min = 0
			max = 1
		}
		multiply_temp_variable = { opinion_russian_anarchist_var_temp = 100 }
		round_temp_variable = opinion_russian_anarchist_var_temp
		set_variable = { opinion_russian_anarchist_var_true = opinion_russian_anarchist_var_temp }
	}

	option = { #Results
		name = russia2_russia.630.a
		ai_chance = {
			base = 100
		}
		if = {
			limit = {
				check_variable = {
					var = opinion_russian_anarchist_var_true
					value = 45
					compare = less_than_or_equals
				}
			}
			country_event = { id = russia2_russia.621 }
			set_country_flag = is_enemy_of_anarchist_russia_league_edition
			add_to_array = { global.sov_ancient_federation_member_who_left_the_league = THIS }
			leave_faction = yes
		}
		else_if = {
			limit = {
				check_variable = {
					var = opinion_russian_anarchist_var_true
					value = 65
					compare = greater_than_or_equals
				}
			}
			set_country_flag = is_friend_of_anarchist_russia_league_edition
		}
		else = {
			set_country_flag = is_neutral_of_anarchist_russia_league_edition
		}
	}
}

#Hidden Event to Add Neutral Country to War
country_event = {
	id = russia2_russia.631

	is_triggered_only = yes

	hidden = yes

	immediate = {
		clr_country_flag = is_neutral_of_anarchist_russia_league_edition
		set_country_flag = is_enemy_of_anarchist_russia_league_edition
		add_to_array = { global.sov_ancient_federation_member_who_left_the_league = ROOT }
		for_each_scope_loop = {
			array = global.sov_ancient_federation_member_who_left_the_league
			if = {
				limit = {
					tag = ROOT
					exists = yes
					NOT = {
						tag = SOV
					}
				}
				SOV = {
					declare_war_on = {
						target = PREV
						type = annex_everything
					}
				}
				every_country = {
					limit = {
						NOT = {
							tag = SOV
						}
						is_in_faction_with = SOV
						has_country_flag = is_friend_of_anarchist_russia_league_edition
					}
					declare_war_on = {
						target = PREV
						type = annex_everything
					}
				}
			}
		}
		for_each_scope_loop = {
			array = global.sov_ancient_federation_member_who_left_the_league
			if = {
				limit = {
					exists = yes
					NOT = {
						tag = SOV
					}
				}
				every_country = {
					limit = {
						NOT = {
							is_in_faction_with = SOV
						}
						has_country_flag = is_enemy_of_anarchist_russia_league_edition
					}
					give_military_access = PREV
				}
			}
		}
	}
}

#Can Declare War on Neutral Countries
country_event = {
	id = russia2_russia.632
	title = russia2_russia.632.t
	desc = russia2_russia.632.d
	picture = GFX_report_event_czech_soldiers_02

	is_triggered_only = yes

	immediate = {
		set_country_flag = can_declare_war_neutral_anarchist_countries
	}

	option = { #Results
		name = russia2_russia.632.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = SOV_attack_neutral_country_anarchist_tt_ev
	}
}

#Nuclear Tests in 262 Successful
country_event = {
	id = russia2_russia.633
	title = russia2_russia.633.t
	desc = russia2_russia.633.d
	picture = GFX_report_event_physics_lab_02

	is_triggered_only = yes

	option = { #Results
		name = russia2_russia.633.a
		ai_chance = {
			base = 100
		}
		add_ideas = SOV_Tsar_bomba
	}
}

#Fate of Ukraine Tsar Lost State Focus
country_event = {
	id = russia2_russia.634
	title = russia2_russia.634.t
	desc = russia2_russia.634.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes

	option = { #Send Ultimatum
		name = russia2_russia.634.a
		ai_chance = {
			base = 80
			modifier = {
				factor = 0
				UKR = {
					is_ai = no
				}
			}
		}
		UKR = {
			country_event = { id = russia2_russia.213 hours = 3 }
		}
	}

	option = { #Become Friends with them
		name = russia2_russia.634.b
		ai_chance = {
			base = 20
			modifier = {
				add = 80
				UKR = {
					is_ai = no
				}
			}
		}
		UKR = {
			country_event = { id = russia2_russia.635 hours = 3 }
		}
	}
}

#Russia Empire Wants to become Friend with us
country_event = {
	id = russia2_russia.635
	title = russia2_russia.635.t
	desc = russia2_russia.635.d
	picture = GFX_report_event_generic_rally_3

	is_triggered_only = yes

	option = { #Accept
		name = russia2_russia.635.a
		ai_chance = {
			base = 85
		}
		custom_effect_tooltip = ukr_will_never_leave_sov_faction
		SOV = {
			country_event = { id = russia2_russia.636 hours = 7 }
		}
		set_country_flag = ukr_accepted_royal_faction_with_sov
		add_ai_strategy = {
			type = alliance
			id = SOV
			value = 200
		}
	}

	option = { #Refuse
		name = russia2_russia.635.b
		ai_chance = {
			base = 15
		}
		SOV = {
			country_event = { id = russia2_russia.637 hours = 7 }
		}
	}
}

#Ukraine Accept
country_event = {
	id = russia2_russia.636
	title = russia2_russia.636.t
	desc = russia2_russia.636.d
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { #Good
		name = russia2_russia.636.a
		ai_chance = {
			base = 100
		}
		if = {
			limit = {
				is_faction_leader = yes
			}
			SOV = { add_to_faction = UKR }
		}
		else = {
			create_faction = royal_alliance_faction_name
			SOV = { add_to_faction = UKR }
		}
	}
}

#Ukraine Refuse
country_event = {
	id = russia2_russia.637
	title = russia2_russia.637.t
	desc = russia2_russia.637.d
	picture = GFX_report_event_generic_panzer_attack

	is_triggered_only = yes

	option = { #Not Good
		name = russia2_russia.637.a
		ai_chance = {
			base = 100
		}
		create_wargoal = {
			type = annex_everything
			target = UKR
		}
	}
}

#Randomise Opinion of Russian Reunification
country_event = {
	id = russia2_russia.638
	title = russia2_russia.630.t
	desc = russia2_russia.630.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes

	immediate = {
		set_variable = { opinion_russian_anarchist_puppet_reform_plan = 0 }
		randomize_temp_variable = {
			var = opinion_russian_anarchist_puppet_reform_plan
			distribution = uniform
			min = 0
			max = 1
		}
		multiply_temp_variable = { opinion_russian_anarchist_puppet_reform_plan = 100 }
		round_temp_variable = opinion_russian_anarchist_puppet_reform_plan
		set_variable = { personality_russian_anarchist_indicator = 0 }
		randomize_temp_variable = { #1 is militaristic(like 2, hate 4), 2 is economic(like 1, hate 3), 3 is social(like 4, hate 2), last is peaceful (like 3, hate 1)
			var = personality_russian_anarchist_indicator
			distribution = uniform
			min = 0
			max = 4
		}
		round_temp_variable = personality_russian_anarchist_indicator
	}

	option = { #Results
		name = russia2_russia.630.a
		ai_chance = {
			base = 100
		}
		if = {
			limit = {
				check_variable = {
					var = personality_russian_anarchist_indicator
					value = 1
					compare = less_than_or_equals
				}
			}
			set_variable = { militaristic_personality_type_anarchist = 0 }
		}
		else_if = {
			limit = {
				check_variable = {
					var = personality_russian_anarchist_indicator
					value = 1
					compare = greater_than_or_equals
				}
				check_variable = {
					var = personality_russian_anarchist_indicator
					value = 2
					compare = less_than_or_equals
				}
			}
			set_variable = { economic_personality_type_anarchist = 0 }
		}
		else_if = {
			limit = {
				check_variable = {
					var = personality_russian_anarchist_indicator
					value = 2
					compare = greater_than_or_equals
				}
				check_variable = {
					var = personality_russian_anarchist_indicator
					value = 3
					compare = less_than_or_equals
				}
			}
			set_variable = { social_personality_type_anarchist = 0 }
		}
		else_if = {
			limit = {
				check_variable = {
					var = personality_russian_anarchist_indicator
					value = 3
					compare = greater_than_or_equals
				}
				check_variable = {
					var = personality_russian_anarchist_indicator
					value = 4
					compare = less_than_or_equals
				}
			}
			set_variable = { peaceful_personality_type_anarchist = 0 }
		}
	}
}

#Meeting with FROM Leader
country_event = {
	id = russia2_russia.639
	title = russia2_russia.639.t
	desc = russia2_russia.639.d
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes

	option = { #Peaceful
		name = russia2_russia.639.a
		ai_chance = {
			base = 25
		}
		if = {
			limit = {
				FROM = {
					check_variable = {
						var = militaristic_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.646 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = economic_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.645 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = social_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.644 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = peaceful_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.643 days = 4 }
			}
		}
		else = {
			custom_effect_tooltip = debug_tooltip_problem_not_working_as_intended
		}
	}

	option = { #Economic
		name = russia2_russia.639.b
		ai_chance = {
			base = 25
		}
		if = {
			limit = {
				FROM = {
					check_variable = {
						var = militaristic_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.644 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = economic_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.643 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = social_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.646 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = peaceful_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.645 days = 4 }
			}
		}
		else = {
			custom_effect_tooltip = debug_tooltip_problem_not_working_as_intended
		}
	}

	option = { #Militaristic
		name = russia2_russia.639.c
		ai_chance = {
			base = 25
		}
		if = {
			limit = {
				FROM = {
					check_variable = {
						var = militaristic_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.643 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = economic_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.644 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = social_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.645 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = peaceful_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.646 days = 4 }
			}
		}
		else = {
			custom_effect_tooltip = debug_tooltip_problem_not_working_as_intended
		}
	}

	option = { #Social
		name = russia2_russia.639.e
		ai_chance = {
			base = 25
		}
		if = {
			limit = {
				FROM = {
					check_variable = {
						var = militaristic_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.645 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = economic_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.646 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = social_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.643 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = peaceful_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.644 days = 4 }
			}
		}
		else = {
			custom_effect_tooltip = debug_tooltip_problem_not_working_as_intended
		}
	}
}

#Trying to create a Manifestation in favour of the project in FROM
country_event = {
	id = russia2_russia.640
	title = russia2_russia.640.t
	desc = russia2_russia.640.d
	picture = GFX_report_event_gathering_protest

	is_triggered_only = yes

	option = { #Social
		name = russia2_russia.640.a
		ai_chance = {
			base = 25
		}
		if = {
			limit = {
				FROM = {
					check_variable = {
						var = militaristic_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.645 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = economic_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.646 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = social_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.643 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = peaceful_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.644 days = 4 }
			}
		}
		else = {
			custom_effect_tooltip = debug_tooltip_problem_not_working_as_intended
		}
	}

	option = { #Peaceful
		name = russia2_russia.640.b
		ai_chance = {
			base = 25
		}
		if = {
			limit = {
				FROM = {
					check_variable = {
						var = militaristic_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.646 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = economic_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.645 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = social_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.644 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = peaceful_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.643 days = 4 }
			}
		}
		else = {
			custom_effect_tooltip = debug_tooltip_problem_not_working_as_intended
		}
	}

	option = { #Economic
		name = russia2_russia.640.c
		ai_chance = {
			base = 25
		}
		if = {
			limit = {
				FROM = {
					check_variable = {
						var = militaristic_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.644 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = economic_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.643 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = social_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.646 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = peaceful_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.645 days = 4 }
			}
		}
		else = {
			custom_effect_tooltip = debug_tooltip_problem_not_working_as_intended
		}
	}

	option = { #Militaristic
		name = russia2_russia.640.e
		ai_chance = {
			base = 25
		}
		if = {
			limit = {
				FROM = {
					check_variable = {
						var = militaristic_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.643 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = economic_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.644 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = social_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.645 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = peaceful_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.646 days = 4 }
			}
		}
		else = {
			custom_effect_tooltip = debug_tooltip_problem_not_working_as_intended
		}
	}
}

#Speech for FROM Workers
country_event = {
	id = russia2_russia.641
	title = russia2_russia.641.t
	desc = russia2_russia.641.d
	picture = GFX_report_event_generic_factory

	is_triggered_only = yes

	option = { #Social
		name = russia2_russia.641.a
		ai_chance = {
			base = 25
		}
		if = {
			limit = {
				FROM = {
					check_variable = {
						var = militaristic_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.645 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = economic_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.646 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = social_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.643 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = peaceful_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.644 days = 4 }
			}
		}
		else = {
			custom_effect_tooltip = debug_tooltip_problem_not_working_as_intended
		}
	}

	option = { #Militaristic
		name = russia2_russia.641.b
		ai_chance = {
			base = 25
		}
		if = {
			limit = {
				FROM = {
					check_variable = {
						var = militaristic_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.643 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = economic_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.644 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = social_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.645 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = peaceful_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.646 days = 4 }
			}
		}
		else = {
			custom_effect_tooltip = debug_tooltip_problem_not_working_as_intended
		}
	}

	option = { #Peaceful
		name = russia2_russia.641.c
		ai_chance = {
			base = 25
		}
		if = {
			limit = {
				FROM = {
					check_variable = {
						var = militaristic_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.646 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = economic_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.645 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = social_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.644 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = peaceful_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.643 days = 4 }
			}
		}
		else = {
			custom_effect_tooltip = debug_tooltip_problem_not_working_as_intended
		}
	}

	option = { #Economic
		name = russia2_russia.641.e
		ai_chance = {
			base = 25
		}
		if = {
			limit = {
				FROM = {
					check_variable = {
						var = militaristic_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.644 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = economic_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.643 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = social_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.646 days = 4 }
			}
		}
		else_if = {
			limit = {
				FROM = {
					check_variable = {
						var = peaceful_personality_type_anarchist
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			SOV = {
				country_event = { id = russia2_russia.645 days = 4 }
			}
		}
		else = {
			custom_effect_tooltip = debug_tooltip_problem_not_working_as_intended
		}
	}
}

#Hidden Event For Event Generator
country_event = {
	id = russia2_russia.642

	is_triggered_only = yes

	hidden = yes

	immediate = {
		random_list = {
			33 = {
				SOV = {
					country_event = { id = russia2_russia.639 }
					set_country_flag = meeting_with_from_leader_loc
				}
			}
			33 = {
				SOV = {
					country_event = { id = russia2_russia.640 }
					set_country_flag = public_speech_citizens_loc
				}
			}
			33 = {
				SOV = {
					country_event = { id = russia2_russia.641 }
					set_country_flag = public_speech_workers_loc
				}
			}
		}
	}
}

#Choice was Excelent
country_event = {
	id = russia2_russia.643
	title = russia2_russia.643.t
	desc = {
		text = russia2_russia.643.d_1
		trigger = {
			SOV = {
				has_country_flag = meeting_with_from_leader_loc
			}
		}
	}
	desc = {
		text = russia2_russia.643.d_2
		trigger = {
			SOV = {
				has_country_flag = public_speech_citizens_loc
			}
		}
	}
	desc = {
		text = russia2_russia.643.d_3
		trigger = {
			SOV = {
				has_country_flag = public_speech_workers_loc
			}
		}
	}
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = { #Excelent
		name = russia2_russia.643.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = from_will_receiv_20_points_project_anarchist
		FROM = {
			add_to_variable = { opinion_russian_anarchist_puppet_reform_plan = 20 }
		}
		clr_country_flag = meeting_with_from_leader_loc
		clr_country_flag = public_speech_citizens_loc
		clr_country_flag = public_speech_workers_loc
	}
}

#Choice was Good
country_event = {
	id = russia2_russia.644
	title = russia2_russia.644.t
	desc = {
		text = russia2_russia.644.d_1
		trigger = {
			SOV = {
				has_country_flag = meeting_with_from_leader_loc
			}
		}
	}
	desc = {
		text = russia2_russia.644.d_2
		trigger = {
			SOV = {
				has_country_flag = public_speech_citizens_loc
			}
		}
	}
	desc = {
		text = russia2_russia.644.d_3
		trigger = {
			SOV = {
				has_country_flag = public_speech_workers_loc
			}
		}
	}
	picture = GFX_report_event_generic_rally

	is_triggered_only = yes

	option = { #Good
		name = russia2_russia.644.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = from_will_receiv_10_points_project_anarchist
		FROM = {
			add_to_variable = { opinion_russian_anarchist_puppet_reform_plan = 10 }
		}
		clr_country_flag = meeting_with_from_leader_loc
		clr_country_flag = public_speech_citizens_loc
		clr_country_flag = public_speech_workers_loc
	}
}

#Choice was meh
country_event = {
	id = russia2_russia.645
	title = russia2_russia.645.t
	desc = {
		text = russia2_russia.645.d_1
		trigger = {
			SOV = {
				has_country_flag = meeting_with_from_leader_loc
			}
		}
	}
	desc = {
		text = russia2_russia.645.d_2
		trigger = {
			SOV = {
				has_country_flag = public_speech_citizens_loc
			}
		}
	}
	desc = {
		text = russia2_russia.645.d_3
		trigger = {
			SOV = {
				has_country_flag = public_speech_workers_loc
			}
		}
	}
	picture = GFX_report_event_gre_trial

	is_triggered_only = yes

	option = { #Good
		name = russia2_russia.645.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = from_will_receiv_5_points_project_anarchist
		FROM = {
			add_to_variable = { opinion_russian_anarchist_puppet_reform_plan = 5 }
		}
		clr_country_flag = meeting_with_from_leader_loc
		clr_country_flag = public_speech_citizens_loc
		clr_country_flag = public_speech_workers_loc
	}
}

#Choice was Horrible
country_event = {
	id = russia2_russia.646
	title = russia2_russia.646.t
	desc = {
		text = russia2_russia.646.d_1
		trigger = {
			SOV = {
				has_country_flag = meeting_with_from_leader_loc
			}
		}
	}
	desc = {
		text = russia2_russia.646.d_2
		trigger = {
			SOV = {
				has_country_flag = public_speech_citizens_loc
			}
		}
	}
	desc = {
		text = russia2_russia.646.d_3
		trigger = {
			SOV = {
				has_country_flag = public_speech_workers_loc
			}
		}
	}
	picture = GFX_report_event_generic_riot

	is_triggered_only = yes

	option = { #Rip
		name = russia2_russia.646.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = from_will_receiv_minus_10_points_project_anarchist
		FROM = {
			add_to_variable = { opinion_russian_anarchist_puppet_reform_plan = -10 }
		}
		clr_country_flag = meeting_with_from_leader_loc
		clr_country_flag = public_speech_citizens_loc
		clr_country_flag = public_speech_workers_loc
	}
}

#Fate of Mongolia and Tannu Tuva After SCW
country_event = {
	id = russia2_russia.647
	title = russia2_russia.647.t
	desc = russia2_russia.647.d
	picture = GFX_report_event_SOV_mongolia_cavalry

	is_triggered_only = yes

	option = { #Military Occupation
		name = russia2_russia.647.a
		ai_chance = {
			base = 10
		}
		add_stability = -0.05
		add_political_power = -50
	}

	option = { #Release Tannu Tuva as Puppet
		name = russia2_russia.647.b
		trigger = {
			NOT = {
				country_exists = TAN
			}
			owns_state = 329
		}
		ai_chance = {
			base = 10
		}
		hidden_effect = {
			TAN = {
				transfer_state = 329
			}
		}
		SOV = {
			set_autonomy = {
				target = TAN
				autonomy_state = autonomy_puppet
			}
		}
	}

	option = { #Release Mongolia as Puppet
		name = russia2_russia.647.c
		trigger = {
			NOT = {
				country_exists = MON
			}
			OR = {
				owns_state = 820
				owns_state = 818
				owns_state = 817
				owns_state = 819
				owns_state = 330
			}
		}
		ai_chance = {
			base = 10
		}
		hidden_effect = {
			every_state = {
				limit = {
					is_core_of = MON
					is_owned_by = ROOT
				}
				MON = {
					transfer_state = PREV
				}
			}
		}
		SOV = {
			set_autonomy = {
				target = MON
				autonomy_state = autonomy_puppet
			}
		}
	}

	option = { #Release both Mongolia and Tannu Tuva as Puppet
		name = russia2_russia.647.e
		trigger = {
			NOT = {
				country_exists = TAN
				country_exists = MON
			}
			owns_state = 329
			OR = {
				owns_state = 820
				owns_state = 818
				owns_state = 817
				owns_state = 819
				owns_state = 330
			}
		}
		ai_chance = {
			base = 70
		}
		hidden_effect = {
			TAN = {
				transfer_state = 329
			}
		}
		SOV = {
			set_autonomy = {
				target = TAN
				autonomy_state = autonomy_puppet
			}
		}
		hidden_effect = {
			every_state = {
				limit = {
					is_core_of = MON
					is_owned_by = ROOT
				}
				MON = {
					transfer_state = PREV
				}
			}
		}
		SOV = {
			set_autonomy = {
				target = MON
				autonomy_state = autonomy_puppet
			}
		}
	}
}

#Trotsky not found
country_event = {
	id = russia2_russia.648
	title = russia2_russia.648.t
	desc = russia2_russia.648.d
	picture = GFX_event_leon_trotsky_russia2

	is_triggered_only = yes

	option = { #Keep looking
		name = russia2_russia.648.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = sov_leon_trotsky_can_search_again_tt
	}
}

#Trotsky found but escaped
country_event = {
	id = russia2_russia.649
	title = russia2_russia.649.t
	desc = russia2_russia.649.d
	picture = GFX_event_leon_trotsky_in_norway_russia2

	is_triggered_only = yes

	option = { #Dammit
		name = russia2_russia.649.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = sov_leon_trotsky_can_search_again_tt
	}
}

#Trotsky found
country_event = {
	id = russia2_russia.650
	title = russia2_russia.650.t
	desc = russia2_russia.650.d
	picture = GFX_event_death_of_leon_trotsky_russia2

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_variable = { sov_leon_trotsky_death_date = global.date }
		}
	}

	option = { #Thereeee we go
		name = russia2_russia.650.a
		ai_chance = {
			base = 100
		}
		custom_effect_tooltip = sov_leon_trotsky_dies_tt
		remove_ideas = SOV_Trotskyite_plot_purged_russia2
		if = {
			limit = {
				has_country_leader_with_trait = russia2_paranoia_stalin_trait
			}
			remove_country_leader_trait = russia2_paranoia_stalin_trait
		}
		set_global_flag = sov_leon_trotsky_dead
		set_variable = { sov_leon_trotsky_killed_frame = 2 }
		add_to_variable = { sov_great_purge_completion = 0.001 } # Refresh the GUI :)
	}
}

#Remove Useless Advisors
country_event = {
	id = russia2_russia.651

	is_triggered_only = yes

	hidden = yes

	immediate = {
		AZR = {
			retire_character = generic_captain_of_industry
			retire_character = generic_fortification_engineer
			retire_character = generic_war_industrialist
			retire_character = generic_army_chief_def
			retire_character = generic_navy_chief_decisive_bat
			retire_character = generic_navy_anti_submarine
			retire_character = generic_air_close_air_sup
			retire_character = generic_army_art
			retire_character = generic_army_log
			retire_character = generic_navy_fleet_log
			retire_character = generic_military_theorist
			retire_character = generic_naval_theorist
			retire_character = generic_air_warfare_theorist
		}
		UKR = {
			retire_character = generic_captain_of_industry
			retire_character = generic_fortification_engineer
			retire_character = generic_war_industrialist
			retire_character = generic_army_chief_def
			retire_character = generic_navy_chief_decisive_bat
			retire_character = generic_navy_anti_submarine
			retire_character = generic_air_close_air_sup
			retire_character = generic_army_art
			retire_character = generic_army_log
			retire_character = generic_navy_fleet_log
			retire_character = generic_military_theorist
			retire_character = generic_naval_theorist
			retire_character = generic_air_warfare_theorist
		}
		GEO = {
			retire_character = generic_captain_of_industry
			retire_character = generic_fortification_engineer
			retire_character = generic_war_industrialist
			retire_character = generic_army_chief_def
			retire_character = generic_navy_chief_decisive_bat
			retire_character = generic_navy_anti_submarine
			retire_character = generic_air_close_air_sup
			retire_character = generic_army_art
			retire_character = generic_army_log
			retire_character = generic_navy_fleet_log
			retire_character = generic_military_theorist
			retire_character = generic_naval_theorist
			retire_character = generic_air_warfare_theorist
		}
		ARM = {
			retire_character = generic_captain_of_industry
			retire_character = generic_fortification_engineer
			retire_character = generic_war_industrialist
			retire_character = generic_army_chief_def
			retire_character = generic_navy_chief_decisive_bat
			retire_character = generic_navy_anti_submarine
			retire_character = generic_air_close_air_sup
			retire_character = generic_army_art
			retire_character = generic_army_log
			retire_character = generic_navy_fleet_log
			retire_character = generic_military_theorist
			retire_character = generic_naval_theorist
			retire_character = generic_air_warfare_theorist
		}
		KAL = {
			retire_character = generic_captain_of_industry
			retire_character = generic_fortification_engineer
			retire_character = generic_war_industrialist
			retire_character = generic_army_chief_def
			retire_character = generic_navy_chief_decisive_bat
			retire_character = generic_navy_anti_submarine
			retire_character = generic_air_close_air_sup
			retire_character = generic_army_art
			retire_character = generic_army_log
			retire_character = generic_navy_fleet_log
			retire_character = generic_military_theorist
			retire_character = generic_naval_theorist
			retire_character = generic_air_warfare_theorist
		}
		KAR = {
			retire_character = generic_captain_of_industry
			retire_character = generic_fortification_engineer
			retire_character = generic_war_industrialist
			retire_character = generic_army_chief_def
			retire_character = generic_navy_chief_decisive_bat
			retire_character = generic_navy_anti_submarine
			retire_character = generic_air_close_air_sup
			retire_character = generic_army_art
			retire_character = generic_army_log
			retire_character = generic_navy_fleet_log
			retire_character = generic_military_theorist
			retire_character = generic_naval_theorist
			retire_character = generic_air_warfare_theorist
		}
		CRI = {
			retire_character = generic_captain_of_industry
			retire_character = generic_fortification_engineer
			retire_character = generic_war_industrialist
			retire_character = generic_army_chief_def
			retire_character = generic_navy_chief_decisive_bat
			retire_character = generic_navy_anti_submarine
			retire_character = generic_air_close_air_sup
			retire_character = generic_army_art
			retire_character = generic_army_log
			retire_character = generic_navy_fleet_log
			retire_character = generic_military_theorist
			retire_character = generic_naval_theorist
			retire_character = generic_air_warfare_theorist
		}
		TAT = {
			retire_character = generic_captain_of_industry
			retire_character = generic_fortification_engineer
			retire_character = generic_war_industrialist
			retire_character = generic_army_chief_def
			retire_character = generic_navy_chief_decisive_bat
			retire_character = generic_navy_anti_submarine
			retire_character = generic_air_close_air_sup
			retire_character = generic_army_art
			retire_character = generic_army_log
			retire_character = generic_navy_fleet_log
			retire_character = generic_military_theorist
			retire_character = generic_naval_theorist
			retire_character = generic_air_warfare_theorist
		}
		DAG = {
			retire_character = generic_captain_of_industry
			retire_character = generic_fortification_engineer
			retire_character = generic_war_industrialist
			retire_character = generic_army_chief_def
			retire_character = generic_navy_chief_decisive_bat
			retire_character = generic_navy_anti_submarine
			retire_character = generic_air_close_air_sup
			retire_character = generic_army_art
			retire_character = generic_army_log
			retire_character = generic_navy_fleet_log
			retire_character = generic_military_theorist
			retire_character = generic_naval_theorist
			retire_character = generic_air_warfare_theorist
		}
	}
}

#Choose Beneficiary Contested State
country_event = {
	id = russia2_russia.652
	title = russia2_russia.652.t
	desc = russia2_russia.652.d
	picture = GFX_report_event_sanation_left_victory

	is_triggered_only = yes

	option = { #Choose First Beneficiary
		name = russia2_russia.652.a
		ai_chance = {
			base = 33
		}
		FROM = {
			set_country_flag = is_neighbor_of_from_first_beneficiary
			clr_country_flag = is_neighbor_of_from_second_beneficiary
			clr_country_flag = is_neighbor_of_from_sov_beneficiary
		}
	}

	option = { #Choose Second Beneficiary
		name = russia2_russia.652.b
		ai_chance = {
			base = 33
		}
		FROM = {
			set_country_flag = is_neighbor_of_from_second_beneficiary
			clr_country_flag = is_neighbor_of_from_first_beneficiary
			clr_country_flag = is_neighbor_of_from_sov_beneficiary
		}
	}

	option = { #Choose SOV Beneficiary
		name = russia2_russia.652.c
		ai_chance = {
			base = 33
		}
		FROM = {
			set_country_flag = is_neighbor_of_from_sov_beneficiary
			clr_country_flag = is_neighbor_of_from_second_beneficiary
			clr_country_flag = is_neighbor_of_from_first_beneficiary
		}
	}
}

#Wide Putin ;)
country_event = {
	id = russia2_russia.653
	title = russia2_russia.653.t
	desc = russia2_russia.653.d
	picture = GFX_event_wide_putin_russia2

	fire_only_once = yes

	trigger = {
		tag = SOV
		has_government = democratic
		is_subject = no
		has_global_flag = russia_reworked_wide_putin_enabled
		has_country_flag = {
			flag = sov_united_russia_takes_control
			days > 365
		}
	}

	immediate = {
		hidden_effect = {
			scoped_sound_effect = "russia_reworked_wide_putin"
		}
	}

	option = { #Yes!
		name = russia2_russia.653.a
		ai_chance = {
			base = 100
		}
		add_country_leader_role = {
			character = SOV_Wide_putin
			promote_leader = yes
			country_leader = {
				desc = SOV_Wide_putin_desc
				ideology = conservatism
				expire = "2000.1.1.1"
				traits = {
					russia2_wide_trait
					russia2_eating_crimea_breakfast
					russia2_99_percent_approval_rate
				}
			}
		}
	}

	option = { #No
		name = russia2_russia.653.b
		ai_chance = {
			base = 0
		}
	}
}

#Anarchist Election
country_event = {
	id = russia2_russia.654
	title = russia2_russia.654.t
	desc = russia2_russia.654.d
	picture = GFX_report_event_sanation_left_victory

	is_triggered_only = yes

	immediate = {
		set_variable = { sov_anarchist_election_current_ruling_party = var:sov_anarchist_election_current_party_context }
	}

	option = {
		name = russia2_russia.654.a
		ai_chance = {
			base = 100
		}
		set_variable_for_winning_anarchist_party_election = yes
	}
}

#Random Party Gains 5/10%
country_event = {
	id = russia2_russia.655
	title = russia2_russia.655.t
	desc = russia2_russia.655.d
	picture = GFX_report_event_communists_cheer

	is_triggered_only = yes

	option = {
		name = russia2_russia.655.a
		ai_chance = {
			base = 100
		}
		set_temp_variable = { random_effect = 0 }
		randomize_temp_variable = {
			var = random_effect
			min = 0
			max = 2
		}
		if = {
			limit = {
				check_variable = {
					var = random_effect
					value = 1
					compare = less_than
				}
			}
			add_to_variable = { sov_anarchist_election_parties^var:sov_anarchist_election_current_party_context = 5 }
			clamp_variable = {
				var = sov_anarchist_election_parties^var:sov_anarchist_election_current_party_context
				min = 0
				max = 100
			}
			custom_effect_tooltip = sov_current_context_party_gains_5_percent
		}
		else = {
			add_to_variable = { sov_anarchist_election_parties^var:sov_anarchist_election_current_party_context = 10 }
			clamp_variable = {
				var = sov_anarchist_election_parties^var:sov_anarchist_election_current_party_context
				min = 0
				max = 100
			}
			custom_effect_tooltip = sov_current_context_party_gains_10_percent
		}
	}
}

#Random Party Loses 5/10%
country_event = {
	id = russia2_russia.656
	title = russia2_russia.656.t
	desc = russia2_russia.656.d
	picture = GFX_report_event_peasant_revolt

	is_triggered_only = yes

	option = {
		name = russia2_russia.656.a
		ai_chance = {
			base = 100
		}
		set_temp_variable = { random_effect = 0 }
		randomize_temp_variable = {
			var = random_effect
			min = 0
			max = 2
		}
		if = {
			limit = {
				check_variable = {
					var = random_effect
					value = 1
					compare = less_than
				}
			}
			subtract_from_variable = { sov_anarchist_election_parties^var:sov_anarchist_election_current_party_context = 5 }
			clamp_variable = {
				var = sov_anarchist_election_parties^var:sov_anarchist_election_current_party_context
				min = 0
				max = 100
			}
			custom_effect_tooltip = sov_current_context_party_loses_5_percent
		}
		else = {
			subtract_from_variable = { sov_anarchist_election_parties^var:sov_anarchist_election_current_party_context = 10 }
			clamp_variable = {
				var = sov_anarchist_election_parties^var:sov_anarchist_election_current_party_context
				min = 0
				max = 100
			}
			custom_effect_tooltip = sov_current_context_party_loses_10_percent
		}
	}
}

#Hidden Event to Spawn Divisions
country_event = {
	id = russia2_russia.657
	title = russia2_russia.657.t

	is_triggered_only = yes

	hidden = yes

	immediate = {
		if = {
			limit = {
				SOV = {
					has_country_flag = can_infiltrate_foreign_countries_wargoal_lvl2
				}
			}
			every_state = {
				limit = {
					is_owned_by = ROOT
					has_state_flag = is_chosen_infiltrated_states_anarchist_communism
				}
				create_unit = {
					division = "name = \"1ya Taynaya Militsiya Diviziya\" division_template = \"Taynaya Militsiya Diviziya\" start_experience_factor = 0.2 start_equipment_factor = 1.0"
					owner = SOV
					allow_spawning_on_enemy_provs = yes
				}
				create_unit = {
					division = "name = \"2ya Taynaya Militsiya Diviziya\" division_template = \"Taynaya Militsiya Diviziya\" start_experience_factor = 0.2 start_equipment_factor = 1.0"
					owner = SOV
					allow_spawning_on_enemy_provs = yes
				}
				clr_state_flag = is_chosen_infiltrated_states_anarchist_communism
			}
		}
		else_if = {
			limit = {
				SOV = {
					has_country_flag = can_infiltrate_foreign_countries_wargoal_lvl3
				}
			}
			every_state = {
				limit = {
					is_owned_by = ROOT
					has_state_flag = is_chosen_infiltrated_states_anarchist_communism
				}
				create_unit = {
					division = "name = \"1ya Taynaya Militsiya Diviziya\" division_template = \"Taynaya Militsiya Diviziya\" start_experience_factor = 0.2 start_equipment_factor = 1.0"
					owner = SOV
					allow_spawning_on_enemy_provs = yes
				}
				create_unit = {
					division = "name = \"2ya Taynaya Militsiya Diviziya\" division_template = \"Taynaya Militsiya Diviziya\" start_experience_factor = 0.2 start_equipment_factor = 1.0"
					owner = SOV
					allow_spawning_on_enemy_provs = yes
				}
				create_unit = {
					division = "name = \"3ya Taynaya Militsiya Diviziya\" division_template = \"Taynaya Militsiya Diviziya\" start_experience_factor = 0.2 start_equipment_factor = 1.0"
					owner = SOV
					allow_spawning_on_enemy_provs = yes
				}
				clr_state_flag = is_chosen_infiltrated_states_anarchist_communism
			}
		}
		else = {
			every_state = {
				limit = {
					is_owned_by = ROOT
					has_state_flag = is_chosen_infiltrated_states_anarchist_communism
				}
				create_unit = {
					division = "name = \"1ya Taynaya Militsiya Diviziya\" division_template = \"Taynaya Militsiya Diviziya\" start_experience_factor = 0.2 start_equipment_factor = 1.0"
					owner = SOV
					allow_spawning_on_enemy_provs = yes
				}
				clr_state_flag = is_chosen_infiltrated_states_anarchist_communism
			}
		}
	}
}

#Ruling Party Loses 10/15%
country_event = {
	id = russia2_russia.658
	title = russia2_russia.658.t
	desc = russia2_russia.658.d
	picture = GFX_report_event_peasant_revolt

	is_triggered_only = yes

	option = {
		name = russia2_russia.658.a
		ai_chance = {
			base = 100
		}
		set_temp_variable = { random_effect = 0 }
		randomize_temp_variable = {
			var = random_effect
			min = 0
			max = 2
		}
		if = {
			limit = {
				check_variable = {
					var = random_effect
					value = 1
					compare = less_than
				}
			}
			subtract_from_variable = { sov_anarchist_election_parties^var:sov_anarchist_election_current_ruling_party = 10 }
			clamp_variable = {
				var = sov_anarchist_election_parties^var:sov_anarchist_election_current_ruling_party
				min = 0
				max = 100
			}
			custom_effect_tooltip = sov_current_ruling_party_loses_10_percent
		}
		else = {
			subtract_from_variable = { sov_anarchist_election_parties^var:sov_anarchist_election_current_ruling_party = 15 }
			clamp_variable = {
				var = sov_anarchist_election_parties^var:sov_anarchist_election_current_ruling_party
				min = 0
				max = 100
			}
			custom_effect_tooltip = sov_current_ruling_party_loses_15_percent
		}
	}
}

#Release Armenia
country_event = {
	id = russia2_russia.659

	hidden = yes

	is_triggered_only = yes

	fire_only_once = yes

	immediate = {
		if = {
			limit = {
				SOV = {
					has_completed_focus = SOV_create_russian_sphere
					NOT = {
						has_completed_focus = SOV_end_investments
					}
				}
			}
			SOV = {
				set_autonomy = {
					target = ARM
					autonomy_state = autonomy_supervised_state
					end_wars = yes
					end_civil_wars = yes
				}
			}
		}
		else = {
			ROOT = {
				set_autonomy = {
					target = ARM
					autonomy_state = autonomy_free
					end_wars = yes
					end_civil_wars = yes
				}
			}
			ARM = {
				leave_faction = yes
			}
		}
		ARM = {
			drop_cosmetic_tag = yes
		}
	}
}

#Anarchist Civil War Failed
country_event = {
	id = russia2_russia.660
	title = russia2_russia.660.t
	desc = russia2_russia.660.d
	picture = GFX_report_event_ANZAC_day

	is_triggered_only = yes

	option = { #Ouch
		name = russia2_russia.660.a
		ai_chance = {
			base = 100
		}
		add_stability = -0.05
		add_political_power = -50
	}
}