###########################
#     Crimean Events      #    
###########################

add_namespace = crimea

#Peasants protests
country_event = {
	id = crimea.1
	title = crimea.1.t
	desc = crimea.1.d
	picture = GFX_report_event_gathering_protest
	
	is_triggered_only = yes 

	trigger = {
		has_start_date < 1936.01.02
	}

	immediate = {
		hidden_effect = {
			country_event = { id = crimea.60 days = 25 random_days = 5 }
		}
	}
	
	option = { 
	    name = crimea.1.a
		ai_chance = {
		    factor = 50
		    modifier = {
		    	factor = 0
		   		OR = {
			    	has_game_rule = {
						rule = CRM_ai_behavior
						option = DEMOCRATIC
					}
					has_game_rule = {
						rule = CRM_ai_behavior
						option = NEUTRALITY
					}
					has_game_rule = {
						rule = CRM_ai_behavior
						option = FASCIST
					}
				}
			} 
		}
		add_to_variable = { var_crm_crisis_actions = 1 }
		add_political_power = 25
		add_popularity = {
			ideology = communism 
			popularity = 0.1 
		}
		subtract_from_variable = { global.north_crimea_water_coming = 100 }
		1021 = {
			custom_effect_tooltip = crm_water_coming_decrease_med_tt 
		}
		custom_effect_tooltip = CRM_increase_crisis
	}
	
	option = {
	    name = crimea.1.b 
		ai_chance = {
		    factor = 50
		    modifier = {
		    	factor = 0
		   		OR = {
			    	has_game_rule = {
						rule = CRM_ai_behavior
						option = COMMUNIST
					}
					has_game_rule = {
						rule = CRM_ai_behavior
						option = AUTONOM_SSR
					}
					has_game_rule = {
						rule = CRM_ai_behavior
						option = TATAR
					}
				}
			}
		}
	    add_political_power = -25
	    custom_effect_tooltip = CRM_decrease_crisis
	}
}
	
#National assembly meeting
country_event = {
	id = crimea.2
	title = crimea.2.t
	desc = crimea.2.d
	picture = GFX_report_event_canada_patriation
	
	is_triggered_only = yes 

	option = {
	    name = crimea.2.a
		ai_chance = {
		    factor = 50
		    modifier = {
		    	factor = 0
		    	has_game_rule = {
					rule = CRM_ai_behavior
					option = NEUTRALITY
				}
		    }
		}
	    complete_national_focus = CRM_wrangel_get_power
    }
	
	option = { 
	    name = crimea.2.b
		ai_chance = {
		    factor = 50
		    modifier = {
		    	factor = 0
		    	has_game_rule = {
					rule = CRM_ai_behavior
					option = DEMOCRATIC
				}
		    }
		}
		complete_national_focus = CRM_kudashev_get_power
		hidden_effect = {
			set_politics = { 
			    ruling_party = neutrality
				elections_allowed = no 
			}
		}
	}
}
	
# Integration with Ussr
country_event = {
	id = crimea.3
	title = crimea.3.t
	desc = crimea.3.d
	picture = GFX_report_event_soviet_soldiers_tank

	is_triggered_only = yes

	trigger = {
		NOT = { has_war_with = SOV }
	}
	
	option = {
		name = crimea.3.a
        SOV = { 
        	annex_country = {
        		target = CRM
        		transfer_troops = yes
            }
	    }
	    custom_effect_tooltip = GAME_OVER_TT
	}
}

#National protests 
country_event = {
	id = crimea.4
	title = crimea.4.t
	desc = crimea.4.d
	picture = GFX_report_event_worker_protests
	
	is_triggered_only = yes 
	
	option = { 
	    name = crimea.4.a
		ai_chance = {
		    factor = 100
		}
		add_stability = 0.1
		add_war_support = 0.1
		add_popularity = {
		ideology = democratic
		popularity = 0.13 }
		
	}
	option = {
	    name = crimea.4.b 
		ai_chance = {
		    factor = 0
		}
		add_stability = -0.1
		add_war_support = -0.1
	    }
	
	}
	
#Embezzlement scandal
country_event = {
	id = crimea.5
	title = crimea.5.t
	desc = crimea.5.d
	picture = GFX_report_event_worker_protests

	is_triggered_only = yes 
	trigger = { 
		NOT = { has_government = communism } 
		has_start_date < 1936.01.02
	}
	option = { 
	    name = crimea.5.a
		ai_chance = {
		    factor = 100
		}
		add_political_power = -150
		retire_character = CRM_nikolai_dolgopolov
		retire_character = CRM_pavel_vilchevskiy
	}
	option = {
	    name = crimea.5.b 
		ai_chance = {
		    factor = 0
		}
		add_stability = -0.10
	}
}
	
#Question of KONR
country_event = {
	id = crimea.6
	title = crimea.6.t
	desc = crimea.6.d
	picture = GFX_report_event_worker_protests
	
	is_triggered_only = yes 
	
	option = { #RETIRE
	    name = crimea.6.a
		ai_chance = {
		    factor = 50
		}
		retire_character = CRM_Petr_Pisarev
		retire_character = CRM_pyotr_krasnov
		add_to_variable = { var_crm_stability_debuff = 0.07 }
		add_to_variable = { var_crm_political_power_debuff = -0.2 }
		add_to_variable = { var_crm_war_support_debuff2 = 0.04 }
		add_popularity = {
			ideology = fascism
			popularity = -0.08 
		}
		custom_effect_tooltip = CRM_political_reforms_tt
	}
	option = { #SAVE
	    name = crimea.6.b 
		ai_chance = {
		    factor = 50
		}
        add_war_support = -0.05  
		add_popularity = {
			ideology = fascism
			popularity = 0.08 
		}
	}
	
}

#Ally with CRM
country_event = {
	id = crimea.7
	title = crimea.7.t
	desc = crimea.7.d
	picture = GFX_report_event_worker_protests
	
	is_triggered_only = yes 
	
	trigger = {
	tag = ENG
	}
	
	option = { #YES
	    name = crimea.7.a
		ai_chance = {
		    factor = 60
		}
		add_stability = 0.03
		ENG = { add_to_faction = CRM }
		CRM = { country_event = { id = crimea.8 hours = 1 } }
	}
	option = { #NO
	    name = crimea.7.b 
		ai_chance = {
		    factor = 40
		    modifier = {
		    	has_war_support > 0.5
		    	factor = 0.5
		    }
		}
        CRM = { country_event = { id = crimea.9 days = 1 } }
	}
	
}

#Ally with CRM for CRM
country_event = {
	id = crimea.8
	title = crimea.8.t
	desc = crimea.8.d
	picture = GFX_report_event_worker_protests
	
	is_triggered_only = yes 
	
	option = { #YES
	    name = crimea.8.a
		
	}
	
}


#Ally with CRM for CRM
country_event = {
	id = crimea.9
	title = crimea.9.t
	desc = crimea.9.d
	picture = GFX_report_event_worker_protests
	
	is_triggered_only = yes 
	
	option = { #NO
	    name = crimea.9.a
	}
}

#Ally with FRA
country_event = {
	id = crimea.10
	title = crimea.7.t
	desc = crimea.7.d
	picture = GFX_report_event_worker_protests
	
	is_triggered_only = yes 
	
	trigger = {
	tag = FRA
	}
	
	option = { #YES
	    name = crimea.7.a
		ai_chance = {
		    factor = 80
		}
		add_stability = 0.03
		FRA = { add_to_faction = CRM }
		CRM = { country_event = { id = crimea.8 days = 1 } }
	}
	option = { #NO
	    name = crimea.7.b 
		ai_chance = {
		    factor = 20
		}
        CRM = { country_event = { id = crimea.9 days = 1 } }
	}
	
}

#Konrovtsy dont like immigrants
country_event = {
	id = crimea.11
	title = crimea.11.t
	desc = crimea.11.d
	picture = GFX_report_event_worker_protests
	
	is_triggered_only = yes 
	
	trigger = {
		tag = CRM
		has_idea = CRM_home_for_everyone_idea
	}
	
	option = { #YES
	    name = crimea.11.a
		ai_chance = {
		    factor = 0
		}
		remove_ideas = CRM_home_for_everyone_idea
		add_popularity = {
			ideology = fascism
			popularity = 0.07 }
		
	}
	option = { #NO
	    name = crimea.11.b 
		ai_chance = {
		    factor = 100
		}
		
		add_stability = -0.07
      
	}
	
}
	
#Ally with FRA
country_event = {
	id = crimea.12
	title = crimea.7.t
	desc = crimea.7.d
	picture = GFX_report_event_worker_protests
	
	is_triggered_only = yes 
	
	option = { #YES
	    name = crimea.7.a
		ai_chance = {
		    factor = 90
		}
		add_stability = 0.03
		add_to_faction = CRM
		CRM = { country_event = { id = crimea.8 days = 1 } }
	}
	option = { #NO
	    name = crimea.7.b 
		ai_chance = {
		    factor = 10
		}
        CRM = { country_event = { id = crimea.9 days = 1 } }
	}
	
}

