debug_decisions = {
	add_political_power_debug = {

		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			add_political_power = 100
		}

		ai_will_do = {
			base = 0
		}
	}

	add_annex_italy = {

		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			annex_country = {
				target = ITA
				transfer_troops = yes
			}
			every_state = {
				limit = {
					is_core_of = ITA
				}
				add_core_of = VAT
			}
		}

		ai_will_do = {
			base = 0
		}
	}

	vat_create_intelligence_agency = {
		complete_effect = {
			create_intelligence_agency = yes
		}
	}

	vat_new_operative = {
		days_remove = 1000
		modifier = {
			operative_slot = 1
		}
	}

	clear_passing_the_bill = {

		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			remove_mission = VAT_curia_law_voting_mission
			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
		}

		ai_will_do = {
			base = 0
		}
	}

	add_30_support_of_the_bill = {

		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			add_to_variable = {
				curia_law_vote_value = 30
			}
			VAT_update_curia_law_gui = yes
		}

		ai_will_do = {
			base = 0
		}
	}

	set_35_support_of_the_bill = {

		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			set_variable = {
				curia_law_vote_value = 35
			}
			VAT_update_curia_law_gui = yes
		}

		ai_will_do = {
			base = 0
		}
	}
	

	white_peace_with_ITA_debug = {

		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			white_peace = ITA
		}

		ai_will_do = {
			base = 0
		}
	}

	vat_add_equipment_after_capitulation_test = {
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment_1
				amount = 5000
				producer = ITA
			}
			add_equipment_to_stockpile = {
				type = support_equipment
				amount = 350
				producer = ITA
			}
			add_equipment_to_stockpile = {
				type = artillery_equipment
				amount = 350
				producer = ITA
			}
		}
	}

	vat_complete_give_opinion_modifier_hates_communism = {
		complete_effect = {
			VAT_give_opinion_modifier_hates_communism = yes
		}
	}

	complete_national_focus_VAT_start_operation_return_to_rome = {
		complete_effect = {
			complete_national_focus = VAT_start_operation_return_to_rome
		}
	}

	complete_national_focus_VAT_first_win = {
		complete_effect = {
			complete_national_focus = VAT_first_win
		}
	}

	complete_national_focus_VAT_start_taking_care_of_things = {
		complete_effect = {
			complete_national_focus = VAT_start_taking_care_of_things
		}
	}

	complete_national_focus_VAT_Renascita_Sacra = {
		complete_effect = {
			complete_national_focus = VAT_Renascita_Sacra
		}
	}

	complete_national_focus_VAT_extension_of_the_powers_of_the_roman_curia = {

		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			complete_national_focus = VAT_extension_of_the_powers_of_the_roman_curia
		}

		ai_will_do = {
			base = 0
		}
	}

	complete_national_focus_VAT_end_of_duce = {

		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			complete_national_focus = VAT_end_of_duce
		}

		ai_will_do = {
			base = 0
		}
	}

	complete_national_focus_VAT_fateful_day = {

		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			complete_national_focus = VAT_fateful_day
		}

		ai_will_do = {
			base = 0
		}
	}

	complete_national_focus_VAT_era_dictatorship_pontificate = {
		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			complete_national_focus = VAT_era_dictatorship_pontificate
		}

		ai_will_do = {
			base = 0
		}
	}

	complete_national_focus_VAT_redistribution_of_executive_power = {
		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			complete_national_focus = VAT_redistribution_of_executive_power
		}

		ai_will_do = {
			base = 0
		}
	}

	complete_national_focus_VAT_constitutional_theocratic_monarchy_focus = {
		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			complete_national_focus = VAT_constitutional_theocratic_monarchy_focus
		}

		ai_will_do = {
			base = 0
		}
	}


	complete_national_focus_VAT_creating_odd = {
		
		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			complete_national_focus = VAT_creating_odd
		}

		ai_will_do = {
			base = 0
		}
	}

	complete_national_focus_VAT_integration_of_new_lands = {
		
		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			complete_national_focus = VAT_integration_of_new_lands
		}

		ai_will_do = {
			base = 0
		}
	}

	

	complete_national_focus_VAT_vera_fides_expansion_corps = {
		
		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			complete_national_focus = VAT_vera_fides_expansion_corps
		}

		ai_will_do = {
			base = 0
		}
	}

	complete_national_focus_VAT_vatican_diplomacy = {
		
		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			complete_national_focus = VAT_vatican_diplomacy
		}

		ai_will_do = {
			base = 0
		}
	}

	complete_national_focus_VAT_in_the_wake_of_the_nazi_rood = {
		
		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			complete_national_focus = VAT_in_the_wake_of_the_nazi_rood
		}

		ai_will_do = {
			base = 0
		}
	}

	complete_national_focus_VAT_pope_appetites = {
		
		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			complete_national_focus = VAT_pope_appetites
		}

		ai_will_do = {
			base = 0
		}
	}

	complete_national_focus_VAT_great_unificaation = {
		
		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			complete_national_focus = VAT_great_unificaation
		}

		ai_will_do = {
			base = 0
		}
	}

	complete_national_focus_VAT_betrayal_of_the_century = {
		
		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			complete_national_focus = VAT_betrayal_of_the_century
		}

		ai_will_do = {
			base = 0
		}
	}

	VAT_operation_catholic_uprising_debug = {

		targets = { HUN }
		complete_effect = {
			hidden_effect = {
				CEA = {
					if = {
						limit = { FROM = { tag = HUN } } 
						set_variable = { current_bishop_character = HUN_Justinian_Seredi }
					}
					else_if = {
						limit = { FROM = { tag = BRA } } 
						set_variable = { current_bishop_character = BRA_Sebastian_Leme }
					}
				}
				VAT = { 
					add_to_array = {
						array = vat_countries_where_operation_happend
						value = FROM
					} 
				}
				
				FROM = {
					leave_faction = yes
					
					CEA = {
						set_nationality = {
							target_country = FROM
							character = CEA.current_bishop_character
						}
					}
					if = {
						limit = {
							FROM = { has_government = neutrality }
						}

						promote_character = {
							character = CEA.current_bishop_character
							ideology = constitutional_theocratic_monarchy
						}

						start_civil_war = {
							ideology = democratic
							size = 0.7
							army_ratio = 0.7
							VAT_init_catholic_uprising = yes
						}
					}
					else = {
						promote_character = {
							character = CEA.current_bishop_character
							ideology = papal_state
						}

						start_civil_war = {
							ideology = neutrality
							size = 0.7
							army_ratio = 0.7
							VAT_init_catholic_uprising = yes
						}
					}
				}
				
			}
		}
	}

	VAT_ultimatum_to_mexico = {
		
		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			MEX = { country_event = vat_inter.3 }
		}

		ai_will_do = {
			base = 0
		}
	}

	VAT_ultimatum_to_hungary = {
		
		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			HUN = { country_event = vat_inter.4 }
			if = {
				limit = {
					HUN = {
						has_opinion = {
							target = VAT
							value > 60
						}
					}
				}
				custom_effect_tooltip = relations_true
			}
			if = {
				limit = {
					HUN = {
						strength_ratio = {
							tag = VAT
							ratio < 1
						}
					}
				}
				custom_effect_tooltip = ratio_true
			}
		}

		ai_will_do = {
			base = 0
		}
	}

	VAT_protection_for_poland = {
		
		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			POL = { country_event = vat_inter.5 }
		}

		ai_will_do = {
			base = 0
		}
	}

	VAT_protection_for_grece = {
		
		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			GRE = { country_event = vat_inter.6 }
			if = {
				limit = {
					GRE = {
						has_opinion = {
							target = VAT
							value > 60
						}
					}
				}
				custom_effect_tooltip = relations_true
			}
			if = {
				limit = {
					GRE = {
						strength_ratio = {
							tag = VAT
							ratio < 0.7
						}
					}
				}
				custom_effect_tooltip = ratio_true
			}
		}

		ai_will_do = {
			base = 0
		}
	}

	VAT_ultimatum_to_brazil = {
		
		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			BRA = { country_event = vat_inter.7 }
			if = {
				limit = {
					BRA = {
						has_opinion = {
							target = VAT
							value > 60
						}
					}
				}
				custom_effect_tooltip = relations_true
			}
			if = {
				limit = {
					BRA = {
						strength_ratio = {
							tag = VAT
							ratio < 1
						}
					}
				}
				custom_effect_tooltip = ratio_true
			}
		}

		ai_will_do = {
			base = 0
		}
	}

	VAT_demand_jerusalem = {
		
		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			454 = {
				controller = {
					if = {
						limit = { is_subject = yes }
						overlord = {
							country_event = vat_inter.8
						}
					}
					else = {
						country_event = vat_inter.8
					}
				}
			}
		}

		ai_will_do = {
			base = 0
		}
	}

	
	VAT_alliance_with_germany = {
		
		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			GER = {
				country_event = {
					id = vat_inter.13
					days = 1
				}
			}
		}

		ai_will_do = {
			base = 0
		}
	}

	VAT_uprising_in_croatia = {
		complete_effect = {
			custom_effect_tooltip = start_yugoslavian_operation_tt
			hidden_effect = {
				YUG = {
					remove_ideas = YUG_idea_croatian_opposition
					release = CRO
					release = SLV
				}
				CEA = {
					set_nationality = {
						target_country = CRO
						character = CRO_aloizie_stepinac
					}
				}
				CRO = {
					annex_country = {
						target = SLV
					}
					promote_character = {
						character = CRO_aloizie_stepinac
						ideology = papal_state
					}
					promote_character = {
						character = CRO_aloizie_stepinac
						ideology = constitutional_theocratic_monarchy
					}
					set_politics = {
						ruling_party = neutrality
					}
					set_party_name = {
						ideology = neutrality
						long_name = CRO_catholic_ustashi_goverment_long
						name = CRO_catholic_ustashi_goverment
					}
					set_cosmetic_tag = CRO_VAT_uprusing
					103 = {
						set_demilitarized_zone = no
					}
					109 = {
						set_demilitarized_zone = no
					}
					102 = {
						set_demilitarized_zone = no
					}
					853 = {
						set_demilitarized_zone = no
					}
					load_oob = CRO_croatian_catholic_uprusing
					every_state = {
						limit = {
							is_core_of = YUG
							NOT = {
								is_core_of = CRO
							}
						}
						add_claim_by = CRO
					}
					set_politics = {
						ruling_party = neutrality
						long_name = CRO_catholic_ustashi_goverment_long
						name = CRO_catholic_ustashi_goverment
					}
					add_popularity = {
						ideology = neutrality
						popularity = 0.5
					}
					add_ideas = VAT_country_in_civil_war
				}
				YUG = {
					set_province_controller = 11580
					set_province_controller = 11577
					set_province_controller = 6647
					set_province_controller = 6889
					set_province_controller = 3868
					set_province_controller = 11816
					
					if = {
						limit = {
							is_in_faction = yes
						}
						leave_faction = yes
					}
					
					add_ideas = VAT_country_in_civil_war

					declare_war_on = {
						target = CRO
						type = civil_war
					}
				}
			}
		}
	}

	VAT_uprising_in_mexico = {
		complete_effect = {
			MEX = {
				if = {
					limit = {
						has_government = neutrality
					}
					add_country_leader_role = {
						country_leader = {
							ideology = constitutional_theocratic_monarchy
						}
						character = MEX_luis_maria_martinez
						promote_leader = yes
					}
					start_civil_war = {
						ideology = democratic
						size = 0.7
						army_ratio = 0.7
						set_cosmetic_tag = MEX_VAT_uprising

						set_party_name = {
							ideology = democratic
							long_name = diocese_administration_long
							name = diocese_administration
						}
						set_party_name = {
							ideology = neutrality
							long_name = diocese_administration_long
							name = diocese_administration
						}
						add_equipment_to_stockpile = {
							type = infantry_equipment_1
							amount = 2000
							producer = VAT
						}
						add_equipment_to_stockpile = {
							type = support_equipment
							amount = 100
							producer = VAT
						}
					}
				}
				else = {
					add_country_leader_role = {
						country_leader = {
							ideology = papal_state
						}
						character = MEX_luis_maria_martinez
						promote_leader = yes
					}
					start_civil_war = {
						ideology = neutrality
						size = 0.7
						army_ratio = 0.7
						set_cosmetic_tag = MEX_VAT_uprising

						add_country_leader_role = {
							country_leader = {
								ideology = papal_state
							}
							character = MEX_luis_maria_martinez
							promote_leader = yes
						}
						add_country_leader_role = {
							country_leader = {
								ideology = constitutional_theocratic_monarchy
							}
							character = MEX_luis_maria_martinez
							promote_leader = yes
						}
						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
						}
						add_equipment_to_stockpile = {
							type = infantry_equipment_1
							amount = 2000
							producer = VAT
						}
						add_equipment_to_stockpile = {
							type = support_equipment
							amount = 100
							producer = VAT
						}
					}
				}
			}
		}
	}

	VAT_uprising_in_hungary = {
		complete_effect = {
			VAT = { set_country_flag = VAT_hungarian_operation_happend }
			HUN = {
				CEA = {
					set_nationality = {
						target_country = HUN
						character = HUN_Justinian_Seredi
					}
				}
				promote_character = {
					character = HUN_Justinian_Seredi
					ideology = papal_state
				}
				promote_character = {
					character = HUN_Justinian_Seredi
					ideology = constitutional_theocratic_monarchy
				}
				set_politics = {
					ruling_party = neutrality
				}
				set_party_name = {
					ideology = democratic
					long_name = diocese_administration_long
					name = diocese_administration
				}
				set_party_name = {
					ideology = neutrality
					long_name = diocese_administration_long
					name = diocese_administration
				}

				set_cosmetic_tag = HUN_VAT_uprising

				leave_faction = yes
				start_civil_war = {
					ideology = fascism
					size = 0.4
					army_ratio = 0.3
				}

				add_equipment_to_stockpile = {
					type = infantry_equipment_1
					amount = 2000
					producer = VAT
				}
				add_equipment_to_stockpile = {
					type = support_equipment
					amount = 100
					producer = VAT
				}
			}
		}
	}

	VAT_uprising_in_poland = {
		complete_effect = {
			VAT = { set_country_flag = VAT_polish_operation_happend }
			POL = {
				CEA = {
					set_nationality = {
						target_country = POL
						character = POL_August_Hlond
					}
				}
				if = {
					limit = {
						POL = { has_government = neutrality }
					}
					promote_character = {
						character = POL_August_Hlond
						ideology = constitutional_theocratic_monarchy
					}
					start_civil_war = {
						ideology = democratic
						size = 0.7
						army_ratio = 0.7

						set_party_name = {
							ideology = democratic
							long_name = diocese_administration_long
							name = diocese_administration
						}
						set_party_name = {
							ideology = neutrality
							long_name = diocese_administration_long
							name = diocese_administration
						}
						add_equipment_to_stockpile = {
							type = infantry_equipment_1
							amount = 2000
							producer = VAT
						}
						add_equipment_to_stockpile = {
							type = support_equipment
							amount = 100
							producer = VAT
						}
						set_cosmetic_tag = POL_VAT_uprising
					}
				}
				else = {
					promote_character = {
						character = POL_August_Hlond
						ideology = papal_state
					}
					start_civil_war = {
						ideology = neutrality
						size = 0.7
						army_ratio = 0.7

						set_party_name = {
							ideology = democratic
							long_name = diocese_administration_long
							name = diocese_administration
						}
						set_party_name = {
							ideology = neutrality
							long_name = diocese_administration_long
							name = diocese_administration
						}
						add_equipment_to_stockpile = {
							type = infantry_equipment_1
							amount = 2000
							producer = VAT
						}
						add_equipment_to_stockpile = {
							type = support_equipment
							amount = 100
							producer = VAT
						}
						set_cosmetic_tag = POL_VAT_uprising
					}
				}
				leave_faction = yes
			}
		}
	}

	VAT_set_puppet_spain = {
		complete_effect = {
			VAT = { 
				set_autonomy = {
					target = SPR
					autonomy_state = autonomy_vatican_diocese
				}
				country_event = {
					id = vat_inter.2
					days = 1
				}
			}
			set_cosmetic_tag = SPR_VAT_diocese
			CEA = {
				set_nationality = {
					target_country = SPR
					character = SPR_Isidro_Goma
				}
			}
			SPR = {
				promote_character = {
					character = SPR_Isidro_Goma
					ideology = papal_state
				}
				promote_character = {
					character = SPR_Isidro_Goma
					ideology = constitutional_theocratic_monarchy
				}
				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
				}
				if = {
					limit = {
						VAT = {
							has_government = fascism
						}
					}
					set_politics = {
						ruling_party = neutrality
					}
					add_popularity = {
						ideology = neutrality
						popularity = 0.5
					}
				}
			}
		}
	}

	VAT_diocese_of_south_america = {
		complete_effect = {
			every_other_country = {
				limit = {
					OR = {
						tag = CHL
						tag = ARG
						tag = PAR
						tag = URG
					}
				}
				meta_effect = {
					text = {
						set_cosmetic_tag = [TAG]_VAT_diocese
					}
					TAG = "[THIS.GetTag]"
				}
				VAT = {
					set_autonomy = {
						target = PREV
						autonomy_state = autonomy_vatican_diocese
					}
				}
			}
		}
	}

	VAT_diocese_of_iberia = {
		complete_effect = {
			every_other_country = {
				limit = {
					OR = {
						tag = SPR
						tag = POR
					}
				}
				meta_effect = {
					text = {
						set_cosmetic_tag = [TAG]_VAT_diocese
					}
					TAG = "[THIS.GetTag]"
				}
				VAT = {
					set_autonomy = {
						target = PREV
						autonomy_state = autonomy_vatican_diocese
					}
				}
			}
		}
	}

	VAT_set_autonomy_diocese = {
		complete_effect = {
			set_autonomy = {
				target = MEX
				autonomous_state = autonomy_vatican_diocese
				end_wars = no
				end_civil_wars = no
			}
		}
	}

	VAT_puppet_MEX = {
		complete_effect = {
			puppet = MEX
		}
	}

	VAT_puppet_FRA = {
		complete_effect = {
			if = {
				limit = { FRA = { is_major = yes } }
				custom_effect_tooltip = FRA_is_major
			}
			else = {
				custom_effect_tooltip = no
			}
			puppet = FRA
		}
	}

	VAT_diocese_FRA = {
		targets = { FRA BEL }
		complete_effect = {
			set_autonomy = {
				target = FROM
				autonomy_state = autonomy_vatican_diocese
			}
			hidden_effect = {
				CEA = {
					if = {
						limit = { FROM = { tag = FRA } } 
						set_variable = { current_bishop_character = FRA_Pierre_Marie_Gerlier }
					}
					else_if = {
						limit = { FROM = { tag = BEL } } 
						set_variable = { current_bishop_character = BEL_Jozef_Van_Roey }
					}
				}
				
				FROM = {
					CEA = {
						set_nationality = {
							target_country = FROM
							character = CEA.current_bishop_character
						}
					}
					promote_character = {
						character = CEA.current_bishop_character
						ideology = papal_state
					}
					promote_character = {
						character = CEA.current_bishop_character
						ideology = constitutional_theocratic_monarchy
					}

					set_variable = { vat_TAG_var = THIS }
					VAT_create_diocese_in_country = yes
				}
			}
		}
	}

	VAT_leader_FRA_in_central_america = {
		complete_effect = {
			CEA = {
				annex_country = {
					target = ELS
				}
				promote_character = {
					character = FRA_Pierre_Marie_Gerlier
					ideology = neutrality
				}
			}
		}
	}


	VAT_set_rear_resistance = {
		complete_effect = {
			SOV = {
				set_country_flag = VAT_rear_resistance_organised
			}
		}
	}

	VAT_set_russian_white_movement_accepted = {
		complete_effect = {
			set_country_flag = VAT_russian_white_movement_accepted
		}
	}
	
	VAT_activate_bop = {
		complete_effect = {
			set_power_balance = {
				id = VAT_curia_bop 
				set_default = yes
			}
		}
	}

	give_VAT_test = {
		
		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = { 
			add_ideas = { VAT_test}
		}

		ai_will_do = {
			base = 0
		}
	}

	VAT_give_VAT_union_of_churchs = {
		
		icon = generic_research

		available = {
			always = yes
		}

		visible = {
			always = yes
		}

		fire_only_once = no
		cost = 0

		complete_effect = { 
			add_ideas = { VAT_union_of_churchs }
		}

		ai_will_do = {
			base = 0
		}
	}

	VAT_superevent_christ_emp = {
		complete_effect = {
			set_variable = {
				global.ses_var = 0
			}
			meta_effect = {
				text = {
					play_song = "super_event_song_[N]"
				}
				N = global.ses_var
			}
		}
	}

	VAT_superevent_christ_fed = {
		complete_effect = {
			set_variable = {
				global.ses_var = 1
			}
			meta_effect = {
				text = {
					play_song = "super_event_song_[N]"
				}
				N = global.ses_var
			}
		}
	}

	VAT_set_christian_empire_tag = {
		complete_effect = {
			set_cosmetic_tag = VAT_christian_empire
		}
	}

	VAT_low_protestantism_resistance = {
		complete_effect = {
			add_to_variable = {
				protestantism_power = -10
			}
			VAT_update_protestantism_power_modifier = yes
		}
	}

	VAT_set_curia_papal_vote_1 = {
		complete_effect = {
			set_variable = {
				current_law_pope_vote = 1
			}
		}
	}

	VAT_set_curia_papal_vote_0 = {
		complete_effect = {
			set_variable = {
				current_law_pope_vote = 0
			}
		}
	}

	VAT_set_curia_secretary_vote_1 = {
		complete_effect = {
			set_variable = {
				current_law_secretary_vote = 1
			}
		}
	}

	VAT_set_curia_secretary_vote_0 = {
		complete_effect = {
			set_variable = {
				current_law_secretary_vote = 0
			}
		}
	}

	# VAT_add_to_support_of_law_30 = {
	# 	complete_effect = {
	# 		add_to_temp_variable = {
	# 			temp_votes = 30
	# 		}
	# 	}
	# }

	VAT_set_curia_curent_law_1 = {
		complete_effect = {
			set_variable = {
				current_law = 1
			}
		}
	}

	VAT_delete_start_ideas = {
		complete_effect = {
			remove_ideas = {
				VAT_center_of_catholicism
				VAT_microstate
				Pius_XI_idea
			}
			remove_dynamic_modifier = {
				modifier = VAT_curia_support_modifier
			}
		}
	}

	VAT_delete_pope_ideas = {
		complete_effect = {
			remove_ideas = {
				VAT_traditional_values_idea_2
				VAT_help_for_needing_idea_2
				VAT_new_democratic_way_2
				VAT_autocratic_of_vatican_2
			}
		}
	}

	VAT_random_left_event_decision = {
		complete_effect = {
			country_event = {
				id = vat_random.16
				days = 5
				random_days = 10
			}
		}
	}

	VAT_random_right_event_decision = {
		complete_effect = {
			country_event = {
				id = vat_random.15
				days = 5
				random_days = 10
			}
		}
	}
	
	VAT_mafia = {
		cost = 0

		complete_effect = {
			set_variable = {mafia_power = 80}
			add_ideas = VAT_ruling_mafia
		}
	}
	
	VAT_mafia_power_u = {
		cost = 0

		complete_effect = {
			add_to_variable = { var = mafia_power value = 5 tooltip = mafia_power}
			clamp_variable = {
 				var = mafia_power
 				min = 0
 				max = 100
			}
			hidden_effect = {
				VAT_mafia_swap_idea = yes
			}
		}
	}
	
	VAT_mafia_power_d = {
		cost = 0

		complete_effect = {
			add_to_variable = { var = mafia_power value = -5 tooltip = mafia_power}
			clamp_variable = {
 				var = mafia_power
 				min = 0
 				max = 100
			}
			hidden_effect = {
				VAT_mafia_swap_idea = yes
			}
		}
	}
	
	VAT_opposition = {
		cost = 0

		complete_effect = {
			set_variable = {left_opposition_power = 80}
			set_variable = {right_opposition_power = 80}
			VAT_left_opposition_swap_idea = yes
			VAT_right_opposition_swap_idea = yes
		}
	}

	VAT_swipe_leader_to_democratic = {
		complete_effect = {
			# random_character = {
			# 	limit = { is_country_leader = yes }
				
			# }
			# set_country_leader_ideology = constitutional_theocratic_monarchy_democratic
			# set_politics = {
			# 	ruling_party = democratic
			# }
			random_character = {
				limit = { is_country_leader = yes }
				add_country_leader_role = {
					#character = 
					country_leader = {
						expire = "1958.10.9"
						ideology = constitutional_theocratic_monarchy
					}
					promote_leader = yes
				}
			}
			
		}
	}

	VAT_set_country_leader_ideology_constitutional_theocratic_monarchy = {
		complete_effect = {
			set_country_leader_ideology = constitutional_theocratic_monarchy
		}
	}

	VAT_subtract_negative_number ={
		complete_effect = {
			set_variable = {
				test_var = 0
			}
			subtract_from_variable = {
				var = test_var
				value = -10
			}
		}
	}

	VAT_check_flag_VAT_recent_voting_for_law = {
		complete_effect = {
			if = {
				limit = {
					has_country_flag = VAT_recent_voting_for_law
				}
				custom_effect_tooltip = yes
			}
			else = {
				custom_effect_tooltip = no
			}
		}
	}

	VAT_show_core_states = {
		complete_effect = {
			every_state = {
				limit = {
					NOT = {
						is_core_of = VAT
					}
				}
				transfer_state_to = GXC
				GXC = { set_cosmetic_tag = VAT_empty_country }
			}
		}
	}

	VAT_pupper_every_state = {
		complete_effect = {
			every_other_country = {
				VAT = { puppet = PREV }
			}
		}
	}

}
