###########################
# Italianr Events
###########################

add_namespace = russia2_italy

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

	hidden = yes

	is_triggered_only = yes

	immediate = {
		set_global_flag = russia_reworked_events_loaded_italys
	}
}

# Invite Italy
country_event = {
	id = russia2_italy.1
	title = russia2_italy.1.t
	desc = russia2_italy.1.d
	picture = GFX_report_event_german_italian_pact

	is_triggered_only = yes

	option = {
		ai_chance = {
			base = 75
			modifier = {
				OR = {
					has_country_flag = can_create_faction_with_ita
					has_government = neutrality
				}
				add = 25
			}
		}
		name = russia2_italy.1.a
		if = {
			limit = {
				SOV = {
					is_faction_leader = yes
				}
			}
			SOV = {
				add_to_faction = ITA
				country_event = { id = russia2_italy.2 days = 1 }
				add_opinion_modifier = {
					target = ITA
					modifier = russian_diplomats
				}
			}
		}
		else = {
			SOV = {
				create_faction = moscow_rome_alliance
				add_to_faction = ITA
			}
		}
		ITA = {
			add_opinion_modifier = {
				target = SOV
				modifier = russian_diplomats
			}
			add_ai_strategy = {
				type = alliance
				id = SOV
				value = 200
			}
			add_ai_strategy = {
				type = befriend
				id = SOV
				value = 200
			}
		}
		set_country_flag = accepted_russian_deal
		hidden_effect = {
			news_event = {
				id = newsrussia2.111 days = 2
			}
		}
	}

	option = {
		ai_chance = {
			base = 25
			modifier = {
				OR = {
					has_country_flag = can_create_faction_with_ita
					has_government = neutrality
				}
				add = -25
			}
		}
		name = russia2_italy.1.b
		SOV = {
			country_event = { id = russia2_italy.3 days = 1 }
		}
	}
}

#Italy Accepts
country_event = {
	id = russia2_italy.2
	title = russia2_italy.2.t
	desc = russia2_italy.2.d
	picture = GFX_report_event_soviet_german_soldier_handshake

	is_triggered_only = yes

	option = {
		ai_chance = {
			base = 100
		}
		name = russia2_italy.2.a
	}
}

#Italy Refuses
country_event = {
	id = russia2_italy.3
	title = russia2_italy.3.t
	desc = russia2_italy.3.d
	picture = GFX_report_event_poland_rejects

	is_triggered_only = yes

	option = {
		ai_chance = {
			base = 100
		}
		name = russia2_italy.3.a
	}
}

#Must Give 103 to Italy
country_event = {
	id = russia2_italy.4
	title = russia2_italy.4.t
	desc = russia2_italy.4.d
	picture = GFX_report_event_german_polish_border

	fire_only_once = yes

	trigger = {
		controls_state = 103
		OR = {
			is_in_faction_with = SOV
			tag = SOV
			is_subject_of = SOV
		}
		NOT = {
			tag = ITA
		}
		ITA = {
			is_in_faction_with = SOV
			has_country_flag = accepted_russian_deal
			NOT = {
				owns_state = 103
			}
		}
	}

	option = {
		ai_chance = {
			base = 100
		}
		name = russia2_italy.4.a
		ITA = {
			transfer_state = 103
			country_event = { id = russia2_italy.5 days = 1 }
		}
	}
}

#103 Transfered!
country_event = {
	id = russia2_italy.5
	title = russia2_italy.5.t
	desc = russia2_italy.5.d
	picture = GFX_report_event_german_polish_border

	is_triggered_only = yes

	option = {
		ai_chance = {
			base = 100
		}
		name = russia2_italy.5.a
	}
}

# Ask Italy to Back Off the Slavic States
country_event = {
	id = russia2_italy.6
	title = russia2_italy.6.t
	desc = russia2_italy.6.d
	picture = GFX_report_event_german_italian_pact

	is_triggered_only = yes

	option = {
		ai_chance = {
			base = 60
			modifier = {
				has_war = yes
				add = 30
			}
		}
		name = russia2_italy.6.a
		diplomatic_relation = {
			country = SOV
			relation = non_aggression_pact
			active = yes
		}
		every_state = {
			limit = {
				has_state_flag = SOV_slavic_states
				is_claimed_by = ITA
			}
			remove_claim_by = ITA
		}
		every_state = {
			limit = {
				has_state_flag = SOV_slavic_states
				is_controlled_by = ITA
			}
			SOV = {
				transfer_state = PREV
			}
		}
		SOV = {
			country_event = { id = russia2_italy.7 days = 1 }
		}
		hidden_effect = {
			news_event = {
				id = newsrussia2.112 days = 2
			}
		}
	}

	option = {
		ai_chance = {
			base = 40
			modifier = {
				has_war = yes
				add = -30
			}
		}
		name = russia2_italy.6.b
		SOV = {
			country_event = { id = russia2_italy.8 days = 1 }
		}
	}
}