#Boris III visits Crimea
country_event = {
	id = crimea.13
	title = crimea.13.t
	desc = crimea.13.d
	picture = GFX_report_event_bul_boris_tour
	
	is_triggered_only = yes
    trigger = {
		BUL = {
			BUL_boris_iii = { is_country_leader = yes }
		}
		NOT = { has_war_with = BUL }
	}
	
	option = {
		name = crimea.13.a 
		add_political_power = 50
		add_opinion_modifier = { target = BUL modifier = CRM_new_friends }
		hidden_effect = {
			BUL = { add_opinion_modifier = { target = ROOT modifier = CRM_new_friends } } 
		}
		diplomatic_relation = {
			country = BUL
			relation = non_aggression_pact
			active = yes
		}
	}
}

#Speech of Pisarev
country_event = {
	id = crimea.14
	title = crimea.14.t
	desc = crimea.14.d
	picture = GFX_report_event_fascist_speech
	
	is_triggered_only = yes
	
    trigger = {
		has_government = democratic
	}
	
	fire_only_once = yes
	
	option = {
	name = crimea.14.a 
    set_politics = { 
		ruling_party = fascism 
	    elections_allowed = no }
		add_popularity = {
		ideology = fascism
		popularity = 0.2 }
				
		hidden_effect = { 
		    news_event = { id = news.552 hours = 12  }
			add_to_variable = { var_crm_stability_debuff = 0.15 }
		    add_to_variable = { var_crm_command_power_debuff = 40 }
			add_to_variable = { var_crm_political_power_debuff = -0.4 }
			add_to_variable = { var_crm_war_support_debuff2 = 0.1 }
			country_event = { id = crimea.63 days = 6 }
			if = { 
				limit = {
					has_idea = CRM_tatars_minority_good 
				}
				remove_ideas = CRM_tatars_minority_good
			}				     
		}
	}
}

#Bite Soviet
country_event = {
	id = crimea.15
	title = crimea.15.t
	desc = crimea.15.d
	picture = GFX_report_event_SOV_military_offensive
	
	is_triggered_only = yes
    trigger = { has_government = democratic }
	
	option = {
		name = crimea.15.a 
		add_stability = -0.02
	}
}

#Ally with GER
country_event = {
	id = crimea.16
	title = crimea.16.t
	desc = crimea.16.d
	picture = GFX_report_event_SOV_military_offensive
	
    trigger = {
		tag = GER
	}
	
    is_triggered_only = yes
	
	option = { #YES
	    name = crimea.16.a
		ai_chance = {
		    factor = 90
		}
		add_stability = 0.03
		GER = { add_to_faction = CRM }
		CRM = { country_event = { id = crimea.8 days = 1 } }
	}
	option = { #NO
	    name = crimea.16.b 
		ai_chance = {
		    factor = 10
		}
        CRM = { country_event = { id = crimea.9 days = 1 } }
	}
}

# Tsar Kirill
country_event = {
	id = crimea.17
	title = crimea.17.t
	desc = crimea.17.d
	picture = GFX_report_event_worker_protests
	
	is_triggered_only = yes 

	option = { #YES
	    name = crimea.17.a
		add_stability = 0.03
		promote_character = CRM_Kirill_Romanov
	}
	
}

#Ally with Poland (event for Crimea)
country_event = {
	id = crimea.18
	title = crimea.18.t
	desc = crimea.18.d
	picture = GFX_report_event_worker_protests
	
	is_triggered_only = yes 

	option = { #YES
	    name = crimea.18.a
		ai_chance = {
		    factor = 90
		}
		add_stability = 0.03
		POL = { add_to_faction = CRM 
		add_opinion_modifier = { target = SOV modifier = CRM_support_white_crimea } 
		}
	}
	option = { #NO
	    name = crimea.18.b 
		ai_chance = {
		    factor = 10
		}
        
	}
	
}

#Tatars or Communists
country_event = {
	id = crimea.19
	title = crimea.19.t
	desc = crimea.19.d
	picture = GFX_report_event_worker_protests
	
	is_triggered_only = yes 

	option = {
	    name = crimea.19.a
	    trigger = {
	    	196 = { is_owned_and_controlled_by = UKR }
			NOT = { has_war_with = UKR }
	    }
	    ai_chance = {
		    factor = 50
		    modifier = {
		    	factor = 0
		    	OR = {
			    	has_game_rule = {
						rule = CRM_ai_behavior
						option = COMMUNIST
					}
					has_game_rule = {
						rule = CRM_ai_behavior
						option = AUTONOM_SSR
					}
				}
		    }
		}
	    complete_national_focus = CRM_crush_communism

	}

	option = {
	    name = crimea.19.b
	    ai_chance = {
		    factor = 50
		    modifier = {
		    	factor = 0
		    	has_game_rule = {
					rule = CRM_ai_behavior
					option = TATAR
				}
		    }
		}
	    complete_national_focus = CRM_red_revolt
	}
	
}

#KSSR or return in USSR
country_event = {
	id = crimea.20
	title = crimea.20.t
	desc = crimea.20.d
	picture = GFX_report_event_worker_protests
	
	is_triggered_only = yes 

	option = { #YES
	    name = crimea.20.a
		ai_chance = {
		    factor = 50
		    modifier = {
		    	factor = 0
		    	has_game_rule = {
					rule = CRM_ai_behavior
					option = AUTONOM_SSR
				}
		    }
		}
		complete_national_focus = CRM_ussr_way
	}
	option = { #NO
	    name = crimea.20.b 
		ai_chance = {
		    factor = 50
		    modifier = {
		    	factor = 0
		    	has_game_rule = {
					rule = CRM_ai_behavior
					option = COMMUNIST
				}
		    }
		}
		complete_national_focus = CRM_autonom_USSR
        
	}
	
}

#Crimea - Results of army review
country_event = {
	id = crimea.21
	title = crimea.21.t
	desc = crimea.21.d
	picture = GFX_report_event_german_volunteers
	
	is_triggered_only = yes

	option = {
		name = crimea.21.a
		army_experience = 30
	    navy_experience = 20
	    air_experience = 20
	    if = {
	    	limit = { NOT = { has_tech = motorised_infantry } }
			add_tech_bonus = {
				name = motorized_bonus
				bonus = 1.0
				uses = 1
				technology = motorised_infantry
			}
		}
	}
	
}

#Tatars very angry.
country_event = {
	id = crimea.22
	title = crimea.22.t
	desc = crimea.22.d
	picture = GFX_report_event_german_volunteers
	
	is_triggered_only = yes

	option = {
		name = crimea.22.a
		1021 = { 
			damage_building = {
				type = arms_factory
				damage = 9
			}
			damage_building = {
				type = industrial_complex
				damage = 9
			}
	    }
	}  
	
}

#Alliance with Poland (pavel)
country_event = {
	id = crimea.23
	title = crimea.23.t
	desc = crimea.23.d
	picture = GFX_report_event_german_volunteers
	
	is_triggered_only = yes

	option = {
		name = crimea.23.a
		ai_chance = {
		    factor = 100
		}
		POL = { country_event = { id = crimea.25 days = 2 } }
	}
    
    option = {
		name = crimea.23.b
		ai_chance = {
		    factor = 0
		}
		POL = { country_event = { id = crimea.24 days = 2 } }
	}  	
	
}

#Alliance with Poland (pavel) Crimea decline
country_event = {
	id = crimea.24
	title = crimea.24.t
	desc = crimea.24.d
	picture = GFX_report_event_german_volunteers
	
	is_triggered_only = yes

	option = {
		name = crimea.24.a
		add_war_support = 0.05
		137 = { 
			add_core_of = POL
		}
		1021 = { 
			add_core_of = POL
		}
    }
    
}

#Alliance with Poland (pavel) Crimea accept
country_event = {
	id = crimea.25
	title = crimea.25.t
	desc = crimea.25.d
	picture = GFX_report_event_german_volunteers
	
	is_triggered_only = yes

	option = {
		name = crimea.25.a
		137 = { 
			add_core_of = POL
			remove_core_of = CRM
		}
		1021 = { 
			add_core_of = POL
			remove_core_of = CRM
		}
		if = {
			limit = {
				CRM = { is_ai = no }
			}
			CRM = { change_tag_from = POL }
		}
		POL = { 
		    annex_country = {
            target = CRM
            transfer_troops = yes
            }
		
	    }
    }
    
}

#CRM - Vladivostok to Japan
country_event = {
	id = crimea.26
	title = crimea.26.t
	desc = crimea.26.d
	picture = GFX_report_event_makhnovist_infantry
	
	fire_only_once = yes
	
	is_triggered_only = yes
	
	trigger = {
    	JAP = { NOT = { has_government = communism } }
	}

    option = { 
	name = crimea.26.a 
	ai_chance = {
		    factor = 50
			modifier = {
				factor = 1.7
				CRM = { has_government = fascism }
			}
			modifier = {
				factor = 2
				JAP = { has_opinion = { target = CRM value > 80 } }
			}
			modifier = {
				factor = 1.7
				has_government = neutrality
			}
		}
		if = { 
			limit = { CRM = { has_country_flag = CRM_war_with_sov } }
			declare_war_on = {
				target = SOV
				type = take_state
				generator = { 408 409 655 } 
	        }
			set_country_flag = JAP_vladivostok_YES2
		}
		
		if = { 
			limit = { NOT = { CRM = { has_country_flag = CRM_war_with_sov } } }
			set_country_flag = JAP_vladivostok_YES
			CRM = { country_event = { id = crimea.28 days = 2 } }
		}
	}	
	
	option = { 
		name = crimea.26.b
		ai_chance = {
		    factor = 50
			modifier = {
				factor = 1.6
				JAP = { has_government = democratic }
			}
		}
		add_political_power = -25
		CRM = { country_event = { id = crimea.64 } }
	}	
	
}

