add_namespace = vat

#Часть итальянской флотилии переходят под наш контроль
country_event = {
	id = vat.1
	title = vat.1.t
	desc = vat.1.d
	picture = GFX_report_event_SOV_purge_navy
	is_triggered_only = yes
	
	option = {
		name = vat.1.a
		ITA = {
			transfer_units_fraction = {
				target = ROOT
				navy_ratio = 0.2
			}
			if = {
				limit = { ROOT = { tag = VAT } }
				set_nationality = {
					character = ITA_inigo_campioni
					target_country = ROOT
				}
			}
		}
	}	
}

##Collapse of North Italy
country_event = {
	id = vat.2
	title = vat.2.t
	desc = vat.2.d
	picture = GFX_report_event_picture_north_italy_map
	fire_only_once = yes
	is_triggered_only = yes
	
	
	option = {
		name = vat.2.a
		custom_effect_tooltip = vat_colapse_of_north_italy_tt
	}
}

#Послевоенная разруха
country_event = {
	id = vat.3
	title = vat.3.t
	desc = vat.3.d
	picture = GFX_report_event_spr_civil_war_faction_defeated
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.3.a
		add_to_variable = { post_war_devastation_stability_factor_var = -0.2 }
		add_to_variable = { post_war_devastation_monthly_population_var = -0.2 }
		add_to_variable = { post_war_devastation_consumer_goods_factor_var = 0.4 }
		add_to_variable = { post_war_devastation_production_factory_efficiency_gain_factor_var = -0.4 }
		add_to_variable = { post_war_devastation_production_speed_buildings_factor_var = -0.4 }
		add_to_variable = { post_war_devastation_industry_free_repair_factor_var = -0.9 }
		custom_effect_tooltip = add_post_war_devastation
		hidden_effect = {
			add_dynamic_modifier = {
				modifier = VAT_post_war_devastation
			}
		}
	}
		
}

#Дезорганизация армии
country_event = {
	id = vat.4
	title = vat.4.t
	desc = vat.4.d
	picture = GFX_report_event_ITA_italian_civil_war
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.4.a
		#add_ideas = VAT_army_disorganization
		add_to_variable = {
			arny_desorganisation_war_support_factor_var = -0.15
		}
		add_to_variable = {
			arny_desorganisation_experience_gain_army_unit_factor_var = -0.1
		}
		add_to_variable = {
			arny_desorganisation_training_time_army_factor_var = 0.1
		}
		add_to_variable = {
			arny_desorganisation_army_org_factor_var = -0.1
		}
		add_to_variable = {
			arny_desorganisation_army_org_regain_var = -0.1
		}
		add_to_variable = {
			arny_desorganisation_dig_in_speed_factor_var = -0.1
		}
		add_to_variable = {
			arny_desorganisation_army_speed_factor_var = -0.1
		}
		add_to_variable = {
			arny_desorganisation_out_of_supply_factor_var = 0.1
		}
		add_to_variable = {
			arny_desorganisation_supply_node_range_var = -0.15
		}
		add_to_variable = {
			arny_desorganisation_army_attack_factor_var = -0.1
		}
		add_to_variable = {
			arny_desorganisation_army_defence_factor_var = -0.1
		}
		custom_effect_tooltip = add_army_desorganisation
		custom_effect_tooltip = generic_skip_one_line_tt
		add_ideas = VAT_military_comands_disorganization
		hidden_effect = {
			add_dynamic_modifier = {
				modifier = VAT_army_desorganisation
			}
		}
	}
		
}

#Нефункционирующий бюрократический аппарат
country_event = {
	id = vat.5
	title = vat.5.t
	desc = vat.5.d
	picture = GFX_report_event_SOV_purge_administration
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.5.a
		add_ideas = VAT_inefficient_bureaucracy
	}
		
}

##СМЕРТЬ ПИЯ XI
country_event = {
	id = vat.6
	title = vat.6.t
	desc = vat.6.d
	picture = GFX_report_event_die_of_Pius_XI
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.6.a
		retire_character = VAT_Pius_XI
		if = {
			limit = { has_country_flag = VAT_constitutional_theocratic_monarchy_democratic_flag }
			add_country_leader_role = {
				character = VAT_Conclave
				promote_leader = yes
				country_leader = {
					ideology = constitutional_theocratic_monarchy
					expire = "2000.1.1"
					traits = {}
				}
			}
		}
		else_if = {
			limit = { has_country_flag = VAT_constitutional_theocratic_monarchy_neutrality_flag }
			promote_character = {
				character = VAT_Conclave
				ideology = papal_state
			}
			set_country_leader_ideology = constitutional_theocratic_monarchy
		}
		else = {
			promote_character = {
				character = VAT_Conclave
				ideology = papal_state
			}
		}
		set_variable = {
			current_pope = VAT_Conclave
		}
		set_variable = {
			current_traditionalist = VAT_Conclave
		}
		complete_national_focus = VAT_conclave_of_thirty_nine
		mark_focus_tree_layout_dirty = yes
		if = {
			limit = {
				check_variable = {
					current_law > 0
				}
			}
			country_event = {
				id = vat.52
				days = 1
			}
		}
		else_if = {
			limit = {
				has_active_mission = VAT_curia_law_opposition_suggest
			}
			country_event = {
				id = vat.56
				days = 1
			}
		}
	}
}

##РЕЗУЛЬТАТЫ ПАПСКОГО КОНКЛАВА
country_event = {
	id = vat.7
	title = vat.7.t
	desc = vat.7.d
	picture = GFX_report_event_papal_conclave_1939
	fire_only_once = yes
	is_triggered_only = yes
	

	option = {
		name = vat.7.a
		trigger = {
			NOT = {
				has_completed_focus = VAT_loyal_to_the_pope_vicars
				has_completed_focus = VAT_in_the_wake_of_the_nazi_rood
			}
		}

		custom_effect_tooltip = VAT_Stefan_X_chosen
		complete_national_focus = VAT_stefan_x_foc

		custom_effect_tooltip = generic_skip_one_line_tt
		custom_effect_tooltip = vat_lock_focus_completion_VAT_loyal_to_the_pope_vicars
		custom_effect_tooltip = vat_lock_focus_completion_VAT_in_the_wake_of_the_nazi_rood
	}

	option = {
		name = vat.7.b
		trigger = {
			NOT = {
				has_completed_focus = VAT_loyal_to_the_pope_vicars
				has_completed_focus = VAT_in_the_wake_of_the_nazi_rood
			}
		}

		custom_effect_tooltip = VAT_Benedict_XVI_chosen
		complete_national_focus = VAT_benedict_xvi_foc

		custom_effect_tooltip = generic_skip_one_line_tt
		custom_effect_tooltip = vat_lock_focus_completion_VAT_loyal_to_the_pope_vicars
		custom_effect_tooltip = vat_lock_focus_completion_VAT_in_the_wake_of_the_nazi_rood
	}

	option = {
		name = vat.7.c

		custom_effect_tooltip = VAT_Pius_XII_chosen
		complete_national_focus = VAT_pius_xii_foc
	}

	option = {
		name = vat.7.e
		trigger = {
			NOT = {
				has_completed_focus = VAT_opposition_to_domination_of_Pope_in_politics
				has_completed_focus = VAT_the_politics_of_antifascism
			}
		}

		custom_effect_tooltip = VAT_Adrian_VII_chosen
		complete_national_focus = VAT_adrian_vii_foc

		custom_effect_tooltip = generic_skip_one_line_tt
		custom_effect_tooltip = vat_lock_focus_completion_VAT_opposition_to_domination_of_Pope_in_politics
		custom_effect_tooltip = vat_lock_focus_completion_VAT_the_politics_of_antifascism
	}
		
}

#Передача итальянских технологий
country_event = {
	id = vat.8
	title = vat.8.t
	desc = vat.8.d
	picture = GFX_report_event_generic_research_lab
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.8.a
		inherit_technology = ITA
	}	
}

#Активизация оппозиции
country_event = {
	id = vat.9
	title = vat.9.t
	desc = vat.9.d
	picture = GFX_report_event_fascist_militia
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.9.a
		add_ideas = VAT_active_mafia
		add_ideas = VAT_active_right_opposition
		add_ideas = VAT_active_left_opposition
		set_variable = {
			var = mafia_power
			value = 65
		}
		set_variable = {
			var = right_opposition_power
			value = 70
		}
		set_variable = {
			var = left_opposition_power
			value = 60
		}

		hidden_effect = {
			LBV = {
				ITA_palmiro_togliatti = {
					set_nationality = VAT
					promote_character = marxism
				}
			}
			ITA = {
				ITA_italo_balbo = {
					set_nationality = VAT
					remove_unit_leader_role = yes
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = fascism_ideology
							expire = 1965.1.1.1
							traits =  {	aviation_hero }
						}
					}
				}
			}
		}

		set_variable = {
			mafia_raid_states_cost_var = 15
		}

		set_variable = {
			vat_opposition_criticize_cost_var = 15
		}
		set_variable = {
			vat_opposition_raid_cost_var = 20
		}
		set_variable = {
			vat_opposition_spies_cost_var = 25
		}
		set_variable = {
			vat_opposition_power_up_days_timeout_var = 45
		}
	}	
}

##ПЕРЕХОД ИТАЛЬЯНСКИХ ГЕНЕРАЛОВ НА СТОРОНУ ВАТИКАНА
country_event = {
	id = vat.10
	title = vat.10.t
	desc = vat.10.d
	fire_only_once = yes

	trigger = {
		tag = VAT
		ITA = {
			surrender_progress > 0.5
		}
	}
	
	option = {
		name = vat.10.a
		ITA = {
			set_temp_variable = {
				political_power_minus = -40 #Чтобы если все генералы переманены не было пустого добавление полит. власти
			}
			ITA_italo_gariboldi = { set_nationality = ROOT }
			ITA_mario_berti = { set_nationality = ROOT }
			ITA_carlo_geloso = { set_nationality = ROOT }
			ITA_ezio_rosi = { set_nationality = ROOT }
			ITA_mario_vercellino = { set_nationality = ROOT }
			ITA_carlo_vecchiarelli = { set_nationality = ROOT }
			ITA_mario_robotti = { set_nationality = ROOT }
			ITA_alberto_da_zara = { set_nationality = ROOT }
			ITA_vittorio_emanuele_orlando = { set_nationality = ROOT }
			ITA_renato_sandalli = { set_nationality = ROOT }
			if = {
				limit = { has_character = ITA_ugo_cavallero }
				ITA_ugo_cavallero = { set_nationality = ROOT }
				subtract_from_temp_variable = {
					political_power_minus = 10
				}
			}
			if = {
				limit = { has_character = ITA_sebastiano_visconti_prasca }
				ITA_sebastiano_visconti_prasca = { set_nationality = ROOT }
				subtract_from_temp_variable = {
					political_power_minus = 10
				}
			}
			if = {
				limit = { has_character = ITA_rino_corso_fougier }
				ITA_rino_corso_fougier = { set_nationality = ROOT }
				subtract_from_temp_variable = {
					political_power_minus = 10
				}
			}
			if = {
				limit = { has_character = ITA_vittorio_ambrosio }
				ITA_vittorio_ambrosio = { set_nationality = ROOT }
				subtract_from_temp_variable = {
					political_power_minus = 10
				}
			}
			if = {
				limit = { has_character = ITA_carlo_bergamini }
				ITA_carlo_bergamini = { set_nationality = ROOT }
				subtract_from_temp_variable = {
					political_power_minus = 10
				}
			}

			VAT = {
				add_political_power = political_power_minus
			}
			
			hidden_effect = {
				if = {
					limit = { VAT = { has_completed_focus = VAT_strategy_of_rapid_revolution } }
					ITA = {
						white_peace = ETH
						release = LBA
						release = ERI
						release = SOM
						release = ETH
						release = AFA
						ETH = {
							if = {
								limit = {
									exists = yes
								}
								declare_war_on = { target = AFA type = annex_everything }
								declare_war_on = { target = ERI type = annex_everything }
								declare_war_on = { target = SOM type = annex_everything }
							}
						}
						TUR = {
							transfer_state = 164
						}
						YUG = {
							transfer_state = 163
						}
						country_event = {
							days = 10
							id = ita_vat.1
						}
						promote_character = ITA_grand_council

						set_nationality = { #В коде он становится лидером Ватикана, перенесясь из LBV
							character = ITA_palmiro_togliatti
							target_country = LBV
						}
					}
				}
				else = {
					add_equipment_to_stockpile = {
						type = infantry_equipment
						amount = -20000
					}
				}
			}
		}
	}	
}

#Востание селян на юге Италии
country_event = {
	id = vat.11
	title = vat.11.t
	desc = vat.11.d
	picture = GFX_report_event_spr_anarchist_uprising
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.11.a
		115 = {
			set_demilitarized_zone = yes
		}
		115 = {
			set_demilitarized_zone = no
		}
		set_province_controller = 7059
		set_province_controller = 1009
		115 = {
			create_unit = {
				division = "name = \"Divisione della Guardia Interna\" division_template = \"Divisione della Guardia Interna\" start_experience_factor = 0.5"
				owner = VAT
				count = 2
				allow_spawning_on_enemy_provs = no
			}
		}
		set_province_controller = 11998
		849 = {
			create_unit = {
				division = "name = \"Divisione della Guardia Interna\" division_template = \"Divisione della Guardia Interna\" start_experience_factor = 0.5"
				owner = VAT
				count = 1
				allow_spawning_on_enemy_provs = no
			}
		}
	}	
}

#Начальные ивенты
country_event = {
	id = vat.12
	title = vat.12.t
	desc = vat.12.d
	picture = GFX_report_event_picture_what_is_vatican
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = vat.12.a
		country_event = {
			id = vat.13
			days = 1
		}
	}	
}
country_event = {
	id = vat.13
	title = vat.13.t
	desc = vat.13.d
	picture = GFX_report_event_picture_vatican_borders
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.13.a
	}	
}

#Старый префект
country_event = {
	id = vat.14
	title = vat.14.t
	desc = vat.14.d
	picture = GFX_report_event_picture_cesare_mori
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.14.a
		117 = {
			add_manpower = -40
		}
		add_stability = 0.01
		add_to_variable = { var = mafia_power value = -5 tooltip = mafia_power}
	}	
}

#Нечестивый договор
country_event = {
	id = vat.15
	title = vat.15.t
	desc = vat.15.d
	picture = GFX_report_event_picture_mafia_unholy_union
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.15.a
		add_timed_idea = {
			idea = VAT_reaches_of_cosa_nostra
			days = 90
		}
	}	
}

#Дьявол Бога
country_event = {
	id = vat.16
	title = vat.16.t
	desc = vat.16.d
	picture = GFX_report_event_picture_al_capone
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.16.a
		add_timed_idea = {
			idea = VAT_new_antimafia_inquisition
			days = 90
		}
		115 = {
			add_manpower = -200
		}
		add_stability = 0.05
	}	
}

#Введение призыва
country_event = {
	id = vat.17
	title = vat.17.t
	desc = vat.17.d
	picture = GFX_report_event_NOR_norway_exile_troops
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.17.a
		add_political_power = -50
		if = {
			limit = { has_completed_focus = VAT_strategy_of_rapid_revolution }
			add_manpower = 30000
		}
		if = {
			limit = { has_idea = limited_conscription }
			add_ideas = extensive_conscription
		}
		else_if = {
			limit = { has_idea = extensive_conscription }
			add_manpower = 50000
		}
		else = {
			add_ideas = limited_conscription
		}
	}	
}

##ИВЕНТЫ НА СОТРУДНИЧЕСТВО С ЧЕРНОРУБАЩЕЧНИКАМИ##

#Эмилио де Боно
country_event = {
	id = vat.18
	title = vat.18.t
	desc = vat.18.d
	picture = GFX_report_event_picture_blackshirts_emilio_de_bono
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.18.a
		#set_country_flag = emilio_de_bono_accepted

		#custom_effect_tooltip = emilio_de_bono_accepted_tt
		ITA = {
			ITA_emilio_de_bono = { set_nationality = ROOT }
		}
		add_political_power = -10
		add_popularity = {
			ideology = fascism
			popularity = 0.01
		}
		add_stability = -0.01
	}
	option = {
		name = vat.18.b
		add_political_power = 5
		add_stability = 0.01
	}
	option = {
		name = vat.18.c
		add_political_power = 10
		add_stability = 0.01
		add_popularity = {
			ideology = fascism
			popularity = -0.01
		}
	}
}