#Italy Accepts
country_event = {
	id = russia2_italy.7
	title = russia2_italy.7.t
	desc = russia2_italy.7.d
	picture = GFX_report_event_soviet_german_soldier_handshake

	is_triggered_only = yes

	option = {
		ai_chance = {
			base = 100
		}
		name = russia2_italy.7.a
	}
}

#Italy Refuses
country_event = {
	id = russia2_italy.8
	title = russia2_italy.8.t
	desc = russia2_italy.8.d
	picture = GFX_report_event_german_troops

	is_triggered_only = yes

	option = {
		ai_chance = {
			base = 100
		}
		name = russia2_italy.8.a
	}
}

#Italian Embassy
country_event = {
	id = russia2_italy.9
	title = russia2_italy.9.t
	desc = russia2_italy.9.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes

	option = { #Sure
		name = russia2_italy.9.a
		ai_chance = {
			base = 75
			modifier = {
				add = 25
				has_government = fascism
			}
		}
		set_country_flag = ITA_accepted_embassy_fascist
		diplomatic_relation = {
			country = SOV
			relation = non_aggression_pact
			active = yes
		}
		add_opinion_modifier = {
			target = SOV
			modifier = established_italian_embassy
		}
		SOV = {
			country_event = { id = russia2_italy.10 days = 1 }
		}
	}

	option = { #No
		name = russia2_italy.9.b
		ai_chance = {
			base = 25
			modifier = {
				factor = 0
				has_government = fascism
			}
		}
		SOV = {
			country_event = { id = russia2_italy.11 days = 1 }
		}
	}
}

#Italy Accepts
country_event = {
	id = russia2_italy.10
	title = russia2_italy.10.t
	desc = russia2_italy.10.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = {
		ai_chance = {
			base = 100
		}
		name = russia2_italy.10.a
		add_opinion_modifier = {
			target = ITA
			modifier = established_italian_embassy
		}
	}
}

#Italy Refuses
country_event = {
	id = russia2_italy.11
	title = russia2_italy.11.t
	desc = russia2_italy.11.d
	picture = GFX_report_event_german_troops

	is_triggered_only = yes

	option = {
		ai_chance = {
			base = 100
		}
		name = russia2_italy.11.a
	}
}

#Invitation to SOV faction
country_event = {
	id = russia2_italy.12
	title = russia2_italy.12.t
	desc = russia2_italy.12.d
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes

	option = { #Yes!
		name = russia2_italy.12.a
		ai_chance = {
			base = 100
			modifier = {
				add = -25
				OR = {
					is_faction_leader = yes
					NOT = {
						has_government = fascism
					}
				}
			}
		}
		add_war_support = 0.05
		SOV = {
			country_event = { id = russia2_italy.13 days = 1 }
		}
	}

	option = { #No
		name = russia2_italy.12.b
		ai_chance = {
			base = 0
			modifier = {
				add = 25
				OR = {
					is_faction_leader = yes
					NOT = {
						has_government = fascism
					}
				}
			}
		}
		SOV = {
			country_event = { id = russia2_italy.14 days = 1 }
		}
	}
}

#Italy Accepts
country_event = {
	id = russia2_italy.13
	title = russia2_italy.13.t
	desc = russia2_italy.13.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = {
		ai_chance = {
			base = 100
		}
		name = russia2_italy.13.a
		if = {
			limit = {
				is_faction_leader = no
			}
			create_faction = italian_russian_alliance
		}
		else = {
			set_faction_name = italian_russian_alliance
		}
		add_to_faction = ITA
		hidden_effect = {
			news_event = { id = newsrussia2.134 hours = 12 }
		}
	}
}

#Italy Refuses
country_event = {
	id = russia2_italy.14
	title = russia2_italy.14.t
	desc = russia2_italy.14.d
	picture = GFX_report_event_german_troops

	is_triggered_only = yes

	option = {
		ai_chance = {
			base = 100
		}
		name = russia2_italy.14.a
	}
}