#CRM - Kuban to Ukraine
country_event = {
	id = crimea.27
	title = crimea.27.t
	desc = crimea.27.d
	picture = GFX_report_event_makhnovist_infantry
	
	is_triggered_only = yes

    option = { 
		name = crimea.27.a 
		ai_chance = {
			    factor = 50
				modifier = {
					factor = 2
					CRM = { has_country_flag = CRM_ukr_support_us }
				}
				modifier = {
					factor = 2
					UKR = { has_opinion = { target = CRM value > 80 } }
				}
			}
		if = { 
			limit = { CRM = { has_country_flag = CRM_war_with_sov } }
			declare_war_on = {
				target = SOV
				type = take_state
				generator = { 234 } 
		    }
			set_country_flag = UKR_kuban_YES2
		}
		if = { 
			limit = { NOT = { CRM = { has_country_flag = CRM_war_with_sov } } }
			set_country_flag = UKR_kuban_YES
			CRM = { country_event = { id = crimea.28 days = 2 } }
		}
	}	
	
	option = { 
		name = crimea.27.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 1.3
				UKR = { has_war = yes }
			}
		}
		add_political_power = -25
		CRM = { country_event = { id = crimea.64 } }
	}	
}

#CRM - AI accept
country_event = {
	id = crimea.28
	title = crimea.28.t
	desc = crimea.28.d
	picture = GFX_report_event_makhnovist_infantry
	
	is_triggered_only = yes

    option = { 
	name = crimea.28.a 
	add_political_power = 25
	}	
	
}

#CRM - Oil to Germany
country_event = {
	id = crimea.29
	title = crimea.29.t
	desc = crimea.29.d
	picture = GFX_report_event_makhnovist_infantry
	
	fire_only_once = yes
	
	is_triggered_only = yes

    option = { 
		name = crimea.29.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 2
				CRM = { has_country_flag = CRM_ger_support_us }
			}
			modifier = {
				factor = 2
				GER = { has_opinion = { target = CRM value > 80 } }
			}
		}
		if = { 
		    limit = { CRM = { has_country_flag = CRM_war_with_sov } }
			GER = {
				declare_war_on = {
					target = SOV
					type = puppet_wargoal_focus 
				} 
	        }
			set_country_flag = GER_oil_YES2
			CRM = { country_event = { id = crimea.28 } }
		}
		if = { 
		    limit = { NOT = { CRM = { has_country_flag = CRM_war_with_sov } } }
			set_country_flag = GER_oil_YES
			CRM = { country_event = { id = crimea.28 } }
	    }
	}
	
	option = { 
	name = crimea.29.b
	ai_chance = {
		    factor = 50
			modifier = {
				factor = 1.1
				GER = { has_war = yes }
			}
		}
		add_political_power = -25
		CRM = { country_event = { id = crimea.64 } }
	}
    
	
}

#CRM - White diplomacy (explain)
country_event = {
	id = crimea.30
	title = crimea.30.t
	desc = crimea.30.d
	picture = GFX_report_event_makhnovist_infantry
	
	is_triggered_only = yes

    option = { 
		name = crimea.30.a 
	}	
	
	option = { 
		name = crimea.30.b
		set_country_flag = CRM_I_read_this
	}
	
}

#CRM - Murmansk to Finland
country_event = {
	id = crimea.31
	title = crimea.31.t
	desc = crimea.31.d
	picture = GFX_report_event_makhnovist_infantry
	
	fire_only_once = yes
	
	is_triggered_only = yes
	
	trigger = {
   		FIN = { NOT = { has_government = communism } }
	}

    option = { 
		name = crimea.31.a 
		ai_chance = {
			factor = 50
			modifier = {
				factor = 2
				has_government = neutrality
			}
			modifier = {
				factor = 2
				FIN = { has_opinion = { target = CRM value > 60 } }
			}
		}
		if = { 
		    limit = { CRM = { has_country_flag = CRM_war_with_sov } }
			declare_war_on = {
				target = SOV
				type = take_state
				generator = { 213 215 216 } 
	        }
			set_country_flag = FIN_murmansk_YES2
		}
		if = { 
	    	limit = { NOT = { CRM = { has_country_flag = CRM_war_with_sov } } }
			set_country_flag = FIN_murmansk_YES
			CRM = { country_event = { id = crimea.28 days = 2 } }
		}
		
	}	
	
	option = { 
		name = crimea.31.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 1.3
				has_war = yes
			}
		}
		add_political_power = -25
		CRM = { country_event = { id = crimea.64 } }
	}	
	
}

#CRM - Armenia to Turkey
country_event = {
	id = crimea.32
	title = crimea.32.t
	desc = crimea.32.d
	picture = GFX_report_event_makhnovist_infantry
	
	fire_only_once = yes
	
	is_triggered_only = yes
	
	trigger = {
    	TUR = { NOT = { has_government = communism } }
    }

    option = { 
	name = crimea.32.a 
	ai_chance = {
		    factor = 50
			modifier = {
				factor = 2
				has_government = neutrality
			}
			modifier = {
				factor = 2
				TUR = { has_opinion = { target = CRM value > 60 } }
			}
		}
		if = { 
	    limit = { CRM = { has_country_flag = CRM_war_with_sov } }
		declare_war_on = {
			target = SOV
			type = take_state
			generator = { 230 231 } 
	    }
		set_country_flag = TUR_armenia_YES2
		}
		if = { 
	   		limit = { NOT = { CRM = { has_country_flag = CRM_war_with_sov } } }
			set_country_flag = TUR_armenia_YES
			CRM = { country_event = { id = crimea.28 days = 2 } }
		}
		
	}	
	
	option = { 
	name = crimea.32.b
	ai_chance = {
		    factor = 50
			modifier = {
				factor = 1.3
				has_war = yes
			}
		}
		add_political_power = -25
		CRM = { country_event = { id = crimea.64 } }
	}
	
	
}

#CRM - CALL TO WAR
country_event = {
	id = crimea.33
	title = crimea.33.t
	desc = crimea.33.d
	picture = GFX_report_event_makhnovist_infantry
	
	is_triggered_only = yes
	
	trigger = {
    	NOT = { has_government = communism } 
    	NOT = { has_war_with = FROM }
	}

    option = { 
		name = crimea.33.a 
		ai_chance = {
			factor = 100
			modifier = {
				factor = 0
				has_government = communism
			}
		}
		declare_war_on = {
			target = SOV
			type = take_state
			generator = { 219 195 } 
	    }
	
	    if = {
			limit = { TUR = { has_country_flag = TUR_armenia_YES } }
			TUR = { set_country_flag = TUR_armenia_YES2 } CRM = { add_to_faction = TUR }
		} 
		if = {
			limit = { FIN = { has_country_flag = FIN_murmansk_YES } }
			FIN = { set_country_flag = FIN_murmansk_YES2  } CRM = { add_to_faction = FIN }
        }
		if = {
			limit = { ENG = { has_country_flag = ENG_ally_YES } } 
			ENG = { set_country_flag = ENG_ally_YES2 }
        }
		if = {
			limit = { GER = { has_country_flag = GER_oil_YES } }
			GER = { set_country_flag = GER_oil_YES2 } 
        }
		if = {
			limit = { UKR = {has_country_flag = UKR_kuban_YES } }
			UKR = { set_country_flag = UKR_kuban_YES2 } CRM = { add_to_faction = UKR }
        }
		if = {
			limit = { JAP = { has_country_flag = JAP_vladivostok_YES } }
			JAP = { set_country_flag = JAP_vladivostok_YES2 }
        }
	}	
		
	
	option = { 
		name = crimea.33.b
		ai_chance = {
			factor = 0
		}
		add_political_power = -100
		add_war_support = -0.1
	}	
	
}