#Галеаццо Чиано
country_event = {
	id = vat.19
	title = vat.19.t
	desc = vat.19.d
	picture = GFX_report_event_picture_blackshirts_galeazzo_ciano
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.19.a
		set_country_flag = galeazzo_ciano_accepted

		#custom_effect_tooltip = galeazzo_ciano_accepted_tt
		ITA = {
			ITA_gian_galeazzo_ciano = { set_nationality = ROOT }
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = ITA_gian_galeazzo_ciano
		}
		hidden_effect = {
			remove_trait = {
				character = ITA_gian_galeazzo_ciano
				slot = political_advisor
				trait = hierarch_minister_of_foreign_affairs
			}
			add_trait = {
				character = ITA_gian_galeazzo_ciano
				slot = political_advisor
				trait = vat_hierarch_minister_of_foreign_affairs
			}
		}
		add_political_power = -10
		add_popularity = {
			ideology = fascism
			popularity = 0.01
		}
		add_stability = -0.01
	}
	option = {
		name = vat.19.b
		add_political_power = 5
		add_stability = 0.01
	}
	option = {
		name = vat.19.c
		add_political_power = 10
		add_stability = 0.01
		add_popularity = {
			ideology = fascism
			popularity = -0.01
		}
		if = {
			limit = { check_variable = { right_opposition_power > 0 } }
			add_to_variable = { var = right_opposition_power value = -5 tooltip = right_opposition_power}
			clamp_variable = {
				var = right_opposition_power
				min = 0
				max = 100
			}
			hidden_effect = {
				VAT_right_opposition_swap_idea = yes
			}
		}
	}
}

#Юлиус Эвола
country_event = {
	id = vat.20
	title = vat.20.t
	desc = vat.20.d
	picture = GFX_report_event_picture_blackshirts_julius_evola
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.20.a
		set_country_flag = julius_evola_accepted

		#custom_effect_tooltip = julius_evola_accepted_tt
		custom_effect_tooltip = available_political_advisor
		show_ideas_tooltip = VAT_julius_evola
		add_political_power = -10
		add_popularity = {
			ideology = fascism
			popularity = 0.01
		}
		add_stability = -0.01
	}
	option = {
		name = vat.20.b
		add_political_power = 5
		add_stability = 0.01
	}
	option = {
		name = vat.20.c
		add_political_power = 10
		add_stability = 0.01
		add_popularity = {
			ideology = fascism
			popularity = -0.01
		}
		if = {
			limit = { check_variable = { right_opposition_power > 0 } }
			add_to_variable = { var = right_opposition_power value = -5 tooltip = right_opposition_power}
			clamp_variable = {
				var = right_opposition_power
				min = 0
				max = 100
			}
			hidden_effect = {
				VAT_right_opposition_swap_idea = yes
			}
		}
	}
}
###

#Заманчивое предложение (от демократов)
country_event = {
	id = vat.21
	title = vat.21.t
	desc = vat.21.d
	picture = GFX_report_event_picture_letter
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.21.a
		#custom_effect_tooltip = democrat_inteligetion_accepted_tt
		set_country_flag = vat_democratic_intelligence_accepted
		add_political_power = -25
		add_popularity = {
			ideology = democratic
			popularity = 0.05
		}
		custom_effect_tooltip = available_political_advisor
		ITA = {
			ITA_mario_scelba = { set_nationality = ROOT }
			show_ideas_tooltip = ITA_mario_scelba
			ITA_guido_de_ruggiero = { set_nationality = ROOT }
			show_ideas_tooltip = ITA_guido_de_ruggiero
			ITA_luigi_einaudi = { set_nationality = ROOT }
			show_ideas_tooltip = ITA_luigi_einaudi
		}
	}
	option = {
		name = vat.21.b
		add_political_power = 15
		add_stability = 0.02
	}
}

#Лоскутная империя
country_event = {
	id = vat.22
	title = vat.22.t
	desc = vat.22.d
	picture = GFX_report_event_bul_muraviev_protest
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.22.a
		add_ideas = VAT_linguistic_disunity
		add_ideas = VAT_ethnic_disunity
	}
}

#Аресты
country_event = {
	id = vat.23
	title = vat.23.t
	desc = vat.23.d
	picture = GFX_report_event_picture_letter
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.23.a
		add_political_power = 30
		add_popularity = {
			ideology = fascism
			popularity = -0.1
		}
		
	}
}

#Итальянская демократическая интелигенция дистанцируются от Святого Престола
country_event = {
	id = vat.24
	title = vat.24.t
	desc = vat.24.d
	picture = GFX_report_event_conclave_room
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.24.a
		custom_effect_tooltip = remove_political_advisor
		ITA_mario_scelba = { set_nationality = ITA }
		show_ideas_tooltip = ITA_mario_scelba
		ITA_guido_de_ruggiero = { set_nationality = ITA }
		show_ideas_tooltip = ITA_guido_de_ruggiero
		ITA_luigi_einaudi = { set_nationality = ITA }
		show_ideas_tooltip = ITA_luigi_einaudi
	}
}

#Заговор среди священников
country_event = {
	id = vat.25
	title = vat.25.t
	desc = vat.25.d
	picture = GFX_report_event_picture_conspiracy_among_the_priests
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.25.a
	}
}

#Пропаганда среди верующих
country_event = {
	id = vat.26
	title = vat.26.t
	desc = vat.26.d
	picture = GFX_report_event_picture_propaganda_among_believers
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.26.a
	}
}

#Организовать ячейки среди фанатиков
country_event = {
	id = vat.27
	title = vat.27.t
	desc = vat.27.d
	picture = GFX_report_event_picture_antifascism_italian_movement
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.27.a
	}
}

#Пропаганда сепаратизма в Северной Италии
country_event = {
	id = vat.28
	title = vat.28.t
	desc = vat.28.d
	picture = GFX_report_event_picture_north_italy_map
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.28.a
	}
}

#Встреча с Бадольо
country_event = {
	id = vat.29
	title = vat.29.t
	desc = vat.29.d
	picture = GFX_report_event_picture_badoglio
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.29.a
	}
}


#Начало операции "Охота на орла"
country_event = {
	id = vat.30
	title = vat.30.t
	desc = vat.30.d
	picture = GFX_report_event_picture_operation_return_to_rome
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.30.a
	}
}

#Вечер в Венеции
country_event = {
	id = vat.31
	title = vat.31.t
	desc = vat.31.d
	picture = GFX_report_event_ITA_grand_council
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.31.a
		swap_ideas = {
			remove_idea = VAT_collaboration_with_blackshirts_idea
			add_idea = VAT_pope_collaboration_with_blackshirts_idea
		}
		add_popularity = {
			ideology = fascism
			popularity = 0.05
		}
		add_political_power = 50
	}
	option = {
		name = vat.31.b
		add_stability = 0.03
		add_political_power = -25
	}
}

#Законопроект "О увеличении законодательной власти Папы Римского"
country_event = {
	id = vat.32
	title = vat.32.t
	desc = vat.32.d
	picture = GFX_report_event_conclave_room
	is_triggered_only = yes
	
	option = {
		name = vat.32.a
		set_temp_variable = {
			sl_v = 10
		}
		custom_effect_tooltip = vat_bill_law
		add_stability = -0.07
		hidden_effect = {
			set_variable = {                 
				current_law = 10
			}
			VAT_veto_by_reformists = yes
			set_variable = {                
				curia_law_vote_value = 35
			}
			VAT_law_add_additional_law_votes_at_the_start = yes
			VAT_update_curia_law_gui = yes
			activate_mission = VAT_curia_law_voting_mission
			random_list = {
				50 = {
					country_event = {
						id = vat_random.21
						days = 5
						random_days = 15
					}
				}
				50 = {
					country_event = {
						id = vat_random.24
						days = 5
						random_days = 15
					}
				}
			}
		}
	}
}

#Законопроект "О уменьшении законодательной власти Папы Римского"
country_event = {
	id = vat.33
	title = vat.33.t
	desc = vat.33.d
	picture = GFX_report_event_conclave_room
	is_triggered_only = yes
	
	option = {
		name = vat.33.a
		set_temp_variable = {
			sl_v = 11
		}
		custom_effect_tooltip = vat_bill_law
		add_stability = -0.07
		hidden_effect = {
			set_variable = {                 
				current_law = 11
			}
			# if = { #Если у власти находится Стефан X, то сопротивления в принятии законопроекта не будет
			# 	limit = {
			# 		VAT_Stefan_X = { is_country_leader = yes }
			# 	}
			# 	set_variable = {
			# 		current_law_pope_vote = 1
			# 	}
			# }
			# else = { 
			# 	set_variable = {
			# 		current_law_pope_vote = 0
			# 	}
			# }
			VAT_veto_by_traditionalists = yes
			set_variable = {                
				curia_law_vote_value = 35
			}
			VAT_law_add_additional_law_votes_at_the_start = yes
			VAT_update_curia_law_gui = yes
			activate_mission = VAT_curia_law_voting_mission
			random_list = {
				50 = {
					country_event = {
						id = vat_random.21
						days = 5
						random_days = 15
					}
				}
				50 = {
					country_event = {
						id = vat_random.24
						days = 5
						random_days = 15
					}
				}
			}
		}
	}
}

#Папа Римский отказывается поддерживать законопроект
country_event = {
	id = vat.34
	title = vat.34.t
	desc = vat.34.d
	picture = GFX_report_event_picture_second_vatican_council
	is_triggered_only = yes
	
	option = {
		name = vat.34.a
		add_stability = -0.05
		add_popularity = {
			ideology = democratic
			popularity = -0.05
		}
		VAT_curia_add_support_law_remove_7 = yes
		custom_effect_tooltip = vat_popes_veto_on_final_law
	}
}

#Секретарь Святого Престола отказывается поддерживать законопроект
country_event = {
	id = vat.35
	title = vat.35.t
	desc = vat.35.d
	picture = GFX_report_event_picture_second_vatican_council
	is_triggered_only = yes
	
	option = {
		name = vat.35.a
		add_stability = -0.05
		add_popularity = {
			ideology = neutrality
			popularity = -0.05
		}
		VAT_curia_add_support_law_remove_7 = yes
		custom_effect_tooltip = vat_secretarys_veto_on_final_law
	}
}

#Дисскусия о цензуре в Римской Курии
country_event = {
	id = vat.36
	title = vat.36.t
	desc = vat.36.d
	picture = GFX_report_event_conclave_room
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.36.a
		trigger = {
			NOT = {
				has_completed_focus = VAT_independent_media
			}
		}

		if = {
			limit = { has_country_flag = can_pass_laws_without_curia }
			add_ideas = vat_curia_law_idea_5
		}
		else = {
			set_temp_variable = {
				sl_v = 5
			}
			custom_effect_tooltip = vat_bill_law
			hidden_effect = {
				set_variable = {                 
					current_law = 5
				}
				#possible to add veto by reformists
				set_variable = {
					current_law_pope_vote = 1
				}
				set_variable = {                
					current_law_secretary_vote = 1
				}
				set_variable = {                
					curia_law_vote_value = 30
				}
			}
			VAT_law_initialization = yes
		}
	}
	option = {
		name = vat.36.b
		add_stability = 0.03
	}
}

#Дисскусия о пропаганде в Римской Курии
country_event = {
	id = vat.37
	title = vat.37.t
	desc = vat.37.d
	picture = GFX_report_event_conclave_room
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.37.a
		if = {
			limit = { has_government = fascism }
			add_to_variable = {
				tooltip = question_about_propaganda_fascism_tt
				var = propaganda_fascism_drift_var
				value = 0.03
			}
		}
		else = {
			add_to_variable = {
				tooltip = question_about_propaganda_tt
				var = propaganda_neutrality_drift_var
				value = 0.03
			}
		}
		add_to_variable = {
			var = propaganda_political_power_factor_var
			value = 0.05
		}
		hidden_effect = {
			add_dynamic_modifier = {
				modifier = VAT_state_and_church_propaganda
			}
		}
	}
	option = {
		name = vat.37.b
		add_stability = 0.03
	}
}

#Новая конституция (конституционная теократическая монархия)
country_event = {
	id = vat.38
	title = vat.38.t
	desc = vat.38.d
	picture = GFX_report_event_conclave_room
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.38.a
		add_popularity = {
			ideology = democratic
			popularity = 0.05
		}
		set_country_flag = VAT_democracy_under_the_power_of_the_Pope_chosen
		effect_tooltip = {
			unlock_national_focus = VAT_democracy_under_the_power_of_the_Pope
		}
	}
	option = {
		name = vat.38.b
		add_political_power = 50
		set_country_flag = VAT_preserve_authoritarian_tendencies_chosen
		effect_tooltip = {
			unlock_national_focus = VAT_preserve_authoritarian_tendencies
		}
	}
}

#Луиджи Мальоне назначен Секретарём Святого Престола
country_event = {
	id = vat.39
	title = vat.39.t
	desc = vat.39.d
	picture = GFX_report_event_conclave_room
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.39.a
		deactivate_advisor = VAT_vacant_place
		if = {
			limit = { NOT = { has_completed_focus = VAT_era_dictatorship_pontificate } }
			activate_advisor = VAT_Luigi_Maglione
		}
		set_variable = {
			current_secretary = VAT_Luigi_Maglione
		}
		if = {
			limit = {
				var:current_traditionalist = {
					is_character = VAT_vacant_place
				}
			}
			set_variable = {
				current_traditionalist = VAT_Luigi_Maglione
			}
		}
		else = {
			set_variable = {
				current_reformist = VAT_Luigi_Maglione
			}
		}
	}
}

#Мир с Италией
country_event = {
	id = vat.40
	title = vat.40.t
	desc = vat.40.d
	picture = GFX_report_event_vienna_award_negotiations
	fire_only_once = yes
	is_triggered_only = yes

	# trigger = {
	# 	tag = VAT
	# 	OR = {
	# 		VAT = { controls_state = 157 }
	# 		PAP = { controls_state = 157 }
	# 		ITA = { surrender_progress > 0.5 }
	# 	}
	# }

	option = {
		name = vat.40.a
		custom_effect_tooltip = vat_white_peace_with_ita

		hidden_effect = {
			white_peace = ITA
			
			PAP = { transfer_state = 157 }
			#complete_national_focus = VAT_first_win
			#country_event = { days = 2 id = vat.1 }
			#country_event = { days = 5 id = vat.2 }
			country_event = { days = 7 id = vat.12 }
			add_stability = -0.2
			add_popularity = {
				ideology = fascism
				popularity = 0.15
			}
			add_popularity = {
				ideology = communism
				popularity = 0.15
			}
			ITA = {
				country_event = {
					id = ita_vat.2
					days = 3
				}
				load_focus_tree = "generic_focus"
				add_ideas = VAT_disloyal_army
				delete_unit_template_and_units = {
					division_template = "Divisione di Fanteria"
					disband = yes #will refund equipment and manpower
				}
				delete_unit_template_and_units = {
					division_template = "Divisione Alpina"
					disband = no #will refund equipment and manpower
				}
				delete_unit_template_and_units = {
					division_template = "Camicie Nere"
					disband = no #will refund equipment and manpower
				}
				delete_unit_template_and_units = {
					division_template = "Divisione Celere"
					disband = no #will refund equipment and manpower
				}
				delete_unit_template_and_units = {
					division_template = "Reggimento di Cavalleria"
					disband = no #will refund equipment and manpower
				}
				delete_unit_template_and_units = {
					division_template = "Divisione Coloniale"
					disband = no #will refund equipment and manpower
				}
				delete_unit_template_and_units = {
					division_template = "Divisione Ascari Libica"
					disband = no #will refund equipment and manpower
				}
				delete_unit_template_and_units = {
					division_template = "Divisione Ascari Eritrea"
					disband = no #will refund equipment and manpower
				}
				delete_unit_template_and_units = {
					division_template = "Divisione Ascari Somala"
					disband = no #will refund equipment and manpower
				}
				delete_unit_template_and_units = {
					division_template = "Banda Indigena Irregolare"
					disband = no #will refund equipment and manpower
				}
				delete_unit_template_and_units = {
					division_template = "Truppe Irregolari a Cavallo"
					disband = no #will refund equipment and manpower
				}
				delete_unit_template_and_units = {
					division_template = "Banda Irregolare Libica"
					disband = no #will refund equipment and manpower
				}
				delete_unit_template_and_units = {
					division_template = "Banda Irregolare Eritrea"
					disband = no #will refund equipment and manpower
				}
				delete_unit_template_and_units = {
					division_template = "Banda Irregolare Somala"
					disband = no #will refund equipment and manpower
				}
				add_manpower = -100000
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = -15000
				}
				load_oob = "Italy_lost"
				country_lock_all_division_template = yes
			}
			news_event = vat_news.1
		}
	}
}