#White Guard Accept our Proposition 
country_event = {
	id = russia2_italy.15
	title = russia2_italy.15.t
	desc = russia2_italy.15.d
	picture = GFX_handshake_russia2

	is_triggered_only = yes

	option = {
		ai_chance = {
			base = 100
		}
		name = russia2_italy.15.a
		custom_effect_tooltip = if_we_accept_and_send_volunteers_gain_good_tt
		custom_effect_tooltip = upon_start_civil_war_idea_tt
		show_ideas_tooltip = SOV_Participation_russian_civil_war_foreign
	}
}

#Russia Close Diplomatic Relation with Us
country_event = {
	id = russia2_italy.16
	title = russia2_italy.16.t
	desc = russia2_italy.16.d
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { #It was bound to happen ...
		ai_chance = {
			base = 100
		}
		name = russia2_italy.16.a
	}
}

#Russia Condemn Us for the Invasion of Ethiopia
country_event = {
	id = russia2_italy.17
	title = russia2_italy.17.t
	desc = russia2_italy.17.d
	picture = GFX_report_event_generic_sign_treaty1
	
	is_triggered_only = yes

	option = { #A bit late for that
		ai_chance = {
			base = 100
		}
		name = russia2_italy.17.a
	}
}

#Russia Condemn Us for Starting a war with a Foreign Country
country_event = {
	id = russia2_italy.18
	title = russia2_italy.18.t
	desc = russia2_italy.18.d
	picture = GFX_report_event_german_troops
	
	is_triggered_only = yes

	option = { #We're not going to make peace
		ai_chance = {
			base = 100
		}
		name = russia2_italy.18.a
	}
}

#Russian Friendship
country_event = {
	id = russia2_italy.19
	title = russia2_italy.19.t
	desc = russia2_italy.19.d
	picture = GFX_report_event_german_italian_pact
	
	is_triggered_only = yes

	option = { #Friends
		ai_chance = {
			base = 85
		}
		name = russia2_italy.19.a
		SOV = {
			country_event = { id = russia2_italy.20 days = 1 }
		}
		add_political_power = 75
		add_stability = 0.05
	}

	option = { #No
		ai_chance = {
			base = 15
		}
		name = russia2_italy.19.b
		SOV = {
			country_event = { id = russia2_italy.21 days = 1 }
		}
	}
}

#Italy Accept Friendship
country_event = {
	id = russia2_italy.20
	title = russia2_italy.20.t
	desc = russia2_italy.20.d
	picture = GFX_soldiers_handshaking_kolchak_russia2
	
	is_triggered_only = yes

	option = { #Friends !
		ai_chance = {
			base = 100
		}
		name = russia2_italy.20.a
		set_country_flag = can_create_faction_with_ita
		custom_effect_tooltip = unlock_decision_create_faction_italy
		ITA = {
			add_ai_strategy = {
				type = alliance
				id = SOV
				value = 50
			}
			add_ai_strategy = {
				type = befriend
				id = SOV
				value = 15
			}
		}
		add_political_power = 75
		add_stability = 0.05
		remove_ideas = SOV_Russian_italian_diplomacy_neutral
		hidden_effect = {
			ITA = {
				remove_ideas = SOV_Russian_italian_diplomacy_neutral
			}
		}
	}
}

#Italy Refuse Friendship
country_event = {
	id = russia2_italy.21
	title = russia2_italy.21.t
	desc = russia2_italy.21.d
	picture = GFX_report_event_poland_rejects
	
	is_triggered_only = yes

	option = { #Retard
		ai_chance = {
			base = 100
		}
		name = russia2_italy.21.a
	}
}

#Russian Proposition of Military Alliance
country_event = {
	id = russia2_italy.22
	title = russia2_italy.22.t
	desc = russia2_italy.22.d
	picture = GFX_soldiers_parade_russia2
	
	is_triggered_only = yes

	option = { #Friends
		ai_chance = {
			base = 85
			modifier = {
				add = -25
				is_in_faction = yes
			}
		}
		name = russia2_italy.22.a
		SOV = {
			country_event = { id = russia2_italy.23 hours = 6 }
		}
		if = {
			limit = {
				SOV = {
					is_faction_leader = yes
				}
			}
			SOV = {
				add_to_faction = ITA
			}
		}
		else = {
			SOV = {
				create_faction = moscow_rome_alliance
				add_to_faction = ITA
			}
		}
		SOV = {
			country_event = { id = russia2_italy.24 days = 1 }
		}
	}

	option = { #No
		ai_chance = {
			base = 15
			modifier = {
				add = 25
				is_in_faction = yes
			}
		}
		name = russia2_italy.22.b
		SOV = {
			country_event = { id = russia2_italy.24 days = 1 }
		}
	}
}