#CRM - End of War (Sevastopol Conference)
country_event = {
	id = crimea.34
	title = crimea.34.t
	desc = crimea.34.d
	picture = GFX_report_event_makhnovist_infantry
	
	is_triggered_only = yes
	
	trigger = {
    	NOT = { has_government = communism } 
	}

    option = { 
		name = crimea.34.a
		if = {
			limit = {
				has_country_flag = CRM_create_own_faction
				is_faction_leader = yes
			}
			dismantle_faction = yes
		} 
		CRM = { 
			annex_country = {
		        target = SOV
		        transfer_troops = no
	        }
	    }
		JAP = {
			if = { 
				limit = { NOT = { has_war_with = CRM } }
			    every_owned_state = {
					limit = {
						is_core_of = CRM 
					}
					transfer_state_to = CRM
				}
			}
		}
		TUR = {
			if = { 
				limit = { NOT = { has_war_with = CRM } }
			    every_owned_state = {
					limit = {
						is_core_of = CRM 
					}
					transfer_state_to = CRM
				}
			}
		}
		GER = {
			if = { 
				limit = { NOT = { has_war_with = CRM } }
			    every_owned_state = {
					limit = {
						is_core_of = CRM 
					}
					transfer_state_to = CRM
				}
			}
		}
		UKR = {
			if = { 
				limit = { NOT = { has_war_with = CRM } }
			    every_owned_state = {
					limit = {
						is_core_of = CRM 
					}
					transfer_state_to = CRM
				}
			}
		}
		FIN = {
			if = { 
				limit = { NOT = { has_war_with = CRM } }
			    every_owned_state = {
					limit = {
						is_core_of = CRM 
					}
					transfer_state_to = CRM
				}
			}
		}
		TUR = {
			if = { 
				limit = { NOT = { has_war_with = CRM } }
			    every_owned_state = {
					limit = {
						is_core_of = CRM 
					}
					transfer_state_to = CRM
				}
			}
		}
	    if = {
			limit = { TUR = { has_country_flag = TUR_armenia_YES2 } }
			TUR = { transfer_state = 230 puppet = GEO }  GEO = { transfer_state = 231  set_politics = { ruling_party = democratic elections_allowed = yes } }
		} 
		if = {
			limit = { FIN = { has_country_flag = FIN_murmansk_YES2 } }
			FIN = { transfer_state = 213 transfer_state = 215 transfer_state = 216 }
        }
		if = {
			limit = { ENG = { has_country_flag = ENG_ally_YES2 } }
			ENG = { add_stability = 0.15 add_political_power = 300 }
        }
		if = {
			limit = { GER = { has_country_flag = GER_oil_YES2 } }
			give_resource_rights = { receiver = GER state = 229 }
			give_resource_rights = { receiver = GER state = 232 }
			give_resource_rights = { receiver = GER state = 821 }
        }
		if = {
			limit = { UKR = { has_country_flag = UKR_kuban_YES2 } }
			UKR = { transfer_state = 234 transfer_state = 1020 transfer_state = 137 transfer_state = 1021 }
        }
		if = {
			limit = { JAP = { has_country_flag = JAP_vladivostok_YES2 } }
			JAP = { transfer_state = 408 transfer_state = 409 transfer_state = 655 }
        }
	
    }	
	
}
	


#Crimea - Rebels in Ussr 
country_event = {
	id = crimea.35
	title = crimea.35.t
	desc = crimea.35.d
	picture = GFX_report_event_generic_peaceful_annexation
	
	is_triggered_only = yes

	option = {
		name = crimea.35.a
		CRM = {
			every_owned_state = {
				create_unit = { 
					division = "name = \"Opolchenie\" division_template = \"Opolchenie\" start_experience_factor = 0.2 start_equipment_factor = 0.95" owner = CRM
				}
			}
        }
		1020 = {
			create_unit = { 
				division = "name = \"Opolchenie\" division_template = \"Opolchenie\" start_experience_factor = 0.2 start_equipment_factor = 0.95" owner = CRM
				allow_spawning_on_enemy_provs = yes
			}
				
	    }
		234 = {
			create_unit = { 
				division = "name = \"Opolchenie\" division_template = \"Opolchenie\" start_experience_factor = 0.2 start_equipment_factor = 0.95" owner = CRM
				allow_spawning_on_enemy_provs = yes
			}
        }
		234 = {
			create_unit = { 
				division = "name = \"Opolchenie\" division_template = \"Opolchenie\" start_experience_factor = 0.2 start_equipment_factor = 0.95" owner = CRM
				allow_spawning_on_enemy_provs = yes
			}
        }
		234 = {
			create_unit = { 
				division = "name = \"Opolchenie\" division_template = \"Opolchenie\" start_experience_factor = 0.2 start_equipment_factor = 0.95" owner = CRM
				allow_spawning_on_enemy_provs = yes
			}
        }
		827 = {
			create_unit = { 
				division = "name = \"Opolchenie\" division_template = \"Opolchenie\" start_experience_factor = 0.2 start_equipment_factor = 0.95" owner = CRM
				allow_spawning_on_enemy_provs = yes
			}
        }
		237 = {
			create_unit = { 
				division = "name = \"Opolchenie\" division_template = \"Opolchenie\" start_experience_factor = 0.2 start_equipment_factor = 0.95" owner = CRM
				allow_spawning_on_enemy_provs = yes
			}
        }
		237 = {
			create_unit = { 
				division = "name = \"Opolchenie\" division_template = \"Opolchenie\" start_experience_factor = 0.2 start_equipment_factor = 0.95" owner = CRM
				allow_spawning_on_enemy_provs = yes
			}
			
        }
		821 = {
			create_unit = { 
				division = "name = \"Opolchenie\" division_template = \"Opolchenie\" start_experience_factor = 0.2 start_equipment_factor = 0.95" owner = CRM
				allow_spawning_on_enemy_provs = yes
			}
			
        }
		236 = {
			create_unit = { 
				division = "name = \"Opolchenie\" division_template = \"Opolchenie\" start_experience_factor = 0.2 start_equipment_factor = 0.95" owner = CRM
				allow_spawning_on_enemy_provs = yes
			}
			
        }
		236 = {
		create_unit = { 
			division = "name = \"Opolchenie\" division_template = \"Opolchenie\" start_experience_factor = 0.2 start_equipment_factor = 0.95" owner = CRM
			allow_spawning_on_enemy_provs = yes
			}
			
        }
		235 = {
		create_unit = { 
			division = "name = \"Opolchenie\" division_template = \"Opolchenie\" start_experience_factor = 0.2 start_equipment_factor = 0.95" owner = CRM
			allow_spawning_on_enemy_provs = yes
			}
			
        }
		235 = {
			create_unit = { 
				division = "name = \"Opolchenie\" division_template = \"Opolchenie\" start_experience_factor = 0.2 start_equipment_factor = 0.95" owner = CRM
				allow_spawning_on_enemy_provs = yes
			}
        }
	}
}

#Crimea - Chaos in USSR 
country_event = {
	id = crimea.36
	title = crimea.36.t
	desc = crimea.36.d
	picture = GFX_report_event_generic_peaceful_annexation
	
	is_triggered_only = yes

	option = {
		name = crimea.36.a
		SOV = { 
			add_timed_idea = {
				idea = CRM_chaos_in_USSR
				days = 730
			}
		}
	}
}

#Crimea - Riot on Siberia
country_event = {
	id = crimea.37
	title = crimea.37.t
	desc = crimea.37.d
	picture = GFX_report_event_generic_peaceful_annexation
	
	is_triggered_only = yes

	option = {
		name = crimea.37.a
		577 = {
		create_unit = { 
			division = "name = \"Sibiryaki\" division_template = \"Pekhotnaya Diviziya\" start_experience_factor = 1 start_equipment_factor = 1" owner = CRM
			allow_spawning_on_enemy_provs = yes
			}
			
        }
		576 = {
		create_unit = { 
			division = "name = \"Sibiryaki\" division_template = \"Pekhotnaya Diviziya\" start_experience_factor = 1 start_equipment_factor = 1" owner = CRM
			allow_spawning_on_enemy_provs = yes
			}
			
        }
		575 = {
		create_unit = { 
			division = "name = \"Sibiryaki\" division_template = \"Pekhotnaya Diviziya\" start_experience_factor = 1 start_equipment_factor = 1" owner = CRM
			allow_spawning_on_enemy_provs = yes
			}
			
        }
		565 = {
		create_unit = { 
			division = "name = \"Sibiryaki\" division_template = \"Pekhotnaya Diviziya\" start_experience_factor = 1 start_equipment_factor = 1" owner = CRM
			allow_spawning_on_enemy_provs = yes
			}
			
        }
		578 = {
		create_unit = { 
			division = "name = \"Sibiryaki\" division_template = \"Pekhotnaya Diviziya\" start_experience_factor = 1 start_equipment_factor = 1" owner = CRM
			allow_spawning_on_enemy_provs = yes
			}
			
        }
		578 = {
		create_unit = { 
			division = "name = \"Sibiryaki\" division_template = \"Pekhotnaya Diviziya\" start_experience_factor = 1 start_equipment_factor = 1" owner = CRM
			allow_spawning_on_enemy_provs = yes
			}
			
        }
	}
}