#Вопрос поддержки православных в войне с советами
country_event = {
	id = vat.41
	title = vat.41.t
	desc = vat.41.d
	picture = GFX_report_event_picture_orthodox_troops
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.41.a
	}
	option = {
		name = vat.41.b
		unlock_national_focus = VAT_connection_with_white_exiles
		add_popularity = {
			ideology = fascism
			popularity = 0.03
		}
		add_war_support = 0.05
	}
}

#Югославское восстание
country_event = {
	id = vat.42
	title = vat.42.t
	desc = vat.42.d
	picture = GFX_report_event_yugoslavia_partisans
	fire_only_once = yes
	#is_triggered_only = yes

	trigger = {
		check_variable = {
			yugoslavian_support_for_uprusing > 84
		}
	}
	
	option = {
		name = vat.42.a
		custom_effect_tooltip = vat_can_start_operation_in_yugoslavia_tt
		103 = {
			set_demilitarized_zone = yes
		}
		109 = {
			set_demilitarized_zone = yes
		}
		102 = {
			set_demilitarized_zone = yes
		}
		853 = {
			set_demilitarized_zone = yes
		}
	}
}

#Создание Иллирийской епархии
country_event = {
	id = vat.43
	title = vat.43.t
	desc = vat.43.d
	picture = GFX_report_event_picture_diocese_illyrian
	#is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = VAT
		CRO = {
			has_cosmetic_tag = CRO_VAT_uprusing
			NOT = {
				has_war_with = YUG
			}
		}
		YUG = {
			OR = {
				has_capitulated = yes
				exists = no
			}
		}
	}
	
	option = {
		name = vat.43.a
		hidden_effect = {
			CRO = { 
				remove_ideas = VAT_country_in_civil_war 
				if = {
					limit = {
						NOT = {
							is_subject_of = VAT
						}
					}
					VAT = {
						set_autonomy = {
							target = CRO
							autonomous_state = autonomy_vatican_diocese
							end_wars = no
							end_civil_wars = no
						}
						if = {
							limit = {
								VAT = {
									has_government = fascism
								}
							}
							set_politics = {
								ruling_party = neutrality
							}
							add_popularity = {
								ideology = neutrality
								popularity = 0.5
							}
						}
					}
				}
				set_cosmetic_tag = illyrian_VAT_diocese
				set_party_name = {
					ideology = neutrality
					long_name = diocese_administration_long
					name = diocese_administration
				}
				set_party_name = {
					ideology = democratic
					long_name = diocese_administration_long
					name = diocese_administration
				}
			}
		}
	}
}

#Протестантизм набираем популярность в обществе
country_event = {
	id = vat.44
	title = vat.44.t
	desc = vat.44.d
	picture = GFX_report_event_picture_rise_of_protestantism
	is_triggered_only = yes

	option = {
		name = vat.44.a
		if = {
			limit = { has_completed_focus = VAT_opposition_to_domination_of_Pope_in_politics }
			set_variable = {
				protestantism_power = 50
			}
		}
		else_if = {
			limit = { has_completed_focus = VAT_loyal_to_the_pope_vicars }
			set_variable = {
				protestantism_power = 80
			}
		}
		else = {
			set_variable = {
				protestantism_power = 65
			}
		}
		custom_effect_tooltip = vat_protestantism_power_tt
		hidden_effect = {
			VAT_init_protestantism_power = yes
		}
	}
}

### ПАПСКАЯ КОНСТИТУЦИЯ ###

#Начало определения ключевых моментов Конституции Папства
country_event = {
	id = vat.45
	title = vat.45.t
	desc = vat.45.d
	picture = GFX_report_event_hol_cabinet_gerbrandy
	is_triggered_only = yes

	option = {
		name = vat.45.a
		add_political_power = -25
		add_stability = 0.02
	}
}


#Вопрос распределения законодательной власти
country_event = {
	id = vat.46
	title = vat.46.t
	desc = vat.46.d
	picture = GFX_report_event_hol_cabinet_gerbrandy
	is_triggered_only = yes

	option = {
		name = vat.46.a
		add_to_variable = {
			var = papal_constitution_political_power_factor_var
			value = -0.03
			tooltip = papal_constitution_legislature_tt
		}
		add_to_variable = { papal_constitution_stability_factor_var = 0.03 }
		add_to_variable = { papal_constitution_industrial_concern_cost_factor_var = 0.07 }

		add_popularity = {
			ideology = democratic
			popularity = 0.03
		}
	}
}

#Вопрос распределения исполнительной власти
country_event = {
	id = vat.47
	title = vat.47.t
	desc = vat.47.d
	picture = GFX_report_event_hol_cabinet_gerbrandy
	is_triggered_only = yes

	option = {
		name = vat.47.a
		add_to_variable = {
			var = papal_constitution_political_power_factor_var
			value = 0.03
			tooltip = papal_constitution_executive_branch_pope_tt
		}
		add_to_variable = { papal_constitution_mic_to_overlord_factor_var = 0.05 }

		add_popularity = {
			ideology = neutrality
			popularity = 0.03
		}
	}

	option = {
		name = vat.47.b
		add_political_power = -50

		add_to_variable = {
			var = papal_constitution_political_power_factor_var
			value = -0.03
			tooltip = papal_constitution_executive_branch_curia_tt
		}
		add_to_variable = { papal_constitution_cic_to_overlord_factor_var = 0.05 }

		add_popularity = {
			ideology = democratic
			popularity = 0.03
		}
	}
}

#Вопрос распределения судебной власти
country_event = {
	id = vat.48
	title = vat.48.t
	desc = vat.48.d
	picture = GFX_report_event_hol_cabinet_gerbrandy
	is_triggered_only = yes

	option = {
		name = vat.48.a
		add_political_power = -25
		add_stability = -0.03

		add_to_variable = {
			var = papal_constitution_political_power_factor_var
			value = 0.03
			tooltip = papal_constitution_judicial_branch_pope_tt
		}
		add_to_variable = { papal_constitution_resistance_target_var = -0.03 }
		add_to_variable = { papal_constitution_political_advisor_cost_factor_var = -0.07 }

		add_popularity = {
			ideology = neutrality
			popularity = 0.03
		}
	}

	option = {
		name = vat.48.b
		add_political_power = -50

		add_to_variable = {
			var = papal_constitution_political_power_factor_var
			value = -0.03
			tooltip = papal_constitution_judicial_branch_curia_tt
		}
		add_to_variable = { papal_constitution_compliance_growth_var = 0.03 }
		add_to_variable = { papal_constitution_political_advisor_cost_factor_var = 0.07 }

		add_popularity = {
			ideology = democratic
			popularity = 0.05
		}
	}
}

#Формулировка роли религии
country_event = {
	id = vat.49
	title = vat.49.t
	desc = vat.49.d
	picture = GFX_report_event_hol_cabinet_gerbrandy
	is_triggered_only = yes

	option = {
		name = vat.49.a

		add_to_variable = {
			var = papal_constitution_political_power_factor_var
			value = 0.03
			tooltip = papal_constitution_formulation_of_role_of_religion_pope_tt
		}
		add_to_variable = { papal_constitution_war_support_factor_var = 0.03 }
		add_to_variable = { papal_constitution_monthly_population_var = -0.07 }
		
		add_popularity = {
			ideology = neutrality
			popularity = 0.03
		}
	}

	option = {
		name = vat.49.b
		add_war_support = -0.05

		add_to_variable = {
			var = papal_constitution_political_power_factor_var
			value = -0.03
			tooltip = papal_constitution_formulation_of_role_of_religion_curia_tt
		}
		add_to_variable = { papal_constitution_stability_factor_var = 0.03 }
		add_to_variable = { papal_constitution_monthly_population_var = 0.07 }

		add_popularity = {
			ideology = democratic
			popularity = 0.05
		}
	}
}

#Принятие Конституции Папства
country_event = {
	id = vat.50
	title = vat.50.t
	desc = vat.50.d
	picture = GFX_report_event_generic_sign_treaty1
	is_triggered_only = yes

	option = {
		name = vat.50.a
		add_dynamic_modifier = {
			modifier = VAT_papal_constitution
		}
	}
}

#Католический интегрализм набирает популярность среди верующих
country_event = {
	id = vat.51
	title = vat.51.t
	desc = vat.51.d
	picture = GFX_report_event_vatican_catholic_integralism
	is_triggered_only = yes

	option = {
		name = vat.51.a

		set_party_name = {
			ideology = fascism
			long_name = VAT_catholic_integralism_party_long
			name = VAT_catholic_integralism_party
		}
		add_popularity = {
			ideology = fascism
			popularity = 0.05
		}
		add_stability = -0.02

		set_country_flag = VAT_catholic_integralism_rised

		if = {
			limit = {
				NOT = {
					VAT_Conclave = { is_country_leader = yes }
					has_completed_focus = VAT_to_dismiss_the_pope_from_secular_life
				}
			}
			random_character = {
				limit = { is_country_leader = yes }
				promote_character = catholic_integralism
			}
		}
	}
}

#Заседания Римской Курии откладываются до выбора Папы Римского
country_event = {
	id = vat.52
	title = vat.52.t
	desc = vat.52.d
	picture = GFX_report_event_conclave_room
	is_triggered_only = yes

	option = {
		name = vat.52.a
		add_days_mission_timeout = {
			mission = VAT_curia_law_voting_mission
			days = 20
		}
	}
}

#Итальянская либеральная интелигенция поддерживает инициативы Римской Курии
country_event = {
	id = vat.53
	title = vat.53.t
	desc = vat.53.d
	picture = GFX_report_event_conclave_room
	is_triggered_only = yes

	option = {
		name = vat.53.a
		add_political_power = 35
		add_popularity = {
			ideology = democratic
			popularity = 0.03
		}
	}
}

#Отставка Государственного секретаря Святого Престола
country_event = {
	id = vat.54
	title = vat.54.t
	desc = vat.54.d
	picture = GFX_report_event_conclave_room
	is_triggered_only = yes
	
	option = {
		name = vat.54.a

		deactivate_advisor = VAT_Pius_XII
		activate_advisor = VAT_vacant_place
		set_variable = {
			current_secretary = VAT_vacant_place
		}
		set_variable = {
			current_traditionalist = VAT_vacant_place
		}
		set_country_flag = VAT_both_sides_reformists
		country_event = { id = vat.39 days = 8}
	}
}

#Проблема православия
country_event = {
	id = vat.55
	title = vat.55.t
	desc = vat.55.d
	picture = GFX_report_event_picture_great_schism

	fire_only_once = yes
	trigger = {
		tag = VAT
		any_state = {
			count = 4
			OR = {
				is_core_of = YUG #Специально оставил, так как во всех регионах Югославии достаточно православных
				is_core_of = GRE
				is_core_of = BUL
				is_core_of = ROM
				is_core_of = SOV
			}
			is_controlled_by = VAT
		}
	}
	
	option = {
		name = vat.55.a
		unlock_decision_category_tooltip = VAT_discussion_of_condition_union_category
		add_ideas = VAT_problem_of_orthodox
	}
}

#Оппозиция откладывает выдвижение законопроекта до выбора Папы Римского
country_event = {
	id = vat.56
	title = vat.56.t
	desc = vat.56.d
	picture = GFX_report_event_conclave_room
	is_triggered_only = yes

	option = {
		name = vat.56.a
		add_days_mission_timeout = {
			mission = VAT_curia_law_opposition_suggest
			days = 20
		}
	}
}

#Венгерская Епархия
country_event = {
	id = vat.57
	title = vat.57.t
	desc = vat.57.d
	picture = GFX_report_event_picture_diocese_hungarian
	#is_triggered_only = yes

	fire_only_once = yes
	trigger = {
		tag = VAT
		HUN = {
			has_civil_war = no
			has_cosmetic_tag = HUN_VAT_uprising
		}
	}

	option = {
		name = vat.57.a
		hidden_effect = {
			HUN = {
				if = {
					limit = {
						 has_government = neutrality
					}
					promote_character = {
						character = HUN_Justinian_Seredi
						ideology = constitutional_theocratic_monarchy
					}
				}
				else = {
					promote_character = {
						character = HUN_Justinian_Seredi
						ideology = papal_state
					}
				}
			}
		}
		set_autonomy = {
			target = HUN
			autonomy_state = autonomy_puppet
			end_wars = no
			end_civil_wars = no
		}
		hidden_effect = {
			HUN = {
				drop_cosmetic_tag = yes
				set_cosmetic_tag = HUN_VAT_diocese
				if = {
					limit = {
						VAT = {
							has_government = fascism
						}
					}
					set_politics = {
						ruling_party = neutrality
					}
					add_popularity = {
						ideology = neutrality
						popularity = 0.5
					}
				}
			}
		}
	}
}

#Мексиканская Епархия
country_event = {
	id = vat.58
	title = vat.58.t
	desc = vat.58.d
	picture = GFX_report_event_picture_diocese_mexican
	#is_triggered_only = yes

	fire_only_once = yes
	trigger = {
		tag = VAT
		MEX = {
			has_civil_war = no
			has_cosmetic_tag = MEX_VAT_uprising
		}
	}
	
	option = {
		name = vat.58.a
		hidden_effect = {
			MEX = {
				if = {
					limit = {
						MEX = { has_government = democratic }
					}
					promote_character = {
						character = MEX_luis_maria_martinez
						ideology = papal_state
					}
				}
				else = {
					promote_character = {
						character = MEX_luis_maria_martinez
						ideology = constitutional_theocratic_monarchy
					}
				}
				drop_cosmetic_tag = yes
				set_cosmetic_tag = MEX_VAT_diocese
				set_capital = { state = 277 }
			}
			set_autonomy = {
				target = MEX
				autonomy_state = autonomy_puppet
				end_wars = no
				end_civil_wars = no
			}
		}
	}
}

#Польская Епархия
# country_event = {
# 	id = vat.59
# 	title = vat.59.t
# 	desc = vat.59.d
# 	picture = GFX_report_event_picture_diocese_polish
# 	#is_triggered_only = yes

# 	fire_only_once = yes
# 	trigger = {
# 		tag = VAT
# 		POL = {
# 			has_civil_war = no
# 			has_cosmetic_tag = POL_VAT_uprising
# 		}
# 	}
	
# 	option = {
# 		name = vat.59.a
# 		hidden_effect = {
# 			POL = {
# 				if = {
# 					limit = {
# 						POL = { has_government = democratic }
# 					}
# 					promote_character = {
# 						character = POL_August_Hlond
# 						ideology = papal_state
# 					}
# 				}
# 				else = {
# 					promote_character = {
# 						character = POL_August_Hlond
# 						ideology = constitutional_theocratic_monarchy
# 					}
# 				}
# 				drop_cosmetic_tag = yes
# 				set_cosmetic_tag = POL_VAT_diocese
# 			}
# 			set_autonomy = {
# 				target = POL
# 				autonomy_state = autonomy_puppet
# 				end_wars = no
# 				end_civil_wars = no
# 			}
# 		}
# 	}
# }