#Italy Accept Alliance
country_event = {
	id = russia2_italy.23
	title = russia2_italy.23.t
	desc = russia2_italy.23.d
	picture = GFX_soldiers_with_guns_russia2
	
	is_triggered_only = yes

	option = { #Nice
		ai_chance = {
			base = 100
		}
		name = russia2_italy.23.a
		ITA = {
			add_ai_strategy = {
				type = alliance
				id = SOV
				value = 125
			}
		}
	}
}

#Italy Refuse Alliance
country_event = {
	id = russia2_italy.24
	title = russia2_italy.24.t
	desc = russia2_italy.24.d
	picture = GFX_report_event_poland_rejects
	
	is_triggered_only = yes

	option = { #Why !
		ai_chance = {
			base = 100
		}
		name = russia2_italy.24.a
	}
}

#Question of the Italian Monarchy
country_event = {
	id = russia2_italy.25
	title = russia2_italy.25.t
	desc = russia2_italy.25.d
	picture = GFX_report_event_mussolini_hotel
	
	is_triggered_only = yes

	option = { #Put Pressure on the Italian Government
		ai_chance = {
			base = 33
		}
		name = russia2_italy.25.a
		custom_effect_tooltip = unlock_decision_influence_italy_tt
		ITA = {
			country_event = { id = russia2_italy.26 days = 1 }
			add_ideas = SOV_Russian_influence_monarchist_italy
			hidden_effect = {
				add_popularity = {
					ideology = neutrality
					popularity = 0.11
				}
			}
		}
	}

	option = { #Ask Mussolini to let the king back
		ai_chance = {
			base = 33
		}
		name = russia2_italy.25.b
		ITA = {
			country_event = { id = russia2_italy.27 days = 1 }
		}
	}

	option = { #We will restore the King Ourselves
		ai_chance = {
			base = 33
		}
		name = russia2_italy.25.c
		ITA = {
			leave_faction = yes
			add_ai_strategy = {
				type = alliance
				id = SOV
				value = -500
			}
			add_ai_strategy = {
				type = befriend
				id = SOV
				value = -250
			}
		}
		SOV = {
			create_wargoal = {
				type = puppet_wargoal_focus
    			target = ITA
			}
		}
	}
}

#Russian Put Pressure to Restore the King to Power
country_event = {
	id = russia2_italy.26
	title = russia2_italy.26.t
	desc = russia2_italy.26.d
	picture = GFX_report_event_royal_parade
	
	is_triggered_only = yes

	option = { #We will Resist
		ai_chance = {
			base = 100
		}
		name = russia2_italy.26.a
		custom_effect_tooltip = unlock_decision_deal_russian_influence
	}
}

#Russian Ask us to restore the king to power
country_event = {
	id = russia2_italy.27
	title = russia2_italy.27.t
	desc = russia2_italy.27.d
	picture = GFX_report_event_generic_communist_congress
	
	is_triggered_only = yes

	option = { #We will comply
		ai_chance = {
			base = 20
			modifier = {
				add = 30
				neutrality > 0.3
			}
		}
		name = russia2_italy.27.a
		SOV = {
			country_event = { id = russia2_italy.28 days = 1 }
		}
		set_politics = {
			ruling_party = neutrality
		}
		hidden_effect = {
			set_popularities = {
				democratic = 10
				neutrality = 70
				fascism = 10
				communism = 10
			}
		}
	}

	option = { #No
		ai_chance = {
			base = 80
			modifier = {
				add = -30
				neutrality > 0.3
			}
		}
		name = russia2_italy.27.b
		SOV = {
			country_event = { id = russia2_italy.29 days = 1 }
		}
	}
}

#Italy Accept Return King
country_event = {
	id = russia2_italy.28
	title = russia2_italy.28.t
	desc = russia2_italy.28.d
	picture = GFX_report_event_royal_parade
	
	is_triggered_only = yes

	option = { #Good
		ai_chance = {
			base = 100
		}
		name = russia2_italy.28.a
	}
}