#Crimea - Buy Ukrainian food 
country_event = {
	id = crimea.38
	title = crimea.38.t
	desc = crimea.38.d
	picture = GFX_report_event_generic_peaceful_annexation
	
	is_triggered_only = yes

	trigger = {
		tag = CRM
		has_start_date < 1936.01.02
	}

	option = {
		name = crimea.38.a
		add_stability = 0.04
		add_political_power = -60
		
	}
	
	option = {
		name = crimea.38.b
		add_political_power = 50
		
	}
}
#Sov civil war Riffles Kuban
country_event = {
	id = crimea.39
	title = crimea.39.t
	desc = crimea.39.desc
    picture = GFX_report_event_SOV_mongolia_cavalry

	fire_only_once = yes
	
	trigger = {
		tag = CRM
		controls_state = 234
		has_war_with = SOV
	}

	option = {
		name = crimea.39.a
		add_equipment_to_stockpile = {
			    type = infantry_equipment
			    amount = 1500
			    producer = CRM
			}
			add_equipment_to_stockpile = {
			    type = support_equipment
			    amount = 100
			    producer = CRM
			}
			add_equipment_to_stockpile = {
			    type = artillery_equipment
			    amount = 80
			    producer = CRM
			}
		SOV = {
		add_equipment_to_stockpile = {
			    type = infantry_equipment
			    amount = -1500
			    producer = CRM
			}
			add_equipment_to_stockpile = {
			    type = support_equipment
			    amount = -100
			    producer = CRM
			}
			add_equipment_to_stockpile = {
			    type = artillery_equipment
			    amount = -80
			    producer = CRM
			}
		}
	}
}

#Sov civil war Riffles Stalingrad
country_event = {
	id = crimea.40
	title = crimea.39.t
	desc = crimea.39.desc
    picture = GFX_report_event_SOV_mongolia_cavalry

	fire_only_once = yes
	
	trigger = {
		tag = CRM
		controls_state = 217
		has_war_with = SOV
	}

	option = {
		name = crimea.39.a
		246 = {
		create_unit = { 
			division = "name = \"Opolchenie\" division_template = \"Pekhotnaya Diviziya\" start_experience_factor = 1 start_equipment_factor = 1" owner = CRM
			allow_spawning_on_enemy_provs = yes
			}
			
        }
		246 = {
		create_unit = { 
			division = "name = \"Opolchenie\" division_template = \"Pekhotnaya Diviziya\" start_experience_factor = 1 start_equipment_factor = 1" owner = CRM
			allow_spawning_on_enemy_provs = yes
			}
			
        }
		247 = {
		create_unit = { 
			division = "name = \"Opolchenie\" division_template = \"Pekhotnaya Diviziya\" start_experience_factor = 1 start_equipment_factor = 1" owner = CRM
			allow_spawning_on_enemy_provs = yes
			}
			
        }
		247 = {
		create_unit = { 
			division = "name = \"Opolchenie\" division_template = \"Pekhotnaya Diviziya\" start_experience_factor = 1 start_equipment_factor = 1" owner = CRM
			allow_spawning_on_enemy_provs = yes
			}
			
        }
		253 = {
		create_unit = { 
			division = "name = \"Opolchenie\" division_template = \"Pekhotnaya Diviziya\" start_experience_factor = 1 start_equipment_factor = 1" owner = CRM
			allow_spawning_on_enemy_provs = yes
			}
		}
		add_equipment_to_stockpile = {
			    type = infantry_equipment
			    amount = 1500
			    producer = CRM
			}
			add_equipment_to_stockpile = {
			    type = support_equipment
			    amount = 100
			    producer = CRM
			}
			add_equipment_to_stockpile = {
			    type = artillery_equipment
			    amount = 80
			    producer = CRM
			}
		SOV = {
		add_equipment_to_stockpile = {
			    type = infantry_equipment
			    amount = -1500
			    producer = CRM
			}
			add_equipment_to_stockpile = {
			    type = support_equipment
			    amount = -100
			    producer = CRM
			}
			add_equipment_to_stockpile = {
			    type = artillery_equipment
			    amount = -80
			    producer = CRM
			}
		}
	}
}

#Sov civil war Riffles Rostov
country_event = {
	id = crimea.41
	title = crimea.39.t
	desc = crimea.39.desc
    picture = GFX_report_event_SOV_mongolia_cavalry

	fire_only_once = yes
	
	trigger = {
		tag = CRM
		controls_state = 218
		has_war_with = SOV
	}

	option = {
		name = crimea.39.a
		add_equipment_to_stockpile = {
			    type = infantry_equipment
			    amount = 1500
			    producer = CRM
			}
			add_equipment_to_stockpile = {
			    type = support_equipment
			    amount = 100
			    producer = CRM
			}
			add_equipment_to_stockpile = {
			    type = artillery_equipment
			    amount = 80
			    producer = CRM
			}
		SOV = {
		add_equipment_to_stockpile = {
			    type = infantry_equipment
			    amount = -1500
			    producer = CRM
			}
			add_equipment_to_stockpile = {
			    type = support_equipment
			    amount = -100
			    producer = CRM
			}
			add_equipment_to_stockpile = {
			    type = artillery_equipment
			    amount = -80
			    producer = CRM
			}
		}
	}
}

#Sov civil war Riffles Saratov
country_event = {
	id = crimea.42
	title = crimea.39.t
	desc = crimea.39.desc
    picture = GFX_report_event_SOV_mongolia_cavalry

	fire_only_once = yes
	
	trigger = {
		tag = CRM
		controls_state = 239
		has_war_with = SOV
	}

	option = {
		name = crimea.39.a
		add_equipment_to_stockpile = {
			    type = infantry_equipment
			    amount = 1500
			    producer = CRM
			}
			add_equipment_to_stockpile = {
			    type = support_equipment
			    amount = 100
			    producer = CRM
			}
			add_equipment_to_stockpile = {
			    type = artillery_equipment
			    amount = 80
			    producer = CRM
			}
		SOV = {
		add_equipment_to_stockpile = {
			    type = infantry_equipment
			    amount = -1500
			    producer = CRM
			}
			add_equipment_to_stockpile = {
			    type = support_equipment
			    amount = -100
			    producer = CRM
			}
			add_equipment_to_stockpile = {
			    type = artillery_equipment
			    amount = -80
			    producer = CRM
			}
		}
	}
}

#Old guard generals comes to White Russia
country_event = {
	id = crimea.43
	title = crimea.43.t
	desc = crimea.43.d
    picture = GFX_report_event_SOV_mongolia_cavalry

	fire_only_once = yes
	
	trigger = {
		tag = CRM
		controls_state = 234
		has_war_with = SOV
		OR = {
			has_completed_focus = CRM_war
			has_completed_focus = CRM_war1
		}
		SOV = { has_government = communism }
		has_dlc = "No Step Back"
	}

	option = {
		name = crimea.43.a
		add_political_power = 80
		hidden_effect = {
			SOV = {
				if = {
					limit = { has_character = SOV_konstantin_nechayev }
					SOV_konstantin_nechayev = { 
						clr_character_flag = SOV_exiled_flag
						clr_character_flag = SOV_exiled_army_leader
						set_nationality = ROOT
						demote_leader = yes 
					}
				}
				if = {
					limit = { has_character = SOV_vladimir_kosmin }
					SOV_vladimir_kosmin = { 
						clr_character_flag = SOV_exiled_flag
						clr_character_flag = SOV_exiled_army_leader
						set_nationality = ROOT 
						demote_leader = yes
					}
				}
				if = {
					limit = { has_character = SOV_aleksandr_rodzyanko }
					SOV_aleksandr_rodzyanko = { 
						clr_character_flag = SOV_exiled_flag
						clr_character_flag = SOV_exiled_army_leader
						set_nationality = ROOT 
						demote_leader = yes
					}
				}
			}
		}
   	}
}

#Republick Or Monarchy or Realistic Russia
country_event = {
	id = crimea.44
	title = crimea.44.t
	desc = crimea.44.d
    picture = GFX_report_event_SOV_mongolia_cavalry
    is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = crimea.44.a
		trigger = { has_government = democratic }
		add_political_power = -80
		complete_national_focus = CRM_russian_republick
    }
	
	option = {
		name = crimea.44.b
		trigger = { has_government = neutrality }
		add_political_power = -80
		complete_national_focus = CRM_russian_tsardom
    }
	
	option = {
		name = crimea.44.c
		trigger = { has_government = fascism }
		add_political_power = -80
		complete_national_focus = CRM_russian_corporative_state
    }
	
}

#We hungry! Famine in crimea.
country_event = {
	id = crimea.45
	title = crimea.45.t
	desc = crimea.45.d
    picture = GFX_report_event_famine_in_crimea
    
    is_triggered_only = yes

    trigger = {
    	tag = CRM
    	has_government = communism
    	is_subject_of = SOV
    	has_start_date < 1936.01.02
    }
	
	option = {
		name = crimea.45.a
		trigger = { 
			UKR = { 
				NOT = { has_country_flag = CRM_no } 
				exists = yes
				NOT = { has_war_with = ROOT }
			} 
		}
		add_political_power = -80
	    UKR = { country_event = { id = crimea.46 days = 3 } }
    }
	
	option = {
		name = crimea.45.b
		trigger = { 
			ROM = { 
				NOT = { has_country_flag = CRM_no } 
				exists = yes
				NOT = { has_war_with = ROOT }
			} 
		}
		add_political_power = -80
	    ROM = { country_event = { id = crimea.46 days = 3 } }
    }
	
	option = {
		name = crimea.45.c
		trigger = { 
			TUR = { 
				NOT = { has_country_flag = CRM_no }
				exists = yes
				NOT = { has_war_with = ROOT } 
			} 
		}
		add_political_power = -80
	    TUR = { country_event = { id = crimea.46 days = 3 } }
    }
    option = {
    	name = crimea.45.e
    	add_stability = -0.10
    }
	
}