#Название альянса
country_event = {
	id = vat.61
	title = vat.61.t
	desc = vat.61.d
	is_triggered_only = yes
	
	option = {
		name = vat.61.a #Священная лига
		create_faction = VAT_holy_league
	}
	option = {
		name = vat.61.b #Небесный конкордат
		create_faction = VAT_heavenly_concordat
	}
	option = {
		name = vat.61.c #Крестоносный пакт
		create_faction = VAT_crusader_pact
	}
	option = {
		name = vat.61.e #Альянс Христа
		create_faction = VAT_jesus_alliance
	}
	option = {
		name = vat.61.f #Переключить вариант
		country_event = vat.62
	}
}

country_event = {
	id = vat.62
	title = vat.61.t
	desc = vat.61.d
	is_triggered_only = yes
	
	option = {
		name = vat.62.a #Папская ось
		create_faction = VAT_papal_axis
	}
	option = {
		name = vat.62.b #Католический союз
		create_faction = VAT_catholic_union
	}
	option = {
		name = vat.62.c #Римский пакт
		create_faction = VAT_roman_pact
	}
	option = {
		name = vat.62.e #Христианский мир
		create_faction = VAT_christian_world
	}
	option = {
		name = vat.62.f #Переключить вариант
		country_event = vat.61
	}
}

#Переговоры с белыми изгнанниками
country_event = {
	id = vat.63
	title = vat.63.t
	desc = vat.63.d
	is_triggered_only = yes
	
	option = {
		name = vat.63.a 
		hidden_effect = {
			if = {
				limit = { has_idea = VAT_union_of_churchs }
				country_event = {
					id = vat.64
					days = 1
				}
			}
			else_if = {
				limit = {
					has_active_mission = VAT_discussion_of_condition_union_mission
				}
				random_list = {
					50 = {
						country_event = {
							id = vat.64
							days = 1
						}
					}
					50 = {
						country_event = {
							id = vat.65
							days = 1
						}
					}
				}
			}
			else = {
				country_event = {
					id = vat.65
					days = 1
				}
			}
		}
	}
}
country_event = {
	id = vat.64 #Согласие
	title = vat.64.t
	desc = vat.64.d
	is_triggered_only = yes
	
	option = {
		name = vat.64.a 
		set_country_flag = VAT_russian_white_movement_accepted
		add_war_support = 0.05
		custom_effect_tooltip = vat_unlock_operation_in_russia_tt
	}
}
country_event = {
	id = vat.65 #Отказ
	title = vat.65.t
	desc = vat.65.d
	is_triggered_only = yes
	
	option = {
		name = vat.65.a 
		add_political_power = -25
	}
}

#Угасание протестантизма
country_event = {
	id = vat.66
	title = vat.66.t
	desc = vat.66.d
	picture = GFX_report_event_counter_reformation
	fire_only_once = yes

	trigger = {
		tag = VAT
		has_dynamic_modifier = {
			modifier = VAT_protestantism_resistance
		}
		check_variable = {
			protestantism_power < 6
		}
	}
	
	option = {
		name = vat.66.a 
		add_political_power = 50
		add_war_support = 0.1
		remove_dynamic_modifier = {
			modifier = VAT_protestantism_resistance
		}
	}
}

#Соблюдение румынского компромисса
country_event = {
	id = vat.67
	title = vat.67.t
	desc = vat.67.d
	picture = GFX_report_event_picture_orsenigo_and_hitler
	fire_only_once = yes

	trigger = {
		tag = VAT
		any_country = {
			OR = {
				original_tag = VAT
				is_subject_of = VAT
			}
			owns_state = 46
			controls_state = 46
		}
		GER = {
			NOT = {
				has_resources_rights = {
					state = 46
				}
			}
			is_puppet = no
			is_in_faction_with = VAT
		}
	}
	
	option = {
		name = vat.67.a 
		give_resource_rights = {
			receiver = GER
			state = 46
		}
		add_to_variable = {
			var = vat_german_influence
			value = 3
			tooltip = vat_add_german_influence_3_tt
		}
		VAT_update_german_influence_var = yes
	}

	option = {
		name = vat.67.b
		add_to_variable = {
			var = vat_german_relations
			value = -20
			tooltip = vat_remove_german_relations_20_tt
		}
		VAT_update_german_relations_var = yes
	}
}

#Переговоры с генералами Вермахта
country_event = {
	id = vat.68
	title = vat.68.t
	desc = vat.68.d
	picture = GFX_report_event_ludwig_beck
	is_triggered_only = yes
	
	option = {
		name = vat.68.a 
	}
}

#Военный переворот в Германии
country_event = {
	id = vat.69
	title = vat.69.t
	desc = vat.69.d
	picture = GFX_report_event_ger_civil_war
	is_triggered_only = yes
	
	option = {
		name = vat.69.a 
		GER = {
			GER_oberste_heeresleitung_character = {
				add_country_leader_role = {
					country_leader = {
						expire = "1990.1.1"
						ideology = despotism
						traits = {
							GER_oberste_heeresleitung_trait				
						}
					}
					promote_leader = yes
				}
			}

			set_party_name = { 
				ideology = neutrality 
				long_name = GER_neutrality_party_military_dictatorship_long 
				name = GER_neutrality_party_military_dictatorship 
			}
			set_politics = {
				ruling_party = neutrality
			}
			hidden_effect = { 
				set_cosmetic_tag = GER_provisional_gvt 
				add_popularity = {
					ideology = neutrality
					popularity = 0.3
				}
				add_stability = -0.25
			}
		}
	}
}

#Конфрронтация с Рейхом
country_event = {
	id = vat.70
	title = vat.70.t
	desc = vat.70.d
	fire_only_once = yes

	trigger = {
		tag = VAT
		VAT = {
			has_war_with = GER
			has_completed_focus = VAT_in_the_wake_of_the_nazi_rood
			NOT = { has_completed_focus = VAT_sideways_look_at_hitler }
		}
	}
	
	option = {
		name = vat.70.a 
		uncomplete_national_focus = {
			focus = VAT_in_the_wake_of_the_nazi_rood
			uncomplete_children = yes
			refund_political_power = no
		}
		set_country_flag = VAT_germany_declined_alliance
		custom_effect_tooltip = odd_lock_germany
		set_variable = {
			vat_german_relations = 0
		}
		set_variable = {
			vat_german_influence = 0
		}
		VAT_update_german_relations_var = yes
		VAT_update_german_influence_var = yes
	}
}

#Отказ от военного вмешательства в Болгарию
country_event = {
	id = vat.71
	title = vat.71.t
	desc = vat.71.d
	fire_only_once = yes

	trigger = {
		tag = VAT
		VAT = {
			has_completed_focus = VAT_the_bulgarian_question
			has_wargoal_against = BUL
		}
		BUL = {
			is_in_faction_with = VAT
		}
	}
	
	option = {
		name = vat.71.a 
		custom_effect_tooltip = odd_unlock_germany_bulgaria_tt
	}
}

#Отказ от военного вмешательства в Румынию
country_event = {
	id = vat.72
	title = vat.72.t
	desc = vat.72.d
	fire_only_once = yes

	trigger = {
		tag = VAT
		VAT = {
			has_completed_focus = VAT_the_romanian_compromise
			has_wargoal_against = ROM
		}
		ROM = {
			is_in_faction_with = VAT
		}
	}
	
	option = {
		name = vat.72.a 
		custom_effect_tooltip = odd_unlock_germany_romania_tt
	}
}

#Отказ от военного вмешательства в Румынию или Болгарию (вызывается по фокусу)
country_event = {
	id = vat.73
	title = vat.73.t
	desc = vat.73.d
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.73.a 
		custom_effect_tooltip = odd_unlock_germany_bulgaria_tt
	}
}
country_event = {
	id = vat.74
	title = vat.74.t
	desc = vat.74.d
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.74.a 
		custom_effect_tooltip = odd_unlock_germany_romania_tt
	}
}

#Дисскусия о правах семитов
country_event = {
	id = vat.75
	title = vat.75.t
	desc = vat.75.d
	picture = GFX_report_event_conclave_room
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.75.a

		if = {
			limit = {
				has_country_flag = can_pass_laws_without_curia
			}
			add_ideas = vat_curia_law_idea_12
		}
		else = {
			set_temp_variable = {
				sl_v = 12
			}
			custom_effect_tooltip = vat_bill_law
			hidden_effect = {
				set_variable = {                 
					current_law = 12
				}
				set_variable = {
					current_law_pope_vote = 1
				}
				set_variable = {                
					current_law_secretary_vote = 1
				}
				set_variable = {                
					curia_law_vote_value = 30
				}
			}
			VAT_law_initialization = yes
		}
	}

	option = {
		name = vat.75.b
		add_stability = 0.03
		add_to_variable = {
			var = vat_german_relations
			value = -7
			tooltip = vat_remove_german_relations_7_tt
		}
		VAT_update_german_relations_var = yes
	}
}

#Генералы Вермахта
country_event = {
	id = vat.76
	title = vat.76.t
	desc = vat.76.d
	picture = GFX_report_event_ludwig_beck
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.76.a
		add_stability = -0.05
		add_war_support = -0.07
		add_command_power = -100
		GER = {
			GER_ludwig_beck = { set_nationality = ROOT }
			GER_werner_von_fritsch = { set_nationality = ROOT }
			GER_erwin_von_witzleben = { set_nationality = ROOT }
			GER_friedrich_paulus = { set_nationality = ROOT }
			GER_franz_halder = { set_nationality = ROOT }
			GER_walther_von_brauchitsch = { set_nationality = ROOT }
			GER_jurgen_von_blumenthal = { set_nationality = ROOT }
			GER_gunther_von_kluge = { set_nationality = ROOT }
		}
	}

	option = {
		name = vat.76.b
		add_command_power = -75
		GER = {
			GER_ludwig_beck = { set_nationality = ROOT }
			GER_erwin_von_witzleben = { set_nationality = ROOT }
			GER_friedrich_paulus = { set_nationality = ROOT }
			GER_franz_halder = { set_nationality = ROOT }
			GER_jurgen_von_blumenthal = { set_nationality = ROOT }
		}
	}
}

#Лояльные Папе государственные СМИ
country_event = {
	id = vat.77
	title = vat.77.t
	desc = vat.77.d
	picture = GFX_report_event_radar_01
	is_triggered_only = yes
	
	option = {
		name = vat.77.a 
		add_stability = 0.01
	}
}
country_event = {
	id = vat.78
	title = vat.78.t
	desc = vat.78.d
	picture = GFX_report_event_radar_01
	is_triggered_only = yes
	
	option = {
		name = vat.78.a
		add_popularity = {
			ideology = neutrality
			popularity = -0.03
		}
	}
}

# Расширение полномочий Папской Гвардии
country_event = {
	id = vat.79
	title = vat.79.t
	desc = vat.79.d
	picture = GFX_report_event_vatican_papal_guard 
	is_triggered_only = yes
	
	option = {
		name = vat.79.a 
		add_stability = 0.01
		add_political_power = 10
	}
}
country_event = {
	id = vat.80
	title = vat.80.t
	desc = vat.80.d
	picture = GFX_report_event_vatican_papal_guard
	is_triggered_only = yes
	
	option = {
		name = vat.80.a
		add_popularity = {
			ideology = democratic
			popularity = 0.02
		}
		add_popularity = {
			ideology = communism
			popularity = 0.01
		}
	}
}

# Приоритет на крупную промышленность
country_event = {
	id = vat.81
	title = vat.81.t
	desc = vat.81.d
	picture = GFX_report_event_vatican_torino_industry
	is_triggered_only = yes
	
	option = {
		name = vat.81.a 
		random_owned_controlled_state = {
			prioritize = { 158 }
			limit = {
				is_core_of = VAT
				free_building_slots = {
					building = arms_factory
					size > 0
				}
			}
			add_building_construction = {
				type = arms_factory
				level = 1
			}
		}
	}
}
country_event = {
	id = vat.82
	title = vat.82.t
	desc = vat.82.d
	picture = GFX_report_event_vatican_torino_industry
	is_triggered_only = yes
	
	option = {
		name = vat.82.a 
		random_owned_controlled_state = {
			prioritize = { 161 }
			add_dynamic_modifier = { modifier = VAT_industrial_pollution } 
		}
	}
}

# Ограничение прав семитов
country_event = {
	id = vat.83
	title = vat.83.t
	desc = vat.83.d
	picture = GFX_report_event_vatican_italian_market
	is_triggered_only = yes
	
	option = {
		name = vat.83.a 
		random_owned_controlled_state = {
			prioritize = { 2 }
			limit = { infrastructure < 5 }
			add_building_construction = {
				type = infrastructure
				level = 1
			}
		}
	}
}
country_event = {
	id = vat.84
	title = vat.84.t
	desc = vat.84.d
	picture = GFX_report_event_vatican_sinagoga
	is_triggered_only = yes
	
	option = {
		name = vat.84.a 
		162 = {
			remove_building = {
				type = infrastructure
				level = 1
			}
		}
	}
}

# Приватизация государственных СМИ
country_event = {
	id = vat.85
	title = vat.85.t
	desc = vat.85.d
	picture = GFX_report_event_vatican_radio_station
	is_triggered_only = yes
	
	option = {
		name = vat.85.a 
		add_popularity = {
			ideology = democratic
			popularity = 0.02
		}
	}
}
country_event = {
	id = vat.86
	title = vat.86.t
	desc = vat.86.d
	picture = GFX_report_event_vatican_radio_station
	is_triggered_only = yes
	
	option = {
		name = vat.86.a 
		add_popularity = {
			ideology = democratic
			popularity = -0.03
		}
	}
}

# Создание папской полиции
country_event = {
	id = vat.87
	title = vat.87.t
	desc = vat.87.d
	picture = GFX_report_event_vatican_papal_police
	is_triggered_only = yes
	
	option = {
		name = vat.87.a 
		add_stability = 0.02
	}
}
country_event = {
	id = vat.88
	title = vat.88.t
	desc = vat.88.d
	picture = GFX_report_event_vatican_papal_police
	is_triggered_only = yes
	
	option = {
		name = vat.88.a 
		add_stability = -0.01
	}
}

# Приоритет на среднее предпринимательство
country_event = {
	id = vat.89
	title = vat.89.t
	desc = vat.89.d
	picture = GFX_report_event_vatican_small_shop
	is_triggered_only = yes
	
	option = {
		name = vat.89.a 
		random_owned_controlled_state = {
			prioritize = { 162 }
			limit = {
				is_core_of = VAT
				free_building_slots = {
					building = industrial_complex
					size > 0
				}
			}
			add_building_construction = {
				type = industrial_complex
				level = 1
			}
		}
	}
}
country_event = {
	id = vat.90
	title = vat.90.t
	desc = vat.90.d
	picture = GFX_report_event_vatican_small_shop
	is_triggered_only = yes
	
	option = {
		name = vat.90.a 
		random_owned_controlled_state = {
			prioritize = { 158 }
			limit = {
				arms_factory > 0
			}
			remove_building = {
				type = arms_factory
				level = 1
			}
		}
	}
}

# Упразднение светских школ (общий закон) — один нейтральный ивент
country_event = {
	id = vat.91
	title = vat.91.t
	desc = vat.91.d
	picture = GFX_report_event_picture_propaganda_among_believers
	is_triggered_only = yes
	
	option = {
		name = vat.91.a 
		add_war_support = 0.02
	}
}

# Дефашизация Италии (общий закон) — один нейтральный ивент
country_event = {
	id = vat.92
	title = vat.92.t
	desc = vat.92.d
	picture = GFX_report_event_vatican_end_of_mussolini
	is_triggered_only = yes
	
	option = {
		name = vat.92.a 
		add_political_power = 15
		add_stability = -0.01
		add_popularity = {
			ideology = fascism
			popularity = -0.03
		}
	}
}

# Финальный закон традиционалистов
country_event = {
	id = vat.93
	title = vat.93.t
	desc = vat.93.d
	picture = GFX_report_event_vatican_rome_traditionalists
	is_triggered_only = yes
	
	option = {
		name = vat.93.a 
		add_stability = 0.03
	}
}

# Финальный закон реформистов
country_event = {
	id = vat.94
	title = vat.94.t
	desc = vat.94.d
	picture = GFX_report_event_vatican_rome_reformists
	is_triggered_only = yes
	
	option = {
		name = vat.94.a 
		add_political_power = 25
	}
}