#Italy Refuse Return King
country_event = {
	id = russia2_italy.29
	title = russia2_italy.29.t
	desc = russia2_italy.29.d
	picture = GFX_report_event_generic_parliament
	
	is_triggered_only = yes

	option = { #Good
		ai_chance = {
			base = 100
		}
		name = russia2_italy.29.a
	}
}

#Russia Put Pressure on us first time
country_event = {
	id = russia2_italy.30
	title = russia2_italy.30.t
	desc = russia2_italy.30.d
	picture = GFX_report_event_gathering_protest
	
	is_triggered_only = yes

	option = { #We will not bow
		ai_chance = {
			base = 90
		}
		name = russia2_italy.30.a
		add_stability = -0.05
		SOV = {
			set_country_flag = asked_italy_first_time_pression
			country_event = { id = russia2_italy.31 days = 1 }
		}
	}

	option = { #Accept their demand
		ai_chance = {
			base = 10
		}
		name = russia2_italy.30.b
		set_politics = {
			ruling_party = neutrality
		}
		SOV = {
			country_event = { id = russia2_italy.32 days = 1 }
		}
		if = {
			limit = {
				has_idea = SOV_Russian_influence_monarchist_italy
			}
			remove_ideas = SOV_Russian_influence_monarchist_italy
		}
		else = {
			remove_ideas = SOV_Russian_influence_monarchist_italy_2
		}
		hidden_effect = {
			set_popularities = {
				democratic = 10
				neutrality = 70
				fascism = 10
				communism = 10
			}
		}
	}
}

#Italy Refuse to Give in
country_event = {
	id = russia2_italy.31
	title = russia2_italy.31.t
	desc = russia2_italy.31.d
	picture = GFX_report_event_gathering_protest
	
	is_triggered_only = yes

	option = { #Not Nice
		ai_chance = {
			base = 100
		}
		name = russia2_italy.31.a
	}
}

#Italy Accept to Give in
country_event = {
	id = russia2_italy.32
	title = russia2_italy.32.t
	desc = russia2_italy.32.d
	picture = GFX_report_event_gathering_protest
	
	is_triggered_only = yes

	option = { #Not Nice
		ai_chance = {
			base = 100
		}
		name = russia2_italy.32.a
	}
}

#Russia Put Pressure on us second time
country_event = {
	id = russia2_italy.33
	title = russia2_italy.33.t
	desc = russia2_italy.33.d
	picture = GFX_report_event_gathering_protest
	
	is_triggered_only = yes

	option = { #We will not bow
		ai_chance = {
			base = 40
		}
		name = russia2_italy.33.a
		add_stability = -0.15
		SOV = {
			set_country_flag = asked_italy_second_time_pression
			country_event = { id = russia2_italy.31 days = 1 }
		}
	}

	option = { #Accept their demand
		ai_chance = {
			base = 60
		}
		name = russia2_italy.33.b
		set_politics = {
			ruling_party = neutrality
		}
		if = {
			limit = {
				has_idea = SOV_Russian_influence_monarchist_italy
			}
			remove_ideas = SOV_Russian_influence_monarchist_italy
		}
		else = {
			remove_ideas = SOV_Russian_influence_monarchist_italy_2
		}
		SOV = {
			country_event = { id = russia2_italy.32 days = 1 }
		}
		hidden_effect = {
			set_popularities = {
				democratic = 10
				neutrality = 70
				fascism = 10
				communism = 10
			}
		}
	}
}

#Russia Put Pressure on us third time
country_event = {
	id = russia2_italy.34
	title = russia2_italy.34.t
	desc = russia2_italy.34.d
	picture = GFX_report_event_gathering_protest
	
	is_triggered_only = yes

	option = { #We will not bow
		ai_chance = {
			base = 15
		}
		name = russia2_italy.34.a
		add_stability = -0.15
		leave_faction = yes
		SOV = {
			country_event = { id = russia2_italy.31 days = 1 }
		}
	}

	option = { #Accept their demand
		ai_chance = {
			base = 85
		}
		name = russia2_italy.34.b
		set_politics = {
			ruling_party = neutrality
		}
		SOV = {
			country_event = { id = russia2_italy.32 days = 1 }
		}
		if = {
			limit = {
				has_idea = SOV_Russian_influence_monarchist_italy
			}
			remove_ideas = SOV_Russian_influence_monarchist_italy
		}
		else = {
			remove_ideas = SOV_Russian_influence_monarchist_italy_2
		}
		hidden_effect = {
			set_popularities = {
				democratic = 10
				neutrality = 70
				fascism = 10
				communism = 10
			}
		}
	}
}