#They hungry! Event for AI.
country_event = {
	id = crimea.46
	title = crimea.46.t
	desc = crimea.46.d
    picture = GFX_report_event_generic_read_write
    is_triggered_only = yes
	
	option = {
		name = crimea.46.a
		add_political_power = -80
    	CRM = { add_timed_idea = { idea = CRM_famine_payment days = 196 } }
		ROOT = { add_timed_idea = { idea = CRM_famine_payment_ROOT days = 196 } }
    }
	
	option = {
		name = crimea.46.b
		add_political_power = 25
	    set_country_flag = CRM_no
		CRM = { country_event = { id = crimea.45 days = 1 } }
    }
	
	
}

#We lost... Foreign Diplomacy
country_event = {
	id = crimea.47
	title = crimea.47.t
	desc = crimea.47.d
    picture = GFX_report_event_generic_read_write
    is_triggered_only = yes
	
	option = {
	name = crimea.47.a
		add_political_power = -300
	    add_stability = 0.1
		add_war_support = -0.3
    }
}




###COMMUNISM CRIMEA SECTION###(will be edited)
#Crimea - COMMUNISM crimea want build new roads (event for SOV)
country_event = {
	id = crimea.48
	title = crimea.48.t
	desc = crimea.48.d
	picture = GFX_report_event_generic_read_write
	
	is_triggered_only = yes
	
	option = { 
	    name = crimea.48.a
	    SOV = {
			add_timed_idea = {
				idea = CRM_build_new_roads
				days = 70
			}
		}
	    CRM = { country_event = { id = crimea.49 days = 70 } }
	}
}
	
#Crimea - COMMUNISM crimea want build new roads (event for CRM)
country_event = {
	id = crimea.49
	title = crimea.49.t
	desc = crimea.49.d
	picture = GFX_report_event_slashov
	
	is_triggered_only = yes
	
	option = { 
	    name = crimea.49.a
		build_railway = {
			level = 2
			path = { 3686 6704 9677 9680 6741 11729 3734 }
		}
		1021 = {
			add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
			}
		}
		137 = {
			add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
			} 
        }			
	}
}

#Crimea - COMMUNISM crimea want buy new fighters (event for SOV)
country_event = {
	id = crimea.50
	title = crimea.50.t
	desc = crimea.50.d
	picture = GFX_report_event_generic_read_write
	
	is_triggered_only = yes
	
	option = { 
    name = crimea.50.a
	ai_chance = {
		    factor = 100
		}
    CRM = { country_event = { id = crimea.55 days = 6 } }
	}
	
	option = { 
    name = crimea.50.b
	ai_chance = {
		    factor = 0
		}
    add_political_power = -25
	}
	
}
	
#Crimea - COMMUNISM crimea want buy new fighters (event for CRM)
country_event = {
	id = crimea.55
	title = crimea.55.t
	desc = crimea.55.d
	picture = GFX_report_event_generic_read_write
	
	is_triggered_only = yes
	
	trigger = {
		tag = CRM
	}
	
	option = { 
	    name = crimea.55.a
		ai_chance = {
		    factor = 100
		}
		if = {
			limit = {
				NOT = { has_dlc = "By Blood Alone" }
			}
			add_equipment_to_stockpile = {
				type = fighter_equipment_1
				amount = 62
				producer = SOV
			}
		}
		else = {
			add_equipment_to_stockpile = {
				type = small_plane_airframe_0
				amount = 62
				producer = SOV
				variant_name = "I-15"
			}	
		}
	}
	
}

#Crimea - Soviet Accept
country_event = {
	id = crimea.51
	title = crimea.51.t
	desc = crimea.51.d
	picture = GFX_report_event_generic_read_write
	
	is_triggered_only = yes
	
	trigger = {
		has_government = communism
	}
	
	option = { 
    name = crimea.51.a
    set_country_flag = CRM_presidium_accept_1
	}
	
}

#Crimea - Soviet Decline
country_event = {
	id = crimea.52
	title = crimea.52.t
	desc = crimea.52.d
	picture = GFX_report_event_generic_read_write
	
	is_triggered_only = yes
	
	trigger = {
		has_government = communism
	}
	
	option = { 
    name = crimea.52.a
	add_political_power = 50
	}
	
}

#Crimea - Soviet Accept 1
country_event = {
	id = crimea.53
	title = crimea.53.t
	desc = crimea.53.d
	picture = GFX_report_event_generic_read_write
	
	is_triggered_only = yes
	
	trigger = {
		has_government = communism
	}
	
	option = { 
    name = crimea.53.a
    set_country_flag = CRM_presidium_accept_2
	}
	
}	

#Crimea - Soviet Accept 1
country_event = {
	id = crimea.54
	title = crimea.54.t
	desc = crimea.54.d
	picture = GFX_report_event_generic_read_write
	
	is_triggered_only = yes
	
	trigger = {
		has_government = communism
	}
	
	option = { 
    name = crimea.54.a
    set_country_flag = CRM_presidium_accept_3
	}
	
}	

#Crimea - Arest of Vrangel
country_event = {
	id = crimea.56
	title = crimea.56.t
	desc = crimea.56.d
	picture = GFX_report_event_vrangel_run
	
	is_triggered_only = yes
	
	trigger = {
		has_government = communism
	}
	
	option = { 
    name = crimea.56.a
    retire_character = CRM_pyotr_wrangel
	FRA = {
	add_opinion_modifier = { target = CRM modifier = CRM_moscovite_barbars }
	add_opinion_modifier = { target = SOV modifier = CRM_moscovite_barbars }
	}
	ENG = { 	
	add_opinion_modifier = { target = CRM modifier = CRM_moscovite_barbars }
	add_opinion_modifier = { target = SOV modifier = CRM_moscovite_barbars }
	}
	hidden_effect = {
	retire_character = CRM_pyotr_wrangel_in_hat }
	add_political_power = 100
	add_stability = -0.03
	}
	
	option = { 
    name = crimea.56.b
    retire_character = CRM_pyotr_wrangel
	add_political_power = -100
	add_stability = 0.05
	}
	
}	

#Crimea - Create TaSSR event for great Komrads
country_event = {
	id = crimea.57
	title = crimea.57.t
	desc = crimea.57.d
	picture = GFX_report_event_generic_peaceful_annexation
	
	is_triggered_only = yes
	
	trigger = {
		has_government = communism
	}
	
	option = {  #okay...
    	name = crimea.57.a
	    ai_chance = {
			base = 80
			modifier = {
				factor = 0.5
				SOV = { has_war_with = GER }
			}
		}
		CRM = { transfer_state = 234 }
		if = {
			limit = {
				1020 = { is_owned_and_controlled_by = ROOT }
			}
			CRM = { transfer_state = 1020 }
		}
		add_political_power = 120
		CRM = { country_event = { id = crimea.58 days = 1 } }
	}
	
	option = {  #wtf? 
	    name = crimea.57.b
	    ai_chance = {
			base = 20
		}
		add_political_power = -25
		CRM = { country_event = { id = crimea.59 days = 1 } }
	}
	
}

#Crimea - Create TaSSR event for tiny Komrads YES
country_event = {
	id = crimea.58
	title = crimea.58.t
	desc = crimea.58.d
	picture = GFX_report_event_generic_peaceful_annexation
	
	is_triggered_only = yes
	
	option = {  
	    name = crimea.58.a
	    234 = { add_core_of = ROOT }
	    set_cosmetic_tag = CRM_TAV
	    set_country_flag = cua_red_fortress_flag
	}
}

#Crimea - Create TaSSR event for tiny Komrads NO
country_event = {
	id = crimea.59
	title = crimea.59.t
	desc = crimea.59.d
	picture = GFX_report_event_generic_peaceful_annexation
	
	is_triggered_only = yes
	
	option = {  
    	name = crimea.59.a
	}
}

#Crimea - attempt on Krasnov
country_event = {
	id = crimea.60
	title = crimea.60.t
	desc = crimea.60.d
	picture = GFX_report_event_generic_peaceful_annexation
	
	is_triggered_only = yes
	fire_only_once = yes
	trigger = {
		has_character = CRM_pyotr_krasnov
	}

	immediate = {
		hidden_effect = {
			country_event = { id = crimea.61 days = 25 random_days = 5 }
		}
	}
	
	option = {  
	    name = crimea.60.a
	    ai_chance = {
			factor = 50
			modifier = {
		    	factor = 0
		   		OR = {
			    	has_game_rule = {
						rule = CRM_ai_behavior
						option = DEMOCRATIC
					}
					has_game_rule = {
						rule = CRM_ai_behavior
						option = NEUTRALITY
					}
					has_game_rule = {
						rule = CRM_ai_behavior
						option = FASCIST
					}
				}
			} 
		}
	    add_to_variable = { var_crm_crisis_actions = 1 }
		add_political_power = 25
		custom_effect_tooltip = CRM_increase_crisis
	}

	option = {  
	    name = crimea.60.b
	    ai_chance = {
			factor = 50
			modifier = {
		    	factor = 0
		   		OR = {
			    	has_game_rule = {
						rule = CRM_ai_behavior
						option = COMMUNIST
					}
					has_game_rule = {
						rule = CRM_ai_behavior
						option = AUTONOM_SSR
					}
					has_game_rule = {
						rule = CRM_ai_behavior
						option = TATAR
					}
				}
			}
		}
		add_popularity = {
			ideology = fascism 
			popularity = 0.10 
		}
		custom_effect_tooltip = CRM_decrease_crisis
	}
	
}