# Новые купола
country_event = {
	id = vat.95 
	title = vat.95.t 
	desc = vat.95.d 
	picture = GFX_report_event_vatican_church
	is_triggered_only = yes
	
	option = {
		name = vat.95.a  
		random_owned_controlled_state = {
			prioritize = { 161 }
			limit = { infrastructure < 5 }
			add_building_construction = {
				type = infrastructure
				level = 1
			}
		}
	}
}

# Собрание по вечерам
country_event = {
	id = vat.96 
	title = vat.96.t 
	desc = vat.96.d 
	picture = GFX_report_event_vatican_young_people_meeting
	is_triggered_only = yes
	
	option = {
		name = vat.96.a  
		add_war_support = 0.05
	}
}

# Демобилизация ополчения
country_event = {
	id = vat.97 
	title = vat.97.t 
	desc = vat.97.d 
	picture = GFX_report_event_vatican_papal_guard
	is_triggered_only = yes
	
	option = {
		name = vat.97.a  
		add_war_support = 0.05
		add_stability = -0.02
	}
}

# Возвращение Святой Инквизиции
country_event = {
	id = vat.98 
	title = vat.98.t 
	desc = vat.98.d 
	picture = GFX_report_event_vatican_papal_guard
	is_triggered_only = yes
	
	option = {
		name = vat.98.a  
		add_political_power = 15
	}
}

# Мы всё видим, мы всё слышим, мы всё знаем (Occhio di Dio)
country_event = {
	id = vat.99 
	title = vat.99.t 
	desc = vat.99.d 
	picture = GFX_report_event_vatican_rome_traditionalists
	is_triggered_only = yes
	
	option = {
		name = vat.99.a  
		add_political_power = 25
		add_stability = 0.05
	}
}

#Угасающий отец
country_event = {
	id = vat.100
	title = vat.100.t
	desc = vat.100.d
	picture = GFX_report_event_pius_xi
	fire_only_once = yes
	
	trigger = {
		date > 1938.11.20
	}
	
	option = {
		name = vat.100.a 
		add_stability = -0.03
		add_country_leader_trait = vat_dying_pope
	}
}

# Vox Latina
country_event = {
	id = vat.101 
	title = vat.101.t 
	desc = vat.101.d 
	picture = GFX_report_event_picture_propaganda_among_believers
	is_triggered_only = yes
	
	option = {
		name = vat.101.a 
		add_political_power = 15
		add_stability = 0.02
	}
}

# Homo Christianus
country_event = {
	id = vat.102 
	title = vat.102.t 
	desc = vat.102.d 
	picture = GFX_report_event_vatican_christian_people
	is_triggered_only = yes
	
	option = {
		name = vat.102.a  
		add_war_support = 0.05
	}
}

# Восстановление городов Италии
country_event = {
	id = vat.103 
	title = vat.103.t 
	desc = vat.103.d 
	picture = GFX_report_event_vatican_end_of_mussolini
	is_triggered_only = yes
	
	option = {
		name = vat.103.a  
		random_owned_controlled_state = {
			prioritize = { 159 }
			limit = { infrastructure < 5 }
			add_building_construction = {
				type = infrastructure
				level = 1
			}
		}
	}
}

# Доминирование Святого Престола
country_event = {
	id = vat.104 
	title = vat.104.t 
	desc = vat.104.d 
	picture = GFX_report_event_vatican_rome_reformists
	is_triggered_only = yes
	
	option = {
		name = vat.104.a  
		add_stability = 0.07
	}
}

#Папские интересы в Хорватии (напоминание для игрока про существование решений за подчинение союзников)
country_event = {
	id = vat.105
	title = vat.105.t 
	desc = vat.105.d 
	fire_only_once = yes
	
	trigger = {
		CRO = {
			is_in_faction_with = VAT
			is_in_faction_with = GER

			is_puppet = no
			has_capitulated = no
			is_major = no
		}
	}
	
	option = {
		name = vat.105.a  
		custom_effect_tooltip = vat_papal_interests_in_croatia_tt
	}
}

#Восхождение католического интегрализма
country_event = {
	id = vat.106
	title = vat.106.t
	desc = vat.106.d
	picture = GFX_report_event_vatican_catholic_integralism
	is_triggered_only = yes
	
	option = {
		name = vat.106.a
		
		custom_effect_tooltip = vat_add_half_of_neutrality_popularity_to_fascism_tt
		set_temp_variable = {
			popularity_var = party_popularity@neutrality
		}
		divide_temp_variable = {
			popularity_var = 2
		}
		add_popularity = {
			ideology = fascism
			popularity = popularity_var
		}

		set_politics = {
			ruling_party = fascism
		}

		set_country_leader_portrait = {
			portrait = GFX_portrait_VAT_Adrian_VII_sunglasses
			ideology = fascism
		}

		hidden_effect = {
			if = {
				limit = { has_completed_focus = VAT_the_christian_empire }
				set_cosmetic_tag = VAT_christian_empire_fascism
			}
		}

		if = {
			limit = { has_idea = VAT_devotion_to_religion_to_god_and_the_pope_idea }
			swap_ideas = {
				remove_idea = VAT_devotion_to_religion_to_god_and_the_pope_idea
				add_idea = VAT_devotion_to_religion_to_god_and_the_pope_idea_fascism
			}
		}

		if = {
			limit = { has_idea = vat_curia_law_idea_5 }
			swap_ideas = {
				remove_idea = vat_curia_law_idea_5
				add_idea = vat_curia_law_idea_5_fascism
			}
		}
		else_if = {
			limit = { has_idea = vat_curia_law_idea_5_1 }
			swap_ideas = {
				remove_idea = vat_curia_law_idea_5_1
				add_idea = vat_curia_law_idea_5_1_fascism
			}
		}

		set_variable = {
			propaganda_fascism_drift_var = propaganda_neutrality_drift_var
		}
		set_variable = {
			propaganda_neutrality_drift_var = 0
		}
	}

	option = {
		name = vat.104.a
		add_stability = 0.05
	}
}

#Королевская сделка
country_event = {
	id = vat.107
	title = vat.107.t
	desc = vat.107.d
	picture = report_event_picture_victor_emanuel
	fire_only_once = yes
	
	trigger = {
		tag = VAT
		VAT = {
			has_war_with = SPM
			has_full_control_of_state = 158
		}
	}
	
	option = {
		name = vat.107.a
		add_political_power = -75
		add_war_support = 0.07

		hidden_effect = {
			white_peace = SPM
			transfer_units_fraction = {
				target = VAT
				navy_ratio = 1
			}
			# delete_unit_template_and_units = {
			# 	division_template = "Marine Militia"
			# 	disband = no #will refund equipment and manpower
			# }
			add_equipment_to_stockpile = {
				type = infantry_equipment_1
				amount = 1500
				producer = ITA
			}
			add_equipment_to_stockpile = {
				type = support_equipment
				amount = 100
				producer = ITA
			}
			add_equipment_to_stockpile = {
				type = artillery_equipment
				amount = 75
				producer = ITA
			}
			add_popularity = {
				ideology = communism
				popularity = 0.03
			}
			add_popularity = {
				ideology = fascism
				popularity = 0.03
			}
		}
		annex_country = {
			target = SPM
			transfer_troops = no
		}
		add_timed_idea = {
			idea = VAT_vittorio_emanuele
			days = 360
		}
	}

	option = {
		name = vat.107.a
		add_political_power = 50
		add_stability = -0.03
	}
}

country_event = {
	id = vat.108
	hidden = yes
	fire_only_once = yes

	trigger = {
		tag = VAT
		ITA = { surrender_progress > 0.5 }
		PAP = { exists = yes }
		has_completed_focus = VAT_bet_on_ideological_disagreements
	}

	option = {
		country_event = vat.40
	}
}

#Востание селян на юге Италии
country_event = {
	id = vat.109
	title = vat.109.t
	desc = vat.109.d
	picture = GFX_report_event_spr_anarchist_uprising
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.109.a
		set_province_controller = 11803
		set_province_controller = 883
		set_province_controller = 6972
		set_province_controller = 3958
		set_province_controller = 6980
		set_province_controller = 6843
		set_province_controller = 9784
		117 = {
			create_unit = {
				division = "name = \"Divisione della Guardia Interna\" division_template = \"Divisione della Guardia Interna\" start_experience_factor = 0.5"
				owner = VAT
				count = 3
				allow_spawning_on_enemy_provs = no
			}
		}
		849 = {
			create_unit = {
				division = "name = \"Divisione della Guardia Interna\" division_template = \"Divisione della Guardia Interna\" start_experience_factor = 0.5"
				owner = VAT
				count = 5
				allow_spawning_on_enemy_provs = no
			}
		}
	}	
}

#Эпоха Пиев (историческая справка)
country_event = {
	id = vat.110
	title = vat.110.t
	desc = vat.110.d
	picture = GFX_report_event_pius_xi
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.110.a
	}	
}

#Глава Иерусалимской епархии
country_event = {
	id = vat.111
	title = vat.111.t
	desc = vat.111.d
	picture = GFX_report_event_picture_diocese_jerusalem
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = vat.111.a
		
	}

	option = {
		name = vat.111.b
		custom_effect_tooltip = head_of_malta_will_lead_jerusalem_tt
		hidden_effect = {
			CEA = {
				set_nationality = {
					target_country = PAL
					character = PAL_Ludovico_Chigi
				}
			}
			PAL = {
				set_cosmetic_tag = PAL_jerusalem_kingdom
				set_party_name = {
					ideology = neutrality
					long_name = vat_order_of_malta_long
					name = vat_order_of_malta
				}
				set_party_name = {
					ideology = democratic
					long_name = vat_order_of_malta_long
					name = vat_order_of_malta
				}
				promote_character = {
					character = PAL_Ludovico_Chigi
					ideology = papal_state
				}
				promote_character = {
					character = PAL_Ludovico_Chigi
					ideology = constitutional_theocratic_monarchy
				}
			}
		}
	}
}

# #Король Иерусалима 
# country_event = {
# 	id = vat.112
# 	title = vat.112.t
# 	desc = vat.112.d
# 	picture = GFX_report_event_picture_diocese_jerusalem
# 	fire_only_once = yes
# 	is_triggered_only = yes
	
# 	option = {
# 		name = vat.112.a
		
# 	}

# 	option = {
# 		name = vat.112.b
# 		custom_effect_tooltip = head_of_malta_will_lead_jerusalem_tt
# 		hidden_effect = {
# 			CEA = {
# 				set_nationality = {
# 					target_country = PAL
# 					character = PAL_Ludovico_Chigi
# 				}
# 			}
# 			PAL = {
# 				set_cosmetic_tag = PAL_jerusalem_kingdom
# 				set_party_name = {
# 					ideology = neutrality
# 					long_name = vat_order_of_malta_long
# 					name = vat_order_of_malta
# 				}
# 				set_party_name = {
# 					ideology = democratic
# 					long_name = vat_order_of_malta_long
# 					name = vat_order_of_malta
# 				}
# 				promote_character = {
# 					character = PAL_Ludovico_Chigi
# 					ideology = papal_state
# 				}
# 				promote_character = {
# 					character = PAL_Ludovico_Chigi
# 					ideology = constitutional_theocratic_monarchy
# 				}
# 			}
# 		}
# 	}
# }


#ВТОРОЙ ВАТИКАНСКИЙ СОБОР
add_namespace = vat_second_council

#Вопрос о философии
country_event = {
	id = vat_second_council.1
	title = vat_second_council.1.t
	desc = vat_second_council.1.d
	picture = GFX_report_event_picture_second_vatican_council
	is_triggered_only = yes

	option = {
		name = vat_second_council.1.a
		add_to_variable = {
			var = VAT_union_catholics_acceptance_var
			value = 5
			tooltip = VAT_union_catholics_acceptance_5_tt
		}
		add_to_variable = {
			var = VAT_union_orthodox_acceptance_var
			value = -5
			tooltip = VAT_union_orthodox_unacceptance_5_tt
		}
	}
	option = {
		name = vat_second_council.1.b
		add_to_variable = {
			var = VAT_union_catholics_acceptance_var
			value = -5
			tooltip = VAT_union_catholics_unacceptance_5_tt
		}
		add_to_variable = {
			var = VAT_union_orthodox_acceptance_var
			value = 5
			tooltip = VAT_union_orthodox_acceptance_5_tt
		}
		add_war_support = -0.05
	}
	option = {
		name = vat_second_council.1.c
		add_to_variable = {
			var = VAT_union_catholics_acceptance_var
			value = 5
			tooltip = VAT_union_catholics_acceptance_5_tt
		}
		add_to_variable = {
			var = VAT_union_orthodox_acceptance_var
			value = 5
			tooltip = VAT_union_orthodox_acceptance_5_tt
		}
		add_days_mission_timeout = {
			mission = VAT_discussion_of_condition_union_mission
			days = 40
		}
		add_political_power = -50
	}
}

#Литургия и обряды
country_event = {
	id = vat_second_council.2
	title = vat_second_council.2.t
	desc = vat_second_council.2.d
	picture = GFX_report_event_picture_second_vatican_council
	is_triggered_only = yes

	option = {
		name = vat_second_council.2.a
		add_to_variable = {
			var = VAT_union_catholics_acceptance_var
			value = 5
			tooltip = VAT_union_catholics_acceptance_5_tt
		}
		add_to_variable = {
			var = VAT_union_orthodox_acceptance_var
			value = -5
			tooltip = VAT_union_orthodox_unacceptance_5_tt
		}
		clamp_variable = {
			var = VAT_union_orthodox_acceptance_var
			min = -50
			max = 100
		}
		clamp_variable = {
			var = VAT_union_catholics_acceptance_var
			min = -50
			max = 100
		}
	}
	option = {
		name = vat_second_council.2.b
		add_to_variable = {
			var = VAT_union_catholics_acceptance_var
			value = -10
			tooltip = VAT_union_catholics_unacceptance_10_tt
		}
		add_to_variable = {
			var = VAT_union_orthodox_acceptance_var
			value = 5
			tooltip = VAT_union_orthodox_acceptance_5_tt
		}
		add_war_support = -0.05
		clamp_variable = {
			var = VAT_union_orthodox_acceptance_var
			min = -50
			max = 100
		}
		clamp_variable = {
			var = VAT_union_catholics_acceptance_var
			min = -50
			max = 100
		}
	}
	option = {
		name = vat_second_council.2.c
		add_to_variable = {
			var = VAT_union_catholics_acceptance_var
			value = 5
			tooltip = VAT_union_catholics_acceptance_5_tt
		}
		add_to_variable = {
			var = VAT_union_orthodox_acceptance_var
			value = 5
			tooltip = VAT_union_orthodox_acceptance_5_tt
		}
		add_days_mission_timeout = {
			mission = VAT_discussion_of_condition_union_mission
			days = 50
		}
		add_political_power = -50
		clamp_variable = {
			var = VAT_union_orthodox_acceptance_var
			min = -50
			max = 100
		}
		clamp_variable = {
			var = VAT_union_catholics_acceptance_var
			min = -50
			max = 100
		}
	}
}

#Теологические концепции
country_event = {
	id = vat_second_council.3
	title = vat_second_council.3.t
	desc = vat_second_council.3.d
	picture = GFX_report_event_picture_second_vatican_council
	is_triggered_only = yes

	option = {
		name = vat_second_council.3.a
		add_to_variable = {
			var = VAT_union_catholics_acceptance_var
			value = 5
			tooltip = VAT_union_catholics_acceptance_5_tt
		}
		add_to_variable = {
			var = VAT_union_orthodox_acceptance_var
			value = -5
			tooltip = VAT_union_orthodox_unacceptance_5_tt
		}
		clamp_variable = {
			var = VAT_union_orthodox_acceptance_var
			min = -50
			max = 100
		}
		clamp_variable = {
			var = VAT_union_catholics_acceptance_var
			min = -50
			max = 100
		}
	}
	option = {
		name = vat_second_council.3.b
		add_to_variable = {
			var = VAT_union_catholics_acceptance_var
			value = -10
			tooltip = VAT_union_catholics_unacceptance_10_tt
		}
		add_to_variable = {
			var = VAT_union_orthodox_acceptance_var
			value = 5
			tooltip = VAT_union_orthodox_acceptance_5_tt
		}
		add_war_support = -0.05
		clamp_variable = {
			var = VAT_union_orthodox_acceptance_var
			min = -50
			max = 100
		}
		clamp_variable = {
			var = VAT_union_catholics_acceptance_var
			min = -50
			max = 100
		}
	}
	option = {
		name = vat_second_council.3.c
		add_to_variable = {
			var = VAT_union_catholics_acceptance_var
			value = 5
			tooltip = VAT_union_catholics_acceptance_5_tt
		}
		add_to_variable = {
			var = VAT_union_orthodox_acceptance_var
			value = 5
			tooltip = VAT_union_orthodox_acceptance_5_tt
		}
		add_days_mission_timeout = {
			mission = VAT_discussion_of_condition_union_mission
			days = 50
		}
		add_political_power = -50
		clamp_variable = {
			var = VAT_union_orthodox_acceptance_var
			min = -50
			max = 100
		}
		clamp_variable = {
			var = VAT_union_catholics_acceptance_var
			min = -50
			max = 100
		}
	}
}

#Филиокве
country_event = {
	id = vat_second_council.4
	title = vat_second_council.4.t
	desc = vat_second_council.4.d
	picture = GFX_report_event_picture_second_vatican_council
	is_triggered_only = yes

	option = {
		name = vat_second_council.4.a
		add_to_variable = {
			var = VAT_union_catholics_acceptance_var
			value = 10
			tooltip = VAT_union_catholics_acceptance_10_tt
		}
		add_to_variable = {
			var = VAT_union_orthodox_acceptance_var
			value = -10
			tooltip = VAT_union_orthodox_unacceptance_10_tt
		}
		clamp_variable = {
			var = VAT_union_orthodox_acceptance_var
			min = -50
			max = 100
		}
		clamp_variable = {
			var = VAT_union_catholics_acceptance_var
			min = -50
			max = 100
		}
	}
	option = {
		name = vat_second_council.4.b
		add_to_variable = {
			var = VAT_union_catholics_acceptance_var
			value = -10
			tooltip = VAT_union_catholics_unacceptance_10_tt
		}
		add_to_variable = {
			var = VAT_union_orthodox_acceptance_var
			value = 10
			tooltip = VAT_union_orthodox_acceptance_10_tt
		}
		add_war_support = -0.05
		clamp_variable = {
			var = VAT_union_orthodox_acceptance_var
			min = -50
			max = 100
		}
		clamp_variable = {
			var = VAT_union_catholics_acceptance_var
			min = -50
			max = 100
		}
	}
	# option = {
	# 	name = vat_second_council.4.c
	# 	add_to_variable = {
	# 		var = VAT_union_catholics_acceptance_var
	# 		value = 5
	# 		tooltip = VAT_union_catholics_acceptance_5_tt
	# 	}
	# 	add_to_variable = {
	# 		var = VAT_union_orthodox_acceptance_var
	# 		value = 5
	# 		tooltip = VAT_union_orthodox_acceptance_5_tt
	# 	}
	# 	add_days_mission_timeout = {
	# 		mission = VAT_discussion_of_condition_union_mission
	# 		days = 40
	# 	}
	# 	add_political_power = -30
	# 	clamp_variable = {
	# 		var = VAT_union_orthodox_acceptance_var
	# 		min = -50
	# 		max = 100
	# 	}
	# 	clamp_variable = {
	# 		var = VAT_union_catholics_acceptance_var
	# 		min = -50
	# 		max = 100
	# 	}
	# }
}

#Главенство церкви
country_event = {
	id = vat_second_council.5
	title = vat_second_council.5.t
	desc = vat_second_council.5.d
	picture = GFX_report_event_picture_second_vatican_council
	is_triggered_only = yes

	option = {
		name = vat_second_council.5.a
		add_to_variable = {
			var = VAT_union_catholics_acceptance_var
			value = 10
			tooltip = VAT_union_catholics_acceptance_10_tt
		}
		add_to_variable = {
			var = VAT_union_orthodox_acceptance_var
			value = -15
			tooltip = VAT_union_orthodox_unacceptance_15_tt
		}
		add_political_power = 75
		add_popularity = {
			ideology = neutrality
			popularity = 0.07
		}
		clamp_variable = {
			var = VAT_union_orthodox_acceptance_var
			min = -50
			max = 100
		}
		clamp_variable = {
			var = VAT_union_catholics_acceptance_var
			min = -50
			max = 100
		}
	}
	option = {
		name = vat_second_council.5.b
		add_to_variable = {
			var = VAT_union_catholics_acceptance_var
			value = -15
			tooltip = VAT_union_catholics_unacceptance_15_tt
		}
		add_to_variable = {
			var = VAT_union_orthodox_acceptance_var
			value = 10
			tooltip = VAT_union_orthodox_acceptance_10_tt
		}
		add_war_support = -0.07
		add_political_power = -75
		add_popularity = {
			ideology = democratic
			popularity = 0.07
		}
		clamp_variable = {
			var = VAT_union_orthodox_acceptance_var
			min = -50
			max = 100
		}
		clamp_variable = {
			var = VAT_union_catholics_acceptance_var
			min = -50
			max = 100
		}
	}
	option = {
		name = vat_second_council.5.c
		add_to_variable = {
			var = VAT_union_catholics_acceptance_var
			value = -5
			tooltip = VAT_union_catholics_unacceptance_5_tt
		}
		add_to_variable = {
			var = VAT_union_orthodox_acceptance_var
			value = 5
			tooltip = VAT_union_orthodox_acceptance_5_tt
		}
		add_days_mission_timeout = {
			mission = VAT_discussion_of_condition_union_mission
			days = 70
		}
		add_political_power = -50
		add_popularity = {
			ideology = democratic
			popularity = 0.03
		}
		clamp_variable = {
			var = VAT_union_orthodox_acceptance_var
			min = -50
			max = 100
		}
		clamp_variable = {
			var = VAT_union_catholics_acceptance_var
			min = -50
			max = 100
		}
	}
}

#Провал подписания церковной унии
country_event = {
	id = vat_second_council.6
	title = vat_second_council.6.t
	#desc = vat_second_council.6.d
	desc = {
		text = vat_second_council.6.t.c
		trigger = {
			check_variable = { VAT_union_catholics_acceptance_var < -25 }
		}
	}
	desc = {
		text = vat_second_council.6.t.o
		trigger = {
			check_variable = { VAT_union_orthodox_acceptance_var < -25 }
		}
	}
	picture = GFX_report_event_conclave_room
	is_triggered_only = yes

	option = {
		name = vat_second_council.6.a
		add_political_power = -50
		add_stability = -0.1
		add_popularity = {
			ideology = neutrality
			popularity = -0.05
		}
		set_country_flag = VAT_union_catholics_unaccepted
	}
}

#Церковная уния готова к подписанию
country_event = {
	id = vat_second_council.7
	title = vat_second_council.7.t
	desc = vat_second_council.7.d
	picture = GFX_report_event_conclave_room
	is_triggered_only = yes

	option = {
		name = vat_second_council.7.a
		custom_effect_tooltip = agreement_of_union_ready_for_signing_tt
		effect_tooltip = {
			unlock_national_focus = VAT_union_of_the_churchs
		}
	}
}


### РАНДОМНЫЕ ИВЕНТЫ ###
add_namespace = vat_random

#ВОССТАНИЕ В РИМЕ
country_event = {
	id = vat_random.1 #Выступление пропапских сторонников в Риме
	title = vat_random.1.t
	desc = vat_random.1.d
	picture = GFX_report_event_picture_conspiracy_among_the_priests
	is_triggered_only = yes

	option = {
		name = vat_random.1.a
		add_war_support = 0.05
		add_political_power = 15
		custom_effect_tooltip = add_5_support_uprising_tt
		add_to_variable = { support_for_the_uprising = 5 } 
		clamp_variable = {
			var = support_for_the_uprising
			min = 0
			max = 100
		}
	}
}

country_event = {
	id = vat_random.2 #Пропапские идеи набирают популярность в СМИ
	title = vat_random.2.t
	desc = vat_random.2.d
	picture = GFX_report_event_NOR_quisling_speech
	is_triggered_only = yes

	option = {
		name = vat_random.2.a
		add_political_power = 10
		add_popularity = {
			ideology = neutrality
			popularity = 0.03
		}
		custom_effect_tooltip = add_5_support_uprising_tt
		add_to_variable = { support_for_the_uprising = 5 } 
		clamp_variable = {
			var = support_for_the_uprising
			min = 0
			max = 100
		}
	}
}

country_event = {
	id = vat_random.3 #Арест римского священника
	title = vat_random.3.t
	desc = vat_random.3.d
	picture = GFX_report_event_SOV_purge_administration
	is_triggered_only = yes

	option = {
		name = vat_random.3.a
		add_war_support = -0.05
		add_political_power = -10
		custom_effect_tooltip = remove_5_support_uprising_tt
		add_to_variable = { support_for_the_uprising = -5 } 
		clamp_variable = {
			var = support_for_the_uprising
			min = 0
			max = 100
		}
	}
}

country_event = {
	id = vat_random.4 #Ультраправые пропагандисты проводят свою повестку в СМИ
	title = vat_random.4.t
	desc = vat_random.4.d
	picture = GFX_report_event_fascist_speech
	is_triggered_only = yes

	option = {
		name = vat_random.4.a
		add_political_power = -5
		add_popularity = {
			ideology = fascism
			popularity = 0.03
		}
		custom_effect_tooltip = remove_5_support_uprising_tt
		add_to_variable = { support_for_the_uprising = -5 } 
		clamp_variable = {
			var = support_for_the_uprising
			min = 0
			max = 100
		}
	}
}

country_event = {
	id = vat_random.5 #HIDDEN FOR LEFT OPPOSITION
	is_triggered_only = yes
	hidden = yes

	option = {
		if = {
			limit = {
				check_variable = {
					support_for_the_uprising = 100
				}
			}
		}
		else = {
			random_list = {
				20 = {
					country_event = vat_random.1
				}
				20 = {
					country_event = vat_random.2
				}
				30 = {
					country_event = vat_random.3
				}
				30 = {
					country_event = vat_random.4
				}
			}
		}
	}
}



#ПРАВЫЕ СИЛЫ
country_event = {
	id = vat_random.6 #Раскрыта подпольная ячейка фашистов
	title = vat_random.6.t
	desc = vat_random.6.d
	picture = GFX_report_event_generic_strike
	is_triggered_only = yes

	option = {
		name = vat_random.6.a
		add_to_variable = { var = right_opposition_power value = -5 tooltip = right_opposition_power}
		add_popularity = {
			ideology = fascism
			popularity = -0.03
		}
		hidden_effect = {
			VAT_right_opposition_swap_idea = yes
		}
	}
}

country_event = {
	id = vat_random.7 #Усиление влияния ультраправых СМИ
	title = vat_random.7.t
	desc = vat_random.7.d
	picture = GFX_report_event_generic_rally2
	is_triggered_only = yes

	option = {
		name = vat_random.7.a
		add_political_power = -25
		add_to_variable = { var = right_opposition_power value = 5 tooltip = right_opposition_power}
		add_popularity = {
			ideology = fascism
			popularity = 0.03
		}
		hidden_effect = {
			VAT_right_opposition_swap_idea = yes
		}
	}
}

country_event = {
	id = vat_random.8 #Ультраправые радикалы устроили налёт на промышленное предприятие
	title = vat_random.8.t
	desc = vat_random.8.d
	picture = GFX_report_event_generic_ruins
	is_triggered_only = yes

	option = {
		name = vat_random.8.a
		add_to_variable = { var = right_opposition_power value = 5 tooltip = right_opposition_power}
		add_popularity = {
			ideology = fascism
			popularity = 0.03
		}
		hidden_effect = {
			VAT_right_opposition_swap_idea = yes
		}
		random_list = {
			40 = {
				random_owned_controlled_state = {
					damage_building = {
						type = infrastructure
						damage = 1
					}
				}
			}
			30 = {
				random_owned_controlled_state = {
					damage_building = {
						type = industrial_complex
						damage = 1
					}
				}
			}
			30 = {
				random_owned_controlled_state = {
					damage_building = {
						type = arms_factory
						damage = 1
					}
				}
			}
		}
	}
}

country_event = {
	id = vat_random.9 #Убит известный ультраправый деятель
	title = vat_random.9.t
	desc = vat_random.9.d
	picture = GFX_report_event_german_politician_speech
	is_triggered_only = yes

	option = {
		name = vat_random.9.a
		add_political_power = 50
		add_to_variable = { var = right_opposition_power value = -10 tooltip = right_opposition_power}
		add_popularity = {
			ideology = fascism
			popularity = -0.05
		}
		hidden_effect = {
			VAT_right_opposition_swap_idea = yes
		}
	}
}

#ПРАВЫЙ И ЛЕВЫЙ
country_event = {
	id = vat_random.10 #Убит высокопоставленный пропапский политик
	title = vat_random.10.t
	desc = vat_random.10.d
	picture = GFX_report_event_gre_venizelos_speech
	is_triggered_only = yes

	option = {
		name = vat_random.10.a
		add_political_power = -50
		add_stability = -0.03
		add_to_variable = { var = right_opposition_power value = 5 tooltip = right_opposition_power}
		add_to_variable = { var = left_opposition_power value = 5 tooltip = left_opposition_power}
		add_popularity = {
			ideology = fascism
			popularity = 0.03
		}
		add_popularity = {
			ideology = communism
			popularity = 0.03
		}
		hidden_effect = {
			VAT_right_opposition_swap_idea = yes
			VAT_left_opposition_swap_idea = yes
		}
	}
}

#ЛЕВЫЕ СИЛЫ
country_event = {
	id = vat_random.11 #Раскрыта подпольная ячейка коммунистов
	title = vat_random.11.t
	desc = vat_random.11.d
	picture = GFX_report_event_generic_strike
	is_triggered_only = yes

	option = {
		name = vat_random.11.a
		add_to_variable = { var = left_opposition_power value = -5 tooltip = left_opposition_power}
		add_popularity = {
			ideology = communism
			popularity = -0.03
		}
		hidden_effect = {
			VAT_left_opposition_swap_idea = yes
		}
	}
}

country_event = {
	id = vat_random.12 #Усиление влияния левых СМИ
	title = vat_random.12.t
	desc = vat_random.12.d
	picture = GFX_report_event_generic_rally2
	is_triggered_only = yes

	option = {
		name = vat_random.12.a
		add_political_power = -25
		add_to_variable = { var = left_opposition_power value = 5 tooltip = left_opposition_power}
		add_popularity = {
			ideology = communism
			popularity = 0.03
		}
		hidden_effect = {
			VAT_left_opposition_swap_idea = yes
		}
	}
}

country_event = {
	id = vat_random.13 #Левые радикалы устраивают страйки
	title = vat_random.13.t
	desc = vat_random.13.d
	picture = GFX_report_event_generic_ruins
	is_triggered_only = yes

	option = {
		name = vat_random.13.a
		add_to_variable = { var = left_opposition_power value = 5 tooltip = left_opposition_power}
		add_popularity = {
			ideology = communism
			popularity = 0.03
		}
		hidden_effect = {
			VAT_left_opposition_swap_idea = yes
		}
		random_list = {
			50 = {
				random_owned_controlled_state = {
					damage_building = {
						type = industrial_complex
						damage = 1
					}
				}
			}
			50 = {
				random_owned_controlled_state = {
					damage_building = {
						type = arms_factory
						damage = 1
					}
				}
			}
		}
	}
}

country_event = {
	id = vat_random.14 #Убит известный левый деятель
	title = vat_random.14.t
	desc = vat_random.14.d
	picture = GFX_report_event_german_politician_speech
	is_triggered_only = yes

	option = {
		name = vat_random.14.a
		add_political_power = 50
		add_to_variable = { var = left_opposition_power value = -10 tooltip = left_opposition_power}
		add_popularity = {
			ideology = communism
			popularity = -0.05
		}
		hidden_effect = {
			VAT_left_opposition_swap_idea = yes
		}
	}
}