#Crimea - Tatar unrest
country_event = {
	id = crimea.61
	title = crimea.61.t
	desc = crimea.61.d
	picture = GFX_report_event_generic_peaceful_annexation
	
	is_triggered_only = yes
	
	fire_only_once = yes
	
	option = {  
	    name = crimea.61.a
	    ai_chance = {
			factor = 50
			modifier = {
		    	factor = 0
		   		OR = {
			    	has_game_rule = {
						rule = CRM_ai_behavior
						option = DEMOCRATIC
					}
					has_game_rule = {
						rule = CRM_ai_behavior
						option = NEUTRALITY
					}
					has_game_rule = {
						rule = CRM_ai_behavior
						option = FASCIST
					}
				}
			} 
		}
	    add_to_variable = { var_crm_crisis_actions = 1 }
	    add_war_support = -0.07
		1021 = { 
			damage_building = {
				type = arms_factory
				damage = 9
			}
			damage_building = {
				type = industrial_complex
				damage = 9
			}
	    } 
	    custom_effect_tooltip = CRM_increase_crisis 
    }
    option = {  
	    name = crimea.61.b
	    ai_chance = {
			factor = 50
			modifier = {
		    	factor = 0
		   		OR = {
			    	has_game_rule = {
						rule = CRM_ai_behavior
						option = COMMUNIST
					}
					has_game_rule = {
						rule = CRM_ai_behavior
						option = AUTONOM_SSR
					}
					has_game_rule = {
						rule = CRM_ai_behavior
						option = TATAR
					}
				}
			}
		}
	    add_war_support = 0.05
	    custom_effect_tooltip = CRM_decrease_crisis
    }
}

#Crimea - Crush of Regime
country_event = {
	id = crimea.62
	title = crimea.62.t
	desc = crimea.62.d
	picture = GFX_report_event_generic_peaceful_annexation
	
	is_triggered_only = yes
	
	fire_only_once = yes
	
	option = {  
	    name = crimea.62.a
	    add_political_power = -500
	    clr_country_flag = CRM_government_is_stand
		add_timed_idea = { idea = CRM_crush_of_government days = 35 }
    }
	
}
###END OF CRIMEAN COMMUNIST EVENT TREE###
#Crimea - Vrangelyevsty
country_event = {
	id = crimea.63
	title = crimea.63.t
	desc = crimea.63.d
	picture = GFX_report_event_generic_peaceful_annexation
	
	is_triggered_only = yes
	
	fire_only_once = yes
	
	option = {  
	    name = crimea.63.a
	    add_stability = 0.05
		retire_character = CRM_pyotr_wrangel
		retire_character = CRM_pavel_shatilov
		add_to_variable = { var_crm_stability_debuff = 0.07 }
		add_to_variable = { var_crm_political_power_debuff = -0.1 }
		add_to_variable = { var_crm_war_support_debuff2 = 0.04 }
		custom_effect_tooltip = CRM_political_reforms_tt
    }
	
	option = {  
		name = crimea.63.b
		add_timed_idea = {
			idea = CRM_vranelevtsy_vrediteli
			days = 720 
		}
    }
}

#Crimea - AI decline
country_event = {
	id = crimea.64
	title = crimea.64.t
	desc = crimea.64.d
	picture = GFX_report_event_generic_peaceful_annexation
	
	is_triggered_only = yes
	
	option = {  
    	name = crimea.64.a
    }
}

# De-Stalinization (De-Communization)
country_event = {
	id = crimea.65
	title = crimea.65.t
	desc = crimea.65.d

	picture = GFX_report_event_stalin_01
	is_triggered_only = yes

	immediate = {
		
	}
	# Volgograd
	option = {
		name = NSB_soviet_civil_war_common.010.a
		
		ai_chance = { 
			base = 10
		}
		trigger = {
			always = yes 
		}
		# Stalingrad
		set_province_name = {
			id = 3529
			name = SOV_Volgograd
		}
		hidden_effect = { 217 = { set_state_name = SOV_Volgograd } }
		217 = { set_state_flag = UKR_stalingrad_is_renamed } 
		# Stalinabad / Dushanbe
		set_province_name = {
			id = 1384
			name = SOV_Dushanbe
		}
		hidden_effect = { 742 = { set_state_name = SOV_Dushanbe set_state_flag = dushanbe_flag } }
		# Kalinin / Tver
		IF = {
			limit = { NOT = { has_character = SOV_mikhail_kalinin } }
			set_province_name = {
				id = 6245
				name = SOV_Tver
			}
			hidden_effect = { 247 = { set_state_name = SOV_Tver } }
		}
		# Leningrad / Petrograd / St. Petersburg
		IF = {
			limit = {
				195 = { is_capital = no }
			}
			set_province_name = {
				id = 3151
				name = SOV_StPetersburg
			}
			hidden_effect = { 195 = { set_state_name = SOV_StPetersburg } }
		}
		# Engels / Pokrovsk / Kosakenstadt + Marksshtadt / Yekaterinograd / Baronsk
		
			set_province_name = {
				id = 11523
				name = SOV_Pokrovsk
			}
			set_province_name = {
				id = 9432
				name = SOV_Baronsk
			}
			hidden_effect = { 829 = { set_state_name = SOV_Pokrovsk } }
		
		# Kirov / Vyatka
		set_province_name = {
			id = 6124
			name = SOV_Vyatka
		}
		hidden_effect = { 400 = { set_state_name = SOV_Vyatka } }


		# Gorky / Nizhny Novgorod
		set_province_name = {
			id = 11375
			name = SOV_Nizhny_Novgorod
		}
		hidden_effect = { 252 = { set_state_name = SOV_Nizhny_Novgorod } }

		# Ordzhonikidze / Vladikavkaz

			set_province_name = {
				id = 9628
				name = SOV_Vladikavkaz
			}

		# Frunze / Bishkek / Bishkek

			set_province_name = {
				id = 12583
				name = SOV_Bishkek
			}
			
		# Yoshkar-Ola / Tsaryovokokshaysk / Krasnokokshaysk

			set_province_name = {
				id = 9402
				name = SOV_Krasnokokshaysk
			}
		
		# Kyzil / Belotsarsk / Khem-Beldir
		
			set_province_name = {
				id = 10627
				name = SOV_Khem-Beldir
			}
	
		# Makhachkala / Petrovskoye / Petrovsk-Port
		
			set_province_name = {
				id = 6701
				name = SOV_Petrovsk-Port
			}
		

		# Sverdlovsk / Yekaterinburg /  
		
			set_province_name = {
				id = 1821
				name = SOV_Yekaterinburg
			}
			hidden_effect = { 653 = { set_state_name = SOV_Yekaterinburg } }
		

	}
	# Tsaritsyn
	option = {
		name = NSB_soviet_civil_war_common.010.b
		
		ai_chance = { 
			base = 10
		}
		trigger = {
			has_government = neutrality
		}
		# Stalingrad
		set_province_name = {
			id = 3529
			name = SOV_Tsaritsyn
		}
		hidden_effect = { 217 = { set_state_name = SOV_Tsaritsyn } }
		217 = { set_state_flag = UKR_stalingrad_is_renamed } 
		# Stalinabad / Dushanbe
		set_province_name = {
			id = 1384
			name = SOV_Dushanbe
		}
		hidden_effect = { 742 = { set_state_name = SOV_Dushanbe set_state_flag = dushanbe_flag } }
		# Kalinin / Tver
		IF = {
			set_province_name = {
				id = 6245
				name = SOV_Tver
			}
			hidden_effect = { 247 = { set_state_name = SOV_Tver } }
		}
		# Leningrad / Petrograd / St. Petersburg
		IF = {
			limit = {
				195 = { is_capital = no }
			}
			set_province_name = {
				id = 3151
				name = SOV_StPetersburg
			}
			hidden_effect = { 195 = { set_state_name = SOV_StPetersburg } }
		}
		# Engels / Pokrovsk / Kosakenstadt + Marksshtadt / Yekaterinograd / Baronsk
	
			set_province_name = {
				id = 11523
				name = SOV_Kosakenstadt
			}
			set_province_name = {
				id = 9432
				name = SOV_Yekaterinograd
			}
			hidden_effect = { 829 = { set_state_name = SOV_Yekaterinograd } }

		# Kirov / Vyatka
		set_province_name = {
			id = 6124
			name = SOV_Vyatka
		}
		hidden_effect = { 400 = { set_state_name = SOV_Vyatka } }

		# Gorky / Nizhny Novgorod
		set_province_name = {
			id = 11375
			name = SOV_Nizhny_Novgorod
		}
		hidden_effect = { 252 = { set_state_name = SOV_Nizhny_Novgorod } }

		# Ordzhonikidze / Vladikavkaz

			set_province_name = {
				id = 9628
				name = SOV_Vladikavkaz
			}

		# Frunze / Bishkek / Bishkek
		
			set_province_name = {
				id = 12583
				name = SOV_Bishkek
			}
			
		# Yoshkar-Ola / Tsaryovokokshaysk / Krasnokokshaysk
		
			set_province_name = {
				id = 9402
				name = SOV_Tsaryovokokshaysk
			}
			
		# Kyzil / Belotsarsk / Khem-Beldir
		
			set_province_name = {
				id = 10627
				name = SOV_Belotsarsk
			}
		
		# Makhachkala / Petrovskoye / Petrovsk-Port
		
			set_province_name = {
				id = 6701
				name = SOV_Petrovskoye
			}
		
		# Anadyr / Novo-Mariinsk /
		
			set_province_name = {
				id = 13063
				name = SOV_Novo-Mariinsk
			}
		

		# Sverdlovsk / Yekaterinburg /  
		
			set_province_name = {
				id = 1821
				name = SOV_Yekaterinburg
			}
			hidden_effect = { 653 = { set_state_name = SOV_Yekaterinburg } }
		
	
		
	}
	
}

#Crimea - Crimea fights with big russia
country_event = {
	id = crimea.66
	title = crimea.66.t
	desc = crimea.66.d
	picture = GFX_report_event_generic_peaceful_annexation
	
	is_triggered_only = yes
	
	option = {  
    	name = crimea.66.a
    	CRM = {
			every_unit_leader = {
				set_nationality = ROOT
			}
		}
		every_owned_state = {
			limit = {
				is_core_of = CRM
			}
			remove_core_of = CRM
		}
    }
	
}
# Crisis in Crimea - tatars riot was supressed
country_event = {
	id = crimea.67
	title = crimea.67.t
	desc = crimea.67.d
	picture = GFX_report_event_generic_riot

	is_triggered_only = yes

	option = {
		name = crimea.67.a
		complete_national_focus = CRM_red_revolt
	}
}
#Diversion at Perekop - message for Crimea
country_event = {
	id = crimea.68
	title = crimea.68.t
	desc = crimea.68.d
	picture = GFX_report_event_yugoslavia_partisans

	is_triggered_only = yes
	
	option = {
		name = crimea.68.a
	}
}
#Intervention in second civil war and union with rebels
country_event = {
	id = crimea.69
	title = crimea.69.t
	desc = crimea.69.d
	picture = GFX_report_event_generic_peaceful_annexation
	
	is_triggered_only = yes

	option = {
		name = crimea.69.a
		ai_chance = {
			base = 100
		}
		FROM = {
			country_event = { id = crimea.70 hours = 12 }
		}
		if = {
			limit = {
				FROM = { is_ai = yes }
				ROOT = { is_ai = no }
			}
			FROM = { change_tag_from = ROOT }
		}
		else = {
			custom_effect_tooltip = GAME_OVER_TT
		}
	}
	option = {
		name = crimea.69.b
		ai_chance = {
			base = 0
		}
		effect_tooltip = {
			FROM = { 
				create_wargoal = {
					type = annex_everything
					target = CRM
				}	
			}	
		}
		FROM = {
			country_event = { id = crimea.71 hours = 12 }
		}
	}	
}
#Crimea agree
country_event = {
	id = crimea.70
	title = crimea.70.t
	desc = crimea.70.d
	picture = GFX_report_event_generic_peaceful_annexation
	
	is_triggered_only = yes

	option = {
		name = crimea.70.a
		CRM = {
			every_unit_leader = {
				set_nationality = ROOT
			}
		}
		annex_country = { target = CRM transfer_troops = yes }
		every_owned_state = {
			limit = {
				is_core_of = CRM
			}
			remove_core_of = CRM
		}
		add_political_power = 100
	}
}
#Crimea decline
country_event = {
	id = crimea.71
	title = crimea.71.t
	desc = crimea.71.d
	picture = GFX_report_event_crimea_leaders
	
	is_triggered_only = yes

	option = {
		name = crimea.71.a
		create_wargoal = {
			type = annex_everything
			expire = 0
			target = CRM
		}	
	}
}
#Intervention to Ukrainian civil war
country_event = {
	id = crimea.72
	title = crimea.72.t
	desc = crimea.72.d
	
	trigger = {
		tag = CRM
		NOT = { has_government = communism } 
		has_war = no
		is_in_faction = no
		is_puppet = no
		UKR = {
			has_government = communism
			has_civil_war = yes
			is_in_faction = no
		}
	}

	fire_only_once = yes
	
	mean_time_to_happen = {	days = 7	}

	option = {
		name = crimea.72.a
		ai_chance = {
			factor = 80
		}
		declare_war_on = {
			target = UKR
			type = take_state
			generator = { 202 }
		}
		UKR = { country_event = { id = ukraine.83 hours = 4 } }
	}
	option = {
		name = crimea.72.b
		ai_chance = {
			factor = 20
		}
	}	
}
# CRM becomes just Russia
country_event = {
	id = crimea.73
	
	trigger = {
		tag = CRM
		NOT = { country_exists = SOV }
	}

	mean_time_to_happen = { days = 2 }

	hidden = yes

	immediate = {
		set_cosmetic_tag = CRM_RUS
		every_owned_state = {
			limit = {
				is_core_of = SOV
				NOT = { is_core_of = ROOT }
				is_owned_and_controlled_by = ROOT
			}
			add_core_of = ROOT
		}
	}
}
# Crimea-Ukrainian treaty
country_event = {
	id = crimea.74
	title = crimea.74.t
	desc = crimea.74.d
	picture = GFX_report_event_crimea_leaders
	
	is_triggered_only = yes
	
	option = {
		name = crimea.74.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 2
				has_government = FROM
			}
			modifier = {
				factor = 1.5
				has_stability < 0.5	
			}
		}
		137 = {
			remove_claim_by = ROOT
		}
		1021 = {
			remove_claim_by = ROOT
		}
		add_political_power = 50
		add_stability = 0.05
		set_country_flag = UKR_peace_with_CRM
		FROM = {
			country_event = crimea.75
		}
	}
	option = {
		name = crimea.74.b
		ai_chance = {
			factor = 50
		}
		FROM = {
			country_event = crimea.76
		}
	}	
}
# Crimea-Ukrainian treaty - Ukraine agree
country_event = {
	id = crimea.75
	title = crimea.75.t
	desc = crimea.75.d
	
	is_triggered_only = yes
	
	option = {
		name = crimea.75.a
	}
}
# Crimea-Ukrainian treaty - Ukraine refuse
country_event = {
	id = crimea.76
	title = crimea.76.t
	desc = crimea.76.d
	
	is_triggered_only = yes
	
	option = {
		name = crimea.76.a
		every_state = {
			limit = {
				is_owned_and_controlled_by = UKR
				is_core_of = UKR
			}
			add_claim_by = CRM
		}
	}
}
# Difficult negotiations in London
country_event = {
	id = crimea.77
	title = crimea.77.t
	desc = crimea.77.d
	picture = GFX_report_event_chamberlain_announce
	
	is_triggered_only = yes
	
	option = {
		name = crimea.77.a
		ai_chance = {
			base = 100
		}
		add_political_power = -50
		set_country_flag = CRM_up_relations_UK
		if = {
			limit = {
				country_exists = FIN
				FIN = { has_war = no }
			}
			diplomatic_relation = {
				country = FIN
				relation = guarantee
				active = yes
			}
		}
		if = {
			limit = {
				country_exists = POL
				POL = { has_war = no }
			}
			diplomatic_relation = {
				country = POL
				relation = guarantee
				active = yes
			}
		}
	}
	option = {
		name = crimea.77.b
		ai_chance = {
			base = 0
		}
		every_state = {
			limit = {
				is_core_of = FIN
			}
			add_claim_by = CRM
		}
		every_state = {
			limit = {
				is_core_of = POL
			}
			add_claim_by = CRM
		}
		set_country_flag = CRM_claims_on_POL_FIN
	}	
}
# White fleet ran away
country_event = {
	id = crimea.78
	title = crimea.78.t
	desc = crimea.78.d
	picture = GFX_report_event_white_army_departure
	
	is_triggered_only = yes
	
	option = {
		name = crimea.78.a
	}
}
# Drought in 1937 for Crimea
country_event = {
	id = crimea.79
	title = crimea.79.t
	desc = crimea.79.d
	
	is_triggered_only = yes
	
	trigger = {
		137 = { is_owned_and_controlled_by = ROOT }
	}
	
	option = {
		name = crimea.79.a
		activate_decision = CRI_drought_in_1937
	}
}


 