country_event = {
	id = vat_random.15 #HIDDEN FOR RIGHT OPPOSITION
	is_triggered_only = yes
	hidden = yes

	option = {
		if = {
			limit = {
				check_variable = {
					right_opposition_power = 0
				}
			}
		}
		else = {
			random_list = {
				30 = {
					country_event = vat_random.6
				}
				30 = {
					country_event = vat_random.7
				}
				25 = {
					country_event = vat_random.8
				}
				10 = {
					country_event = vat_random.9
				}
				5 = {
					if = {
						limit = {
							NOT = {
								check_variable = {
									left_opposition_power = 0
								}
							}
						}
						country_event = vat_random.10
					}
				}
			}
		}
	}
}

country_event = {
	id = vat_random.16 #HIDDEN FOR LEFT OPPOSITION
	is_triggered_only = yes
	hidden = yes

	option = {
		if = {
			limit = {
				check_variable = {
					left_opposition_power = 0
				}
			}
		}
		else = {
			random_list = {
				30 = {
					country_event = vat_random.11
				}
				30 = {
					country_event = vat_random.12
				}
				25 = {
					country_event = vat_random.13
				}
				10 = {
					country_event = vat_random.14
				}
				5 = {
					if = {
						limit = {
							NOT = {
								check_variable = {
									right_opposition_power = 0
								}
							}
						}
						country_event = vat_random.10
					}
				}
			}
		}
	}
}

#МАФИЯ
country_event = {
	id = vat_random.17 #Раскрыта подпольная мафиозная группировка
	title = vat_random.17.t
	desc = vat_random.17.d
	picture = GFX_report_event_fascist_militia
	is_triggered_only = yes

	option = {
		name = vat_random.17.a
		add_stability = 0.03
		add_to_variable = { var = mafia_power value = -5 tooltip = mafia_power}
		hidden_effect = {
			VAT_mafia_swap_idea = yes
		}
	}
}

country_event = {
	id = vat_random.18 #Вооружённая стычка между мафией и армией
	title = vat_random.18.t
	desc = vat_random.18.d
	picture = GFX_report_event_dead_soldiers
	is_triggered_only = yes

	option = {
		name = vat_random.18.a
		random_list = {
			50 = {
				add_manpower = -5
				add_stability = 0.01
				add_to_variable = { var = mafia_power value = -5 tooltip = mafia_power}
			}
			50 = {
				add_manpower = -20
				add_stability = -0.01
				add_to_variable = { var = mafia_power value = 5 tooltip = mafia_power}
			}
		}
		hidden_effect = {
			VAT_mafia_swap_idea = yes
		}
	}
}

country_event = {
	id = vat_random.19 #Мафия усиливает влияние на Сицилии
	title = vat_random.19.t
	desc = vat_random.19.d
	picture = GFX_report_event_picture_mafia_unholy_union
	is_triggered_only = yes

	option = {
		name = vat_random.19.a
		add_stability = -0.03
		add_to_variable = { var = mafia_power value = 5 tooltip = mafia_power}
		hidden_effect = {
			VAT_mafia_swap_idea = yes
		}
	}
}

country_event = {
	id = vat_random.20 #HIDDEN FOR MAFIA
	is_triggered_only = yes
	hidden = yes

	option = {
		if = {
			limit = {
				check_variable = {
					mafia_power = 0
				}
			}
		}
		else = {
			random_list = {
				33 = {
					country_event = vat_random.17
				}
				34 = {
					country_event = vat_random.18
				}
				33 = {
					country_event = vat_random.19
				}
			}
		}
	}
}

#Законопроекты
country_event = {
	id = vat_random.21 #Законопроект набирает популярность
	title = vat_random.21.t
	desc = vat_random.21.d
	picture = GFX_report_event_picture_second_vatican_council
	is_triggered_only = yes

	option = {
		name = vat_random.21.a
		VAT_curia_add_support_law_6 = yes
	}
}

country_event = {
	id = vat_random.22 #Законопроект теряет популярность
	title = vat_random.22.t
	desc = vat_random.22.d
	picture = GFX_report_event_papal_conclave_1939
	is_triggered_only = yes

	option = {
		name = vat_random.22.a
		VAT_curia_add_support_law_remove_7 = yes
	}
}

country_event = {
	id = vat_random.23 #Ожесточённые дебаты за законопроект
	title = vat_random.23.t
	desc = vat_random.23.d
	picture = GFX_report_event_papal_conclave_1939
	is_triggered_only = yes

	option = {
		name = vat_random.23.a
		random_list = {
			50 = {
				VAT_curia_add_support_law_5 = yes
			}
			50 = {
				VAT_curia_add_support_law_remove_7 = yes
			}
		}
	}
}

country_event = {
	id = vat_random.24 #Законопроект теряет популярность (финальный законопроект)
	title = vat_random.22.t
	desc = vat_random.22.d
	picture = GFX_report_event_papal_conclave_1939
	is_triggered_only = yes

	option = {
		name = vat_random.22.a
		VAT_curia_add_support_law_remove_5 = yes
	}
}


#ИТАЛИЯ
add_namespace = ita_vat
country_event = {
	id = ita_vat.1
	title = ita_vat.1.t
	desc = ita_vat.1.d
	picture = GFX_report_event_picture_letter
	fire_only_once = yes
	is_triggered_only = yes

	trigger = {
		ITA = {
			exists = yes
		}
	}
	
	option = {
		name = ita_vat.1.a
		add_country_leader_role = {
			character = ITA_italo_balbo
			promote_leader = yes
			country_leader = {
				ideology = fascism_ideology
				expire = 1965.1.1.1
				traits =  {	aviation_hero }
			}
		}
		hidden_effect = {
			add_ideas = ITA_italo_balbo_traits
		}

		ITA_italo_balbo = {	set_character_flag = ITA_has_new_duce_flag }

		add_political_power = 75
		add_war_support = 0.1
		add_stability = 0.05
		ITA_bop_medium_increase_balbo_side_effect = yes
		news_event = vat_news.3
	}
}

country_event = {
	id = ita_vat.2
	title = ita_vat.2.t
	desc = ita_vat.2.d
	picture = GFX_report_event_picture_letter
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = ita_vat.2.a
		hidden_effect = {
			TOS = {
				transfer_state = 162
				#transfer_state = 161

				161 = { add_claim_by = LBV add_claim_by = SPM add_claim_by = TOS }
				160 = { add_claim_by = LBV add_claim_by = SPM add_claim_by = TOS }
				159 = { add_claim_by = LBV add_claim_by = SPM add_claim_by = TOS }
				850 = { add_claim_by = LBV add_claim_by = SPM add_claim_by = TOS }
				39 = { add_claim_by = LBV add_claim_by = SPM add_claim_by = TOS }
				736 = { add_claim_by = LBV add_claim_by = SPM add_claim_by = TOS }
				852 = { add_claim_by = LBV add_claim_by = SPM add_claim_by = TOS }
				158 = { add_claim_by = LBV add_claim_by = SPM add_claim_by = TOS }
				114 = { add_claim_by = LBV add_claim_by = SPM add_claim_by = TOS }

	
				VAT_oob_for_north_italia = yes
				VAT_oob_for_north_italia = yes #Чтобы больше войск заспавнилось
				#load_oob = Toskana

				set_cosmetic_tag = VAT_italian_republic_cw_faction
				set_politics = {
					ruling_party = democratic
					elections_allowed = no
				}
				VAT_party_names_for_italian_cw_factions = yes

				country_event = vat.1

				declare_war_on = {
					target = ITA
					type = annex_everything
				}
			}
			ITA = {
				set_nationality = {
					character = ITA_comitato_di_liberazione_nazionale
					target_country = TOS
				}
			}
			TOS = {
				add_country_leader_role = {
					character = ITA_comitato_di_liberazione_nazionale
					country_leader = { ideology = populism }
					promote_leader = yes
				}
				add_popularity = {
					ideology = democratic
					popularity = 0.5
				}
			}
			country_event = {
				id = ita_vat.3
				days = 3
			}
		}
	}
}

country_event = {
	id = ita_vat.3
	title = ita_vat.3.t
	desc = ita_vat.3.d
	picture = GFX_report_event_picture_letter
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = ita_vat.3.a
		hidden_effect = {
			ITA = {
				162 = { remove_dynamic_modifier = { modifier = VAT_separatism_in_state } }
				161 = { remove_dynamic_modifier = { modifier = VAT_separatism_in_state } }
				158 = { remove_dynamic_modifier = { modifier = VAT_separatism_in_state } }
				159 = { remove_dynamic_modifier = { modifier = VAT_separatism_in_state } }
				160 = { remove_dynamic_modifier = { modifier = VAT_separatism_in_state } }
				39 = { remove_dynamic_modifier = { modifier = VAT_separatism_in_state } }
				850 = { remove_dynamic_modifier = { modifier = VAT_separatism_in_state } }
				736 = { remove_dynamic_modifier = { modifier = VAT_separatism_in_state } }
				852 = { remove_dynamic_modifier = { modifier = VAT_separatism_in_state } }
				release = LBA
				release = ERI
				release = SOM
				release = ETH
				release = AFA
				# release = TOS
				# release = LBV
				# release = SPM
				white_peace = ETH
				ETH = {
					if = {
						limit = {
							exists = yes
						}
						declare_war_on = { target = AFA type = annex_everything }
						declare_war_on = { target = ERI type = annex_everything }
						declare_war_on = { target = SOM type = annex_everything }
					}
				}
				
				promote_character = ITA_grand_council
				country_event = {
					days = 10
					id = ita_vat.1
				}

				set_cosmetic_tag = ITA_VAT_rsi

				set_nationality = {
					character = ITA_palmiro_togliatti
					target_country = LBV
				}
				set_nationality = {
					character = ITA_vittorio_emanuele_iii
					target_country = SPM
				}
			}
			LBV = {
				transfer_state = 160
				transfer_state = 159
				transfer_state = 850
				transfer_state = 39
				transfer_state = 736
				transfer_state = 852
	
				#load_oob = Veneto
				VAT_oob_for_north_italia = yes

				set_cosmetic_tag = VAT_italian_communists_cw_faction
				set_politics = {
					ruling_party = communism
					elections_allowed = no
				}
				promote_character = {
					character = ITA_palmiro_togliatti
					ideology = marxism
				}
				add_popularity = {
					ideology = communism
					popularity = 0.5
				}
				VAT_party_names_for_italian_cw_factions = yes
				country_event = vat.1
			}
			SPM = {
				#load_oob = Sardyne
				transfer_state = 158
				transfer_state = 114
				
				VAT_oob_for_north_italia = yes
				country_lock_all_division_template = yes

				set_cosmetic_tag = VAT_italian_monarchist_cw_faction
				set_politics = {
					ruling_party = neutrality
					elections_allowed = no
				}
				ITA_vittorio_emanuele_iii = {
					promote_character = {
						ideology = despotism
					}
				}
				VAT_party_names_for_italian_cw_factions = yes
				country_event = vat.1

				declare_war_on = {
					target = LBV
					type = civil_war
				}
			}
			TOS = {
				white_peace = ITA
				transfer_state = 161
				declare_war_on = {
					target = LBV
					type = civil_war
				}
				declare_war_on = {
					target = SPM
					type = civil_war
				}
			}
			TUR = {
				transfer_state = 164
			}
			YUG = {
				transfer_state = 163
			}
			news_event = {
				id = vat_news.2
				days = 1
			}
			country_event = {
				days = 10
				id = ita_vat.1
			}
		}
	}
}

##КУРИЯ##
add_namespace = vat_curia
country_event = {
	id = vat_curia.1
	title = vat_curia.1.t
	desc = vat_curia.1.d
	picture = GFX_report_event_baltic_entente_one
	is_triggered_only = yes
	option = {
		#suspend
		name = vat_curia.1.a
		trigger = {
			check_variable = {
				suspended_laws^9 = 0
			}
		}
		custom_effect_tooltip = law_will_be_suspended
		set_variable = {
			suspended_laws^9 = current_law
		}
		set_variable = {
			suspended_law_pope_vote^9 = current_law_pope_vote
		}
		set_variable = {
			suspended_law_secretary_vote^9 = current_law_secretary_vote
		}
		set_variable = {
			suspended_law_start_votes^9 = curia_law_vote_value
		}
		set_variable = {
			current_law = 0
		}
		set_variable = {
			current_law_pope_vote = 0
		}
		set_variable = {
			current_law_secretary_vote = 0
		}
		set_variable = {
			curia_law_vote_value = 0
		}
		set_variable = {                
			current_law_is_oppisition = 0
		}
		VAT_validate_law_array = yes
		VAT_update_curia_law_gui = yes
	}
	option = {
		#remove
		name = vat_curia.1.b
		custom_effect_tooltip = law_will_be_removed
		set_variable = {
			current_law = 0
		}
		set_variable = {
			current_law_pope_vote = 0
		}
		set_variable = {
			current_law_secretary_vote = 0
		}
		set_variable = {
			curia_law_vote_value = 0
		}
		set_variable = {                
			current_law_is_oppisition = 0
		}
		VAT_update_curia_law_gui = yes
	}
}

country_event = {
	id = vat_curia.2
	title = vat_curia.2.t
	desc = vat_curia.2.d
	picture = GFX_report_event_baltic_entente_one
	is_triggered_only = yes
	option = {
		name = vat_curia.2.a
		if = {
			limit = {
				check_variable = { current_law = 10 }
			}
			add_timed_idea = {
				idea = VAT_failed_voting_for_decisive_law_pope
				days = 30
			}
		}
		else = {
			add_timed_idea = {
				idea = VAT_failed_voting_for_decisive_law_curia
				days = 30
			}
		}
		set_variable = {
			current_law = 0
		}
		set_variable = {
			current_law_pope_vote = 0
		}
		set_variable = {
			current_law_secretary_vote = 0
		}
		set_variable = {
			curia_law_vote_value = 0
		}
		VAT_update_curia_law_gui = yes
	}
}

country_event = { #HIDDEN EVENT FOR ACTIVATING OPPOSITION SUGGETS MISSION
	id = vat_curia.3
	hidden = yes
	is_triggered_only = yes
	option = {
		if = {
			limit = {
				NOT = { has_active_mission = VAT_curia_law_voting_mission has_active_mission = VAT_curia_law_additional_voting_mission }
				VAT_Conclave = { is_country_leader = no }
			}
			activate_mission = VAT_curia_law_opposition_suggest
		}
		else = {
			country_event = {
				id = vat_curia.3
				days = 10
			}
		}
	}
}

#Голосование за оппозиционный законопроект провалено
country_event = {
	id = vat_curia.4
	title = vat_curia.4.t
	desc = vat_curia.4.d
	picture = GFX_report_event_baltic_entente_one
	is_triggered_only = yes
	option = {
		name = vat_curia.4.a
		custom_effect_tooltip = law_will_be_removed
		set_variable = {
			current_law = 0
		}
		set_variable = {
			current_law_pope_vote = 0
		}
		set_variable = {
			current_law_secretary_vote = 0
		}
		set_variable = {
			curia_law_vote_value = 0
		}
		set_variable = {                
			current_law_is_oppisition = 0
		}
		VAT_update_curia_law_gui = yes
	}
}

country_event = {
	id = vat_curia.5 #Выдвижение оппозиционного законопроекта
	title = vat_curia.5.t
	desc = vat_curia.5.d
	is_triggered_only = yes

	option = {
		name = vat_curia.5.a
	}
}

add_namespace = vat_inter

#ОТКАЗ СТРАНЫ ПОДЧИНИТЬСЯ
country_event = {
	id = vat_inter.1
	title = vat_inter.1.t
	desc = vat_inter.1.d
	is_triggered_only = yes
	
	option = {
		name = vat_inter.1.a
		trigger = {
			FROM = {
				OR = {
					tag = MEX
					tag = HUN
					tag = BRA
					tag = SPB
					tag = SPA
					tag = POR
				}
			}
		}
		if = {
			limit = { FROM = { tag = MEX } }
			custom_effect_tooltip = vat_unlock_operation_in_mexico_tt
		}
		else_if = {
			limit = { FROM = { tag = HUN } }
			custom_effect_tooltip = vat_unlock_operation_in_hungary_tt
			custom_effect_tooltip = odd_unlock_balkans_hungary_tt
		}
		else_if = {
			limit = { FROM = { tag = BRA } }
			custom_effect_tooltip = vat_unlock_operation_in_brazil_tt
			custom_effect_tooltip = odd_unlock_south_america_brazil_tt
		}
		else_if = {
			limit = { FROM = { OR = { tag = SPA tag = SPB } }  }
			custom_effect_tooltip = vat_unlock_operation_in_spain_tt
		}
		else_if = {
			limit = { FROM = { tag = POR }  }
			custom_effect_tooltip = vat_unlock_operation_in_portugaly_tt
		}
	}

	option = {
		name = vat_inter.1.b
		trigger = {
			FROM = {
				OR = {
					tag = POL
					tag = GRE
					tag = SPD
					tag = SPC
					tag = BUL
				}
			}
		}
		if = {
			limit = { FROM = { tag = BUL } }
			GER = {
				remove_from_faction = BUL
			}
		}
		create_wargoal = {
			target = FROM
			type = annex_everything
		}
	}
}

#СОГЛАСИЕ СТРАНЫ ПОДЧИНИТЬСЯ
country_event = {
	id = vat_inter.2
	title = vat_inter.2.t
	desc = vat_inter.2.d
	is_triggered_only = yes
	
	option = {
		name = vat_inter.2.a
	}
}

#Ультиматум Мексике
country_event = {
	id = vat_inter.3
	title = vat_inter.ult.t
	desc = vat_inter.ult.d
	is_triggered_only = yes
	
	option = {
		name = vat_inter.ult.a

		ai_chance = {
			base = 20
			modifier = {
				factor = 10
				has_country_leader = {
					character = MEX_luis_maria_martinez
				}
			}
			modifier = {
				factor = 5
				OR = {
					has_idea = MEX_church_power_5
					has_completed_focus = MEX_focus_knights_of_columbus
					has_completed_focus = MEX_focus_legion_of_christ
				}
			}
			modifier = {
				factor = 3
				has_opinion = {
					target = VAT
					value > 60
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = VAT
					ratio < 1
				}
			}
			modifier = {
				factor = 0
				has_government = communism
			}
			modifier = {
				factor = 0
				is_puppet = yes
			}
		}

		VAT = { 
			set_autonomy = {
				target = MEX
				autonomy_state = autonomy_puppet
				end_wars = no
				end_civil_wars = no
			}
			country_event = {
				id = vat_inter.2
				days = 1
			}
		}
	}

	option = {
		name = vat_inter.ult.b

		ai_chance = {
			base = 40
		}
		set_country_flag = VAT_declined_ultimatum
		VAT = {
			country_event = {
				id = vat_inter.1
				days = 1
			}
		}
	}
}

#Ультиматум Венгрии
country_event = {
	id = vat_inter.4
	title = vat_inter.ult.t
	desc = vat_inter.ult.d
	is_triggered_only = yes
	
	option = {
		name = vat_inter.ult.a

		ai_chance = {
			base = 20
			modifier = {
				factor = 3
				has_opinion = {
					target = VAT
					value > 60
				}
			}
			modifier = {
				add = 2
				strength_ratio = {
					tag = VAT
					ratio < 1
				}
			}
			modifier = {
				factor = 0
				has_government = communism
			}
			modifier = {
				factor = 0
				is_puppet = yes
			}
		}

		VAT = { 
			set_autonomy = {
				target = HUN
				autonomy_state = autonomy_puppet
				end_wars = no
				end_civil_wars = no
			}
			country_event = {
				id = vat_inter.2
				days = 1
			}
		}
	}

	option = {
		name = vat_inter.ult.b

		ai_chance = {
			base = 50
			modifier = {
				factor = 5
				AND = {
					NOT = { VAT = { is_ally_with = GER } }
					is_ally_with = GER
				}
			}
		}
		set_country_flag = VAT_declined_ultimatum
		VAT = {
			country_event = {
				id = vat_inter.1
				days = 1
			}
		}
	}
}

#Предложение Польше о защите
country_event = {
	id = vat_inter.5
	title = vat_inter.prot.t
	desc = vat_inter.prot.d
	is_triggered_only = yes
	
	option = {
		name = vat_inter.prot.a

		ai_chance = {
			base = 20
			modifier = {
				factor = 3
				has_opinion = {
					target = VAT
					value > 70
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = VAT
					ratio < 0.7
				}
			}
			# modifier = {
			# 	factor = 5
			# 	OR = {
			# 		# GER = {
			# 		# 	focus_progress = {
			# 		# 		focus = GER_danzig_or_war
			# 		# 		progress > 0
			# 		# 	}
			# 		# }
			# 		any_country = {
			# 			is_justifying_wargoal_against = POL
			# 			is_major = yes
			# 		}
			# 	}
			# }
			modifier = {
				factor = 0
				has_government = communism
			}
			modifier = {
				factor = 0
				is_puppet = yes
			}
		}

		VAT = { 
			set_autonomy = {
				target = POL
				autonomy_state = autonomy_puppet
				end_wars = no
				end_civil_wars = no
			}
			country_event = {
				id = vat_inter.2
				days = 1
			}
		}
	}

	option = {
		name = vat_inter.prot.b

		ai_chance = {
			base = 80
		}
		set_country_flag = VAT_declined_ultimatum
		VAT = {
			country_event = {
				id = vat_inter.1
				days = 1
			}
		}
	}
}

#Предложение Греции о защите
country_event = {
	id = vat_inter.6
	title = vat_inter.prot.t
	desc = vat_inter.prot.d
	is_triggered_only = yes
	
	option = {
		name = vat_inter.prot.a

		ai_chance = {
			base = 20
			modifier = {
				factor = 2
				has_opinion = {
					target = VAT
					value > 60
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = VAT
					ratio < 0.7
				}
			}
			modifier = {
				factor = 7
				VAT = { has_idea = VAT_union_of_churchs }
			}
			modifier = {
				factor = 0
				has_government = communism
			}
			modifier = {
				factor = 0
				is_puppet = yes
			}
		}

		VAT = { 
			set_autonomy = {
				target = GRE
				autonomy_state = autonomy_puppet
				end_wars = no
				end_civil_wars = no
			}
			country_event = {
				id = vat_inter.2
				days = 1
			}
		}
	}

	option = {
		name = vat_inter.prot.b

		ai_chance = {
			base = 80
			modifier = {
				factor = 2
				has_opinion = {
					target = ROOT
					value < 0
				}
			}
		}
		set_country_flag = VAT_declined_ultimatum
		VAT = {
			country_event = {
				id = vat_inter.1
				days = 1
			}
		}
	}
}

#Ультиматум Бразилии
country_event = {
	id = vat_inter.7
	title = vat_inter.ult.t
	desc = vat_inter.ult.d
	is_triggered_only = yes
	
	option = {
		name = vat_inter.ult.a

		ai_chance = {
			base = 20
			modifier = {
				factor = 3
				has_opinion = {
					target = VAT
					value > 60
				}
			}
			modifier = {
				add = 2
				strength_ratio = {
					tag = VAT
					ratio < 1
				}
			}
			modifier = {
				factor = 0
				has_government = communism
			}
			modifier = {
				factor = 0
				is_puppet = yes
			}
			modifier = {
				factor = 0
				has_war_with = VAT
			}
		}

		VAT = { 
			set_autonomy = {
				target = BRA
				autonomy_state = autonomy_puppet
				end_wars = no
				end_civil_wars = no
			}
			country_event = {
				id = vat_inter.2
				days = 1
			}
		}
	}

	option = {
		name = vat_inter.ult.b

		ai_chance = {
			base = 50
			modifier = {
				factor = 3
				has_opinion = {
					target = VAT
					value < 0
				}
			}
		}
		set_country_flag = VAT_declined_ultimatum
		VAT = {
			country_event = {
				id = vat_inter.1
				days = 1
			}
		}
	}
}

#Требование Иерусалима
country_event = {
	id = vat_inter.8
	title = vat_inter.8.t
	desc = vat_inter.ult.d
	is_triggered_only = yes
	
	option = {
		name = vat_inter.ult.a

		ai_chance = {
			base = 20
			modifier = {
				factor = 3
				has_opinion = {
					target = VAT
					value > 60
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = VAT
					ratio < 0.5
				}
			}
			modifier = {
				factor = 0
				has_government = communism
			}
			modifier = {
				factor = 0
				is_puppet = yes
			}
			modifier = {
				factor = 0
				has_war_with = VAT
			}
		}

		VAT = {
			transfer_state = 454
			country_event = {
				days = 1
				id = vat_inter.2
			}
		}
		
	}

	option = {
		name = vat_inter.ult.b

		ai_chance = {
			base = 60
			modifier = {
				factor = 3
				has_opinion = {
					target = VAT
					value < 0
				}
			}
		}
		VAT = {
			country_event = {
				id = vat_inter.9
				days = 1
			}
		}
	}
}

#Отказ страны передать Иерусалим
country_event = {
	id = vat_inter.9
	title = vat_inter.1.t
	desc = vat_inter.1.d
	is_triggered_only = yes
	
	option = {
		name = vat_inter.9.a

		454 = {
			controller = {
				VAT = {
					create_wargoal = {
						target = PREV
						type = take_claimed_state
						generator = { 454 }
					}
				}
			}
		}
	}
}

#Предложение о союзе (Испания и Португалия)
country_event = {
	id = vat_inter.10
	title = vat_inter.prot.t
	desc = vat_inter.prot.d
	is_triggered_only = yes
	
	option = {
		name = vat_inter.prot.a

		ai_chance = {
			base = 20
			modifier = {
				factor = 2
				has_opinion = {
					target = VAT
					value > 60
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = VAT
					ratio < 0.7
				}
			}
			modifier = {
				factor = 0
				has_government = communism
			}
			modifier = {
				factor = 0
				is_puppet = yes
			}
		}

		if = {
			limit = {
				VAT = { is_faction_leader = yes }
			}
			VAT = { 
				add_to_faction = ROOT
				country_event = {
					id = vat_inter.2
					days = 1
				}
			}
		}
		if = {
			limit = {
				GER = { is_faction_leader = yes }
				VAT = { is_ally_with = GER }
			}
			GER = { 
				add_to_faction = ROOT
			}
			VAT = {
				country_event = {
					id = vat_inter.2
					days = 1
				}
			}
			set_country_flag = joined_axis_with_vatican
		}
		
	}

	option = {
		name = vat_inter.prot.b

		ai_chance = {
			base = 30
			modifier = {
				factor = 2
				has_opinion = {
					target = ROOT
					value < 0
				}
			}
			modifier = {
				factor = 2
				ROOT = {
					has_war = no
				}
				VAT = {
					has_war = yes
				}
			}
			modifier = {
				factor = 2
				is_in_faction = yes
			}
		}
		set_country_flag = VAT_declined_ultimatum
		VAT = {
			country_event = {
				id = vat_inter.1
				days = 1
			}
		}
	}
}

#Ультиматум Испании
country_event = {
	id = vat_inter.11
	title = vat_inter.ult.t
	desc = vat_inter.ult.d
	is_triggered_only = yes
	
	option = {
		name = vat_inter.ult.a

		ai_chance = {
			base = 20
			modifier = {
				factor = 3
				has_opinion = {
					target = VAT
					value > 60
				}
			}
			modifier = {
				add = 2
				strength_ratio = {
					tag = VAT
					ratio < 1
				}
			}
			modifier = {
				factor = 0
				has_government = communism
			}
			modifier = {
				factor = 0
				is_puppet = yes
			}
			modifier = {
				factor = 0
				has_war_with = VAT
			}
		}

		VAT = { 
			set_autonomy = {
				target = ROOT
				autonomy_state = autonomy_puppet
				end_wars = no
				end_civil_wars = no
			}
			country_event = {
				id = vat_inter.2
				days = 1
			}
		}
	}

	option = {
		name = vat_inter.ult.b

		ai_chance = {
			base = 50
			modifier = {
				factor = 3
				has_opinion = {
					target = VAT
					value < 0
				}
			}
		}
		set_country_flag = VAT_declined_ultimatum
		VAT = {
			country_event = {
				id = vat_inter.1
				days = 1
			}
		}
	}
}

#Отказ страны о объединении в союз (с мажором)
country_event = {
	id = vat_inter.12
	title = vat_inter.12.t
	desc = vat_inter.12.d
	is_triggered_only = yes

	option = {
		name = vat_inter.12.a
		if = {
			limit = { FROM = { original_tag = GER } }
			uncomplete_national_focus = {
				focus = VAT_in_the_wake_of_the_nazi_rood
				uncomplete_children = yes
				refund_political_power = no
			}
			set_country_flag = VAT_germany_declined_alliance
		}
		mark_focus_tree_layout_dirty = yes
	}
}

#Союз Ватикана и Рейха
country_event = {
	id = vat_inter.13
	title = vat_inter.request_for_alliance.t
	desc = vat_inter.request_for_alliance.d
	is_triggered_only = yes
	
	option = {
		name = vat_inter.request_for_alliance.a

		ai_chance = {
			base = 100
			modifier = {
				factor = 0
				has_government = communism
			}
			modifier = {
				factor = 0
				is_puppet = yes
			}
			modifier = {
				factor = 0
				has_war_with = VAT
			}
		}

		VAT = { 
			country_event = {
				id = vat_inter.2
				days = 1
			}
		}

		add_to_faction = VAT
	}

	option = {
		name = vat_inter.request_for_alliance.b

		ai_chance = {
			base = 0
			modifier = {
				add = 100
				has_government = communism
			}
			modifier = {
				add = 100
				factor = 0
				is_puppet = yes
			}
			modifier = {
				add = 100
				factor = 0
				has_war_with = VAT
			}
		}
		VAT = { 
			country_event = {
				id = vat_inter.12
				days = 1
			}
		}
	}
}

#Ультиматум Болгарии
country_event = {
	id = vat_inter.14
	title = vat_inter.ult.t
	desc = vat_inter.ult.d
	is_triggered_only = yes
	
	option = {
		name = vat_inter.ult.a

		ai_chance = {
			base = 20
			modifier = {
				factor = 5
				strength_ratio = {
					tag = VAT
					ratio < 0.5
				}
			}
			modifier = {
				factor = 0
				has_government = communism
			}
			modifier = {
				factor = 0
				is_puppet = yes
			}
			modifier = {
				factor = 0
				has_war_with = VAT
			}
		}

		VAT = { 
			set_autonomy = {
				target = BUL
				autonomy_state = autonomy_puppet
				end_wars = no
				end_civil_wars = no
			}
			country_event = {
				id = vat_inter.2
				days = 1
			}
		}
	}

	option = {
		name = vat_inter.ult.b

		ai_chance = {
			base = 50
		}
		set_country_flag = VAT_declined_ultimatum
		VAT = {
			country_event = {
				id = vat_inter.1
				days = 1
			}
		}
	}
}


##НОВОСТНЫЕ ИВЕНТЫ##
add_namespace = vat_news
news_event = {
    id = vat_news.1
    title = vat_news.1.t
    desc = vat_news.1.d
    picture = GFX_news_event_ITA_papal_coronation
    
    is_triggered_only = yes
    major = yes
    
    option = {
        name = vat_news.1.a
    }
}

news_event = {
    id = vat_news.2
    title = vat_news.2.t
    desc = vat_news.2.d
    picture = GFX_news_event_collapse_of_north_italy
    
    is_triggered_only = yes
    major = yes
    
    option = {
        name = vat_news.2.a
    }
}
#Итало Бальбо избран новым дуче Италии
news_event = {
    id = vat_news.3
    title = vat_news.3.t
    desc = vat_news.3.d
    picture = GFX_news_event_ITA_grand_council
    
    is_triggered_only = yes
    major = yes
    
    option = {
        name = vat_news.3.a
    }
}
news_event = {
    id = vat_news.4
    title = vat_news.4.t
    desc = vat_news.4.d
    picture = GFX_news_event_second_vatican_council
    
    is_triggered_only = yes
    major = yes
    
    option = {
        name = vat_news.4.a
    }
}