###########################
##### Country Events #####
###########################

add_namespace = AUS_political_events
add_namespace = AUS_news_events


# The fate of Creditanstalt-Bankverein
country_event = {
	id = AUS_political_events.1
	title = AUS_political_events.1.t
	desc = AUS_political_events.1.desc 
	picture = GFX_report_event_SOV_national_academy_of_sciences
	is_triggered_only = yes
	fire_only_once = yes

	# It is safest to keep it the way it is
	option = {
		name = AUS_political_events.1.a 
		ai_chance = {  
			base = 70
		} 
		
		set_country_flag = AUS_kept_creditanstalt_bankverein_flag

		custom_effect_tooltip = AUS_political_events.1.a_tt
		show_ideas_tooltip = AUS_creditanstalt_bankverein
	}  

	# Creditanstalt should be prioritized
	option = {
		name = AUS_political_events.1.b 
		ai_chance = {  
			base = 15
			modifier  = {
				factor = 0
				AUS_is_historical_ai = yes
			}
		} 
		
		custom_effect_tooltip = AUS_reestablish_creditanstalt

		custom_effect_tooltip = available_industrial_concern
		show_ideas_tooltip = AUS_creditanstalt

		hidden_effect = {
			set_country_flag = AUS_saved_creditanstalt_flag
		}

	} 

	# Bankverein should be prioritized
	option = {
		name = AUS_political_events.1.c
		ai_chance = {  
			base = 15
			modifier  = {
				factor = 0
				AUS_is_historical_ai = yes
			}
		} 
		
		custom_effect_tooltip = AUS_reestablish_benkverein

		custom_effect_tooltip = available_industrial_concern
		show_ideas_tooltip = AUS_bankverein

		hidden_effect = {
			set_country_flag = AUS_saved_bankverein_flag
		}
		
	} 
}

country_event = { #The Phönix Scandal
	id = AUS_political_events.2
	title = AUS_political_events.2.t
	desc = AUS_political_events.2.desc 
	picture = GFX_report_event_generic_stock_traders
	trigger = {
		AND = {
			date > 1936.2.17 
			original_tag = AUS
			has_dlc = "Gotterdammerung"
		}
	}
	fire_only_once = yes

	option = { #we can't afford to cover the insurance!
		name = AUS_political_events.2.a
		ai_chance = {
			base = 5
			modifier = {
				factor = 10
				AUS_is_historical_ai = yes
			}
			modifier = {
				factor = 0.1
				OR = {
					has_government = communism
					has_government = democratic
				}
			}
		}
		remove_ideas = {
			AUS_phonix_insurance
		}
		swap_ideas = {
			remove_idea = AUS_recovering_from_the_depression
			add_idea = AUS_recurrent_economic_depression
		}
	}

	option = { #Our people needs that insurance
		name = AUS_political_events.2.b
		ai_chance = {
			base = 5
			modifier = {
				factor = 10
				OR = {
					has_government = communism
					has_government = democratic
				}
			}
			modifier = {
				factor = 2
				has_political_power > 149
			}
		}

		add_political_power = -100

		remove_ideas = AUS_phonix_insurance

		add_ideas = AUS_covering_the_phonix_insurances

		swap_ideas = {
			remove_idea = AUS_recovering_from_the_depression
			add_idea = AUS_recurrent_economic_depression
		}
		custom_effect_tooltip = AUS_political_events.2.b_tt
	}
}

country_event = { #Worry Regarding Anschluss
	id = AUS_political_events.3
	title = AUS_political_events.3.t
	desc = AUS_political_events.3.desc 
	picture = GFX_report_event_AUS_political_rally
	trigger = {
		AND = {
			GER = {
				has_completed_focus = GER_remilitarize_the_rhineland
				controls_state = 51
				controls_state = 42
				controls_state = 1551
				controls_state = 1251
				controls_state = 1253
				controls_state = 1254
				controls_state = 1414
			}

			51 = { is_demilitarized_zone = no }
			42 = { is_demilitarized_zone = no }
			1551 = { is_demilitarized_zone = no }
			1251 = { is_demilitarized_zone = no }
			1253 = { is_demilitarized_zone = no }
			1254 = { is_demilitarized_zone = no }
			1414 = { is_demilitarized_zone = no }

			original_tag = AUS
			has_dlc = "Gotterdammerung"
		}
	}

	fire_only_once = yes

	option = {
		name = AUS_political_events.3.a

		custom_effect_tooltip = AUS_political_events.3.a_tt

		hidden_effect = {
			set_country_flag = AUS_antischluss_active_flag
			
			set_variable = { global.low_anschluss_risk = global.deployed_manpower_ratio_needed_for_anschluss }

			set_variable = { global.medium_anschluss_risk = global.deployed_manpower_ratio_needed_for_anschluss }

			set_variable = { global.high_anschluss_risk = global.deployed_manpower_ratio_needed_for_anschluss }

			multiply_variable = {
				var = global.low_anschluss_risk
				value = 0.5
			}

			multiply_variable = {
				var = global.medium_anschluss_risk
				value = 0.75
			}

			multiply_variable = {
				var = global.high_anschluss_risk
				value = 0.90
			}
			
		}
	}	
}

country_event = { #Theodor Innitzer is no longer fascist
	id = AUS_political_events.4
	title = AUS_political_events.4.t
	desc = AUS_political_events.4.desc
	picture = GFX_report_event_generic_parliament
	trigger = {
		AND = {
			original_tag = AUS
			has_country_flag = AUS_antischluss_active_flag
			date > 1938.10.7
			GER = {
				has_government = fascism
			}
			AUS = { has_country_flag = AUS_antischluss_active_flag }
			has_dlc = "Gotterdammerung" 
		}
		NOT = {
			OR = {
				has_completed_focus = AUS_cut_ties_with_the_church
				is_in_faction = yes
			}
		}
	}

	fire_only_once = yes

	option = { #fire this man
		name = AUS_political_events.4.a
		ai_chance = {
			base = 1
			modifier = {
				factor = 10
				has_government = fascism
			}
		}

		add_popularity = {
			ideology = fascism
			popularity = 0.1
		}

		add_opinion_modifier = {
			target = GER
			modifier = small_decrease
		}

		retire_character = AUS_theodor_innitzer
	}

	option = { #good for him?
		name = AUS_political_events.4.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 10
				OR = {
					has_government = democratic
					has_government = communism
				}
			}
		}

		remove_trait = {
			character = AUS_theodor_innitzer # optional if inside character scope 
			trait = AUS_fascist_cardinal
			slot = political_advisor #Only required for updating advisor 	
		}

		add_trait = {
			character = AUS_theodor_innitzer # optional if inside character scope 
			trait = AUS_no_longer_fascist_cardinal
			slot = political_advisor #Only required for updating advisor 
		}

		add_opinion_modifier = {
			target = GER
			modifier = large_decrease
		}

		every_country = {
			limit = {
				is_in_faction_with = GER
			}
			add_opinion_modifier = {
				target = ROOT
				modifier = small_decrease
			}
		}
	}
}

country_event = { #Austria seeks partnership regarding their airforce
	id = AUS_political_events.5
	title = AUS_political_events.5.t
	desc = AUS_political_events.5.desc
	picture = GFX_report_event_generic_bombers

	is_triggered_only = yes

	option = { #That sounds like a great idea, and give them market access too!
		name = AUS_political_events.5.a
		trigger = {
			has_dlc = "Arms Against Tyranny"
		}
		ai_chance = {
			base = 1
			modifier = {
				factor = 6
				has_opinion = {
					target = FROM
					value > 39 
				}
			}
		}

		ROOT = {
			add_opinion_modifier = {
				target = FROM
				modifier = AUS_air_force_partnership_big
			}
	
			air_experience = 50

			IF = {
				limit = {
					NOT = { has_market_access_with = FROM } 
				}
				give_market_access = FROM
			}

			set_country_flag = AUS_this_country_agreed_to_air_partnership
		}


		FROM = {
			add_opinion_modifier = {
				target = ROOT
				modifier = AUS_air_force_partnership_big
			}

			hidden_effect = {
				country_event = {
					id = AUS_political_events.6
					hours = 48
				}
			}

		}
	}

	option = { #Can't hurt to exercise together
		name = AUS_political_events.5.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 3
				has_opinion = {
					target = FROM
					value > 9
				}
			}
		}

		ROOT = {
			air_experience = 25
	
			add_opinion_modifier = {
				target = FROM
				modifier = AUS_air_force_partnership_small
			}

			set_country_flag = AUS_this_country_agreed_to_air_partnership
		}

		FROM = {
			add_opinion_modifier = {
				target = ROOT
				modifier = AUS_air_force_partnership_small
			}

			country_event = {
				id = AUS_political_events.7
				hours = 48
			}
		}
	}


	option = { #They started the last war and have fingers in this one too. No thanks.
		name = AUS_political_events.5.c

		ai_chance = {
			base = 1
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value < 0
				}
			}
		}

		add_political_power = 150

		FROM = {
			add_opinion_modifier = {
				target = ROOT
				modifier = AUS_rejected_air_force_partnership
			}

			country_event = {
				id = AUS_political_events.8
				hours = 48
			}
		}
	}
}

country_event = { #FROM agrees to the proposal and gives us market access
	id = AUS_political_events.6
	title = AUS_political_events.6.t
	desc = AUS_political_events.6.desc
	picture = GFX_report_event_airplane_factory

	is_triggered_only = yes

	option = { #great news!
		name = AUS_political_events.6.a

		air_experience = 50

		event_option_tooltip = AUS_political_events.5.a
	}
}

country_event = { #FROM agrees to the proposal 
	id = AUS_political_events.7
	title = AUS_political_events.7.t
	desc = AUS_political_events.7.desc
	picture = GFX_report_event_fighters

	is_triggered_only = yes

	option = { #great news!
		name = AUS_political_events.7.a

		air_experience = 50

		effect_tooltip = {
			
			add_opinion_modifier = {
				target = FROM
				modifier = AUS_air_force_partnership_small
			}

			FROM = {
				add_opinion_modifier = {
					target = ROOT
					modifier = AUS_air_force_partnership_small
				}
			}
		}
	}
}

country_event = { #FROM rejects the proposal
	id = AUS_political_events.8
	title = AUS_political_events.8.t
	desc = AUS_political_events.8.desc
	picture = GFX_report_event_military_planning

	is_triggered_only = yes

	option = { #great news!
		name = AUS_political_events.8.a

		effect_tooltip = {
			
			ROOT = {
				add_opinion_modifier = {
					target = FROM
					modifier = AUS_rejected_air_force_partnership
				}
			}
		}
	}
}

country_event = { #German assassination of Wilhelm Zehner, Zehner dies
	id = AUS_political_events.9
	title = AUS_political_events.9.t
	desc = AUS_political_events.9.desc
	picture = GFX_report_event_generic_riot

	is_triggered_only = yes
	option = {
		name = AUS_political_events.9.a
		
		custom_effect_tooltip = AUS_political_events.9.a_tt
		hidden_effect = {
			retire_character = AUS_wilhelm_zehner
		}

		add_opinion_modifier = {
			target = GER
			modifier = large_decrease
		}

		custom_effect_tooltip = AUS_anschluss_ratio_lowered
		AUS_lower_anschluss_ratio = yes

		#the tooltips were lying, the ticking rate doesn't start here, it starts in .103
	}
}

country_event = { #German assassination of Wilhelm Zehner, Zehner lives
	id = AUS_political_events.10
	title = AUS_political_events.10.t
	desc = AUS_political_events.10.desc
	picture = GFX_report_event_czech_soldiers_01

	is_triggered_only = yes
	option = {
		name = AUS_political_events.10.a
		
		add_political_power = 150

		add_opinion_modifier = {
			target = GER
			modifier = large_decrease
		}

		GER = {
			add_opinion_modifier = {
				target = AUS
				modifier = large_decrease
			}
		}
	}
}

country_event = { #triggers missions for countdown to murder of MHC
	id = AUS_political_events.11
	title = AUS_political_events.11.t
	desc = AUS_political_events.11.desc
	picture = GFX_report_event_generic_sign_treaty1

	fire_only_once = yes
	trigger = {
		tag = AUS
		has_dlc = "Gotterdammerung"
		has_country_flag = AUS_antischluss_active_flag
		GER = {
			AND = {
				exists = yes
				NOT = { is_in_faction_with = AUS }
				NOT = { has_war_with = AUS }
				has_government = fascism
			}
		}
		date > 1938.1.12
	}
	option = { #refuse to remove Zehner
		name = AUS_political_events.11.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 2
				OR = {
					has_government = neutrality
					has_government = democratic
				}
			}
			modifier = {
				factor = 0.1
				AUS_is_historical_ai = yes
			}
		}

		custom_effect_tooltip = AUS_political_events.11.a_tt
		
		hidden_effect = {
			set_country_flag = AUS_germans_plotting_murder_flag
		}	
	}

	option = { #remove zehner
		name = AUS_political_events.11.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 10
				OR = {
					has_government = fascism
					AUS_is_historical_ai = yes
				}
				
			}
		}
		
		retire_character = AUS_wilhelm_zehner	

		custom_effect_tooltip = AUS_anschluss_ratio_lowered
		AUS_lower_anschluss_ratio = yes

		#the tooltips were lying, the ticking rate doesn't start here, it starts in .103
	}
}

country_event = { #Austria offers Infantry equipment to Italy
	id = AUS_political_events.12
	title = AUS_political_events.12.t
	desc = AUS_political_events.12.desc
	picture = GFX_report_event_generic_rifles

	fire_only_once = yes

	is_triggered_only = yes

	option = {
		name = AUS_political_events.12.a
		ai_chance = {
			base = 10

		}

		add_equipment_to_stockpile = { 
			type = infantry_equipment
			amount = 500 
			producer = FROM
		}

		add_opinion_modifier = {
			target = FROM
			modifier = medium_increase
		}
		
	}
}

country_event = { #Austria speaks out against embargo of Italy
	id = AUS_political_events.13
	title = AUS_political_events.13.t
	desc = AUS_political_events.13.desc
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes

	option = { #Excuse me, who do they think they are?
		name = AUS_political_events.13.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 0.1
				has_opinion = {
					target = FROM
					value < 25
				}
			}
		}


		add_opinion_modifier = {
			target = FROM
			modifier = small_decrease
		}
	

		FROM = {
			add_opinion_modifier = {
				target = ROOT
				modifier = small_decrease
			}
		}
	}

	option = { #Fine then
		name = AUS_political_events.13.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 24
				}
			}
		}

		FROM = {
			add_opinion_modifier = {
				target = ROOT
				modifier = small_increase
			}
		}

		break_embargo = ITA
	}
}

country_event = { #Informs Italy of Austria speaking out on their behalf
	id = AUS_political_events.14
	title = AUS_political_events.14.t
	desc = AUS_political_events.14.desc
	picture = GFX_report_event_generic_sign_treaty1

	fire_only_once = yes

	is_triggered_only = yes

	option = {
		name = AUS_political_events.14.a
		ai_chance = {
			base = 10
		}

		add_opinion_modifier = {
			target = FROM
			modifier = took_stand_for_us
		}
	}
}

country_event = { #Informs Germany of Austria's DNSAP ban
	id = AUS_political_events.15
	title = AUS_political_events.15.t
	desc = AUS_political_events.15.desc
	picture = GFX_report_event_gathering_protest 

	fire_only_once = yes

	is_triggered_only = yes

	option = { #Issue protest and demand Syess Inqart in the government
		name = AUS_political_events.15.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 10
				GER_is_historical_ai = yes
			}
		}

		trigger = {
			ROOT = {
				has_government = fascism
				has_civil_war = no
			}
		}

		add_political_power = -50

		add_opinion_modifier = {
			target = FROM
			modifier = AUS_banned_dnsap
		}

		FROM = {
			country_event = {
				id = AUS_political_events.16
				days = 1
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt
		custom_effect_tooltip = if_they_accept_tt

		
		FROM = {
			custom_effect_tooltip = AUS_political_events.16.a_tt

			effect_tooltip = {
				IF = {
					limit = {
						has_completed_focus = AUS_reinstate_the_imperial_council
					}

					add_advisor_role = {
						character = AUS_arthur_seyss-inquart
						advisor = {
							slot = political_advisor 
							can_be_fired = no
							idea_token = AUS_arthur_seyss-inquart
							traits = {
								AUS_vocal_german_unionist_fascism
							}
						}
					}
				}

				ELSE = {
					add_advisor_role = {
						character = AUS_arthur_seyss-inquart
						advisor = {
							slot = political_advisor 
							can_be_fired = no
							idea_token = AUS_arthur_seyss-inquart
							traits = {
								AUS_vocal_german_unionist
							}
						}
					}
				}
			}	
		}
		
		custom_effect_tooltip = generic_skip_one_line_tt
		custom_effect_tooltip = AUS_anschluss_ratio_lowered
	}

	option = { #Issue Diplomatic Objection
		name = AUS_political_events.15.b
		ai_chance = {
			base = 5
		}

			trigger = {
			ROOT = {
				has_government = fascism
				has_civil_war = no
			}
		}

		add_opinion_modifier = {
			target = FROM
			modifier = AUS_banned_dnsap
		}

		FROM = {
			country_event = {
				id = AUS_political_events.17
				days = 1
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt
	}

	option = { #Germany is in a civil war and doesn't care
		name = AUS_political_events.15.c
		ai_chance = {
			base = 5
		}

		trigger = {
			ROOT = {
				has_government = fascism
				has_civil_war = yes
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt
	}
}

country_event = { # Event for Austria Germany Objects to the DNSAP ban and demands Syess Inquart in Government
	id = AUS_political_events.16
	title = AUS_political_events.16.t
	desc = AUS_political_events.16.desc
	picture = GFX_report_event_fascist_speech 

	fire_only_once = yes

	is_triggered_only = yes

	option = { #Austria admits Arthur Syess Inquart as and advisor
		name = AUS_political_events.16.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 20
				AUS_is_historical_ai = yes
			}
		}
		

		ROOT = {

			hidden_effect = {
				AUS_arthur_seyss-inquart = {
					remove_advisor_role = {
						slot = political_advisor 
					}
				}
			}

			
			IF = {
				limit = {
					has_completed_focus = AUS_reinstate_the_imperial_council
				}

				add_advisor_role = {
					character = AUS_arthur_seyss-inquart
					advisor = {
						slot = political_advisor 
						can_be_fired = no
						idea_token = AUS_arthur_seyss-inquart
						traits = {
							AUS_vocal_german_unionist_fascism
						}
					}
				}

				add_popularity = {
					ideology = fascism
					popularity = 0.05
				}
			}

			ELSE = {
				add_advisor_role = {
					character = AUS_arthur_seyss-inquart
					advisor = {
						slot = political_advisor 
						can_be_fired = no
						idea_token = AUS_arthur_seyss-inquart
						traits = {
							AUS_vocal_german_unionist
						}
					}
				}

				add_popularity = {
					ideology = neutrality
					popularity = 0.05
				}
			}
			
			
			hidden_effect = {
				activate_advisor = AUS_arthur_seyss-inquart	
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			add_opinion_modifier = {
				target = FROM
				modifier = AUS_meddling_with_our_politics
			}
			FROM = {
				country_event = {
					id = AUS_political_events.18
					days = 1
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = AUS_anschluss_ratio_lowered
			
			AUS_lower_anschluss_ratio = yes
		}
	}

	option = { #Austria Refuses
		name = AUS_political_events.16.b
		ai_chance = {
			base = 5
			modifier = {
				factor = 2 
				has_government = democratic
				FROM = {
					OR = {
						has_government = fascism
						has_government = neutrality 
					}
				}
			}
			modifier = {
				factor = 0.1
				AUS_is_historical_ai = yes
				NOT = {
					has_country_flag = AUS_AI_RANDOM_ANTI_ANSCLUSS_STRESS
					has_game_rule = {
						rule = AUS_AI_BEHAVIOR
						option = AUS_ANTI_ANSCLUSS_STRESS
					}
				}
			}

			modifier = {
				factor = 2000
				OR = {
					has_country_flag = AUS_AI_RANDOM_ANTI_ANSCLUSS_STRESS
					has_game_rule = {
						rule = AUS_AI_BEHAVIOR
						option = AUS_ANTI_ANSCLUSS_STRESS
					}
				}
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		add_political_power = -50

		add_opinion_modifier = {
			target = FROM
			modifier = AUS_meddling_with_our_politics
		}

		FROM = {
			country_event = {
				id = AUS_political_events.99
				days = 1
			}
		}

		custom_effect_tooltip = AUS_anschluss_ratio_raised
	}
}

country_event = { #Germany Objects to the DNSAP ban
	id = AUS_political_events.17
	title = AUS_political_events.17.t
	desc = AUS_political_events.17.desc
	picture = GFX_report_event_fascist_speech 

	fire_only_once = yes

	is_triggered_only = yes

	option = { #Austria doesn't care
		name = AUS_political_events.17.a
		ai_chance = {
			base = 10
		}

		add_opinion_modifier = {
			target = FROM
			modifier = AUS_meddling_with_our_politics
		}
		
	}
}

country_event = { #Austria informs Germany that Syess Inqart has been installed
	id = AUS_political_events.18
	title = AUS_political_events.18.t
	desc = AUS_political_events.18.desc
	picture = GFX_report_event_fascist_speech

	fire_only_once = yes

	is_triggered_only = yes

	option = { #Good
		name = AUS_political_events.18.a
		ai_chance = {
			base = 10
		}

		custom_effect_tooltip = AUS_anschluss_ratio_lowered
	}
}

country_event = { #Godwin von Brumowski offers his service
	id = AUS_political_events.19
	title = AUS_political_events.19.t
	desc = AUS_political_events.19.desc
	picture = GFX_report_event_fighters

	fire_only_once = yes

	is_triggered_only = yes

	option = { #Yes please! All help is wecome
		name = AUS_political_events.19.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 0.1
				OR = {
					has_government = democratic
					has_government = communism
				}
			}
		}
		set_country_flag = AUS_von_brumowski_recruited_flag

		custom_effect_tooltip = available_chief_of_airforce
		show_ideas_tooltip = AUS_godwin_von_brumowski
	}

	option = { #We have no need of daredevils in such positions
		name = AUS_political_events.19.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 10
				OR = {
					has_government = democratic
					has_government = communism
				}
			}
		}

	}
}

country_event = { #Austria seeks ROOT's support
	id = AUS_political_events.20
	title = AUS_political_events.20.t
	desc = AUS_political_events.20.desc
	picture = GFX_report_event_fascist_gathering

	is_triggered_only = yes

	option = { #Of course! We will guarantee them (subsidy?)
		name = AUS_political_events.20.a
		ai_chance = {
			base = 1
			modifier = { #they helped us deal with Ethiopia
				factor = 2
				original_tag = ITA
				count_triggers = {
					amount > 0
					has_country_flag = AUS_provided_infantry_equipment_for_italy_flag
					has_country_flag = AUS_volunteer_effort_ITA_flag
					has_country_flag = AUS_spoke_out_against_embargo_flag
				}
			}

			modifier = {
				factor = 5
				has_opinion = {
					target = FROM
					value > 49
				}
			}

			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 74
				}
			}

			modifier = {
				factor = 0.25
				
				OR = {
					original_tag = USA
					original_tag = ITA
				}
				
				FROM = {
					
					has_government = communism
					
				}
			}
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				AUS = {
					is_ai = yes
				}
				NOT = {
					has_country_flag = AUS_AI_RANDOM_ANTI_ANSCLUSS_STRESS
					has_game_rule = {
						rule = AUS_AI_BEHAVIOR
						option = AUS_ANTI_ANSCLUSS_STRESS
					}
				}
			}

			modifier = {
				factor = 0.5
				is_historical_focus_on = yes
				AUS = {
					is_ai = yes
				}
				OR = {
					has_country_flag = AUS_AI_RANDOM_ANTI_ANSCLUSS_STRESS
					has_game_rule = {
						rule = AUS_AI_BEHAVIOR
						option = AUS_ANTI_ANSCLUSS_STRESS
					}
				}
			}

			modifier = { #if the USA has passed the neutrality pact, the answer is no
				factor = 0
				original_tag = USA
				USA = {
					has_country_flag = {
						flag = USA_passed_neutrality_pact_flag
					}
				}
			}
		}


		IF = {
			limit = { 
				has_dlc = "Arms Against Tyranny" 
				NOT = {
					original_tag = ENG
					original_tag = USA
				}
			}

			IF = {
				limit = { NOT = { has_market_access_with = FROM } }
			}
			give_market_access = FROM
			
			FROM = {
				add_equipment_subsidy = {
					cic = 1000  
					equipment_type = infantry_equipment 
					seller_tags = { ROOT }  			
				}
			}

		}

		ELSE_IF = {
			limit = {
				original_tag = ENG
				original_tag = USA
			}

			FROM = {
				add_equipment_to_stockpile = { 
					type = infantry_equipment
					amount = 500
					producer = ROOT
				}
			}
			
		}

		

		FROM = {
			add_equipment_to_stockpile = { 
				type = infantry_equipment
				amount = 500
				producer = ROOT
			}
		}
		

		FROM = {
			add_opinion_modifier = {
				target = ROOT
				modifier = took_stand_for_us
			}

			country_event = {
				id = AUS_political_events.21
				days = 1
			}
		}
		
		give_guarantee = FROM

		IF = {
			limit = {
				ROOT = {
					original_tag = ITA
				}
			}
			effect_tooltip = {
				FROM = {
					give_military_access = ROOT
				}
			}
		}

	}

	option = { #We will issue an embargo on Germany and support them diplomatically
		name = AUS_political_events.20.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 25
				}
			}

			modifier = {
				factor = 2
				FROM = {
					NOT = {
						has_government = communism
					}
				}
			}

			modifier = { #if the USA has passed the neutrality pact, the answer is no
				factor = 0
				original_tag = USA
				USA = {
					has_country_flag = {
						flag = USA_passed_neutrality_pact_flag
					}
				}
			}
			
		}

		IF = {
			limit = { 
				has_dlc = "Arms Against Tyranny" 
				NOT = {
					FROM = {
						has_market_access_with = ROOT
					}
					original_tag = ENG
					original_tag = USA
				}
			}

			FROM = {
				add_equipment_subsidy = {
					cic = 1000  
					equipment_type = infantry_equipment 
					seller_tags = { ROOT }  			
				}
			}
			give_market_access = FROM
		}

		ELSE_IF = {
			limit = { 
				has_dlc = "Arms Against Tyranny" 
				NOT = {
					FROM = {
						has_market_access_with = ROOT
					}
				}
				original_tag = USA
			}
			FROM = {
				add_equipment_to_stockpile = { 
					type = infantry_equipment
					amount = 500
					producer = ROOT
				}
			}
		}

		ELSE_IF = {
			limit = { 
				has_dlc = "Arms Against Tyranny" 
				NOT = {
					FROM = {
						has_market_access_with = ROOT
					}
				}
				original_tag = ENG
			}

			add_political_power = -100

			FROM = {
				add_equipment_to_stockpile = { 
					type = infantry_equipment
					amount = 500
					producer = ROOT
				}
			}
		}

		FROM = {
			add_equipment_to_stockpile = { 
				type = infantry_equipment
				amount = 500
				producer = ROOT
			}
		}
	

		send_embargo = GER

		FROM = {
			add_opinion_modifier = {
				target = ROOT
				modifier = took_stand_for_us
			}
			country_event = {
				id = AUS_political_events.22
				days = 1
			}
		}
	}

	option = { #We could help them, if they renounce their claims.
		name = AUS_political_events.20.c
		trigger = { original_tag = ITA }
		ai_chance = {
			base = 1
			modifier = {
				factor = 2
				FROM = {
					NOT = {
						has_government = communism
					}
				}
			}
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				FROM = {
					is_ai = yes
				}
			}
		}

		FROM = {
			country_event = {
				id = AUS_political_events.23
				days = 1
			}
		}

		custom_effect_tooltip = if_they_accept_tt

		event_option_tooltip = AUS_political_events.23.a


	}

	option = { #Why would we endanger ourselves for them?
		name = AUS_political_events.20.d
		ai_chance = {
			base = 1
			modifier = { #They helped Italy invade Ethiopia, hell no
				factor = 10
				NOT = { original_tag = ITA }
				count_triggers = {
					amount > 0
					has_country_flag = AUS_provided_infantry_equipment_for_italy_flag
					has_country_flag = AUS_volunteer_effort_ITA_flag
					has_country_flag = AUS_spoke_out_against_embargo_flag
				}
			}
			modifier = {
				factor = 50
				is_historical_focus_on = yes
				FROM = {
					is_ai = yes
				}
			}
		}

		FROM = {
			country_event = {
				id = AUS_political_events.24
				days = 1
			}		
		}
	}
}

country_event = { #Austria finds out FROM guarantees them
	id = AUS_political_events.21
	title = AUS_political_events.21.t
	desc = AUS_political_events.21.desc
	picture = GFX_report_event_generic_italian_fascists

	is_triggered_only = yes

	option = { #Excellent
		name = AUS_political_events.21.a
		ai_chance = {
			base = 10
		}

		IF = {
			limit = { 
				has_dlc = "Arms Against Tyranny" 
				FROM = {
					NOT = {
						OR = {
							original_tag = ENG
							original_tag = USA
						}
					}
				}
			}

			add_equipment_subsidy = {
				cic = 1000  
				equipment_type = infantry_equipment 
				seller_tags = { FROM }  			
			}
			

			add_equipment_to_stockpile = { 
				type = infantry_equipment
				amount = 500
				producer = FROM
			}
		}
		ELSE_IF = {
			limit = {
				OR = {
					FROM = {
						OR = {
							original_tag = ENG
							original_tag = USA
						}
					}
					NOT = { has_dlc = "Arms Against Tyranny" }
				}
			}

			add_equipment_to_stockpile = { 
				type = infantry_equipment
				amount = 1000
				producer = FROM
			}
		}


		IF = {
			limit = {
				FROM = {
					original_tag = ITA
				}
			}
			give_military_access = FROM
			set_country_flag = AUS_got_ita_guarantee_flag
		}

		effect_tooltip = {
			FROM = {
				give_guarantee = ROOT
			}
		}

		add_ai_strategy = { 
			type = befriend 
			id = FROM
			value = 80
		}

		FROM = {
			add_ai_strategy = { 
				type = protect
				id = FROM
				value = 80
			}
		}
		
	}
}

country_event = { #Austria finds out FROM diplomatically supports them
	id = AUS_political_events.22
	title = AUS_political_events.22.t
	desc = AUS_political_events.22.desc
	picture = GFX_report_event_generic_handshake

	is_triggered_only = yes

	option = { #Better than nothing
		name = AUS_political_events.22.a
		ai_chance = {
			base = 10
		}

		effect_tooltip = {
			IF = {
				limit = { 
					has_dlc = "Arms Against Tyranny" 
					FROM = {
						NOT = {
							original_tag = ENG
							original_tag = USA
						}
					}
				}
				
				add_equipment_subsidy = {
					cic = 1000  
					equipment_type = infantry_equipment 
					seller_tags = { FROM }  			
				}
				
			}

			ELSE_IF = {
				limit = {
					FROM = {
						original_tag = ENG
						original_tag = USA
					}
				}

				add_equipment_to_stockpile = { 
					type = infantry_equipment
					amount = 500
					producer = FROM
				}
				
			}

			add_equipment_to_stockpile = { 
				type = infantry_equipment
				amount = 500
				producer = FROM
			}

			add_opinion_modifier = {
				target = FROM
				modifier = took_stand_for_us
			}	
		}
	}

	option = { #words won't save us
		name = AUS_political_events.22.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 0 #kindly don't
				AUS_is_historical_ai = yes
				NOT = {
					has_game_rule = {
						rule = AUS_AI_BEHAVIOR
						option = AUS_ANTI_ANSCLUSS_STRESS
					}
				}
			}

			modifier = {
				factor = 2
				NOT = {
					any_country = {
						has_guaranteed = ROOT
					}
				}
			}

			modifier = {
				factor = 200
				OR = {
					has_country_flag = AUS_AI_RANDOM_ANTI_ANSCLUSS_STRESS
					has_game_rule = {
						rule = AUS_AI_BEHAVIOR
						option = AUS_ANTI_ANSCLUSS_STRESS
					}
				}
			}
		}

		effect_tooltip = {
			IF = {
				limit = { 
					has_dlc = "Arms Against Tyranny" 
					FROM = {
						NOT = {
							original_tag = ENG
							original_tag = USA
						}
					}
				}
				
				add_equipment_subsidy = {
					cic = 1000  
					equipment_type = infantry_equipment 
					seller_tags = { FROM }  			
				}
				
			}

			ELSE_IF = {
				limit = {
					FROM = {
						original_tag = ENG
						original_tag = USA
					}
				}

				add_equipment_to_stockpile = { 
					type = infantry_equipment
					amount = 500
					producer = FROM
				}
				
			}

			add_equipment_to_stockpile = { 
				type = infantry_equipment
				amount = 500
				producer = FROM
			}
			
			add_opinion_modifier = {
				target = FROM
				modifier = took_stand_for_us
			}	
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = {
			country_event = {
				id = AUS_political_events.70
				hours = 12
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		custom_effect_tooltip = if_they_accept_newline_tt
		effect_tooltip = {
			IF = {
				limit = {
					NOT = {
						has_dynamic_modifier = {
							modifier = AUS_compensation_for_guarantee
						}
					}
				}
				
				add_dynamic_modifier = {
					modifier = AUS_compensation_for_guarantee
					days = 365
				}	
				add_to_variable = { AUS_compensation_for_guarantee_consumer_goods_factor = 0.1 tooltip = consumer_goods_factor_tt }

			}

			ELSE_IF = {
				limit = {
					has_dynamic_modifier = {
						modifier = AUS_compensation_for_guarantee
					}
				}

				custom_effect_tooltip = AUS_compensation_for_guarantee_intro_tt

				add_to_variable = { AUS_compensation_for_guarantee_consumer_goods_factor = 0.1 tooltip = consumer_goods_factor_tt }
			}

			IF = {
				limit = {
					FROM = {
						original_tag = ENG
					}
				}
				FROM = { 
					random_owned_state = {
						limit = {
							is_fully_controlled_by = FROM
						}
	
						prioritize = { 126 132 } #Greater London Area or Lancashire
	
						add_extra_state_shared_building_slots = 2
	
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
	
					give_guarantee = ROOT
	
	
					add_ai_strategy = { 
						type = protect
						id = ROOT
						value = 80
					}
				
				}
			
			}

			IF = {
				limit = {
					FROM = {
						original_tag = USA
					}
				}
	
				FROM = {
					random_owned_state = {
						limit = {
							is_fully_controlled_by = FROM
						}
	
						prioritize = { 361 378 } #Maryland or California
	
						add_extra_state_shared_building_slots = 2
	
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
	
					give_guarantee = ROOT
	
					add_ai_strategy = { 
						type = protect
						id = ROOT
						value = 80
					}
				}
				
			}

			IF = {
				limit = {
					FROM = {
						original_tag = FRA
					}
				}
	
				FROM = {
					random_owned_state = {
						limit = {
							is_fully_controlled_by = FROM
						}
	
						prioritize = { 16 19 } #Ile de France or Aquitane
	
						add_extra_state_shared_building_slots = 2
	
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
	
					give_guarantee = ROOT
	
					add_ai_strategy = { 
						type = protect
						id = ROOT
						value = 80
					}
	
				}
				
			}

			IF = {
				limit = {
					FROM = {
						original_tag = ITA
					}
				}
	
				FROM = {
					random_owned_state = {
						limit = {
							is_fully_controlled_by = FROM
						}
	
						prioritize = { 2 17 } #Lazio or Campania
	
						add_extra_state_shared_building_slots = 2
	
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
	
					give_guarantee = ROOT
	
					add_ai_strategy = { 
						type = protect
						id = ROOT
						value = 80
					}
				}		
			}


		}
	}
}

country_event = { #Italy requests Austria revokes their claims in turn for guarantees
	id = AUS_political_events.23
	title = AUS_political_events.23.t
	desc = AUS_political_events.23.desc
	picture = GFX_report_event_ITA_grand_council

	fire_only_once = yes

	is_triggered_only = yes

	option = { #Our general safety is more important
		name = AUS_political_events.23.a
		ai_chance = {
			base = 1
			modifier = {
				factor = 0.1
				OR = {
					has_government = neutrality
					has_government = fascism
				}
			}

			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 49
				}
			}

			modifier = {
				factor = 200
				OR = {
					has_country_flag = AUS_AI_RANDOM_ANTI_ANSCLUSS_STRESS
					has_game_rule = {
						rule = AUS_AI_BEHAVIOR
						option = AUS_ANTI_ANSCLUSS_STRESS
					}
				}
			}
		}

		remove_state_claim = 39 #Alto Adige
		remove_state_claim = 850 #Trentino

		FROM = {
			give_guarantee = ROOT

			country_event = {
				id = AUS_political_events.25
				days = 1
			}
		}

		give_military_access = FROM
	}

	option = { #out of the question! Those lands are ours!
		name = AUS_political_events.23.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 10
				OR = {
					has_government = neutrality
					has_government = fascism
				}
			}

			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value < 0
				}
			}

		}
		FROM = {
			country_event = {
				id = AUS_political_events.26
				days = 1
			}
		}
	}
}

country_event = { #Austria finds out FROM won't help
	id = AUS_political_events.24
	title = AUS_political_events.24.t
	desc = AUS_political_events.24.desc
	picture = GFX_report_event_gathering_protest

	is_triggered_only = yes

	option = { #we should never have trusted them
		name = AUS_political_events.24.a
		ai_chance = {
			base = 10
		}

		add_opinion_modifier = {
			target = FROM
			modifier = refused_help
		}

		add_war_support = 0.05
	}

	option = { #pretty please?
		name = AUS_political_events.24.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 0.1
				is_ai = yes
				NOT = {
					has_game_rule = {
						rule = AUS_AI_BEHAVIOR
						option = AUS_ANTI_ANSCLUSS_STRESS
					}
				}
			}

			modifier = {
				factor = 200
				OR = {
					has_country_flag = AUS_AI_RANDOM_ANTI_ANSCLUSS_STRESS
					has_game_rule = {
						rule = AUS_AI_BEHAVIOR
						option = AUS_ANTI_ANSCLUSS_STRESS
					}
				}
			}
		}

		FROM = {
			country_event = {
				id = AUS_political_events.70
				hours = 12
			}
		}

		custom_effect_tooltip = if_they_accept_newline_tt
		event_option_tooltip = AUS_political_events.71.a
	}
}

country_event = { #Italy notified of Austria revoking claims
	id = AUS_political_events.25
	title = AUS_political_events.25.t
	desc = AUS_political_events.25.desc
	picture = GFX_report_event_generic_handshake

	fire_only_once = yes

	is_triggered_only = yes

	option = { #Great, then they shall have their guarantee
		name = AUS_political_events.25.a
		ai_chance = {
			base = 10
		}
		IF = {
			limit = { has_dlc = "Arms Against Tyranny" }

			FROM = {
				add_equipment_subsidy = {
					cic = 1000  
					equipment_type = infantry_equipment 
					seller_tags = { ITA }  			
				}
			}
		}

		ELSE = {

			FROM = {
				add_equipment_to_stockpile = { 
					type = infantry_equipment
					amount = 500
					producer = ITA
				}
			}
		}

		effect_tooltip = {

			give_guarantee = FROM
		}


		FROM = {
			add_opinion_modifier = {
				target = ITA
				modifier = took_stand_for_us
			}
			country_event = {
				id = AUS_political_events.21
				days = 1
			}
		}		
	}
}

country_event = { #Italy notified of Austria refusing to revoke claims
	id = AUS_political_events.26
	title = AUS_political_events.26.t
	desc = AUS_political_events.26.desc
	picture = GFX_report_event_gathering_protest

	fire_only_once = yes

	is_triggered_only = yes

	option = { #Then they get no help either.
		name = AUS_political_events.26.a
		ai_chance = {
			base = 10
		}
		add_opinion_modifier = {
			target = FROM
			modifier = medium_decrease
		}

		FROM = {
			country_event = {
				id = AUS_political_events.24
				days = 1
			}
		}
	}
}

country_event = { #ROOT informed that Austria wishes to rearm, does not use FROM as this is a loop.
	id = AUS_political_events.27
	title = AUS_political_events.27.t
	desc = AUS_political_events.27.desc
	picture = GFX_report_event_german_troops

	is_triggered_only = yes

	

	option = { #Let them, we trust them
		name = AUS_political_events.27.a
		ai_chance = {
			base = 1
			modifier = {
				factor = 10
				has_government = AUS
			}
			modifier = {
				factor = 5
				has_opinion = {
					target = AUS
					value > 49
				}
			}
			modifier = {
				factor = 2
				has_opinion = {
					target = AUS
					value > 74
				}
			}
		}

		add_political_power = 50

		AUS = {
			add_opinion_modifier = {
				target = ROOT
				modifier = medium_increase
			}
		}

		IF = { #ROOT IS ITALY
			limit = {
				ROOT = { original_tag = ITA }
			}

			IF = {
				limit = {
					FRA = {
						exists = yes
					}
				}

				FRA = {
					country_event = {
						id = AUS_political_events.27
						hours = 12
					}
				}
			}

			ELSE_IF = {
				limit = {
					ENG = {
						exists = yes
					}
				}
				ENG = {
					country_event = {
						id = AUS_political_events.27
						hours = 12
					}
				}
			}
			
			ELSE_IF = {
				limit = {
					USA = {
						exists = yes
					}	
				}
				USA = {
					country_event = {
						id = AUS_political_events.27
						hours = 12
					}
				}
			}
			ELSE = {
				hidden_effect = { #No one else could reject
					AUS = {
						country_event = {
							id = AUS_political_events.28
							hours = 12
						}
					}
				}
			}
			
		}

		ELSE_IF = { #ROOT IS FRANCE
			limit = {
				ROOT = { original_tag = FRA }
			}

			IF = {
				limit = {
					ENG = {
						exists = yes
					}
				}

				ENG = {
					country_event = {
						id = AUS_political_events.27
						hours = 12
					}
				}
			}

			ELSE_IF = {
				limit = {
					USA = {
						exists = yes
					}
				}
				USA = {
					country_event = {
						id = AUS_political_events.27
						hours = 12
					}
				}
			}

			ELSE_IF = {
				limit = { #the people after in the chain do not exist, ITA said no
					ITA = {
						exists = yes
						has_country_flag = {
							flag = AUS_ITA_rejects_rearmament_flag
						}
					}	
				}

				hidden_effect = {
					AUS = {
						country_event = {
							id = AUS_political_events.29
							hours = 12
						}
					}
				}
			}
			
			ELSE = { #the others do not exist or ITA exists and said yes

				hidden_effect = {
					AUS = {
						country_event = {
							id = AUS_political_events.28
							hours = 12
						}
					}
				}	
			}
			
		}

		ELSE_IF = { #ROOT IS ENGLAND
			limit = {
				ROOT = { original_tag = ENG }
			}

			IF = {
				limit = {
					USA = {
						exists = yes
					}
				}

				USA = {
					country_event = {
						id = AUS_political_events.27
						hours = 12
					}
				}
			}

			ELSE_IF = {
				limit = { #the people after in the chain do not exist, ITA said no
					OR = {
						ITA = {
							exists = yes
							has_country_flag = {
								flag = AUS_ITA_rejects_rearmament_flag
							}
						}
						FRA = {
							exists = yes
							has_country_flag = {
								flag = AUS_FRA_rejects_rearmament_flag
							}
						}
					}
						
				}

				hidden_effect = {
					AUS = {
						country_event = {
							id = AUS_political_events.29
							hours = 12
						}
					}
				}
			}

			ELSE = { #everyone else accepted or doesn't exist
				
				hidden_effect = {
					AUS = {
						country_event = {
							id = AUS_political_events.28
							hours = 12
						}
					}
				}
			}
		}

		ELSE_IF = { #ROOT IS USA
			limit = {
				ROOT = { original_tag = USA }
			}


			IF = {
				limit = { #no one after in the chain, someone said no
					OR = {
						ITA = {
							exists = yes
							has_country_flag = {
								flag = AUS_ITA_rejects_rearmament_flag
							}
						}
						FRA = {
							exists = yes
							has_country_flag = {
								flag = AUS_FRA_rejects_rearmament_flag
							}
						}

						ENG = {
							exists = yes
							has_country_flag = {
								flag = AUS_ENG_rejects_rearmament_flag
							}
						}
					}
						
				}

				hidden_effect = {
					AUS = {
						country_event = {
							id = AUS_political_events.29
							hours = 12
						}
					}
				}
			}

			ELSE = { #everyone else accepted or doesn't exist
				
				hidden_effect = {
					AUS = {
						country_event = {
							id = AUS_political_events.28
							hours = 12
						}
					}
				}
			}
		}	

		ELSE = { #if this has happened, the event has sent to the wrong person, smile and wave like everything is okay (it isn't!)
			IF = {
				limit = { #someone rejected
					OR = {
						ITA = {
							exists = yes
							has_country_flag = {
								flag = AUS_ITA_rejects_rearmament_flag
							}
						}
						FRA = {
							exists = yes
							has_country_flag = {
								flag = AUS_FRA_rejects_rearmament_flag
							}
						}

						ENG = {
							exists = yes
							has_country_flag = {
								flag = AUS_ENG_rejects_rearmament_flag
							}
						}
						USA = {
							exists = yes
							has_country_flag = {
								flag = AUS_USA_rejects_rearmament_flag
							}
						}
					}
						
				}

				hidden_effect = {
					AUS = {
						country_event = {
							id = AUS_political_events.29
							hours = 12
						}
					}
				}
			}

			ELSE = { #everyone else accepted or doesn't exist
				
				hidden_effect = {
					AUS = {
						country_event = {
							id = AUS_political_events.28
							hours = 12
						}
					}
				}
			}
		}
	}

	option = { #Out of the question
		name = AUS_political_events.27.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value < 0
				}
			}
		}

		add_political_power = -50

		AUS = {
			add_opinion_modifier = {
				target = ROOT
				modifier = medium_decrease
			}
		}

		IF = { #ROOT IS ITALY
			limit = {
				ROOT = { original_tag = ITA }
			}

			set_country_flag = AUS_ITA_rejects_rearmament_flag

			IF = {
				limit = {
					FRA = {
						exists = yes
					}
				}
				FRA = {
					country_event = {
						id = AUS_political_events.27
						hours = 12
					}
				}
			}

			ELSE_IF = {
				limit = {
					ENG = {
						exists = yes
					}
				}

				ENG = {
					country_event = {
						id = AUS_political_events.27
						hours = 12
					}
				}
			}

			ELSE_IF = {
				limit = {
					USA = {
						exists = yes
					}
				}

				USA = {
					country_event = {
						id = AUS_political_events.27
						hours = 12
					}
				}

			}
			ELSE = { #if no one else exists and you reject, it rejects
				hidden_effect = {
					AUS = {
						country_event = {
							id = AUS_political_events.29
							hours = 12
						}
					}
				}
				
			}
		}

		ELSE_IF = { #ROOT IS FRANCE
			limit = {
				ROOT = { original_tag = FRA }
			}

			set_country_flag = AUS_FRA_rejects_rearmament_flag

			IF = {
				limit = {
					ENG = {
						exists = yes
					}
				}
				ENG = {
					country_event = {
						id = AUS_political_events.27
						hours = 12
					}
				}
			}

			ELSE_IF = {
				limit = {
					USA = {
						exists = yes
					}
				}

				USA = {
					country_event = {
						id = AUS_political_events.27
						hours = 12
					}
				}

			}
			ELSE = { #if no one else exists and you reject, it rejects
				hidden_effect = {
					AUS = {
						country_event = {
							id = AUS_political_events.29
							hours = 12
						}
					}
				}
			}
		}

		ELSE_IF = { #ROOT IS ENGLAND
			limit = {
				ROOT = { original_tag = ENG }
			}

			set_country_flag = AUS_ENG_rejects_rearmament_flag

			IF = {
				limit = {
					USA = {
						exists = yes
					}
				}

				USA = {
					country_event = {
						id = AUS_political_events.27
						hours = 12
					}
				}

			}
			ELSE = { #if no one else exists and you reject, it rejects
				hidden_effect = {
					AUS = {
						country_event = {
							id = AUS_political_events.29
							hours = 12
						}
					}
				}
			}
		}

		ELSE_IF = { #ROOT IS USA
			limit = {
				ROOT = { original_tag = USA }
			}

			set_country_flag = AUS_USA_rejects_rearmament_flag

			
			hidden_effect = { #the USA is last in line, if they say no, it will be no, no matters if others say yes or not.
				AUS = {
					country_event = {
						id = AUS_political_events.29
						hours = 12
					}
				}
			}
			
		}	

		ELSE = { #if this has happened, the event has sent to the wrong person, smile and wave like everything is okay (it isn't!)
			hidden_effect = {
				AUS = {
					country_event = {
						id = AUS_political_events.28
						hours = 12
					}
				}
			}
		}	
	}
}

country_event = { #Austria getting to know that they are approved to rearm
	id = AUS_political_events.28
	title = AUS_political_events.28.t
	desc = AUS_political_events.28.desc
	picture = GFX_report_event_generic_handshake

	fire_only_once = yes

	is_triggered_only = yes

	option = { #Great
		name = AUS_political_events.28.a
		ai_chance = {
			base = 10
		}

		remove_ideas = AUS_treaty_of_saint_germain_en_laye

		news_event = {
			id = AUS_news_events.5
			days = 2
		}
	}
}

country_event = { #Austria getting notified that they may not rearm
	id = AUS_political_events.29
	title = AUS_political_events.29.t
	desc = AUS_political_events.29.desc
	picture = GFX_report_event_AUS_political_rally

	fire_only_once = yes

	is_triggered_only = yes

	option = { #We have no choice but to do it anyways
		name = AUS_political_events.29.a
		ai_chance = {
			base = 1
		}

		news_event = {
			id = AUS_news_events.5
			days = 2
		}

		remove_ideas = AUS_treaty_of_saint_germain_en_laye

		custom_effect_tooltip = generic_skip_one_line_tt

		custom_effect_tooltip = AUS_political_events.29.a_tt

		hidden_effect = {
			IF = {
				limit = {
					ITA = {
						exists = yes
						has_country_flag = AUS_ITA_rejects_rearmament_flag
					}
				}
				ITA = {
					country_event = {
						id = AUS_political_events.30
						days = 1
					}
				}		
			}

			IF = {
				limit = {
					FRA = {
						exists = yes
						has_country_flag = AUS_FRA_rejects_rearmament_flag
					}
				}
				FRA = {
					country_event = {
						id = AUS_political_events.30
						days = 1
					}
				}		
			}

			IF = {
				limit = {
					ENG = {
						exists = yes
						has_country_flag = AUS_ENG_rejects_rearmament_flag
					}
				}
				ENG = {
					country_event = {
						id = AUS_political_events.30
						days = 1
					}
				}		
			}

			IF = {
				limit = {
					USA = {
						exists = yes
						has_country_flag = AUS_USA_rejects_rearmament_flag
					}
				}
				USA = {
					country_event = {
						id = AUS_political_events.30
						days = 1
					}
				}		
			}
		}
	}

	

	option = { #Can we negotiate?
		name = AUS_political_events.29.b
		ai_chance = {
			base = 1
		}

		
		IF = {
			limit = {
				ITA = {
					exists = yes
					has_country_flag = AUS_ITA_rejects_rearmament_flag
				}
			}
			ITA = {
				country_event = {
					id = AUS_political_events.73
					hours = 12
				}
			}		
		}
		IF = {
			limit = {
				FRA = {
					exists = yes
					has_country_flag = AUS_FRA_rejects_rearmament_flag
				}
			}
			FRA = {
				country_event = {
					id = AUS_political_events.73
					hours = 24
				}
			}		
		}
		IF = {
			limit = {
				ENG = {
					exists = yes
					has_country_flag = AUS_ENG_rejects_rearmament_flag
				}
			}
			ENG = {
				country_event = {
					id = AUS_political_events.73
					hours = 36
				}
			}		
		}
		IF = {
			limit = {
				USA = {
					exists = yes
					has_country_flag = AUS_USA_rejects_rearmament_flag
				}
			}
			USA = {
				country_event = {
					id = AUS_political_events.73
					hours = 48
				}
			}		
		}
	
	}

	option = { #We cannot risk it
		name = AUS_political_events.29.c
		ai_chance = {
			base = 1
			modifier = { #We need them to remove the treaty for ai strategy plan stuffs and not getting locked reasons
				factor = 0
				AUS = {
					is_ai = yes
				}
			}
		}
		custom_effect_tooltip = AUS_political_events.29.c_tt
	}
}

country_event = { #Austria reams despite being told no/not asking permission
	id = AUS_political_events.30
	title = AUS_political_events.30.t
	desc = AUS_political_events.30.desc
	picture = GFX_report_event_AUS_military_march 

	is_triggered_only = yes

	option = { #Embargo them 
		name = AUS_political_events.30.a
		ai_chance = {
			base = 1
		}

		send_embargo = FROM

		IF = {
			limit = {
				FROM = {
					has_government = ROOT
				}
			}

			add_opinion_modifier = {
				target = FROM
				modifier = AUS_broke_the_treaty_democratic
			}
		}
		ELSE = {
			add_opinion_modifier = {
				target = FROM
				modifier = AUS_broke_the_treaty
			}
		}

		effect_tooltip = {
			FROM = {
				remove_ideas = AUS_treaty_of_saint_germain_en_laye
			}
		}
	}

	option = { #they've called our bluff...
		name = AUS_political_events.30.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 5
				has_opinion = {
					target = FROM
					value > 49
				}
			}

			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 24
				}
			}
		}

		effect_tooltip = {
			FROM = {
				remove_ideas = AUS_treaty_of_saint_germain_en_laye
			}
		}
	}

	option = { #then they need no guarantee!
		name = AUS_political_events.30.c

		trigger = {
			has_guaranteed = AUS
		}

		ai_chance = {
			base = 1
			modifier = {
				factor = 0.1
				has_opinion = {
					target = FROM
					value > 49
				}
			}
			modifier = {
				factor = 0.5
				has_opinion = {
					target = FROM
					value > 24
				}
			}
		}

		diplomatic_relation = {
		    country = FROM
		    relation = guarantee
		    active = no
		}

		add_ai_strategy = { #cancel and then some
			type = protect 
			id = FROM
			value = -100
		}

		IF= {
			limit = { has_military_access_to = FROM }

			diplomatic_relation = { 
				country = FROM 
				relation = military_access
				active = no
			}
		}
		
		IF = {
			limit = {
				FROM = {
					has_government = ROOT
				}
			}

			add_opinion_modifier = {
				target = FROM
				modifier = AUS_broke_the_treaty_democratic
			}
		}
		ELSE = {
			add_opinion_modifier = {
				target = FROM
				modifier = AUS_broke_the_treaty
			}
		}
	}

}

country_event = { #Austria requests payment for their help in scw
	id = AUS_political_events.31
	title = AUS_political_events.31.t
	desc = AUS_political_events.31.desc
	picture = GFX_report_event_spain_civil_war_soldiers

	is_triggered_only = yes

	option = { #we can help a bit with industry and share our experiences
		name = AUS_political_events.31.a
		ai_chance = {
			base = 2
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value > 29
				}
			}
		}

		army_experience = 50

		FROM = { 
			IF = {
				limit = {
					4 = { 
						is_fully_controlled_by = FROM 
						is_core_of = FROM
					} 
				}

				4 = {

					add_extra_state_shared_building_slots = 2

					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
			}
			
			add_tech_bonus = {
				bonus = 0.15
				uses = 1
				category = construction_tech
			}

			add_opinion_modifier = {
				target = ROOT
				modifier = medium_increase
			}

			army_experience = 50
		}

		hidden_effect = {
			FROM = {
				country_event = {
					id = AUS_political_events.32
					hours = 12
				}
			}
		}
	}
	option = { #We'll share some of our winnings and share our experiences
		name = AUS_political_events.31.b
		ai_chance = {
			base = 5
			modifier = {
				factor = 3
				has_opinion = {
					target = FROM
					value > 14
				}
			}
		}

		army_experience = 50

		FROM = {
			add_equipment_to_stockpile = { 
				type = infantry_equipment
				amount = 2500
				producer = ROOT
			}

			add_tech_bonus = {
				bonus = 0.25
				uses = 1
				category = infantry_weapons
			}

			add_opinion_modifier = {
				target = ROOT
				modifier = small_increase
			}

			army_experience = 50
		}

		hidden_effect = {
			FROM = {
				country_event = {
					id = AUS_political_events.33
					hours = 12
				}
			}
		}

	}

	option = { #We can not nor will spare them anything.
		name = AUS_political_events.31.c
		ai_chance = {
			base = 1
			modifier = {
				factor = 20
				has_opinion = {
					target = FROM
					value < 0
				}
			}
		}

		hidden_effect = {
			FROM = {
				country_event = {
					id = AUS_political_events.34
					hours = 12
				}
			}
		}
	}
}

country_event = { #Spain helps industrially
	id = AUS_political_events.32
	title = AUS_political_events.32.t
	desc = AUS_political_events.32.desc
	picture = GFX_report_event_generic_factory
	is_triggered_only = yes

	fire_only_once = yes

	option = { #Great!
		name = AUS_political_events.32.a
		ai_chance = {
			base = 10
		}

		event_option_tooltip = AUS_political_events.31.a
	}
}

country_event = { #Spain helps with equipment
	id = AUS_political_events.33
	title = AUS_political_events.33.t
	desc = AUS_political_events.33.desc
	picture = GFX_report_event_generic_rifles
	is_triggered_only = yes

	fire_only_once = yes

	option = { #Great!
		name = AUS_political_events.33.a
		ai_chance = {
			base = 10
		}

		event_option_tooltip = AUS_political_events.31.b
	}
}

country_event = { #Spain refuses to help :(
	id = AUS_political_events.34
	title = AUS_political_events.34.t
	desc = AUS_political_events.34.desc
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes

	fire_only_once = yes

	option = { #Thanks for nothing...
		name = AUS_political_events.34.a
		ai_chance = {
			base = 10
		}

		event_option_tooltip = AUS_political_events.31.c
	}
}

country_event = { #militias causing unrest
	id = AUS_political_events.35
	title = AUS_political_events.35.t
	desc = AUS_political_events.35.desc
	picture = GFX_report_event_fascist_militia
	is_triggered_only = yes

	fire_only_once = yes

	option = { #ban them again
		name = AUS_political_events.35.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 5
				has_stability < 30
			}
			modifier = {
				factor = 5
				has_government = democratic
			}
		}

		remove_ideas = AUS_militia_support

		add_stability = 0.05

	}

	option = { #people will get used to it.
		name = AUS_political_events.35.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 10
				NOT = {
					has_government = democratic
				}
			}
		}

		add_stability = -0.1
	}

	option = { #we have an even better idea, move over, Kurt!
		name = AUS_political_events.35.c
		ai_chance = {
			base = 10
		}
		trigger = {
			has_completed_focus = AUS_heimwehr_support
		}

		IF = {
			limit = {
				has_country_leader = {
					ruling_only = yes # default = yes
					character = AUS_kurt_schuschnigg
				}
			}
			AUS_ernst_rudiger_starhemberg = {
				remove_country_leader_trait = anti_communist 
				

				add_country_leader_trait = AUS_fascist_prince_of_starhemberg

				promote_character = yes
			}

			set_country_flag = AUS_starhemberg_took_over

			AUS_kurt_schuschnigg = {
				effect_tooltip = {
					add_advisor_role = {
						advisor = {
							slot = political_advisor
							cost = 150
							idea_token = AUS_kurt_schuschnigg
							traits = {
								fascist_corporatist
							}
							allowed = {}
						}
					}
				}
			}
		}

		ELSE_IF = {
			limit = {
				NOT = {
					has_country_leader = {
						ruling_only = yes # default = yes
						character = AUS_ernst_rudiger_starhemberg
					}
				}
			}

			AUS_ernst_rudiger_starhemberg = { 
				remove_country_leader_trait = anti_communist

				add_country_leader_trait = AUS_fascist_prince_of_starhemberg

				promote_character = yes
			}

			set_country_flag = AUS_starhemberg_took_over
		}

		ELSE_IF = {
			limit = {
				NOT = {
					AUS_ernst_rudiger_starhemberg = {
						has_trait = AUS_fascist_prince_of_starhemberg
					}
				}
			}
			AUS_ernst_rudiger_starhemberg = {
				add_country_leader_trait = AUS_fascist_prince_of_starhemberg
			}

			set_country_flag = AUS_starhemberg_took_over
		}

		ELSE = {
			add_political_power = 50
		}
	}
}

country_event = { #Austria picks cosmetic tag, and in what way and to what extent to core Germany
	id = AUS_political_events.36
	title = AUS_political_events.36.t
	desc = AUS_political_events.36.desc
	picture = GFX_report_event_AUS_vaterlandische_front_rally 
	is_triggered_only = yes

	fire_only_once = yes

	option = { #We shall be known as Großösterreich, try to core all of Germany over time
		name = AUS_political_events.36.a
		ai_chance = {
			base = 10
		}

		custom_effect_tooltip = AUS_political_events.36.a_tt

		set_country_flag = AUS_becoming_grossosterreich_flag

	}

	option = { #We shall be known as Süddeutschland, instant cores on Oberbayern, Niederbayern, Württemberg and Franken
		name = AUS_political_events.36.b
		ai_chance = {
			base = 10
		}

		add_state_core = 50 #Württemberg
		add_state_core = 978 #Baden
		add_state_core = 52 #Oberbayern
		add_state_core = 53 #Niederbayern
		add_state_core = 54 #Franken
		add_state_core = 1546
		add_state_core = 1547
		add_state_core = 1548
		add_state_core = 1549
		add_state_core = 1550
		add_state_core = 1251

		IF = {
			limit = {
				has_government = fascism
			}
			set_cosmetic_tag = AUS_suddeutschland_fascism
		}

		ELSE_IF = {
			limit = {
				has_government = neutrality
			}
			set_cosmetic_tag = AUS_suddeutschland_neutrality
		}
	}

	option = { #We are fine as we are!
		name = AUS_political_events.36.c
		ai_chance = {
			base = 10
		}

		add_stability = 0.15
		add_political_power = 150

		IF = {
			limit = { 
				has_government = fascism
			}
			add_popularity = {
				ideology = fascism
				popularity = 0.15
			}
		}
		ELSE_IF = {
			limit = {
				has_government = neutrality 
			}

			add_popularity = {
				ideology = neutrality
				popularity = 0.15
			}
		}
	}
}

country_event = { #FROM, Austria, Demands we integrate
	id = AUS_political_events.37
	title = AUS_political_events.37.t
	desc = AUS_political_events.37.desc
	picture = GFX_report_event_german_troops
	is_triggered_only = yes

	immediate = {
		FROM = { #Original FROM.OWNER, the country that the decision targets
			FROM = {
				OWNER = {
					set_country_flag = AUS_annexation_demand_sent_flag
				}
			}
		}
	}

	option = { #no!
		name = AUS_political_events.37.a
		ai_chance = {
			base = 1
			modifier = {
				factor = 2
				OR = {
					has_government = fascism
					has_government = neutrality
				}
			}
			modifier = {
				factor = 3
				FROM = { is_subject = no }
				strength_ratio = {
					tag = FROM
					ratio > 1.25
				}
			}

			modifier = {
				factor = 2
				FROM = { is_subject = no }
				strength_ratio = {
					tag = FROM
					ratio > 1.5
				}
			}

			modifier = {
				factor = 3
				FROM = { is_subject = yes }
				strength_ratio = {
					tag = AUS
					ratio > 1.25
				}
			}

			modifier = {
				factor = 2
				FROM = { is_subject = yes }
				strength_ratio = {
					tag = AUS
					ratio > 1.5
				}
			}
		}
		
		IF = { #Hungary
			limit = {
				ROOT = {
					OR = {
						AND = {
							original_tag = HUN
							has_country_flag = is_current_expansion_target_for_AUS_flag 
						}
						AND = {
							has_subject = HUN
							HUN = { has_country_flag = is_current_expansion_target_for_AUS_flag }
						}
					}												
				}
			}
			FROM = {
				every_state = {
					limit = {
						OR = {
							state = 155
							state = 974
							state = 973
							state = 154
							state = 43
							state = 1278
							state = 1235
							state = 1017
							state = 1020
							state = 1384
						}
						OR = {
							is_fully_controlled_by = ROOT
							controller = {
								is_subject_of = ROOT
							}
						}
					}
					add_claim_by = AUS
				}

				IF = {
					limit = {
						HUN = {
							is_subject_of = ROOT
						}
					}
					create_wargoal = {
						type = take_claimed_state
						target = HUN
					}
				}
				ELSE = {
					create_wargoal = {
						type = take_claimed_state
						target = ROOT
					}
				}

				hidden_effect = {
					add_ai_strategy = { 
						type = declare_war
						id = ROOT
						value = 100
					}
					country_event = {
						id = AUS_political_events.38
						hours = 12 
					}
				}

			}
		}
		ELSE_IF = { #Czechoslovakia
			limit = {
				ROOT = {
					OR = {
						AND = {
							original_tag = CZE
							has_country_flag = is_current_expansion_target_for_AUS_flag 
						}
						AND = {
							has_subject = CZE
							CZE = { has_country_flag = is_current_expansion_target_for_AUS_flag }
						}
						
					}
				}
			}
			FROM = {

				every_state = {
					limit = {
						OR = {
							state = 69
							state = 972
							state = 9
							state = 75
							state = 74
							state = 72
							state = 1555
							state = 1556
						}
						OR = {
							is_fully_controlled_by = ROOT
							controller = {
								is_subject_of = ROOT
							}
						}
					}
					add_claim_by = AUS
				}

				IF = {
					limit = {
						CZE = {
							is_subject_of = ROOT
						}
					}
					create_wargoal = {
						type = take_claimed_state
						target = CZE
					}
				}
				ELSE = {
					create_wargoal = {
						type = take_claimed_state
						target = ROOT
					}
				}
				hidden_effect = {
					add_ai_strategy = { 
						type = antagonize
						id = ROOT
						value = 100
					}
				}

				country_event = {
					id = AUS_political_events.38
					hours = 12 
				}
			}
		}
		ELSE_IF = { #Intact Yugoslavia
			limit = {
				ROOT = {
					OR = {
						AND = {
							owns_state = 853
							controls_state = 853
						}
						AND = {
							owns_state = 102
							controls_state = 102
						}
						AND = {
							owns_state = 103
							controls_state = 103
						}
						AND = {
							owns_state = 109
							controls_state = 109
						}
						AND = {
							owns_state = 1021
							controls_state = 1021
						}
						AND = {
							owns_state = 1022
							controls_state = 1022
						}
						AND = {
							owns_state = 1023
							controls_state = 1023
						}
						AND = {
							owns_state = 1033
							controls_state = 1033
						}
						AND = {
							owns_state = 1035
							controls_state = 1035
						}
						AND = {
							owns_state = 1043
							controls_state = 1043
						}
						AND = {
							owns_state = 1044
							controls_state = 1044
						}
						AND = {
							owns_state = 1045
							controls_state = 1045
						}
						AND = {
							owns_state = 1296
							controls_state = 1296
						}
						AND = {
							owns_state = 1388
							controls_state = 1388
						}
						AND = {
							owns_state = 1410
							controls_state = 1410
						}
					}
				}
			}
			IF = {
				limit = { 
					owns_state = 853
					controls_state = 853 
				}
				FROM = {
					add_state_claim = 853
				}
			}
			IF = {
				limit = { 
					owns_state = 102 
					controls_state = 102
				}
				FROM = {
					add_state_claim = 102
				}
			}

			IF = {
				limit = {
					owns_state = 103 
					controls_state = 103
				}

				FROM = {
					add_state_claim = 103
				}
			}
			
			IF = {
				limit = {
					owns_state = 109 
					controls_state = 109
				}

				FROM = {
					add_state_claim = 109
				}
			}
			
			IF = {
				limit = {
					owns_state = 1021
					controls_state = 1021
				}

				FROM = {
					add_state_claim = 1021
				}
			}
			IF = {
				limit = {
					owns_state = 1022
					controls_state = 1022
				}

				FROM = {
					add_state_claim = 1022
				}
			}
			IF = {
				limit = {
					owns_state = 1023 
					controls_state = 1023
				}

				FROM = {
					add_state_claim = 1023
				}
			}
			IF = {
				limit = {
					owns_state = 1033
					controls_state = 1033
				}

				FROM = {
					add_state_claim = 1033
				}
			}
			IF = {
				limit = {
					owns_state = 1035
					controls_state = 1035
				}

				FROM = {
					add_state_claim = 1035
				}
			}
			IF = {
				limit = {
					owns_state = 1043
					controls_state = 1043
				}

				FROM = {
					add_state_claim = 1043
				}
			}
			IF = {
				limit = {
					owns_state = 1044
					controls_state = 1044
				}

				FROM = {
					add_state_claim = 1044
				}
			}
			IF = {
				limit = {
					owns_state = 1045
					controls_state = 1045
				}

				FROM = {
					add_state_claim = 1045
				}
			}
			IF = {
				limit = {
					owns_state = 1296
					controls_state = 1296
				}

				FROM = {
					add_state_claim = 1296
				}
			}
			IF = {
				limit = {
					owns_state = 1388
					controls_state = 1388
				}

				FROM = {
					add_state_claim = 1388
				}
			}
			IF = {
				limit = {
					owns_state = 1410
					controls_state = 1410
				}

				FROM = {
					add_state_claim = 1410
				}
			}
			FROM = {
				effect_tooltip = {
					create_wargoal = {
						type = take_claimed_state
						target = ROOT
					}
				}
				hidden_effect = {
					add_ai_strategy = { 
						type = antagonize
						id = ROOT
						value = 100
					}
				}

				country_event = {
					id = AUS_political_events.38
					hours = 12 
				}
				

			}

		}
		ELSE_IF = { #Yugoslavian Puppets
			limit = {
				FROM.FROM = {
					OWNER = {
						is_subject_of = ROOT
						OR = {
							AND = {
								owns_state = 853
								controls_state = 853
							}
							AND = {
								owns_state = 102
								controls_state = 102
							}
							AND = {
								owns_state = 109
								controls_state = 109
							}
						}
					}
				}
			}
			IF = {
				limit = { 
					FROM.FROM = {
						OWNER = {
							is_subject_of = ROOT
							owns_state = 853
							controls_state = 853 
						}
					}
					
				}

				IF = {
					limit = {
						FROM.FROM = {
							OWNER = {
								NOT = { has_country_flag = AUS_annexation_demand_sent_flag }
							}
						}
					}
					FROM.FROM = {
						OWNER = {
							set_country_flag = AUS_annexation_demand_sent_flag
							set_country_flag = AUS_about_to_be_annexed
						}
					}
				}
				
				FROM = {
					add_state_claim = 853
				}
			}
			IF = {
				limit = {
					FROM.FROM = {
						OWNER = {
							is_subject_of = ROOT
							owns_state = 102
							controls_state = 102
						}
					} 
				}

				IF = {
					limit = {
						FROM.FROM = {
							OWNER = {
								NOT = { has_country_flag = AUS_annexation_demand_sent_flag }
							}
						}
					}
					FROM.FROM = {
						OWNER = {
							set_country_flag = AUS_annexation_demand_sent_flag
							set_country_flag = AUS_about_to_be_annexed
						}
					}
				}
				
				FROM = {
					add_state_claim = 102
				}
			}

			IF = {
				limit = {
					FROM.FROM = {
						OWNER = {
							is_subject_of = ROOT
							owns_state = 109
							controls_state = 109 
						}
					}
				}

				IF = {
					limit = {
						FROM.FROM = {
							OWNER = {
								NOT = { has_country_flag = AUS_annexation_demand_sent_flag }
							}
						}
					}
					FROM.FROM = {
						OWNER = {
							set_country_flag = AUS_annexation_demand_sent_flag
							set_country_flag = AUS_about_to_be_annexed
						}
					}
				}
				

				FROM = {
					add_state_claim = 109
				}
			}
			FROM = {
				create_wargoal = {
					type = take_claimed_state
					target = FROM.FROM.OWNER
				}
				hidden_effect = {
					add_ai_strategy = { 
						type = antagonize
						id = ROOT
						value = 100
					}
				}
				
				country_event = {
					id = AUS_political_events.38
					hours = 12 
				}
			}
		}
		ELSE_IF = { #Poland
			limit = {
				OR = {
					ROOT = {
						original_tag = POL
						POL = { has_country_flag = is_current_expansion_target_for_AUS_flag } 
					}
					POL = {
						is_subject_of = ROOT
						has_country_flag = is_current_expansion_target_for_AUS_flag
					}
				}
			}

			FROM = {

				every_state = {
					limit = {
						OR = {
							state = 88
							state = 89
							state = 91
							state = 1528
							state = 1529
							state = 1531
							state = 1532
							state = 1145
							state = 1385
							state = 1386
							state = 1399
							state = 1483
						}
						OR = {
							is_fully_controlled_by = ROOT
							controller = {
								is_subject_of = ROOT
							}
						}
					}
					add_claim_by = AUS
				}

				IF = {
					limit = {
						POL = {
							is_subject_of = ROOT
						}
					}
					create_wargoal = {
						type = take_claimed_state
						target = POL
					}
				}
				ELSE = {
					create_wargoal = {
						type = take_claimed_state
						target = ROOT
					}
				}
		
				add_ai_strategy = { 
					type = antagonize
					id = ROOT
					value = 100
				}

				country_event = {
					id = AUS_political_events.38
					hours = 12 
				}
			}
		}
		ELSE_IF = { #Romania
			limit = {
				OR = {
					ROOT = {
						original_tag = ROM
						ROM = { has_country_flag = is_current_expansion_target_for_AUS_flag }
					}
					ROM = {
						is_subject_of = ROOT
						has_country_flag = is_current_expansion_target_for_AUS_flag
					}
				}
			}

			every_state = {
				limit = {
					OR = {
						state = 76
						state = 83
						state = 84
						state = 82
						state = 80
						state = 1039
						state = 1267
						state = 1309
						state = 1310
						state = 1387
						state = 1479
						state = 1480
					}
					OR = {
						is_fully_controlled_by = ROOT
						controller = {
							is_subject_of = ROOT
						}
					}
				}
				add_claim_by = AUS
			}


			FROM = {
				IF = {
					limit = {
						ROM = {
							is_subject_of = ROOT
						}
					}
					create_wargoal = {
						type = take_claimed_state
						target = ROM
					}
				}
				ELSE = {
					create_wargoal = {
						type = take_claimed_state
						target = ROOT
					}
				}

				country_event = {
					id = AUS_political_events.38
					hours = 12 
				}
				
				hidden_effect = {
					add_ai_strategy = { 
						type = antagonize
						id = ROOT
						value = 100
					}
				}
			}
		}

		ELSE_IF = { #Albania
			limit = {
				OR = {
					ROOT = {
						original_tag = ALB
						ALB = { has_country_flag = is_current_expansion_target_for_AUS_flag }
					}
					ALB = {
						is_subject_of = ROOT
						has_country_flag = is_current_expansion_target_for_AUS_flag
					}
				}
				
			}
			FROM = {

				every_state = {
					limit = {
						OR = {
							state = 934
							state = 44
							state = 805
						}
						OR = {
							is_fully_controlled_by = ROOT
							controller = {
								is_subject_of = ROOT
							}
						}
					}
					add_claim_by = AUS
				}
					
				IF = {
					limit = {
						ALB = {
							is_subject_of = ROOT
						}
					}
					create_wargoal = {
						type = take_claimed_state
						target = ALB
					}
				}
				ELSE = {
					create_wargoal = {
						type = take_claimed_state
						target = ROOT
					}
				}

					
				country_event = {
					id = AUS_political_events.38
					hours = 12 
				}
					
				hidden_effect = {
					add_ai_strategy = { 
						type = antagonize
						id = ROOT
						value = 100
					}
				}
			}
		}

		ELSE = { #something strange has happened, check all states and add claims/transfer any that might be fully controlled by the mystery owner... apart from YUG. DO NOT TOUCH YUG!
			FROM = {
				every_state = {
					limit = {
						is_on_continent = europe
						OR = {
							state = 155
							state = 974
							state = 973
							state = 154
							state = 43
							state = 69
							state = 972
							state = 9
							state = 75
							state = 74
							state = 72
							state = 88
							state = 89
							state = 91
							state = 76
							state = 83
							state = 84
							state = 82
							state = 80
							state = 934
							state = 44
							state = 805
						}
						OR = {
							is_fully_controlled_by = ROOT
							controller = {
								is_subject_of = ROOT
							}
						}
					}
					add_claim_by = AUS
				}

				create_wargoal = {
					type = take_claimed_state
					target = ROOT
				}

				country_event = {
					id = AUS_political_events.38
					hours = 12 
				}
					
				hidden_effect = {
					add_ai_strategy = { 
						type = antagonize
						id = ROOT
						value = 100
					}
				}
			}
		}
	}

	option = { #sure
		name = AUS_political_events.37.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM
					ratio < 1
				}
			}
			modifier = {
				factor = 5
				strength_ratio = {
					tag = FROM
					ratio < 0.75
				}
			}
			modifier = {
				factor = 5
				strength_ratio = {
					tag = FROM
					ratio < 0.5
				}
			}

			modifier = {
				factor = 10
				OR = {
					count_triggers = {
						amount > 1 # Add triggers to count below
						has_non_aggression_pact_with = FROM
						has_country_flag = AUS_held_speeches_against_us_flag
					}

					any_subject_country = {
						count_triggers = {
							amount > 1 # Add triggers to count below
							has_non_aggression_pact_with = FROM
							has_country_flag = AUS_held_speeches_against_us_flag
						}
					}
				}
			}

			modifier = {
				factor = 10
				OR = {
					count_triggers = {
						amount > 1
						has_country_flag = AUS_held_military_exercises_on_border_flag
						has_country_flag = AUS_armed_guards_on_border_flag
						has_country_flag = AUS_sent_industrial_suuport_flag
						has_country_flag = AUS_held_joint_military_exercises_flag
					}

					any_subject_country = {
						count_triggers = {
							amount > 1
							has_country_flag = AUS_held_military_exercises_on_border_flag
							has_country_flag = AUS_armed_guards_on_border_flag
							has_country_flag = AUS_sent_industrial_suuport_flag
							has_country_flag = AUS_held_joint_military_exercises_flag
						}
					}
				}
			}
		}

		IF = {
			limit = {
				ROOT = { 
					OR = {
						original_tag = POL
						POL = {
							is_subject_of = ROOT
						}
						original_tag = ROM
						ROM = {
							is_subject_of = ROOT
						}
						original_tag = YUG
						YUG = {
							is_subject_of = ROOT
						}
					}
				}
			}

			IF = { #Poland
				limit = {
					OR = {
						AND = {
							original_tag = POL
							has_country_flag = is_current_expansion_target_for_AUS_flag 
						}
						POL = {
							is_subject_of = ROOT
							POL = { has_country_flag = is_current_expansion_target_for_AUS_flag }
						}
					}
				}

				FROM = {
					country_event = {
						id = AUS_political_events.39
						hours = 12 
					}
				}
				effect_tooltip = {

					every_state = {
						limit = {
							OR = {
								state = 88
								state = 89
								state = 91
								state = 1528
								state = 1529
								state = 1531
								state = 1532
								state = 1145
								state = 1385
								state = 1386
								state = 1399
								state = 1483
							}
							OR = {
								is_fully_controlled_by = ROOT
								controller = {
									is_subject_of = ROOT
								}
							}
						}
						transfer_state_to = FROM
					}
				}
			}

			ELSE_IF = { #Romania
				limit = {
					OR = {
						AND = {
							original_tag = ROM
							has_country_flag = is_current_expansion_target_for_AUS_flag 
						}
						ROM = {
							is_subject_of = ROOT
							ROM = { has_country_flag = is_current_expansion_target_for_AUS_flag }
						}
					}
				}

				FROM = {
					country_event = {
						id = AUS_political_events.39
						hours = 12 
					}
				}

				effect_tooltip = {
					every_state = {
						limit = {
							OR = {
								state = 76
								state = 83
								state = 84
								state = 82
								state = 80
								state = 1039
								state = 1267
								state = 1309
								state = 1310
								state = 1387
								state = 1479
								state = 1480
							}
							OR = {
								is_fully_controlled_by = ROOT
								controller = {
									is_subject_of = ROOT
								}
							}
						}
						transfer_state_to = FROM
					}
				}
			}

			ELSE_IF = { #YUG stuff NEVER TOUCH!!!
				limit = {
					OR = {
						AND = {
							owns_state = 853
							controls_state = 853
						}
						AND = {
							owns_state = 102
							controls_state = 102
						}
						AND = {
							owns_state = 109
							controls_state = 109
						}
						AND = {
							owns_state = 103
							controls_state = 103
						}
						AND = {
							owns_state = 1021
							controls_state = 1021
						}
						AND = {
							owns_state = 1022
							controls_state = 1022
						}
						AND = {
							owns_state = 1023
							controls_state = 1023
						}
						AND = {
							owns_state = 1033
							controls_state = 1033
						}
						AND = {
							owns_state = 1035
							controls_state = 1035
						}
						AND = {
							owns_state = 1043
							controls_state = 1043
						}
						AND = {
							owns_state = 1044
							controls_state = 1044
						}
						AND = {
							owns_state = 1045
							controls_state = 1045
						}
						AND = {
							owns_state = 1388
							controls_state = 1388
						}
						AND = {
							owns_state = 1410
							controls_state = 1410
						}
					}
				}

				FROM = {
					country_event = {
						id = AUS_political_events.39
						hours = 12 
					}
				}

				effect_tooltip = {
					IF = {
						limit = { 853 = { is_fully_controlled_by = ROOT }}
						853 = {
							transfer_state_to = FROM
						}
					}
					IF = {
						limit = { 102 = { is_fully_controlled_by = ROOT }}
						102 = {
							transfer_state_to = FROM
						}
					}
					IF = {
						limit = { 109 = { is_fully_controlled_by = ROOT }}
						109 = {
							transfer_state_to = FROM
						}
					}
					IF = {
						limit = { 103 = { is_fully_controlled_by = ROOT }}
						103 = {
							transfer_state_to = FROM
						}
					}
					IF = {
						limit = { 1021 = { is_fully_controlled_by = ROOT }}
						1021 = {
							transfer_state_to = FROM
						}
					}
					IF = {
						limit = { 1022 = { is_fully_controlled_by = ROOT }}
						1022 = {
							transfer_state_to = FROM
						}
					}
					IF = {
						limit = { 1023 = { is_fully_controlled_by = ROOT }}
						1023 = {
							transfer_state_to = FROM
						}
					}
					IF = {
						limit = { 1033 = { is_fully_controlled_by = ROOT }}
						1033 = {
							transfer_state_to = FROM
						}
					}
					IF = {
						limit = { 1035 = { is_fully_controlled_by = ROOT }}
						1035 = {
							transfer_state_to = FROM
						}
					}
					IF = {
						limit = { 1043 = { is_fully_controlled_by = ROOT }}
						1043 = {
							transfer_state_to = FROM
						}
					}
					IF = {
						limit = { 1044 = { is_fully_controlled_by = ROOT }}
						1044 = {
							transfer_state_to = FROM
						}
					}
					IF = {
						limit = { 1045 = { is_fully_controlled_by = ROOT }}
						1045 = {
							transfer_state_to = FROM
						}
					}
					IF = {
						limit = { 1296 = { is_fully_controlled_by = ROOT }}
						1296 = {
							transfer_state_to = FROM
						}
					}
					IF = {
						limit = { 1388 = { is_fully_controlled_by = ROOT }}
						1388 = {
							transfer_state_to = FROM
						}
					}
					IF = {
						limit = { 1410 = { is_fully_controlled_by = ROOT }}
						1410 = {
							transfer_state_to = FROM
						}
					}
				}
			}

			ELSE_IF = { #Even more YUG stuff, Save yoursellf DO NOT TOUCH!
				limit = {
					FROM.FROM = {
						OWNER = {
							is_subject_of = ROOT
							OR = {
								AND = {
									owns_state = 853
									controls_state = 853
								}
								AND = {
									owns_state = 102
									controls_state = 102
								}
								AND = {
									owns_state = 109
									controls_state = 109
								}
								AND = {
									owns_state = 103
									controls_state = 103
								}
								AND = {
									owns_state = 1021
									controls_state = 1021
								}
								AND = {
									owns_state = 1022
									controls_state = 1022
								}
								AND = {
									owns_state = 1023
									controls_state = 1023
								}
								AND = {
									owns_state = 1033
									controls_state = 1033
								}
								AND = {
									owns_state = 1035
									controls_state = 1035
								}
								AND = {
									owns_state = 1043
									controls_state = 1043
								}
								AND = {
									owns_state = 1044
									controls_state = 1044
								}
								AND = {
									owns_state = 1045
									controls_state = 1045
								}
								AND = {
									owns_state = 1388
									controls_state = 1388
								}
								AND = {
									owns_state = 1410
									controls_state = 1410
								}
							}
						}
					}
				}
				IF = {
					limit = { 
						FROM.FROM = {
							OWNER = {
								is_subject_of = ROOT
								owns_state = 853
								controls_state = 853 
							}
						}
						
					}

					effect_tooltip = {
						853 = {
							transfer_state_to = FROM
						}
					}
				}
				IF = {
					limit = {
						FROM.FROM = {
							OWNER = {
								is_subject_of = ROOT
								owns_state = 102
								controls_state = 102
							}
						}  
					}

					effect_tooltip = {
						102 = {
							transfer_state_to = FROM
						}
					}
				}

				IF = {
					limit = {
						FROM.FROM = {
							OWNER = {
								is_subject_of = ROOT
								owns_state = 109
								controls_state = 109 
							}
						}
					}

					effect_tooltip = {
						109 = {
							transfer_state_to = FROM
						}
					}

				}
				IF = {
					limit = {
						FROM.FROM = {
							OWNER = {
								is_subject_of = ROOT
								owns_state = 103
								controls_state = 103
							}
						}
					}

					effect_tooltip = {
						103 = {
							transfer_state_to = FROM
						}
					}

				}
				IF = {
					limit = {
						FROM.FROM = {
							OWNER = {
								is_subject_of = ROOT
								owns_state = 1021
								controls_state = 1021
							}
						}
					}

					effect_tooltip = {
						1021 = {
							transfer_state_to = FROM
						}
					}

				}
				IF = {
					limit = {
						FROM.FROM = {
							OWNER = {
								is_subject_of = ROOT
								owns_state = 1022
								controls_state = 1022 
							}
						}
					}

					effect_tooltip = {
						1022 = {
							transfer_state_to = FROM
						}
					}

				}
				IF = {
					limit = {
						FROM.FROM = {
							OWNER = {
								is_subject_of = ROOT
								owns_state = 1023
								controls_state = 1023 
							}
						}
					}

					effect_tooltip = {
						1023 = {
							transfer_state_to = FROM
						}
					}

				}
				IF = {
					limit = {
						FROM.FROM = {
							OWNER = {
								is_subject_of = ROOT
								owns_state = 1033
								controls_state = 1033 
							}
						}
					}

					effect_tooltip = {
						1033 = {
							transfer_state_to = FROM
						}
					}

				}
				IF = {
					limit = {
						FROM.FROM = {
							OWNER = {
								is_subject_of = ROOT
								owns_state = 1035
								controls_state = 1035 
							}
						}
					}

					effect_tooltip = {
						1035 = {
							transfer_state_to = FROM
						}
					}

				}
				IF = {
					limit = {
						FROM.FROM = {
							OWNER = {
								is_subject_of = ROOT
								owns_state = 1043
								controls_state = 1043 
							}
						}
					}

					effect_tooltip = {
						1043 = {
							transfer_state_to = FROM
						}
					}

				}
				IF = {
					limit = {
						FROM.FROM = {
							OWNER = {
								is_subject_of = ROOT
								owns_state = 1044
								controls_state = 1044 
							}
						}
					}

					effect_tooltip = {
						1044 = {
							transfer_state_to = FROM
						}
					}

				}
				IF = {
					limit = {
						FROM.FROM = {
							OWNER = {
								is_subject_of = ROOT
								owns_state = 1045
								controls_state = 1045 
							}
						}
					}

					effect_tooltip = {
						1045 = {
							transfer_state_to = FROM
						}
					}

				}
				IF = {
					limit = {
						FROM.FROM = {
							OWNER = {
								is_subject_of = ROOT
								owns_state = 1296
								controls_state = 1296
							}
						}
					}

					effect_tooltip = {
						1296 = {
							transfer_state_to = FROM
						}
					}

				}
				IF = {
					limit = {
						FROM.FROM = {
							OWNER = {
								is_subject_of = ROOT
								owns_state = 1388
								controls_state = 1388
							}
						}
					}

					effect_tooltip = {
						1388 = {
							transfer_state_to = FROM
						}
					}

				}
				IF = {
					limit = {
						FROM.FROM = {
							OWNER = {
								is_subject_of = ROOT
								owns_state = 1410
								controls_state = 1410 
							}
						}
					}

					effect_tooltip = {
						1410 = {
							transfer_state_to = FROM
						}
					}

				}
				FROM = {
					country_event = {
						id = AUS_political_events.39
						hours = 12 
					}
				}
			}
		}	

		ELSE = { #Weirdness has happened, curse you ahistorical!
			FROM = {
				country_event = {
					id = AUS_political_events.39
					hours = 12 
				}
			}


			IF  = {
				limit = {
					OR = {
						original_tag = HUN
						original_tag = ALB
						original_tag = CZE
					}
				}
				effect_tooltip = {
					FROM = {
						annex_country = {
							target = ROOT
							transfer_troops = yes
						}
					}
				}
				custom_effect_tooltip = GAME_OVER_TT
			}
			ELSE = {
				custom_effect_tooltip = AUS_political_events.37_tt
			}
		}			
	}
}

country_event = { #FROM resists annexation
	id = AUS_political_events.38
	title = AUS_political_events.38.t
	desc = AUS_political_events.38.desc
	picture = GFX_report_event_soldiers_marching
	is_triggered_only = yes

	option = { #They leave us no choice.
		name = AUS_political_events.38.a
		ai_chance = {
			base = 10
		}


		IF = {
			limit = {
				FROM = {
					any_subject_country = {
						owns_state = FROM.FROM
					}
				}
			}
			custom_effect_tooltip = AUS_political_events.38_tt

			IF = {
				limit = {
					FROM = {
						FROM = {
							OWNER = {
								has_country_flag = is_current_expansion_target_for_AUS_flag
							}
						}
					}
				}
				FROM = {
					FROM = {
						OWNER = {
							clr_country_flag = is_current_expansion_target_for_AUS_flag
						}
					}
				}
			}
		}

	
		ELSE = {

			custom_effect_tooltip = AUS_political_events.38_tt
			FROM = {
				FROM = {
					OWNER = {
						clr_country_flag = is_current_expansion_target_for_AUS_flag
					}
				}
			}
		}
	}
}

country_event = { #FROM integrates
	id = AUS_political_events.39
	title = AUS_political_events.39.t
	desc = AUS_political_events.39.desc
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes

	option = { #Great!
		name = AUS_political_events.39.a
		ai_chance = {
			base = 10
		}


		IF = { #Poland
			limit = { 
				FROM = {
					OR = {
						AND = { 
							original_tag = POL
							has_country_flag = is_current_expansion_target_for_AUS_flag 
						}
						AND = { 
							has_subject = POL
							POL = { has_country_flag = is_current_expansion_target_for_AUS_flag }
						}
					}
				} 
			}

			
			every_state = {
				limit = {
					OR = {
						state = 88
						state = 89
						state = 91
						state = 1528
						state = 1529
						state = 1531
						state = 1532
						state = 1145
						state = 1385
						state = 1386
						state = 1399
						state = 1483
					}
					OR = {
						is_fully_controlled_by = FROM
						controller = {
							is_subject_of = FROM
						}
					}
				}
				transfer_state_to = ROOT
			}
			

			POL = {
				clr_country_flag = is_current_expansion_target_for_AUS_flag
			}
		}

		ELSE_IF = { #Romnia/Transylvania
			limit = { 
				FROM = { 
					OR = {
						AND = {
							original_tag = ROM
							has_country_flag = is_current_expansion_target_for_AUS_flag
						}
						AND = {
							has_subject = ROM
							ROM = { has_country_flag = is_current_expansion_target_for_AUS_flag }
						} 
						AND = {
							original_tag = TRA
							has_country_flag = is_current_expansion_target_for_AUS_flag
						}
						AND = {
							has_subject = TRA
							TRA = { has_country_flag = is_current_expansion_target_for_AUS_flag }
						}
					}
					
				} 
			}

			every_state = {
				limit = {
					OR = {
						state = 76
						state = 83
						state = 84
						state = 82
						state = 80
						state = 1039
						state = 1267
						state = 1309
						state = 1310
						state = 1387
						state = 1479
						state = 1480
					}
					OR = {
						is_fully_controlled_by = FROM
						controller = {
							is_subject_of = FROM
						}
					}
				}
				transfer_state_to = ROOT
			}

			IF = {
				limit = { ROM = { has_country_flag = is_current_expansion_target_for_AUS_flag }}
				ROM = { clr_country_flag = is_current_expansion_target_for_AUS_flag }
			}

			ELSE_IF = {
				limit = { TRA = { has_country_flag = is_current_expansion_target_for_AUS_flag }}
				TRA = { clr_country_flag = is_current_expansion_target_for_AUS_flag }
			}
		}

		ELSE_IF = { #Czechoslovakia
			limit = {
				FROM = {
					OR = {
						AND = {
							original_tag = CZE
							has_country_flag = is_current_expansion_target_for_AUS_flag
						}
						AND = {
							has_subject = CZE
							CZE = { has_country_flag = is_current_expansion_target_for_AUS_flag }
						}
					}
				}
			}
			annex_country = {
				target = CZE
				transfer_troops = yes
			}

			CZE = {
				clr_country_flag = is_current_expansion_target_for_AUS_flag
			}
		}

		ELSE_IF = { #Hungary
			limit = {
				FROM = {
					OR = {
						AND = {
							original_tag = HUN
							has_country_flag = is_current_expansion_target_for_AUS_flag
						}
						AND = {
							has_subject = HUN
							HUN = { has_country_flag = is_current_expansion_target_for_AUS_flag }
						}
					}
				}
			}
			annex_country = {
				target = HUN
				transfer_troops = yes
			}

			HUN = {
				clr_country_flag = is_current_expansion_target_for_AUS_flag
			}
		}

		ELSE_IF = { #Albania
			limit = {
				FROM = {
					OR = {
						AND = {
							original_tag = ALB
							has_country_flag = is_current_expansion_target_for_AUS_flag
						}
						AND = {
							has_subject = ALB
							ALB = { has_country_flag = is_current_expansion_target_for_AUS_flag } 
						}
					}
				}
			}
			annex_country = {
				target = ALB
				transfer_troops = yes
			}

			ALB = {
				clr_country_flag = is_current_expansion_target_for_AUS_flag
			}
		}
		ELSE = { #something strange has happened, check all states and add claims/transfer any that might be fully controlled by the mystery owner... apart from YUG. DO NOT TOUCH YUG!
			ROOT = {
				every_state = {
					limit = {
						is_on_continent = europe
						OR = {
							state = 848
							state = 153
							state = 152
							state = 976
							state = 1390
							state = 4
							state = 1553
							state = 975
							state = 69
							state = 9
							state = 75
							state = 74
							state = 72
							state = 70
							state = 664
							state = 71
							state = 73
							state = 1294
							state = 1555
							state = 1556
							state = 972
							state = 1560
							state = 1146
							state = 1147
							state = 1148
							state = 1149
							state = 155
							state = 43
							state = 154
							state = 1278
							state = 1235
							state = 1017
							state = 973
							state = 974
							state = 1020
							state = 1384
							state = 45
							state = 76
							state = 82
							state = 83
							state = 84
							state = 102
							state = 103
							state = 104
							state = 109
							state = 764
							state = 804
							state = 853
							state = 1021
							state = 1022
							state = 1023
							state = 1024
							state = 1028
							state = 1029
							state = 1030
							state = 1033
							state = 1034
							state = 1035
							state = 1039
							state = 1043
							state = 1044
							state = 1045
							state = 1296
							state = 1309
							state = 1310
							state = 1387
							state = 1388
							state = 1410
							state = 1477
							state = 1478
							state = 1479
							state = 1480
						}
						OR = {
							is_fully_controlled_by = FROM
							controller = {
								is_subject_of = FROM
							}
						}
					}
					transfer_state_to = AUS
				}

				IF  = {
					limit = {
						FROM = {
							has_country_flag = is_current_expansion_target_for_AUS_flag
						}
					}
					FROM = {
						clr_country_flag = is_current_expansion_target_for_AUS_flag
					}
				}

				ELSE_IF  = {
					limit = {
						FROM = {
							any_subject_country = {
								has_country_flag = is_current_expansion_target_for_AUS_flag
							}
							
						}
					}
					FROM = {
						every_subject_country = {
							limit = {
								has_country_flag = is_current_expansion_target_for_AUS_flag
							}
							clr_country_flag = is_current_expansion_target_for_AUS_flag
						}
					}
				}
			}
		}


		IF = { #YUG stuff
			limit = { 
				FROM = { 
					owns_state = 102
					controls_state = 102
				}
			}

			ROOT = {
				transfer_state = 102
			}
		}

		ELSE_IF = { #YUG stuff
			limit = { 
				FROM.FROM = { 
					OWNER = {
						owns_state = 102
						controls_state = 102
					}
				}
			}

			ROOT = {
				transfer_state = 102
			}
		}
		IF = { #YUG stuff
			limit = { 
				FROM = { 
					owns_state = 853
					controls_state = 853
				}
			}

			ROOT = {
				transfer_state = 853
			}
		}

		ELSE_IF = { #YUG stuff
			limit = { 
				FROM.FROM = { 
					OWNER = {
						owns_state = 853
						controls_state = 853
					}
				}
			}

			ROOT = {
				transfer_state = 853
			}
		}


		IF = { #YUG stuff
			limit = { 
				FROM = { 
					owns_state = 109
					controls_state = 109
				}
			}

			109 = {
				transfer_state_to = ROOT
			}
		}

		ELSE_IF = { #YUG stuff
			limit = { 
				FROM.FROM = { 
					OWNER = {
						owns_state = 109
						controls_state = 109
					}
				}
			}

			109 = {
				transfer_state_to = ROOT
			}
		}
		
		IF = {
			limit = { 
				FROM = { 
					owns_state = 103
					controls_state = 103
				}
			}

			103 = {
				transfer_state_to = ROOT
			}
		}

		ELSE_IF = {
			limit = { 
				FROM.FROM = { 
					OWNER = {
						owns_state = 103
						controls_state = 103
					}
				}
			}

			103 = {
				transfer_state_to = ROOT
			}
		}
		
		IF = {
			limit = { 
				FROM = { 
					owns_state = 1021
					controls_state = 1021
				}
			}

			1021 = {
				transfer_state_to = ROOT
			}
		}

		ELSE_IF = {
			limit = { 
				FROM.FROM = { 
					OWNER = {
						owns_state = 1021
						controls_state = 1021
					}
				}
			}

			1021 = {
				transfer_state_to = ROOT
			}
		}
		
		IF = {
			limit = { 
				FROM = { 
					owns_state = 1022
					controls_state = 1022
				}
			}

			1022 = {
				transfer_state_to = ROOT
			}
		}

		ELSE_IF = {
			limit = { 
				FROM.FROM = { 
					OWNER = {
						owns_state = 1022
						controls_state = 1022
					}
				}
			}

			1022 = {
				transfer_state_to = ROOT
			}
		}
		
		IF = {
			limit = { 
				FROM = { 
					owns_state = 1023
					controls_state = 1023
				}
			}

			1023 = {
				transfer_state_to = ROOT
			}
		}

		ELSE_IF = {
			limit = { 
				FROM.FROM = { 
					OWNER = {
						owns_state = 1023
						controls_state = 1023
					}
				}
			}

			1023 = {
				transfer_state_to = ROOT
			}
		}
		
		IF = {
			limit = { 
				FROM = { 
					owns_state = 1033
					controls_state = 1033
				}
			}

			1033 = {
				transfer_state_to = ROOT
			}
		}

		ELSE_IF = {
			limit = { 
				FROM.FROM = { 
					OWNER = {
						owns_state = 1033
						controls_state = 1033
					}
				}
			}

			1033 = {
				transfer_state_to = ROOT
			}
		}
		
		IF = {
			limit = { 
				FROM = { 
					owns_state = 1035
					controls_state = 1035
				}
			}

			1035 = {
				transfer_state_to = ROOT
			}
		}

		ELSE_IF = {
			limit = { 
				FROM.FROM = { 
					OWNER = {
						owns_state = 1035
						controls_state = 1035
					}
				}
			}

			1035 = {
				transfer_state_to = ROOT
			}
		}
		
		IF = {
			limit = { 
				FROM = { 
					owns_state = 1043
					controls_state = 1043
				}
			}

			1043 = {
				transfer_state_to = ROOT
			}
		}

		ELSE_IF = {
			limit = { 
				FROM.FROM = { 
					OWNER = {
						owns_state = 1043
						controls_state = 1043
					}
				}
			}

			1043 = {
				transfer_state_to = ROOT
			}
		}
		
		IF = {
			limit = { 
				FROM = { 
					owns_state = 1044
					controls_state = 1044
				}
			}

			1044 = {
				transfer_state_to = ROOT
			}
		}

		ELSE_IF = {
			limit = { 
				FROM.FROM = { 
					OWNER = {
						owns_state = 1044
						controls_state = 1044
					}
				}
			}

			1044 = {
				transfer_state_to = ROOT
			}
		}

		IF = {
			limit = { 
				FROM = { 
					owns_state = 1045
					controls_state = 1045
				}
			}

			1045 = {
				transfer_state_to = ROOT
			}
		}

		ELSE_IF = {
			limit = { 
				FROM.FROM = { 
					OWNER = {
						owns_state = 1045
						controls_state = 1045
					}
				}
			}

			1045 = {
				transfer_state_to = ROOT
			}
		}
		
		IF = {
			limit = { 
				FROM = { 
					owns_state = 1296
					controls_state = 1296
				}
			}

			1296 = {
				transfer_state_to = ROOT
			}
		}

		ELSE_IF = {
			limit = { 
				FROM.FROM = { 
					OWNER = {
						owns_state = 1296
						controls_state = 1296
					}
				}
			}

			1296 = {
				transfer_state_to = ROOT
			}
		}
		
		IF = {
			limit = { 
				FROM = { 
					owns_state = 1388
					controls_state = 1388
				}
			}

			1388 = {
				transfer_state_to = ROOT
			}
		}

		ELSE_IF = {
			limit = { 
				FROM.FROM = { 
					OWNER = {
						owns_state = 1388
						controls_state = 1388
					}
				}
			}

			1388 = {
				transfer_state_to = ROOT
			}
		}
		
		IF = {
			limit = { 
				FROM = { 
					owns_state = 1410
					controls_state = 1410
				}
			}

			1410 = {
				transfer_state_to = ROOT
			}
		}

		ELSE_IF = {
			limit = { 
				FROM.FROM = { 
					OWNER = {
						owns_state = 1410
						controls_state = 1410
					}
				}
			}

			1410 = {
				transfer_state_to = ROOT
			}
		}
	}
}

country_event = { #FROM seeks to join the faction
	id = AUS_political_events.40
	title = AUS_political_events.40.t
	desc = AUS_political_events.40.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes

	option = { #Sure they can join
		name = AUS_political_events.40.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 0.1 #literally always no
				ROOT = {
					original_tag = GER
				}
				FROM = {
					original_tag = AUS
				}
				is_historical_focus_on = yes
			}

			modifier = {
				factor = 5 #if they literally ove eachother maybe
				ROOT = {
					original_tag = GER
					has_opinion = {
						target = FROM
						value > 75
					}
				}
				FROM = {
					original_tag = AUS
					has_opinion = {
						target = ROOT
						value > 75
					}
				}
			}

			modifier = {
				factor = 10
				FROM = {
					original_tag = AUS
					has_completed_focus = AUS_align_with_ussr
				}

				ROOT = {
					original_tag = SOV
				}
			}

			modifier = {
				factor = 10
				FROM = {
					original_tag = AUS
					has_government = ROOT
				}
			}
		}

		ROOT = {
			add_to_faction = FROM

			add_ai_strategy = { 
				type = alliance
				id = FROM
				value = 200
			}
		}

		FROM = {
			country_event = {
				id = AUS_political_events.41
				hours = 12
			}
		}
	}

	option = { #No thanks!
		name = AUS_political_events.40.b
		ai_chance = {
			base = 2
		}

		FROM = {
			add_opinion_modifier = {
				target = ROOT
				modifier = medium_decrease
			}

			country_event = {
				id = AUS_political_events.42
				hours = 12
			}
		}
	}
}

country_event = { #FROM agrees to let ROOT join
	id = AUS_political_events.41
	title = AUS_political_events.41.t
	desc = AUS_political_events.41.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes

	option = { #Yay
		name = AUS_political_events.41.a
		ai_chance = {
			base = 10
		}

		event_option_tooltip = AUS_political_events.40.a

		add_ai_strategy = { 
			type = alliance
			id = FROM
			value = 200
		}
	}
}

country_event = { #FROM rejects to let ROOT join
	id = AUS_political_events.42
	title = AUS_political_events.42.t
	desc = AUS_political_events.42.desc
	picture = GFX_report_event_generic_riot
	is_triggered_only = yes

	option = { #Sad
		name = AUS_political_events.42.a
		ai_chance = {
			base = 10
		}

		event_option_tooltip = AUS_political_events.40.b
	}
}

country_event = { #Austria demands subjugation
	id = AUS_political_events.43
	title = AUS_political_events.43.t
	desc = AUS_political_events.43.desc
	picture = GFX_report_event_generic_riot
	is_triggered_only = yes

	immediate = {
		IF = {
			limit = {
				FROM.FROM = {	
					OWNER = {
						is_subject_of = ROOT
					}
				}
			}
			FROM.FROM = {	
				OWNER = {
					set_country_flag = AUS_subjugation_demand_sent_flag
				}
			}
		}

		ELSE = {
			ROOT = {
				set_country_flag = AUS_subjugation_demand_sent_flag
			}
		}
			
		
	}

	option = { #can't be that bad?
		name = AUS_political_events.43.a
		ai_chance = {
			base = 1
			modifier = {
				factor = 3
				strength_ratio = {
					tag = FROM
					ratio < 0.75
				}
			}
			modifier = {
				factor = 5
				strength_ratio = {
					tag = FROM
					ratio < 0.5
				}
			}

			modifier = {
				factor = 10
				count_triggers = {
					amount > 1 # Add triggers to count below
					has_non_aggression_pact_with = FROM
					has_country_flag = AUS_held_speeches_against_us_flag
				}
			}

			modifier = {
				factor = 10
				count_triggers = {
					amount > 1
					has_country_flag = AUS_held_military_exercises_on_border_flag
					has_country_flag = AUS_armed_guards_on_border_flag
					has_country_flag = AUS_sent_industrial_suuport_flag
					has_country_flag = AUS_held_joint_military_exercises_flag
				}
			}
		}

		effect_tooltip = {
			FROM = {
				add_political_power = 50

				set_autonomy = {
					target = AUS.potential_vassal
					autonomy_state = autonomy_austro_hungarian_subject
					freedom_level = 0.4
					end_wars  = yes # default yes. will not cancel non civil wars if set to no
					end_civil_wars = yes # default yes. will not cancel civil wars if set to no
				}
			}

		}

		custom_effect_tooltip = AUS_political_events.43.a.tt 
		
		

		FROM = {
			country_event = {
				id = AUS_political_events.44
				hours = 6
			}
		}

	}

	option = { #NO½
		name = AUS_political_events.43.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 3
				strength_ratio = {
					tag = FROM
					ratio > 1.25
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM
					ratio > 1.5
				}
			}
			modifier = {
				factor = 2
				OR = {
					has_government = fascism
					has_government = neutrality
				}
			}
			modifier = {
				factor = 100
				is_in_faction = yes
			}
		}

		effect_tooltip = {
			FROM = {
				create_wargoal = {
					type = puppet_wargoal_focus
					target = AUS.potential_vassal
				}
				add_war_support = 0.05
			}
		}

		FROM = {
			country_event = {
				id = AUS_political_events.45
				hours = 6
			}
		}
	}

	option = { #A polish maybe?
		name = AUS_political_events.43.c
		ai_chance = {
			base = 1
			modifier = {
				factor = 15
				strength_ratio = {
					tag = FROM
					ratio < 0.5
				}
			}
			modifier = {
				factor = 0.1
				strength_ratio = {
					tag = FROM
					ratio > 1
				}
			}
		}

		trigger = {
			original_tag = POL
			ROOT = {
				OR = {
					owns_state = 88
					owns_state = 89
					owns_state = 91
					owns_state = 1528
					owns_state = 1529
					owns_state = 1531
					owns_state = 1532
					owns_state = 1145
					owns_state = 1385
					owns_state = 1386
					owns_state = 1399
					owns_state = 1483
				}

			}
		}

		effect_tooltip = {
			IF = {
				limit = {
					88 = { #Krakow
						is_owned_and_controlled_by = ROOT
					}
				}

				88 = {
					transfer_state_to = FROM
				}	
			}

			IF = {
				limit = {
					89 = { #Stanislawow
						is_owned_and_controlled_by = ROOT
					}
				}

				89 = {
					transfer_state_to = FROM
				}	
			}

			IF = {
				limit = {
					91 = { #Lwow
						is_owned_and_controlled_by = ROOT
					}
				}

				91 = {
					transfer_state_to = FROM
				}	
			}
			
			IF = {
				limit = {
					1528 = {
						is_owned_and_controlled_by = ROOT
					}
				}

				1528 = {
					transfer_state_to = FROM
				}	
			}
			
			IF = {
				limit = {
					1529 = {
						is_owned_and_controlled_by = ROOT
					}
				}

				1529 = {
					transfer_state_to = FROM
				}	
			}
			
			IF = {
				limit = {
					1531 = {
						is_owned_and_controlled_by = ROOT
					}
				}

				1531 = {
					transfer_state_to = FROM
				}	
			}
			
			IF = {
				limit = {
					1532 = {
						is_owned_and_controlled_by = ROOT
					}
				}

				1532 = {
					transfer_state_to = FROM
				}	
			}
			
			IF = {
				limit = {
					1145 = {
						is_owned_and_controlled_by = ROOT
					}
				}

				1145 = {
					transfer_state_to = FROM
				}	
			}
			
			IF = {
				limit = {
					1385 = {
						is_owned_and_controlled_by = ROOT
					}
				}

				1385 = {
					transfer_state_to = FROM
				}	
			}
			
			IF = {
				limit = {
					1386 = {
						is_owned_and_controlled_by = ROOT
					}
				}

				1386 = {
					transfer_state_to = FROM
				}	
			}
			
			IF = {
				limit = {
					1399 = {
						is_owned_and_controlled_by = ROOT
					}
				}

				1399 = {
					transfer_state_to = FROM
				}	
			}
			
			IF = {
				limit = {
					1483 = {
						is_owned_and_controlled_by = ROOT
					}
				}

				1483 = {
					transfer_state_to = FROM
				}	
			}

			FROM = {
				add_political_power = 50
			}
		}

		FROM = {
			country_event = {
				id = AUS_political_events.46
				hours = 6
			}
		}
	}
}

country_event = { #FROM accepts subjugation
	id = AUS_political_events.44
	title = AUS_political_events.44.t
	desc = AUS_political_events.44.desc
	picture = GFX_report_event_fascist_speech
	is_triggered_only = yes

	option = { #Sad
		name = AUS_political_events.44.a
		ai_chance = {
			base = 10
		}
		
		ROOT = {
			add_political_power = 50 
		}

		set_autonomy = {
			target = AUS.potential_vassal
			autonomy_state = autonomy_austro_hungarian_subject
			freedom_level = 0.4
			end_wars  = yes # default yes. will not cancel non civil wars if set to no
			end_civil_wars = yes # default yes. will not cancel civil wars if set to no
		}

		IF = {
			limit = {
				has_country_flag = AUS_formed_habsburg_alliance_flag
			}

			add_to_faction = AUS.potential_vassal
		}

		clear_variable = AUS.potential_vassal

		hidden_effect = {
			country_event = {
				id = AUS_political_events.118
				hours = 12
			}
		}
	}
}

country_event = { #FROM rejects subjugation
	id = AUS_political_events.45
	title = AUS_political_events.45.t
	desc = AUS_political_events.45.desc
	picture = GFX_report_event_generic_riot
	is_triggered_only = yes

	option = { #Sad
		name = AUS_political_events.45.a
		ai_chance = {
			base = 10
		}

		ROOT = {
			create_wargoal = {
				type = puppet_wargoal_focus
				target = AUS.potential_vassal
			}
			add_war_support = 0.05
			hidden_effect = {
				add_ai_strategy = { 
					type = antagonize
					id = ROOT
				}
			}
		}
		
	}
}

country_event = { #Poland hands over states
	id = AUS_political_events.46
	title = AUS_political_events.46.t
	desc = AUS_political_events.46.desc
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes

	fire_only_once = yes

	option = { #Nice
		name = AUS_political_events.46.a
		ai_chance = {
			base = 10
		}

		IF = {
			limit = {
				88 = { #Krakow
					is_owned_and_controlled_by = FROM
				}
			}

			88 = {
				transfer_state_to = ROOT
			}	
		}

		IF = {
			limit = {
				89 = { #Stanislawow
					is_owned_and_controlled_by = FROM
				}
			}

			89 = {
				transfer_state_to = ROOT
			}	
		}

		IF = {
			limit = {
				91 = { #Lwow
					is_owned_and_controlled_by = FROM
				}
			}

			91 = {
				transfer_state_to = ROOT
			}	
		}
		
		IF = {
			limit = {
				1528 = {
					is_owned_and_controlled_by = FROM
				}
			}

			1528 = {
				transfer_state_to = ROOT
			}	
		}
		
		IF = {
			limit = {
				1529 = {
					is_owned_and_controlled_by = FROM
				}
			}

			1529 = {
				transfer_state_to = ROOT
			}	
		}
		
		IF = {
			limit = {
				1531 = {
					is_owned_and_controlled_by = FROM
				}
			}

			1531 = {
				transfer_state_to = ROOT
			}	
		}
		
		IF = {
			limit = {
				1532 = {
					is_owned_and_controlled_by = FROM
				}
			}

			1532 = {
				transfer_state_to = ROOT
			}	
		}
		
		IF = {
			limit = {
				1145 = {
					is_owned_and_controlled_by = FROM
				}
			}

			1145 = {
				transfer_state_to = ROOT
			}	
		}
		
		IF = {
			limit = {
				1385 = {
					is_owned_and_controlled_by = FROM
				}
			}

			1385 = {
				transfer_state_to = ROOT
			}	
		}
		
		IF = {
			limit = {
				1386 = {
					is_owned_and_controlled_by = FROM
				}
			}

			1386 = {
				transfer_state_to = ROOT
			}	
		}
		
		IF = {
			limit = {
				1399 = {
					is_owned_and_controlled_by = FROM
				}
			}

			1399 = {
				transfer_state_to = ROOT
			}	
		}
		
		IF = {
			limit = {
				1483 = {
					is_owned_and_controlled_by = FROM
				}
			}

			1483 = {
				transfer_state_to = ROOT
			}	
		}

		ROOT = {
			add_political_power = 50
		}
		
	}

	option = { #NO!
		name = AUS_political_events.46.b
		ai_chance = {
			base = 10
		}

		

		ROOT = {
			add_war_support = 0.05
			create_wargoal = {
				type = puppet_wargoal_focus
				target = FROM
			}
		}
		
		
		

		hidden_effect = {
			FROM = {
				country_event = {
					id = AUS_political_events.47
					hours = 6
				}
			}
			ROOT = {
				add_ai_strategy = { 
					type = antagonize
					id = ROOT
				}
			}
		}
	}
}

country_event = { #FROM still wants to Subjugate Poland
	id = AUS_political_events.47
	title = AUS_political_events.47.t
	desc = AUS_political_events.47.desc
	picture = GFX_report_event_german_troops
	is_triggered_only = yes

	fire_only_once = yes

	option = { #we will not back down!
		name = AUS_political_events.47.a
		ai_chance = {
			base = 10
		}

		event_option_tooltip = AUS_political_events.46.b
	}

	option = { #we give up
		name = AUS_political_events.47.b
		ai_chance = {
			base = 10
		}

		event_option_tooltip = AUS_political_events.44.a

		FROM = {
			country_event = {
				id = AUS_political_events.44
				hours = 6
			}
		}
	}
}

country_event = { #FROM installs a Habsburg on our throne :(
	id = AUS_political_events.48
	title = AUS_political_events.48.t
	desc = AUS_political_events.48.desc
	picture = GFX_report_event_royal_visit
	is_triggered_only = yes

	option = { #well shit...
		name = AUS_political_events.48.a
		ai_chance = {
			base = 10
		}

		IF = {
			limit = {
				ROOT = {
					original_tag = POL
					has_character = POL_karl_albrecht
				}
			}

			effect_tooltip = {
				POL = {
					promote_character = POL_karl_albrecht
					add_autonomy_score = { 
						value = -100 
						localization = AUS_habsburg_monarch
					}
				}
			}	
		}
		ELSE_IF = {
			limit = {
				ROOT = {
					original_tag = HUN
					has_character = HUN_joseph_august_von_habsburg
				}
			}
			

			effect_tooltip = {
				HUN = {
					add_country_leader_role = {
					    character = HUN_joseph_august_von_habsburg
					    promote_leader = yes
					    country_leader = {
					        ideology = despotism
					        expire = "1965.1.1.1"
					        traits = { HUN_the_old_warden }
					    }
					}

					add_autonomy_score = { 
						value = -100 
						localization = AUS_habsburg_monarch
					}
				}
			}	
		}
		ELSE_IF = {
			limit = {
				ROOT = {
					original_tag = CZE
					has_character = CZE_albrecht_franz
				}
			}

			effect_tooltip = {
				CZE = {
					promote_character = CZE_albrecht_franz
				}
			}			
		}

		ELSE_IF = {
			limit = {
				ROOT = {
					original_tag = CRO
					has_character = CRO_joseph_francis
				}
			}

			effect_tooltip = {
				CRO = {
					promote_character = CRO_joseph_francis
				}
			}			
		}
	}
}

country_event = { #FROM asks kindly to have silesia
	id = AUS_political_events.49
	title = AUS_political_events.49.t
	desc = AUS_political_events.49.desc
	picture = GFX_report_event_generic_sign_treaty1
	is_triggered_only = yes

	option = { #fine, they'll get those states
		name = AUS_political_events.49.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 0.1
				has_government = fascism				
			}
			modifier = {
				factor = 2 
				has_government = FROM
			}
			modifier = {
				factor = 5
				has_opinion = {
					target = FROM
					value > 49
				}			
			}
		}

		event_option_tooltip = AUS_political_events.50.a

		FROM = {
			country_event = {
				id = AUS_political_events.50
				hours = 6
			}
		}
	}

	option = { #oh hell no
		name = AUS_political_events.49.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 10
				has_government = fascism				
			}
		}

		event_option_tooltip = AUS_political_events.51.a

		FROM = {
			country_event = {
				id = AUS_political_events.51
				hours = 6
			}
		}
	}
}

country_event = { #FROM gives ROOT Silesia
	id = AUS_political_events.50
	title = AUS_political_events.50.t
	desc = AUS_political_events.50.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes

	option = { #great!
		name = AUS_political_events.50.a
		ai_chance = {
			base = 10
		}

		IF = {
			limit = {
				66 = {
					is_controlled_by = FROM
				}
			}
			66 = { #Niederschlesien
				transfer_state_to = ROOT
			}
		}

		IF = {
			limit = {
				67 = {
					is_controlled_by = FROM
				}
			}
			67 = { #Oberschlesien
				transfer_state_to = ROOT
			}
		}
		
		IF = {
			limit = {
				1540 = {
					is_controlled_by = FROM
				}
			}
			1540 = {
				transfer_state_to = ROOT
			}
		}
		
		IF = {
			limit = {
				1541 = {
					is_controlled_by = FROM
				}
			}
			1541 = {
				transfer_state_to = ROOT
			}
		}
		
		IF = {
			limit = {
				1558 = {
					is_controlled_by = FROM
				}
			}
			1558 = {
				transfer_state_to = ROOT
			}
		}

	
		FROM = {
			random_owned_controlled_state = {
				limit = {
					is_core_of = FROM
					NOT = {
						state = 66
						state = 67
						state = 1540
						state = 1541
						state = 1558
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
		
		
	}
}

country_event = { #FROM refuses to give ROOT Silesia
	id = AUS_political_events.51
	title = AUS_political_events.51.t
	desc = AUS_political_events.51.desc
	picture = GFX_report_event_gathering_protest
	is_triggered_only = yes

	option = { #we'll consider fighting them then.
		name = AUS_political_events.51.a
		ai_chance = {
			base = 10
		}

		IF = {
			limit = {
				66 = {
					is_controlled_by = FROM
				}
			}
			66 = { #Niederschlesien
				add_claim_by = ROOT
			}
		}

		IF = {
			limit = {
				67 = {
					is_controlled_by = FROM
				}
			}
			67 = { #Oberschlesien
				add_claim_by = ROOT
			}
		}
		
		IF = {
			limit = {
				1540 = {
					is_controlled_by = FROM
				}
			}
			1540 = {
				add_claim_by = ROOT
			}
		}
		
		IF = {
			limit = {
				1541 = {
					is_controlled_by = FROM
				}
			}
			1541 = {
				add_claim_by = ROOT
			}
		}
		
		IF = {
			limit = {
				1558 = {
					is_controlled_by = FROM
				}
			}
			1558 = {
				add_claim_by = ROOT
			}
		}

		

		add_opinion_modifier = {
			target = FROM
			modifier = rejected_demands
		}

		IF = {
			limit = {
				66 = {
					is_controlled_by = FROM
				}
			}
			create_wargoal = {
				type = take_claimed_state
				target = FROM
				generator = { 66 } 
			}
		}

		IF = {
			limit = {
				67 = {
					is_controlled_by = FROM
				}
			}
			create_wargoal = {
				type = take_claimed_state
				target = FROM
				generator = { 67 } 
			}
		}
		
		IF = {
			limit = {
				1540 = {
					is_controlled_by = FROM
				}
			}
			create_wargoal = {
				type = take_claimed_state
				target = FROM
				generator = { 1540 } 
			}
		}
		
		IF = {
			limit = {
				1541 = {
					is_controlled_by = FROM
				}
			}
			create_wargoal = {
				type = take_claimed_state
				target = FROM
				generator = { 1541 } 
			}
		}
		
		IF = {
			limit = {
				1558 = {
					is_controlled_by = FROM
				}
			}
			create_wargoal = {
				type = take_claimed_state
				target = FROM
				generator = { 1558 } 
			}
		}
	}
}

country_event = { #FROM demands our (SWI) Annexation
	id = AUS_political_events.52
	title = AUS_political_events.52.t
	desc = AUS_political_events.52.desc
	picture = GFX_report_event_royal_parade
	is_triggered_only = yes

	fire_only_once = yes

	option = { #yes!
		name = AUS_political_events.52.a
		ai_chance = {
			base = 1
			modifier = {
				factor = 3
				strength_ratio = {
					tag = FROM
					ratio < 0.75
				}
			}
			modifier = {
				factor = 5
				strength_ratio = {
					tag = FROM
					ratio < 0.5
				}
			}
			modifier = {
				factor = 2
				has_government = FROM
			}
		}

		FROM = {
			country_event = {
				id = AUS_political_events.53
				hours = 3
			}
		}

		effect_tooltip = {
			FROM= {
				annex_country = {
					target = ROOT
					transfer_troops = yes
				}
			}
		}

		custom_effect_tooltip = GAME_OVER_TT

	}

	option = { #no!
		name = AUS_political_events.52.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 2
				NOT = { has_government = FROM }
			}
		}

		FROM = {
			country_event = {
				id = AUS_political_events.54
				hours = 3
			}
		}

		event_option_tooltip = AUS_political_events.54.a
	}
}

country_event = { #FROM (SWI) accepts annexation
	id = AUS_political_events.53
	title = AUS_political_events.53.t
	desc = AUS_political_events.53.desc
	picture = GFX_report_event_royal_parade
	is_triggered_only = yes

	fire_only_once = yes

	option = { #yay!
		name = AUS_political_events.53.a
		ai_chance = {
			base = 10
		}

		
		annex_country = {
			target = FROM
			transfer_troops = yes
		}
		
		

		hidden_effect = {
			news_event = {
				id = AUS_news_events.8
				hours = 24
			}
		}
	}
}

country_event = { #FROM (SWI) refuses Annexation
	id = AUS_political_events.54
	title = AUS_political_events.54.t
	desc = AUS_political_events.54.desc
	picture = GFX_report_event_german_troops
	is_triggered_only = yes

	fire_only_once = yes

	option = { #then we take it!!
		name = AUS_political_events.54.a
		ai_chance = {
			base = 10
		}

		create_wargoal = {
			type = annex_everything
			target = FROM
		}
	}
}

country_event = { #FROM wants a deal over Trentino and Alto Adige
	id = AUS_political_events.55
	title = AUS_political_events.55.t
	desc = AUS_political_events.55.desc
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes

	fire_only_once = yes

	option = { #okay then
		name = AUS_political_events.55.a
		ai_chance = {
			base = 1
			modifier = {
				factor = 5
				has_opinion = {
					target = FROM
					value > 49
				}
			}
		}

		event_option_tooltip = AUS_political_events.56.a

		FROM = {
			country_event = {
				id = AUS_political_events.56
				hours = 12
			}
		}
		
	}

	option = { #oh hell nah
		name = AUS_political_events.55.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 5
				has_opinion = {
					target = FROM
					value < 25
				}
			}
		}

		event_option_tooltip = AUS_political_events.57.a

		FROM = {
			country_event = {
				id = AUS_political_events.57
				hours = 12
			}
		}
		
	}
}

country_event = { #FROM gives us Trentino and Alto Adige/caves to our threats
	id = AUS_political_events.56
	title = AUS_political_events.56.t
	desc = AUS_political_events.56.desc
	picture = GFX_report_event_election_vote
	is_triggered_only = yes

	fire_only_once = yes

	option = { #great!
		name = AUS_political_events.56.a
		ai_chance = {
			base = 10
		}

		IF = {
			limit = {
				ROOT = {
					has_completed_focus = AUS_strike_deal_with_italy
				}	
			}
			ITA = {
				random_owned_controlled_state = {
					limit = {
						is_core_of = ITA
						NOT = {
							state = 39
							state = 850
						}
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			ROOT = {
				add_opinion_modifier = {
					target = FROM
					modifier = medium_increase
				}

				random_owned_controlled_state = {
					limit = {
						is_core_of = AUS
						industrial_complex > 2
					}

					remove_building = {
						type = industrial_complex
						level = 2
					}
				}
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		39 = { #alto adige
			transfer_state_to = ROOT
			add_core_of = ROOT
		}
		850 = { #Trentino
			transfer_state_to = ROOT
			add_core_of = ROOT
		}
	}
}

country_event = { #FROM refuses to give us Trentino and Alto Adige/does not cave to our threats
	id = AUS_political_events.57
	title = AUS_political_events.57.t
	desc = AUS_political_events.57.desc
	picture = GFX_report_event_worker_protests
	is_triggered_only = yes

	fire_only_once = yes

	option = { #then we take it!!
		name = AUS_political_events.57.a
		ai_chance = {
			base = 10
		}

		IF = {
			limit = {
				has_completed_focus = AUS_renew_claims_in_italy
			}

			create_wargoal = {
				type = take_claimed_state
				target = FROM
				generator = { 39 850 } # optional 
			}
		}

		39 = {
			add_core_of = ROOT
			add_claim_by = ROOT
		}
		850 = {
			add_core_of = ROOT	
			add_claim_by = ROOT		
		}

		ROOT = {
			add_opinion_modifier = {
				target = FROM
				modifier = medium_decrease
			}
			add_war_support = 0.05
		}
		
	}
}

country_event = { #FROM demands Trentino and Alto Adige
	id = AUS_political_events.58
	title = AUS_political_events.58.t
	desc = AUS_political_events.58.desc
	picture = GFX_report_event_soldiers_parade
	is_triggered_only = yes

	fire_only_once = yes

	option = { #okay
		name = AUS_political_events.58.a
		ai_chance = {
			base = 1
			modifier = {
				factor = 5
				has_opinion = {
					target = FROM
					value > 49
				}
			}
			modifier = {
				factor = 5
				strength_ratio = {
					tag = FROM
					ratio < 0.5
				}
			}
			
		}

		event_option_tooltip = AUS_political_events.56.a

		FROM = {
			country_event = {
				id = AUS_political_events.56
				hours = 12
			}
		}
		
	}

	option = { #fight me bro
		name = AUS_political_events.58.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 5
				has_opinion = {
					target = FROM
					value < 25
				}
			}
			modifier = {
				factor = 5
				strength_ratio = {
					tag = FROM
					ratio > 1.25
				}
			}
		}

		effect_tooltip = {
			IF = {
				limit = {
					FROM = { has_completed_focus = AUS_renew_claims_in_italy }
				}

				FROM = {
					create_wargoal = {
						type = take_claimed_state
						target = ROOT
						generator = { 39 850 } # optional 
					}
				}
			}
		}
		
		
		event_option_tooltip = AUS_political_events.57.a
		FROM = {
			country_event = {
				id = AUS_political_events.57
				hours = 12
			}
		}
	}
}

country_event = { #FROM installs a not very friendly Chief of army
	id = AUS_political_events.59
	title = AUS_political_events.59.t
	desc = AUS_political_events.59.desc
	picture = GFX_report_event_fascist_gathering
	is_triggered_only = yes

	fire_only_once = yes

	option = { #we complain
		name = AUS_political_events.59.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 10
				GER_is_historical_ai = yes
			}
		}
		add_political_power = -50

		FROM = {
			country_event = {
				id = AUS_political_events.60
				hours = 12 
			}
		}


		custom_effect_tooltip = if_they_accept_tt

		custom_effect_tooltip = AUS_anschluss_ratio_lowered

	}

	option = { #up to them
		name = AUS_political_events.59.b
		ai_chance = {
			base = 10
		}

		add_popularity = {
			ideology = ROOT
			popularity = 0.1
		}
		
	}
}

country_event = { #FROM complains about Jansa
	id = AUS_political_events.60
	title = AUS_political_events.60.t
	desc = AUS_political_events.60.desc
	picture = GFX_report_event_fascist_speech
	is_triggered_only = yes

	fire_only_once = yes

	option = { #we submit, bring forth Böhme
		name = AUS_political_events.60.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 100
				AUS_is_historical_ai = yes
			}
		}

		uncomplete_national_focus = {
			focus = AUS_follow_the_jansa_plan
			uncomplete_children = yes
			refund_political_power = no
		}

		complete_national_focus = AUS_establish_bohme_plan

		custom_effect_tooltip = AUS_political_events.60.a_tt
		custom_effect_tooltip = generic_skip_one_line_tt
		custom_effect_tooltip = AUS_anschluss_ratio_lowered
		AUS_lower_anschluss_ratio = yes
		custom_effect_tooltip = generic_skip_one_line_tt

		#the tooltips were lying, the ticking rate doesn't start here, it starts in .103

		FROM = {
			country_event = {
				id = AUS_political_events.61
				hours = 12 
			}
		}

	}

	option = { #Jansa is our man
		name = AUS_political_events.60.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 200
				OR = {
					has_country_flag = AUS_AI_RANDOM_ANTI_ANSCLUSS_STRESS
					has_game_rule = {
						rule = AUS_AI_BEHAVIOR
						option = AUS_ANTI_ANSCLUSS_STRESS
					}
				}
			}
		}

		custom_effect_tooltip = AUS_political_events.60.b_tt

		FROM = {
			country_event = {
				id = AUS_political_events.62
				hours = 12 
			}

			add_opinion_modifier = {
				target = ROOT
				modifier = medium_decrease
			}
		}
		
		add_opinion_modifier = {
			target = FROM
			modifier = medium_decrease
		}
	}
}

country_event = { #FROM installs Böhme instead
	id = AUS_political_events.61
	title = AUS_political_events.61.t
	desc = AUS_political_events.61.desc
	picture = GFX_report_event_generic_sign_treaty1
	is_triggered_only = yes

	fire_only_once = yes

	option = { #we are happy
		name = AUS_political_events.61.a
		ai_chance = {
			base = 10
			
		}

		add_stability = 0.05
	}
}

country_event = { #FROM keeps Jansa
	id = AUS_political_events.62
	title = AUS_political_events.62.t
	desc = AUS_political_events.62.desc
	picture = GFX_report_event_fascist_gathering
	is_triggered_only = yes

	fire_only_once = yes

	option = { #we complain
		name = AUS_political_events.62.a
		ai_chance = {
			base = 10
			
		}

		add_war_support = 0.05

		effect_tooltip = {

			FROM = {
				add_opinion_modifier = {
					target = ROOT
					modifier = medium_decrease
				}
			}
	
			add_opinion_modifier = {
				target = FROM
				modifier = medium_decrease
			}
		}
	}
}

country_event = { #Exiled resistance group from AUS offering their service
	id = AUS_political_events.63
	title = AUS_political_events.63.t
	desc = AUS_political_events.63.desc
	picture = GFX_report_event_military_planning
	is_triggered_only = yes

	fire_only_once = yes

	option = { #we can't trust them
		name = AUS_political_events.63.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 10
				has_government = fascism
			}
			modifier = {
				factor = 5
				is_in_faction_with = GER
			}
		}
		add_popularity = {
			ideology = fascism
			popularity = 0.05
		}
	}

	option = { #everyone is welcome 
		name = AUS_political_events.63.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 10
				NOT = { 
					has_government = fascism
				}
			}
			modifier = {
				factor = 5
				is_historical_focus_on = yes
			}

		}

		every_core_state = {
			limit = {
				is_fully_controlled_by = ROOT
			}
			add_dynamic_modifier = {
				modifier = BEL_austrian_resistance_active_state_dynamic_modifier
			}
		}		
	}
}

country_event = { #FROM offers industrial support
	id = AUS_political_events.64
	title = AUS_political_events.64.t
	desc = AUS_political_events.64.desc
	picture = GFX_report_event_generic_factory
	is_triggered_only = yes

	option = { #we complain
		name = AUS_political_events.64.a
		ai_chance = {
			base = 10
			
		}

		add_timed_idea = {
			idea = AUS_industrial_coaxing
			days = 180
		}

		set_country_flag = AUS_sent_industrial_help_flag

		add_opinion_modifier = {
			target = FROM
			modifier = AUS_industrial_help
		}
	}
}

country_event = { #FROM offers subsidy
	id = AUS_political_events.65
	title = AUS_political_events.65.t
	desc = AUS_political_events.65.desc
	picture = GFX_report_event_election_vote
	is_triggered_only = yes

	option = { #how kind!
		name = AUS_political_events.65.a
		ai_chance = {
			base = 10
			
		}

		IF = {
			limit = {
				has_dlc = "Arms Against Tyranny"
			}

			add_equipment_subsidy = {
				cic = 2000 
				equipment_type = infantry_equipment
				seller_tags = { FROM }  
			}

			add_equipment_subsidy = {
				cic = 1000 
				equipment_type = support_equipment 
				seller_tags = { FROM }  
			}

			add_equipment_subsidy = {
				cic = 1000  
				equipment_type = artillery_equipment  
				seller_tags = { FROM }  
			}
		}

		ELSE = {
			add_equipment_to_stockpile = { 
				type = infantry_equipment
				amount = 1000 
				producer = FROM
			}

			add_equipment_to_stockpile = { 
				type = support_equipment
				amount = 500
				producer = FROM
			}

			add_equipment_to_stockpile = { 
				type = artillery_equipment
				amount = 500
				producer = FROM
			}
		}

		set_country_flag = AUS_sent_market_subsidies_flag

		add_opinion_modifier = {
			target = FROM
			modifier = AUS_market_help
		}
	}
}

country_event = { #FROM proposes tightened federation
	id = AUS_political_events.66
	title = AUS_political_events.66.t
	desc = AUS_political_events.66.desc
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes

	option = { #sounds good
		name = AUS_political_events.66.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 5
				count_triggers = {
					amount > 0
					has_country_flag = AUS_sent_market_subsidies_flag
					has_country_flag = AUS_sent_industrial_help_flag
				}
				
			}
			modifier = {
				factor = 3
				strength_ratio = {
					tag = FROM
					ratio < 0.5
				}
			}
			modifier = {
				factor = 0.1
				FROM = {
					is_major = yes
				}
			}
		}

		FROM = {
			country_event = {
				id = AUS_political_events.67
				hours = 12
			}

			puppet = ROOT
		}

		set_country_flag = AUS_sent_puppet_proposal_flag
		event_option_tooltip = AUS_political_events.67.a
	}
	option = { #no way
		name = AUS_political_events.66.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 2
				is_major = yes
			}
			modifier = {
				factor = 3
				strength_ratio = {
					tag = FROM
					ratio > 1.5
				}
			}
		}

		FROM = {
			country_event = {
				id = AUS_political_events.68
				hours = 12
			}
		}
		set_country_flag = AUS_sent_puppet_proposal_flag
	}
}

country_event = { #FROM accepts tighter federation
	id = AUS_political_events.67
	title = AUS_political_events.67.t
	desc = AUS_political_events.67.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes

	option = { #great!
		name = AUS_political_events.67.a
		ai_chance = {
			base = 10
			
		}

		puppet = FROM 

		FROM = {
			AUS_set_danubian_cosmetic_for_country = yes
		}
	}
	
}

country_event = { #FROM rejects tighter federation
	id = AUS_political_events.68
	title = AUS_political_events.68.t
	desc = AUS_political_events.68.desc
	picture = GFX_report_event_generic_riot
	is_triggered_only = yes

	option = { #it was not a question!
		name = AUS_political_events.68.a
		ai_chance = {
			base = 10
			
		}

		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM 
		}

		remove_from_faction = FROM
	}
	option = { #was worth asking
		name = AUS_political_events.68.b
		ai_chance = {
			base = 10
			
		}

		add_political_power = 50
	}
}

country_event = { #The risk of Anschluss mitigated
	id = AUS_political_events.69
	title = AUS_political_events.69.t
	desc = AUS_political_events.69.desc
	picture = GFX_report_event_generic_sign_treaty1
	
	trigger = { 
		original_tag = AUS
		has_country_flag = AUS_antischluss_active_flag
		NOT = { GER = { has_country_flag = AUS_anschluss_process_has_begun_flag } }
		OR = {
			AND = {
				is_in_faction = yes
				NOT = { is_in_faction_with = GER }
				any_other_country = {
					is_in_faction_with = ROOT
					NOT = { is_subject_of = ROOT }
				}
			}
			AND = {
				is_subject = yes
				NOT = { is_subject_of = GER }
			}

			has_war_with = GER	
			GER = {
				exists = no
			}
		}
	}

	fire_only_once = yes

	option = { #a silver lining in our current situation
		name = AUS_political_events.69.a
		ai_chance = {
			base = 10
		}

		trigger = {
			AUS = {
				is_subject = yes
			}
		}

		clr_country_flag = AUS_antischluss_active_flag

		custom_effect_tooltip = AUS_political_events.69.a_tt

		custom_effect_tooltip = generic_skip_one_line_tt

		set_can_be_fired_in_advisor_role = {
			character = AUS_arthur_seyss-inquart
			slot = political_advisor
			value = yes
		}
	}
	option = { #our hard work paid off
		name = AUS_political_events.69.b
		ai_chance = {
			base = 10	
		}

		trigger = {
			AUS = {
				is_in_faction = yes
			}
		}

		clr_country_flag = AUS_antischluss_active_flag

		custom_effect_tooltip = AUS_political_events.69.a_tt

		custom_effect_tooltip = generic_skip_one_line_tt

		set_can_be_fired_in_advisor_role = {
			character = AUS_arthur_seyss-inquart
			slot = political_advisor
			value = yes
		}
	}
}

country_event = { #FROM offers compensation for guarantee
	id = AUS_political_events.70
	title = AUS_political_events.70.t
	desc = AUS_political_events.70.desc
	picture = GFX_report_event_election_vote
	is_triggered_only = yes

	option = { #that changes things!
		name = AUS_political_events.70.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 0.5
				OR = {
					original_tag = USA
					original_tag = ITA
				}
				
				FROM = {
					has_government = communism
				}
			}

			modifier = { #if you dislike someone, why would you trust them?
				factor = 0.25
				has_opinion = {
					target = FROM
					value < 0
				}
			}

			modifier = { #if the USA has passed the neutrality pact, the answer is no
				factor = 0
				original_tag = USA
				USA = {
					has_country_flag = {
						flag = USA_passed_neutrality_pact_flag
					}
				}
			}

			modifier = {
				factor = 0
				FROM = {
					is_ai = yes
				}
				is_historical_focus_on = yes
			}
		}

		FROM = {
			country_event = {
				id = AUS_political_events.71
				hours = 12
			}
		}

		IF = {
			limit = {
				ROOT = {
					original_tag = ENG
				}
			}
			ROOT = { 
				random_owned_state = {
					limit = {
						is_fully_controlled_by = ROOT
					}
		
					prioritize = { 126 132 } #Greater London Area or Lancashire
		
					add_extra_state_shared_building_slots = 2
		
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
			}
		}

		IF = {
			limit = {
				ROOT = {
					original_tag = USA
				}
			}
		
			ROOT = {
				random_owned_state = {
					limit = {
						is_fully_controlled_by = ROOT
					}
		
					prioritize = { 361 378 } #Maryland or California
		
					add_extra_state_shared_building_slots = 2
		
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
			}
		}

		IF = {
			limit = {
				ROOT = {
					original_tag = FRA
				}
			}
		
			ROOT = {
				random_owned_state = {
					limit = {
						is_fully_controlled_by = ROOT
					}
		
					prioritize = { 16 19 } #Ile de France or Aquitane
		
					add_extra_state_shared_building_slots = 2
		
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
			}
		}

		IF = {
			limit = {
				ROOT = {
					original_tag = ITA
				}
			}
		
			ROOT = {
				random_owned_state = {
					limit = {
						is_fully_controlled_by = ROOT
					}
		
					prioritize = { 2 17 } #Lazio or Campania
		
					add_extra_state_shared_building_slots = 2
		
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
			}		
		}	
		give_guarantee = FROM
		
		
		add_ai_strategy = { 
			type = protect
			id = FROM
			value = 80
		}
	}
	option = { #no. They got equipment and words, that is all.
		name = AUS_political_events.70.b
		ai_chance = {
			base = 10
			modifier = { #if you dislike them, you wouldn't help them no matter what
				factor = 2
				has_opinion = {
					target = FROM
					value < -25
				}
			}
			
		}

		FROM = {
			country_event = {
				id = AUS_political_events.72
				hours = 12
			}
		}
		
	}
}

country_event = { #FROM accepts compensation for guarantee
	id = AUS_political_events.71
	title = AUS_political_events.71.t
	desc = AUS_political_events.71.desc
	picture = GFX_report_event_generic_factory
	is_triggered_only = yes

	immediate = {
		IF = {
			limit = {
				NOT = {
					has_dynamic_modifier = {
						modifier = AUS_compensation_for_guarantee
					}
				}
			
			}

			ROOT = {
				add_dynamic_modifier = {
					modifier = AUS_compensation_for_guarantee
					days = 365
				}
			}	
		}
	}

	option = { #oh thank god
		name = AUS_political_events.71.a
		ai_chance = {
			base = 10
			
		}
			custom_effect_tooltip = AUS_compensation_for_guarantee_intro_tt

			add_to_variable = { AUS_compensation_for_guarantee_consumer_goods_factor = 0.1 tooltip = consumer_goods_factor_tt }
		
		effect_tooltip = {
			IF = {
				limit = {
					FROM = {
						original_tag = ENG
					}
				}
				FROM = { 
					random_owned_state = {
						limit = {
							is_fully_controlled_by = FROM
						}

						prioritize = { 126 132 } #Greater London Area or Lancashire

						add_extra_state_shared_building_slots = 2

						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}

					give_guarantee = ROOT


					add_ai_strategy = { 
						type = protect
						id = ROOT
						value = 80
					}
				
				}
				
			}

			IF = {
				limit = {
					FROM = {
						original_tag = USA
					}
				}

				FROM = {
					random_owned_state = {
						limit = {
							is_fully_controlled_by = FROM
						}

						prioritize = { 361 378 } #Maryland or California

						add_extra_state_shared_building_slots = 2

						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}

					give_guarantee = ROOT

					add_ai_strategy = { 
						type = protect
						id = ROOT
						value = 80
					}
				}
				
			}

			IF = {
				limit = {
					FROM = {
						original_tag = FRA
					}
				}

				FROM = {
					random_owned_state = {
						limit = {
							is_fully_controlled_by = FROM
						}

						prioritize = { 16 19 } #Ile de France or Aquitane

						add_extra_state_shared_building_slots = 2

						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}

					give_guarantee = ROOT

					add_ai_strategy = { 
						type = protect
						id = ROOT
						value = 80
					}

				}
				
			}

			IF = {
				limit = {
					FROM = {
						original_tag = ITA
					}
				}

				FROM = {
					random_owned_state = {
						limit = {
							is_fully_controlled_by = FROM
						}

						prioritize = { 2 17 } #Lazio or Campania

						add_extra_state_shared_building_slots = 2

						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}

					give_guarantee = ROOT

					add_ai_strategy = { 
						type = protect
						id = ROOT
						value = 80
					}
				}		
			}
		}
	}
}

country_event = { #FROM rejects compensation for guarantee
	id = AUS_political_events.72 
	title = AUS_political_events.72.t
	desc = AUS_political_events.72.desc
	picture = GFX_report_event_generic_riot
	is_triggered_only = yes

	option = { #we did all we could
		name = AUS_political_events.72.a
		ai_chance = {
			base = 10
			
		}

		add_war_support = 0.1

		add_opinion_modifier = {
			target = FROM
			modifier = large_decrease
		}
	}
}

country_event = { #FROM proposes less restrictive agreement
	id = AUS_political_events.73
	title = AUS_political_events.73.t
	desc = AUS_political_events.73.desc
	picture = GFX_report_event_generic_sign_treaty1
	is_triggered_only = yes

	immediate = {
		IF = {
			limit = {
				ROOT = {
					original_tag = ITA
				}
			}
			clr_country_flag = AUS_ITA_rejects_rearmament_flag
		}

		ELSE_IF = {
			limit = {
				ROOT = {
					original_tag = FRA
				}
			}
			clr_country_flag = AUS_FRA_rejects_rearmament_flag
		}
		ELSE_IF = {
			limit = {
				ROOT = {
					original_tag = ENG
				}
			}
			clr_country_flag = AUS_ENG_rejects_rearmament_flag
		}
		ELSE_IF = {
			limit = {
				ROOT = {
					original_tag = USA
				}
			}
			clr_country_flag = AUS_USA_rejects_rearmament_flag
		}
	}

	option = { #a decent solution
		name = AUS_political_events.73.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 2
				has_opinion = {
					target = AUS
					value > 14
				}
			}
		}

		IF = {
			limit = {
				ROOT = {
					original_tag = ITA
				}
			}

			set_country_flag = AUS_ITA_treaty_compromise_flag


			log = "[ROOT.GetName] Accepts Revision"
		}

		ELSE_IF = {
			limit = {
				ROOT = {
					original_tag = FRA
				}
			}

			set_country_flag = AUS_FRA_treaty_compromise_flag


			log = "[ROOT.GetName] Accepts Revision"
		}

		ELSE_IF = {
			limit = {
				ROOT = {
					original_tag = ENG
				}
			}

			set_country_flag = AUS_ENG_treaty_compromise_flag

			log = "[ROOT.GetName] Accepts Revision"
		}

		ELSE_IF = {
			limit = {
				ROOT = {
					original_tag = USA
				}
			}

			set_country_flag = AUS_USA_treaty_compromise_flag

			log = "[ROOT.GetName] Accepts Revision"
		}

		IF = {
			limit = {
				ITA = {
					NOT = {
						OR = {
							has_country_flag = AUS_ITA_treaty_compromise_rejected_flag
							has_country_flag = AUS_ITA_rejects_rearmament_flag
						}
						
					}
				}
				FRA = {
					NOT = {
						OR = {
							has_country_flag = AUS_FRA_treaty_compromise_rejected_flag
							has_country_flag = AUS_FRA_treaty_overseer_flag
							has_country_flag = AUS_FRA_rejects_rearmament_flag
						}
						
					}
				}
				ENG = {
					NOT = {
						OR = {
							has_country_flag = AUS_ENG_treaty_compromise_rejected_flag
							has_country_flag = AUS_ENG_treaty_overseer_flag
							has_country_flag = AUS_ENG_rejects_rearmament_flag
						}
						
					}
				}
				USA = {
					NOT = {
						OR = {
							has_country_flag = AUS_USA_treaty_compromise_rejected_flag
							has_country_flag = AUS_USA_treaty_overseer_flag
							has_country_flag = AUS_USA_rejects_rearmament_flag
						}
						
					}
				}
		
			}
			event_option_tooltip = AUS_political_events.74.a
			AUS = {
				country_event = {
					id = AUS_political_events.74
					hours = 12
				}
			}
		}

		ELSE_IF = {
			limit = {
				OR = {
					FRA = {
						has_country_flag = AUS_FRA_treaty_overseer_flag
					}
					ENG = {
						has_country_flag = AUS_ENG_treaty_overseer_flag
					}
					USA = {
						has_country_flag = AUS_USA_treaty_overseer_flag
					}
				}

				NOT = {
					OR = {
						ITA = {
							has_country_flag = AUS_ITA_treaty_compromise_rejected_flag
							has_country_flag = AUS_ITA_rejects_rearmament_flag
						}
						FRA = {
							has_country_flag = AUS_FRA_treaty_compromise_rejected_flag
							has_country_flag = AUS_FRA_rejects_rearmament_flag
						}
						ENG = {
							has_country_flag = AUS_ENG_treaty_compromise_rejected_flag
							has_country_flag = AUS_ENG_rejects_rearmament_flag
						}
						USA = {
							has_country_flag = AUS_USA_treaty_compromise_rejected_flag
							has_country_flag = AUS_USA_rejects_rearmament_flag
						}
					}
					
				}
			
			}

			AUS = {
				country_event = {
					id = AUS_political_events.76
					hours = 12
				}
			}
		}

		ELSE_IF = {
			limit = {
				OR = {
					ITA = {
						has_country_flag = AUS_ITA_treaty_compromise_rejected_flag
					}
					FRA = {
						has_country_flag = AUS_ITA_treaty_compromise_rejected_flag
					}
					ENG = {
						has_country_flag = AUS_ITA_treaty_compromise_rejected_flag
					}
					USA = {
						has_country_flag = AUS_ITA_treaty_compromise_rejected_flag
					}
				}
	
			}
			event_option_tooltip = AUS_political_events.75.a
			AUS = {
				country_event = {
					id = AUS_political_events.75
					hours = 12
				}
			}
		}

		ELSE = {
			custom_effect_tooltip = AUS_political_events.73.a_tt
		}

	}

	option = { #still no
		name = AUS_political_events.73.b
		ai_chance = {
			base = 10
			modifier = { #you really have to hate someone to not take this
				factor = 0.1
				has_opinion = {
					target = AUS
					value < -24
				}
			}
			
		}


		IF = {
			limit = {
				ROOT = {
					original_tag = ITA
				}
			}

			set_country_flag = AUS_ITA_treaty_compromise_rejected_flag

			log = "[ROOT.GetName] Rejects Revision"
		}

		ELSE_IF = {
			limit = {
				ROOT = {
					original_tag = FRA
				}
			}

			set_country_flag = AUS_FRA_treaty_compromise_rejected_flag

			log = "[ROOT.GetName] Rejects Revision"
		}

		ELSE_IF = {
			limit = {
				ROOT = {
					original_tag = ENG
				}
			}

			set_country_flag = AUS_ENG_treaty_compromise_rejected_flag

			log = "[ROOT.GetName] Rejects Revision"
		}

		ELSE_IF = {
			limit = {
				ROOT = {
					original_tag = USA
				}
			}

			set_country_flag = AUS_USA_treaty_compromise_rejected_flag

			log = "[ROOT.GetName] Rejects Revision"
		}

		IF = {
			limit ={
				NOT = {
					OR  = {
						ITA = {
							has_country_flag = AUS_ITA_rejects_rearmament_flag
						}
						FRA = {
							has_country_flag = AUS_FRA_rejects_rearmament_flag
						}
						ENG = {
							has_country_flag = AUS_ENG_rejects_rearmament_flag
						}
						USA = {
							has_country_flag = AUS_USA_rejects_rearmament_flag
						}
					
					}
				}
			}
			AUS = {
				country_event = {
					id = AUS_political_events.75
					hours = 12
				}
			}
		}

		ELSE = {
			custom_effect_tooltip = AUS_political_events.73.b_tt
		}
		
	}

	option = { #we want someone to oversee this.
		name = AUS_political_events.73.c
		trigger = { 
			has_government = democratic 
			AUS = {	
				AUS_karl_renner = {
					is_hired_as_advisor = no
				}
			}
		}
		ai_chance = {
			base = 10
			modifier = { 
				factor = 10
				AUS = {
					has_government = fascism
				}
			}

		}

		IF = {
			limit = {
				ROOT = {
					original_tag = FRA
				}
			}

			set_country_flag = AUS_FRA_treaty_overseer_flag

			log = "[ROOT.GetName] Demands an Overseer"
		}

		ELSE_IF = {
			limit = {
				ROOT = {
					original_tag = ENG
				}
			}

			set_country_flag = AUS_ENG_treaty_overseer_flag

			log = "[ROOT.GetName] Demands an Overseer"
		}

		ELSE_IF = {
			limit = {
				ROOT = {
					original_tag = USA
				}
			}

			set_country_flag = AUS_USA_treaty_overseer_flag

			log = "[ROOT.GetName] Demands an Overseer"
		}

		IF = {
			limit = {

				ITA = {
					NOT = {
						OR = {
							has_country_flag = AUS_ITA_rejects_rearmament_flag
							has_country_flag = AUS_ITA_treaty_compromise_rejected_flag
						}
					}
				}
				FRA = {
					NOT = {
						OR = {
							has_country_flag = AUS_FRA_rejects_rearmament_flag
							has_country_flag = AUS_FRA_treaty_compromise_rejected_flag
						}
					}
				}
				ENG = {
					NOT = {
						OR = {
							has_country_flag = AUS_ENG_rejects_rearmament_flag
							has_country_flag = AUS_ENG_treaty_compromise_rejected_flag
						}
					}
					
				}
				USA = {
					NOT = {
						OR = {
							has_country_flag = AUS_USA_rejects_rearmament_flag
							has_country_flag = AUS_USA_treaty_compromise_rejected_flag
						}
					}
				}
			}
			AUS = {
				country_event = {
					id = AUS_political_events.76
					hours = 12
				}
			}

			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {

				IF = {
					limit = {
						AUS = {	
							AUS_karl_renner = {
								is_hired_as_advisor = no
							}
						}
					}
			
					AUS = {
						add_advisor_role = {
							character = AUS_karl_renner
							advisor = {
								slot = political_advisor 
								can_be_fired = no
								idea_token = AUS_karl_renner
								traits = {
									AUS_overseer_of_rearmament
								}
								allowed = {}
							}
						}
					}
					remove_ideas = {
						AUS_treaty_of_saint_germain_en_laye
					}
					add_timed_idea = {
						idea = AUS_revised_treaty_of_saint_germain_en_laye
						days = 365
					}
					hidden_effect = {
						AUS = {
							activate_advisor = AUS_karl_renner
						}
						
					}
			
					
				}
					
			}
			ELSE = {

				custom_effect_tooltip = AUS_political_events.73.c_tt
			}
		}

		ELSE_IF = {
			limit = {
				OR = {
					ITA = {
						has_country_flag = AUS_ITA_treaty_compromise_rejected_flag
					}
					FRA = {
						has_country_flag = AUS_ITA_treaty_compromise_rejected_flag
					}
					ENG = {
						has_country_flag = AUS_ITA_treaty_compromise_rejected_flag
					}
					USA = {
						has_country_flag = AUS_ITA_treaty_compromise_rejected_flag
					}
				}		
			}

			AUS = {
				country_event = {
					id = AUS_political_events.75
					hours = 12
				}
			}
		}

		
	}
}

country_event = { #FROM agrees to less restrictive agreement
	id = AUS_political_events.74
	title = AUS_political_events.74.t
	desc = AUS_political_events.74.desc
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes

	option = { #a decent solution
		name = AUS_political_events.74.a
		ai_chance = {
			base = 10
			
		}

		ROOT = {
			remove_ideas = {
				AUS_treaty_of_saint_germain_en_laye
			}
			custom_effect_tooltip = generic_skip_one_line_tt

			add_timed_idea = {
				idea = AUS_revised_treaty_of_saint_germain_en_laye
				days = 365
			}

			set_country_flag = AUS_no_overseer_needed_flag
		}
	}
}

country_event = { #FROM rejects less restrictive agreement
	id = AUS_political_events.75
	title = AUS_political_events.75.t
	desc = AUS_political_events.75.desc
	picture = GFX_report_event_generic_riot
	is_triggered_only = yes

	option = { #I guess we wait it out
		name = AUS_political_events.75.a
		ai_chance = {
			base = 10
			
		}

		custom_effect_tooltip = AUS_political_events.29.c_tt
		custom_effect_tooltip = generic_skip_one_line_tt

		add_opinion_modifier = {
			target = FROM
			modifier = large_decrease
		}

	}

	option = { #then we rearm anyways!
		name = AUS_political_events.75.b
		ai_chance = {
			base = 1
			
		}

		remove_ideas = {
			AUS_treaty_of_saint_germain_en_laye
		}

		FROM = {
			country_event = {
				id = AUS_political_events.30
				days = 1
			}
		}

		hidden_effect = {
			news_event = {
	 			id = AUS_news_events.5
	 			days = 2
	 		}
		}
	}
}

country_event = { #FROM agrees to less restrictive agreement so long as there is an overseer
	id = AUS_political_events.76
	title = AUS_political_events.76.t
	desc = AUS_political_events.76.desc
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes

	option = { #a decent solution
		name = AUS_political_events.76.a
		ai_chance = {
			base = 10
		}

		ROOT = {

			add_advisor_role = {
				character = AUS_karl_renner
				advisor = {
					slot = political_advisor 
					can_be_fired = no
					idea_token = AUS_karl_renner
					traits = {
						AUS_overseer_of_rearmament
					}
					allowed = {}
				}
			}

			hidden_effect = {
				activate_advisor = AUS_karl_renner
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			remove_ideas = {
				AUS_treaty_of_saint_germain_en_laye
			}
			add_timed_idea = {
				idea = AUS_revised_treaty_of_saint_germain_en_laye
				days = 365
			}
		}
	}
}

country_event = { #Austria is informed that the risk of Anschluss is now imminent
	id = AUS_political_events.77
	title = AUS_political_events.77.t
	desc = AUS_political_events.77.desc
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	fire_only_once = yes

	option = { #Brace!
		name = AUS_political_events.77.a
		ai_chance = {
			base = 10
			
		}

		add_war_support = 0.05
		add_stability = -0.1

		add_political_power = 50

		custom_effect_tooltip = generic_skip_one_line_tt

		custom_effect_tooltip = AUS_political_events.77.a_tt
	}
}

country_event = { #FROM requests SOV aid
	id = AUS_political_events.78
	title = AUS_political_events.78.t
	desc = AUS_political_events.78.desc
	picture = GFX_report_event_stalin_02
	is_triggered_only = yes

	option = { #Sure, we'll help
		name = AUS_political_events.78.a 
		ai_chance = {
			base = 10
			modifier = {
				factor = 0 
				NOT = {
					has_government = communism
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_civil_war = yes
					has_war_with_major = yes
				}
			}
			modifier = {
				factor = 0.1
				FROM = {
					is_ai = yes
				}
			}
		}
		SOV = {
			add_timed_idea = { 
				idea = AUS_aid_austrian_communists 
				days = 730 
			}
			add_ai_strategy = {
				type = send_volunteers_desire
				id = FROM
				value = 200
			}
		}
		FROM = {
			country_event = {
				id = AUS_political_events.79
				hours = 3
			}

			add_opinion_modifier = {
				target = ROOT
				modifier = medium_increase
			}
		}
	}
		
	option = { #We have better things to do
		name = AUS_political_events.78.b 
		ai_chance = {
			base = 1
		}

		FROM = {
			country_event = {
				id = AUS_political_events.80
				hours = 3 
			}

			add_opinion_modifier = {
				target = SOV
				modifier = medium_decrease
			}
		}
	}
}

country_event = { #Austria gets SOV aid
	id = AUS_political_events.79
	title = AUS_political_events.79.t
	desc = AUS_political_events.79.desc
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes

	fire_only_once = yes

	option = { #Great!
		name = AUS_political_events.79.a
		ai_chance = {
			base = 10
			
		}

		custom_effect_tooltip = AUS_political_events.79.a_tt

		effect_tooltip = {
			FROM = {
				add_timed_idea = { 
					idea = AUS_aid_austrian_communists 
					days = 730 
				}
			}
		}
	}
}

country_event = { #Austria gets no SOV aid
	id = AUS_political_events.80
	title = AUS_political_events.80.t
	desc = AUS_political_events.80.desc
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes

	fire_only_once = yes

	option = { #drats
		name = AUS_political_events.80.a
		ai_chance = {
			base = 10
			
		}

		effect_tooltip = {
			add_opinion_modifier = {
				target = FROM
				modifier = medium_decrease
			}
		}
	}
}

country_event = { #Austria aligns to our leaders doctrine
	id = AUS_political_events.81
	title = AUS_political_events.81.t
	desc = AUS_political_events.81.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes

	fire_only_once = yes

	option = { #Great, we shall make sure this beacon of communism is kept safe
		name = AUS_political_events.81.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				FROM = {
					is_ai = yes
				}
			}
			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 25
				}
			}
			
		}

		give_guarantee = FROM

		add_opinion_modifier = {
			target = FROM
			modifier = AUS_aligned_with_our_values
		}

		FROM = {
			add_opinion_modifier = {
				target = ROOT
				modifier = AUS_aligned_with_our_values
			}
		}
		
	}

	option = { #Great, in time they will make a fine ally, but not yet
		name = AUS_political_events.81.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value < 0
				}
			}
			
		}

		add_opinion_modifier = {
			target = FROM
			modifier = AUS_aligned_with_our_values
		}

		FROM = {
			add_opinion_modifier = {
				target = ROOT
				modifier = AUS_aligned_with_our_values
			}
		}
	}

}

country_event = { #Austria gets a SOV guarantee
	id = AUS_political_events.82
	title = AUS_political_events.82.t
	desc = AUS_political_events.82.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes

	fire_only_once = yes

	option = { #great
		name = AUS_political_events.82.a
		ai_chance = {
			base = 10
			
		}
		event_option_tooltip = AUS_political_events.81.a
	}
}

country_event = { #Austria does not get SOV guarantee
	id = AUS_political_events.83
	title = AUS_political_events.83.t
	desc = AUS_political_events.83.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes

	fire_only_once = yes

	option = { #drats
		name = AUS_political_events.83.a
		ai_chance = {
			base = 10
			
		}
		event_option_tooltip = AUS_political_events.81.b
	}
}

country_event = { #Austria boosts communist sentiments
	id = AUS_political_events.84
	title = AUS_political_events.84.t
	desc = AUS_political_events.84.desc
	picture = GFX_report_event_gathering_protest
	is_triggered_only = yes

	option = { #fine by us
		name = AUS_political_events.84.a
		ai_chance = {
			base = 1
			modifier = {
				factor = 5
				has_opinion = {
					target = FROM
					value > 50
				}
			}
			modifier = {
				factor = 3
				communism > 0.3
			}
			
		}
		add_timed_idea = {
			idea = AUS_austrian_communists_active
			days = 365
		}

		add_stability = -0.05

		set_country_flag = AUS_austria_boosting_communism_here_flag

		FROM = {
			country_event = {
				id = AUS_political_events.85
				hours = 12
			}
		}	
		
	}

	option = { #hell no
		name = AUS_political_events.84.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 5
				OR = {
					has_government = fascism
					has_government = neutrality
				}
			}
		}

		add_political_power = -100

		add_opinion_modifier = {
			target = FROM
			modifier = medium_decrease
		}

		FROM = {
			country_event = {
				id = AUS_political_events.86
				hours = 12
			}

			add_opinion_modifier = {
				target = ROOT
				modifier = medium_decrease
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt
		custom_effect_tooltip = AUS_political_events.84.b_tt
		
	}
}

country_event = { #Austria is allowed to boost communism
	id = AUS_political_events.85
	title = AUS_political_events.85.t
	desc = AUS_political_events.85.desc
	picture = GFX_report_event_communist_leader
	is_triggered_only = yes

	option = { #great! we can move on with our plan
		name = AUS_political_events.85.a
		ai_chance = {
			base = 10
		}

		IF = {
			limit = {
				NOT = {
					has_completed_focus = AUS_demand_liberation_of_workers
				}
			}

			custom_effect_tooltip = AUS_political_events.85.a_tt
		}

		ELSE = {
			custom_effect_tooltip = AUS_political_events.85.2.a_tt
		}
	}
}

country_event = { #Austria is not allowed to boost communism
	id = AUS_political_events.86
	title = AUS_political_events.86.t
	desc = AUS_political_events.86.desc
	picture = GFX_report_event_generic_riot
	is_triggered_only = yes

	option = { #drats
		name = AUS_political_events.86.a
		ai_chance = {
			base = 10
			
		}
		effect_tooltip = {
			FROM = {
				add_opinion_modifier = {
					target = ROOT
					modifier = medium_decrease
				}
			}
			add_opinion_modifier = {
				target = ROOT
				modifier = medium_decrease
			}
		}

		FROM = {
			set_country_flag = AUS_this_country_refused_communism_flag
		}
		
	}

	option = { #then we declare war!
		name = AUS_political_events.86.b
		ai_chance = {
			base = 10
			modifier = { #only do this if you are strong!
				factor = 0.5
				is_ai = yes
			}
			modifier = {
				factor = 3
				strength_ratio = {
					tag = FROM
					ratio > 1.25
				}
			}
		}

		create_wargoal = {
			type = topple_government
			target = FROM
		}

		effect_tooltip = {
			FROM = {
				add_opinion_modifier = {
					target = ROOT
					modifier = medium_decrease
				}
			}
			add_opinion_modifier = {
				target = ROOT
				modifier = medium_decrease
			}
		}

		FROM = {
			set_country_flag = AUS_this_country_refused_communism_flag
		}
		
	}
}

country_event = { #Austria demands we become communist
	id = AUS_political_events.87
	title = AUS_political_events.87.t
	desc = AUS_political_events.87.desc
	picture = GFX_report_event_generic_communist_congress
	is_triggered_only = yes

	option = { #I guess we do then?
		name = AUS_political_events.87.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 3
				strength_ratio = {
					tag = FROM
					ratio < 0.75
				}
			}
		}

		set_politics = {
			ruling_party = communism
			elections_allowed = no
			last_election = "1930.09.04"
			election_frequency = 48
		}

		add_popularity = {
			ideology = communism
			popularity = 0.2
		}


		FROM = {
			country_event = {
				id = AUS_political_events.88
				hours = 12
			}
		}

	}

	option = { #NO!
		name = AUS_political_events.87.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 3
				strength_ratio = {
					tag = FROM
					ratio > 1.25
				}
			}
		}

		FROM = {
			country_event = {
				id = AUS_political_events.89
				hours = 12
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt
		custom_effect_tooltip = AUS_political_events.84.b_tt

	}
}

country_event = { #Austria informed that their demands went through
	id = AUS_political_events.88
	title = AUS_political_events.88.t
	desc = AUS_political_events.88.desc
	picture = GFX_report_event_communists_cheer
	is_triggered_only = yes

	option = { #welocme comrades!
		name = AUS_political_events.88.a
		ai_chance = {
			base = 10
		}

		add_popularity = {
			ideology = communism
			popularity = 0.05
		}

		add_political_power = 100
	}
}

country_event = { #Austria informed that their ultimatum was rejected
	id = AUS_political_events.89
	title = AUS_political_events.89.t
	desc = AUS_political_events.89.desc
	picture = GFX_report_event_worker_protests
	is_triggered_only = yes

	option = { #drats
		name = AUS_political_events.89.a
		ai_chance = {
			base = 10
		}
	}

	option = { #war it is!
		name = AUS_political_events.89.b
		ai_chance = {
			base = 10
		}

		FROM = {
			set_temp_variable = { AUS_FROM_communist_support = party_popularity@communism }

			IF = {
				limit = {
					has_government = democratic
				}

				start_civil_war = {
					ideology = communism
					ruling_party = democratic
					size = var:AUS_FROM_communist_support 
					ROOT = {
						puppet = {
							target = PREV
							end_wars = no
							end_civil_wars = no
						}
						declare_war_on = {
							target = FROM
							type = puppet_wargoal_focus
						}
					}
				}
			}

			ELSE_IF = {
				limit = {
					has_government = fascism
				}
				start_civil_war = {
					ideology = communism
					ruling_party = fascism
					size = var:AUS_FROM_communist_support
					ROOT = {
						puppet = {
							target = PREV
							end_wars = no
							end_civil_wars = no
						}
						declare_war_on = {
							target = FROM
							type = puppet_wargoal_focus
						}
					}
				}
			}
			ELSE_IF = {
				limit = {
					has_government = neutrality
				}

				start_civil_war = {
					ideology = communism
					ruling_party = neutrality
					size = var:AUS_FROM_communist_support
					ROOT = {
						puppet = {
							target = PREV
							end_wars = no
							end_civil_wars = no
						}
						declare_war_on = {
							target = FROM
							type = puppet_wargoal_focus
						}
					}
				}
			}
		
			custom_effect_tooltip = SWE_pull_the_trigger_tt
		}
	}
}

country_event = { #Electing a new democratic leader
	id = AUS_political_events.90
	title = AUS_political_events.90.t
	desc = AUS_political_events.90.desc
	picture = GFX_report_event_communists_cheer
	is_triggered_only = yes

	fire_only_once = yes

	option = { #Keep Kurt in charge
		name = AUS_political_events.90.a
		ai_chance = {
			base = 1
		}
		hidden_effect = {
			news_event = {
				id = AUS_news_events.12
				hours = 24
			}

			AUS_kurt_schuschnigg = {
				remove_country_leader_role = {
					ideology = despotism
				}
				
			}
		}

		AUS_kurt_schuschnigg = {
			add_country_leader_role = {
				country_leader = {
					ideology = conservatism
					expire = "1965.1.1.1"
					id = -1
					traits = { AUS_abolished_austrofascism }
				}
			}
		}

		custom_effect_tooltip = AUS_political_events.90.a_tt
		custom_effect_tooltip = generic_skip_one_line_tt

		hidden_effect = {
			AUS_kurt_schuschnigg = {
				promote_character = yes
			}
		}
	
		set_politics = {
			ruling_party = democratic
			elections_allowed = yes
			last_election = "1936.1.1"
			election_frequency = 48
			long_name = AUS_democratic_christlichsoziale_partei_long
			name = AUS_democratic_christlichsoziale_partei
		}

	}
	option = { #Karl Renner is our guy
		name = AUS_political_events.90.b
		ai_chance = {
			base = 10
		}

		promote_character = AUS_karl_renner

		set_politics = {
			ruling_party = democratic
			elections_allowed = yes
			last_election = "1936.1.1"
			election_frequency = 48
		}

		hidden_effect = {
			news_event = {
				id = AUS_news_events.12
				hours = 24
			}
		}
	}
	option = { #Vinzenz Schumy is a safe bet
		name = AUS_political_events.90.c
		ai_chance = {
			base = 1
		}

		promote_character = AUS_vinzenz_schumy

		set_politics = {
			ruling_party = democratic
			elections_allowed = yes
			last_election = "1936.1.1"
			election_frequency = 48
			long_name = AUS_democratic_landbund_long 
			name = AUS_democratic_landbund
		}

		hidden_effect = {
			news_event = {
				id = AUS_news_events.12
				hours = 24
			}
		}
	}
}

country_event = { #Otto wants to be a field marshal
	id = AUS_political_events.91
	title = AUS_political_events.91.t
	desc = AUS_political_events.91.desc
	picture = GFX_report_event_AUS_military_march 
	
	fire_only_once = yes

	trigger = {
		has_country_flag = {
			flag = AUS_an_improved_improved_german_state_flag
			days > 175
		}

		SWI = {
			all_core_state = {
				is_owned_by = ROOT
			}
		}

		has_completed_focus = AUS_an_improved_german_state
		has_completed_focus = AUS_courting_the_princess_of_industry
		has_completed_focus = AUS_the_royals_of_liechtenstein

		has_government = neutrality

		has_country_leader = {
			ruling_only = yes # default = yes
			character = HUN_otto_von_habsburg
		}
	}

	option = { #go forth king... for LIECHTENSTEIN!!
		name = AUS_political_events.91.a
		
		trigger = {
			ROOT = {
				owns_state = 1128
			}
			NOT = { country_exists = LCH }
		}
		
		ai_chance = {
			base = 1
			modifier = {
				factor = 0 #literally don't do this
				is_ai = yes
			}
		}

		drop_cosmetic_tag = yes

		custom_effect_tooltip = generic_skip_one_line_tt

		set_cosmetic_tag = AUS_liechtenstein

		add_country_leader_role = {
			character =  AUS_alois_of_liechtenstein # optional if inside character scope
			promote_leader = yes
			country_leader = {
				ideology = despotism
				expire = "1965.1.1.1"
				id = -1
				traits = { AUS_king_of_liechtenstein }
			}
		}

		#add_victory_points = {
  		#	province = 6680
  		#	value = 10
  		#}

		set_capital = {
			state = 1128
			remember_old_capital = no
		}
		
		hidden_effect = {
			1128 = { 
				remove_core_of = LCH
				add_core_of = ROOT
			}
		}

		custom_effect_tooltip = AUS_political_events.91.a_tt

		custom_effect_tooltip = generic_skip_one_line_tt

		custom_effect_tooltip = AUS_political_events.91.a_tt2

		set_country_flag = AUS_otto_on_the_battlefield_flag


		mark_focus_tree_layout_dirty = yes

	}

	option = { #stay on the throne you don't know how to fight!
		name = AUS_political_events.91.b
		ai_chance = {
			base = 10
		}
		add_stability = 0.1

		add_political_power = 100
	}
}

country_event = { #Liechtenstein seeks to purchase Alaska
	id = AUS_political_events.92
	title = AUS_political_events.92.t
	desc = AUS_political_events.92.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes

	fire_only_once = yes

	option = { #Oh Hell No
		name = AUS_political_events.92.a
		ai_chance = {
			base = 10
			
		}

		FROM = {
			country_event = {
				id = AUS_political_events.94
				hours = 12
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		custom_effect_tooltip = generic_this_might_cause_tt
		effect_tooltip = {
			FROM = {
				add_state_claim = 463 #Alaska

				create_wargoal = {
					type = take_claimed_state
					target = ROOT
					generator = { 463 } 
				}
			}
		}
	}

	option = { #I mean why not?
		name = AUS_political_events.92.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 20
				has_opinion = {
					target = FROM
					value > 89
				}
			}
			
		}

		FROM = {
			country_event = {
				id = AUS_political_events.93
				hours = 12
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		effect_tooltip = {
			463 = {
				transfer_state_to = FROM
			}

			
			add_ideas = AUS_payment_for_alaska
			
		}

	}
}

country_event = { #America Sells Alaska
	id = AUS_political_events.93
	title = AUS_political_events.93.t
	desc = AUS_political_events.93.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes

	fire_only_once = yes

	option = { #Great
		name = AUS_political_events.93.a
		ai_chance = {
			base = 10
			
		}

		463 = {
			transfer_state_to = ROOT
		}

		FROM = {
			add_ideas = AUS_payment_for_alaska
		}
	}
}

country_event = { #America refuses to sell Alaska
	id = AUS_political_events.94
	title = AUS_political_events.94.t
	desc = AUS_political_events.94.desc
	picture = GFX_report_event_generic_riot
	is_triggered_only = yes

	fire_only_once = yes

	option = { #We Tried...
		name = AUS_political_events.94.a
		ai_chance = {
			base = 10
			
		}
	}

	option = { #We will Free Alaska of this!
		name = AUS_political_events.94.b
		ai_chance = {
			base = 10
		}

		add_state_claim = 463 #Alaska

		create_wargoal = {
			type = take_claimed_state
			target =  FROM
			generator = { 463 } 
		}
	
	}
}

country_event = { #the Liechtensteiner army found a friend!
	id = AUS_political_events.95
	title = AUS_political_events.95.t
	desc = AUS_political_events.95.desc
	picture = GFX_report_event_german_troops
	is_triggered_only = yes

	fire_only_once = yes

	option = { #How nice!
		name = AUS_political_events.95.a
		ai_chance = {
			base = 10
			
		}

		custom_effect_tooltip = AUS_political_events.95.a_tt
		add_manpower = 1
	}
}

country_event = { #Austria seeks to join the allies
	id = AUS_political_events.96
	title = AUS_political_events.96.t
	desc = AUS_political_events.96.desc
	picture = GFX_report_event_generic_sign_treaty1
	is_triggered_only = yes

	fire_only_once = yes

	option = { #welcome to the team
		name = AUS_political_events.96.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 10
				FROM = {
					original_tag = AUS
					has_government = ROOT
				}
			}
			modifier = {
				factor = 10
				FROM = {
					is_guaranteed_by = ROOT
				}
			}

			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 50
				}
			}
			
		}
		
		add_to_faction = FROM

		add_ai_strategy = { 
			type = alliance 
			id = FROM
			value = 200
		}

		FROM  = {
			country_event = {
				id = AUS_political_events.97
				hours = 6
			}
		}
		
	}

	option = { #hell nah
		name = AUS_political_events.96.b
		ai_chance = {
			base = 2
			
		}
		
		FROM = {
			add_opinion_modifier = {
				target = ROOT
				modifier = large_decrease
			}
		}

		FROM = {
			country_event = {
				id = AUS_political_events.98
				hours = 6
			}
		}
	}
}

country_event = { #Austria Joins the Allies
	id = AUS_political_events.97
	title = AUS_political_events.97.t
	desc = AUS_political_events.97.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes

	fire_only_once = yes

	option = { #How nice!
		name = AUS_political_events.97.a
		ai_chance = {
			base = 10
			
		}

		add_ai_strategy = { 
			type = alliance 
			id = FROM
			value = 200
		}

		effect_tooltip = {
			FROM = {
				add_to_faction = ROOT
			}
		}
	}
}

country_event = { #Austria cannot join the allies
	id = AUS_political_events.98
	title = AUS_political_events.98.t
	desc = AUS_political_events.98.desc
	picture = GFX_report_event_generic_rally
	is_triggered_only = yes

	fire_only_once = yes

	option = { #RUDE
		name = AUS_political_events.98.a
		ai_chance = {
			base = 10
			
		}

		effect_tooltip = {
			add_opinion_modifier = {
				target = FROM
				modifier = large_decrease
			}
		}
	}

	option = { #we might as well create our own alternative then!
		name = AUS_political_events.98.b
		ai_chance = {
			base = 10
			
		}

		effect_tooltip = {
			add_opinion_modifier = {
				target = FROM
				modifier = large_decrease
			}
		}
		
		set_rule = { 
			can_create_factions = yes 
		}
		create_faction = AUS_central_european_alliance
	}
}

country_event = { #Germany informed of Austria's refusal to install Seyss-Inquart
	id = AUS_political_events.99
	title = AUS_political_events.99.t
	desc = AUS_political_events.99.desc
	picture = GFX_report_event_generic_rally2
	is_triggered_only = yes

	option = { #They WILL submit!
		name = AUS_political_events.99.a
		trigger = { NOT = { has_country_flag = GER_has_already_upped_pressure_for_seyss_inquart_flag } }
		ai_chance = {
			base = 10
			modifier = {
				factor = 2
				FROM = {
					is_ai = yes
				}
			}
			modifier = {
				factor = 5
				is_historical_focus_on = yes
			}
		}

		add_political_power = -50

		add_stability = 0.05

		add_popularity = {
			ideology = fascism
			popularity = 0.05
		}

		add_opinion_modifier = {
			target = FROM
			modifier = AUS_refuses_to_submit
		}

		set_country_flag = GER_has_already_upped_pressure_for_seyss_inquart_flag

		FROM = {
			country_event = {
				id = AUS_political_events.100
				days = 1
			}
		}
		

		custom_effect_tooltip = generic_skip_one_line_tt
		custom_effect_tooltip = if_they_accept_tt

		FROM = {
			custom_effect_tooltip = AUS_political_events.16.a_tt
			IF = {
				limit = {
					has_completed_focus = AUS_reinstate_the_imperial_council
				}

				add_advisor_role = {
					character = AUS_arthur_seyss-inquart
					advisor = {
						slot = political_advisor 
						can_be_fired = no
						idea_token = AUS_arthur_seyss-inquart
						traits = {
							AUS_vocal_german_unionist_fascism
						}
					}
				}
			}

			ELSE = {
				add_advisor_role = {
					character = AUS_arthur_seyss-inquart
					advisor = {
						slot = political_advisor 
						can_be_fired = no
						idea_token = AUS_arthur_seyss-inquart
						traits = {
							AUS_vocal_german_unionist
						}
					}
				}
			}
		}
	}

	option = { #Stubborn Austrians... fine
		name = AUS_political_events.99.b
		ai_chance = {
			base = 10
			modifier = { #if they have enough pp, object!
				factor = 0.1
				has_political_power > 99
			}
		}

		add_opinion_modifier = {
			target = FROM
			modifier = AUS_refuses_to_submit
		}

		FROM = {
			country_event = {
				id = AUS_political_events.101
				days = 1
			}
		}
		
		custom_effect_tooltip = generic_skip_one_line_tt

		IF = {
			limit = {
				ENG = {
					exists = yes
					has_government = democratic
				}
				ROOT = { has_country_flag = GER_has_already_upped_pressure_for_seyss_inquart_flag }
			}

			ENG = {
				add_opinion_modifier = {
					target = ROOT
					modifier = AUS_bullied_austria
				}
			}
		}

		IF = {
			limit = {
				FRA = {
					exists = yes
					has_government = democratic
					ROOT = { has_country_flag = GER_has_already_upped_pressure_for_seyss_inquart_flag }
				}
			}

			FRA = {
				add_opinion_modifier = {
					target = ROOT
					modifier = AUS_bullied_austria
				}
			}
		}

		IF = {
			limit = {
				CZE = {
					exists = yes
					has_government = democratic
					ROOT = { has_country_flag = GER_has_already_upped_pressure_for_seyss_inquart_flag }
				}
			}

			CZE = {
				add_opinion_modifier = {
					target = ROOT
					modifier = AUS_bullied_austria
				}
			}
		}

		IF = {
			limit = {
				POL = {
					exists = yes
					has_government = neutrality
					ROOT = { has_country_flag = GER_has_already_upped_pressure_for_seyss_inquart_flag }
				}
			}

			POL = {
				add_opinion_modifier = {
					target = ROOT
					modifier = AUS_bullied_austria
				}
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt
		
	}
}

country_event = { #Austria informed of Germany upping the pressure
	id = AUS_political_events.100
	title = AUS_political_events.100.t
	desc = AUS_political_events.100.desc
	picture = GFX_report_event_german_speech
	is_triggered_only = yes

	option = { #This only strengthens our decision. NO
		name = AUS_political_events.100.a
		ai_chance = {
			base = 10
			modifier = { #if germany is a player, stop being difficult here
				factor = 0.1
				FROM = {
					is_ai = no
					NOT = {
						has_game_rule = {
							rule = AUS_AI_BEHAVIOR
							option = AUS_ANTI_ANSCLUSS_STRESS
						}
					}
				}
			}
			modifier = {
				factor = 0.1
				AUS_is_historical_ai = yes
				NOT = {
						has_game_rule = {
							rule = AUS_AI_BEHAVIOR
							option = AUS_ANTI_ANSCLUSS_STRESS
						}
					}
			}

			modifier = {
				factor = 2000
				OR = {
					has_country_flag = AUS_AI_RANDOM_ANTI_ANSCLUSS_STRESS
					has_game_rule = {
						rule = AUS_AI_BEHAVIOR
						option = AUS_ANTI_ANSCLUSS_STRESS
					}
				}
			}
		}

		add_political_power = -100


		FROM = {
			country_event = {
				id = AUS_political_events.99
				days = 1
			}
		}

		add_opinion_modifier = {
			target = FROM
			modifier = AUS_trying_to_control_us
		}

		custom_effect_tooltip = generic_skip_one_line_tt
	}

	option = { #It's too risky
		name = AUS_political_events.100.b
		ai_chance = {
			base = 10
		}


		hidden_effect = {
			AUS_arthur_seyss-inquart = {
				remove_advisor_role = {
					slot = political_advisor 
				}
			}
		}

			
		custom_effect_tooltip = AUS_political_events.16.a_tt

		IF = {
			limit = {
				has_completed_focus = AUS_reinstate_the_imperial_council
			}

			add_advisor_role = {
				character = AUS_arthur_seyss-inquart
				advisor = {
					slot = political_advisor 
					can_be_fired = no
					idea_token = AUS_arthur_seyss-inquart
					traits = {
						AUS_vocal_german_unionist_fascism
					}
				}
			}
		}

		ELSE = {
			add_advisor_role = {
				character = AUS_arthur_seyss-inquart
				advisor = {
					slot = political_advisor 
					can_be_fired = no
					idea_token = AUS_arthur_seyss-inquart
					traits = {
						AUS_vocal_german_unionist
					}
				}
			}
		}
		
		
		
		hidden_effect = {
			activate_advisor = AUS_arthur_seyss-inquart	
		}
		
		add_opinion_modifier = {
			target = FROM
			modifier = AUS_trying_to_control_us
		}

		FROM = {
			country_event = {
				id = AUS_political_events.18
				days = 1
			}
		}
		custom_effect_tooltip = generic_skip_one_line_tt
		custom_effect_tooltip = AUS_anschluss_ratio_lowered
		
	}
}

country_event = { #Austria informed of Germany folding
	id = AUS_political_events.101
	title = AUS_political_events.101.t
	desc = AUS_political_events.101.desc
	picture = GFX_report_event_journalists_speech
	is_triggered_only = yes

	option = { #Finally!
		name = AUS_political_events.101.a
		ai_chance = {
			base = 10
			
		}
	}
}

country_event = { #Event for Germany, Hitler wants Austria
	id = AUS_political_events.102
	title = AUS_political_events.102.t
	desc = AUS_political_events.102.desc
	picture = GFX_report_event_journalists_speech
	trigger = {
		has_dlc = "Gotterdammerung"
		original_tag = GER
		GER = {
			has_government = fascism
			has_country_leader = {
				ruling_only = yes # default = yes
				character = GER_adolf_hitler
			}
			has_completed_focus = GER_remilitarize_the_rhineland
		}
		AUS = {
			exists = yes
			is_subject = no
			NOT = { has_war_with = GER }
			has_country_flag = AUS_antischluss_active_flag
		}
		date > 1937.11.5
	}

	fire_only_once = yes

	option = { #there he goes....
		name = AUS_political_events.102.a
		ai_chance = {
			base = 10
			
		}

		set_country_flag = GER_hitler_wants_austria_flag

		IF = { #This is where the ticking actually starts, NOT ANYWHERE ELSE
			limit = {
				AUS = {
					OR = {
						has_government = neutrality
						has_completed_focus = AUS_reinstate_the_imperial_council
					}
					AND = {
						NOT = { has_completed_focus = AUS_ban_dnsap}
						NOT = { has_completed_focus = AUS_rebuild_democratic_systems}	
						NOT = { has_completed_focus = AUS_clamp_down_on_dnsap}
					}
				}
			}

			custom_effect_tooltip = AUS_anschluss_ratio_ticking_down_monarchist
		}

		ELSE = {
			custom_effect_tooltip = AUS_anschluss_ratio_ticking_down
		}

		
	}
}

country_event = { #Event for Austria, Hitler wants Austria, Now.
	id = AUS_political_events.103
	title = AUS_political_events.103.t
	desc = AUS_political_events.103.desc
	picture = GFX_report_event_journalists_speech
	trigger = {
		has_dlc = "Gotterdammerung"
		original_tag = AUS
		GER = {
			has_government = fascism
			has_country_leader = {
				ruling_only = yes # default = yes
				character = GER_adolf_hitler
			}
			has_completed_focus = GER_remilitarize_the_rhineland
		}
		AUS = {
			exists = yes
			is_subject = no
			NOT = { has_war_with = GER }
			has_country_flag = AUS_antischluss_active_flag
		}
		date > 1937.11.5
	}

	fire_only_once = yes

	option = { #Uh-oh
		name = AUS_political_events.103.a
		ai_chance = {
			base = 10
			
		}

		IF = { #Here is where the ticking down rate starts, NOWHERE ELSE!
			limit = {
				ROOT = {
					OR = {
						has_government = neutrality
						has_completed_focus = AUS_reinstate_the_imperial_council
					}
					AND = {
						NOT = { has_completed_focus = AUS_ban_dnsap}
						NOT = { has_completed_focus = AUS_rebuild_democratic_systems}	
						NOT = { has_completed_focus = AUS_clamp_down_on_dnsap}
					}
				}
			}

			custom_effect_tooltip = AUS_anschluss_ratio_ticking_down_monarchist

			add_popularity = {
				ideology = fascism
				popularity = 0.1
			}
		}

		ELSE = {
			custom_effect_tooltip = AUS_anschluss_ratio_ticking_down

			add_popularity = {
				ideology = neutrality
				popularity = 0.1
			}
		}

		add_stability = -0.1
	}
}

country_event = { #A familiar guy wants to assume power over Austria
	id = AUS_political_events.104
	title = AUS_political_events.104.t
	desc = AUS_political_events.104.desc
	picture = GFX_report_event_hitler_croatia_handshake
	is_triggered_only = yes

	fire_only_once = yes

	option = { #UH NO?!
		name = AUS_political_events.104.a
		ai_chance = {
			base = 100 #always pick this
		}
	}

	option = { #SEHR GODT JAAAAA
		name = AUS_political_events.104.b
		ai_chance = {
			base = 0 #ai does not want this. this is purely meming for the players
		}

		set_party_name = {
			ideology = fascism
			long_name = AUS_fascism_party_long
			name = AUS_fascism_party
		}

		set_politics = {
			ruling_party = fascism
			last_election = "1930.11.9" 
			election_frequency = 48
			elections_allowed = no
		}

		add_country_leader_role = {
			character = AUS_johann_hiedler
			country_leader={
				expire = "1965.1.1"
				ideology = nazism
				traits = {
					dictator
					AUS_fascist_propaganda_artist
					dislikes_germany
				}
			}
			promote_leader = yes
		}
		hidden_effect = {
			GER = { GER_adolf_hitler = { retire = yes } }
		}
	}

	option = { #Elizabeth???
		name = AUS_political_events.104.c
		ai_chance = {
			base = 0
		}

		set_party_name = {
			ideology = fascism
			long_name = AUS_fascism_party_long
			name = AUS_fascism_party
		}

		set_politics = {
			ruling_party = fascism
			last_election = "1930.11.9" 
			election_frequency = 48
			elections_allowed = no
		}

		add_country_leader_role = {
			character = AUS_johann_hiedler
			country_leader={
				expire = "1965.1.1"
				ideology = nazism
				traits = {
					dictator
					AUS_elizabeth
					dislikes_germany
				}
			}
			promote_leader = yes
		}

		ENG = {
			add_opinion_modifier = {
				target = ROOT
				modifier = AUS_british_monarch
			}
		}

		hidden_effect = {
			GER = { GER_adolf_hitler = { retire = yes } }
		}
	}		
}

country_event = { #Austria informed of Italy backing down
	id = AUS_political_events.105
	title = AUS_political_events.105.t
	desc = AUS_political_events.105.desc
	picture = GFX_report_event_generic_riot
	is_triggered_only = yes

	option = { #we better back down
		name = AUS_political_events.105.a
		ai_chance = {
			base = 10
		}

		GER = {
			country_event = { hours = 2 id = germany.4 }
		}
		custom_effect_tooltip = GAME_OVER_TT

		AUS = {
			clr_country_flag = AUS_antischluss_active_flag
		}
	}

	option = { #keep fighting!
		name = AUS_political_events.105.b
		ai_chance = {
			base = 10
		}

		effect_tooltip = {
			GER = {
				add_state_claim = 4
				add_state_claim = 152
				add_state_claim = 153
				add_state_claim = 848
				add_state_claim = 975
				add_state_claim = 976
				add_state_claim = 1553
				add_state_claim = 1390
				create_wargoal = {
					type = take_state_focus
					target = AUS
					generator = { 4 152 153 848 975 976 1553 1390 }
				}
				
			}

			news_event = {
				id = AUS_news_events.1
				days = 3 
			}

			AUS = {
				clr_country_flag = AUS_antischluss_active_flag
				IF = {
					limit = { 
						NOT = { 
							has_country_flag = AUS_seyss_inquart_can_be_fired_flag 
						} 
					}
					set_can_be_fired_in_advisor_role = {
						character = AUS_arthur_seyss-inquart
						value = yes
					}
					set_country_flag = AUS_seyss_inquart_can_be_fired_flag
				}
			}
		}
		
		GER = {
			add_opinion_modifier = { target = ROOT modifier = GER_anschluss_rejected }
			country_event = { days = 1 id = germany.29 }
			if = { limit = { is_in_faction_with = AUS }
				remove_from_faction = AUS
			}
		}
		
	}
}

country_event = { #Austria informed of Italy supporting them
	id = AUS_political_events.106
	title = AUS_political_events.106.t
	desc = AUS_political_events.106.desc
	picture = GFX_report_event_fascist_gathering
	is_triggered_only = yes

	option = { #we knew they would
		name = AUS_political_events.106.a
		ai_chance = {
			base = 10
		}

		effect_tooltip = {
			GER = {
				add_state_claim = 4
				add_state_claim = 152
				add_state_claim = 153
				add_state_claim = 848
				add_state_claim = 975
				add_state_claim = 976
				add_state_claim = 1553
				add_state_claim = 1390
				create_wargoal = {
					type = take_state_focus
					target = AUS
					generator = { 4 152 153 848 975 976 1553 1390 }
				}
			} 

			news_event = {
				id = AUS_news_events.1
				days = 3 
			}

			AUS = {
				clr_country_flag = AUS_antischluss_active_flag
				IF = {
					limit = { 
						NOT = { 
							has_country_flag = AUS_seyss_inquart_can_be_fired_flag 
						} 
					}
					set_can_be_fired_in_advisor_role = {
						character = AUS_arthur_seyss-inquart
						value = yes
					}
					set_country_flag = AUS_seyss_inquart_can_be_fired_flag
				}
			}
		}

		GER = {
			add_opinion_modifier = { target = ROOT modifier = GER_anschluss_rejected }
			country_event = { days = 1 id = germany.29 }
			if = { limit = { is_in_faction_with = AUS }
				remove_from_faction = AUS
			}
		}
	}
}

country_event = { #Austria folds but we want them alive
	id = AUS_political_events.107
	title = AUS_political_events.107.t
	desc = AUS_political_events.107.desc
	picture = GFX_report_event_journalists_speech
	is_triggered_only = yes

	option = { #we knew they would
		name = AUS_political_events.107.a
		ai_chance = {
			base = 1
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				AUS = {
					is_ai = yes
				}
			}
		}

		create_wargoal = {
			type = liberate_wargoal
			target = GER
		}
		custom_effect_tooltip = AUS_political_events.107.a_tt
		show_ideas_tooltip = ITA_alpine_defense
	}

	option = {
		name = AUS_political_events.107.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 100
				FROM = {
					is_ai = yes
				}
			}
		}
	}
}

country_event = { #Informs ROOT of From hosting Military Exercises
	id = AUS_political_events.108
	title = AUS_political_events.108.t
	desc = AUS_political_events.108.desc
	picture = GFX_report_event_german_troops

	is_triggered_only = yes

	option = {
		name = AUS_political_events.108.a
		ai_chance = {
			base = 10
		}

		add_opinion_modifier = {
			target = FROM
			modifier = medium_decrease
		}

		IF = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				set_country_flag = AUS_held_military_exercises_on_border_flag
			}
		}

		ELSE = {
			set_country_flag = AUS_held_military_exercises_on_border_flag
		}		

		add_ai_strategy = { 
			type = prepare_for_war 
			id = FROM
			value = 25
		}
	}
}

country_event = { #Informs ROOT that FROM has armed border guards
	id = AUS_political_events.109
	title = AUS_political_events.109.t
	desc = AUS_political_events.109.desc
	picture = GFX_report_event_soldiers_parade

	is_triggered_only = yes

	option = {
		name = AUS_political_events.109.a
		ai_chance = {
			base = 10
		}

		add_opinion_modifier = {
			target = FROM
			modifier = medium_decrease
		}

		set_country_flag = AUS_armed_guards_on_border_flag
			

		add_ai_strategy = { 
			type = prepare_for_war 
			id = FROM
			value = 25
		}
	}
}

country_event = { #Informs ROOT that FROM has made an anti-ROOT speech
	id = AUS_political_events.110
	title = AUS_political_events.110.t
	desc = AUS_political_events.110.desc
	picture = GFX_report_event_AUS_political_rally

	is_triggered_only = yes

	option = {
		name = AUS_political_events.110.a
		ai_chance = {
			base = 10
		}

		add_opinion_modifier = {
			target = FROM
			modifier = BUL_threatening_neighbor
		}

		set_country_flag = AUS_held_speeches_against_us_flag
			
		add_ai_strategy = { 
			type = prepare_for_war 
			id = FROM
			value = 10
		}
	}
}

country_event = { #FROM offers ROOT a NAP
	id = AUS_political_events.111
	title = AUS_political_events.111.t
	desc = AUS_political_events.111.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # yeah!
		name = AUS_political_events.111.a
		ai_chance = {
			base = 10
		}

		set_country_flag = AUS_diplomatic_expansion_attempt_flag

		FROM = {
			country_event = {
				id = AUS_political_events.112
				hours = 12
			}
		}

		event_option_tooltip = AUS_political_events.113.a
	}

	option = { #nah!
		name = AUS_political_events.111.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 5
				has_opinion = {
					target = FROM
					value < -15
				}
			}
			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value < -30
				}
			}
			modifier = {
				factor = 10
				OR = {
					has_wargoal_against = {
						target = FROM
					}
					is_justifying_wargoal_against = FROM
				}
			}
		}

		FROM = {
			country_event = {
				id = AUS_political_events.113
				hours = 12
			}
		}
	}
}

country_event = { #FROM accepts NAP
	id = AUS_political_events.112
	title = AUS_political_events.112.t
	desc = AUS_political_events.112.desc
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = {
		name = AUS_political_events.112.a
		ai_chance = {
			base = 10
		}

		diplomatic_relation = { 
			country = FROM 
			relation = non_aggression_pact
			active = yes
		}

		add_opinion_modifier = {
			target = FROM
			modifier = medium_increase
		}

		FROM = {
			add_opinion_modifier = {
				target = ROOT
				modifier = medium_increase
			}
		}
	}
}

country_event = { #FROM rejects NAP
	id = AUS_political_events.113
	title = AUS_political_events.113.t
	desc = AUS_political_events.113.desc
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = {
		name = AUS_political_events.113.a
		ai_chance = {
			base = 10
		}

		add_opinion_modifier = {
			target = FROM
			modifier = small_decrease
		}
	}
}

country_event = { #FROM sends us industrial support
	id = AUS_political_events.114
	title = AUS_political_events.114.t
	desc = AUS_political_events.114.desc
	picture = GFX_report_event_generic_factory

	is_triggered_only = yes

	option = {
		name = AUS_political_events.114.a
		ai_chance = {
			base = 10
		}

		add_opinion_modifier = {
			target = FROM
			modifier = AUS_industrial_help
		}

		add_timed_idea = {
			idea = AUS_industrial_coaxing
			days = 180
		}

		set_country_flag = AUS_sent_industrial_suuport_flag
	}
}

country_event = { #FROM suggests joint military exercises
	id = AUS_political_events.115
	title = AUS_political_events.115.t
	desc = AUS_political_events.115.desc
	picture = GFX_report_event_military_planning

	is_triggered_only = yes

	option = { #yeah!
		name = AUS_political_events.115.a
		ai_chance = {
			base = 10
		}

		set_country_flag = AUS_held_joint_military_exercises_flag

		army_experience = 15

		FROM = {
			country_event = {
				id = AUS_political_events.116
				hours = 12
			}
		}
	}

	option = { #nah!
		name = AUS_political_events.115.b
		ai_chance = {
			base = 10
		}

		FROM = {
			country_event = {
				id = AUS_political_events.117
				hours = 12
			}
		}
	}
}

country_event = { #FROM accepts joint exercises
	id = AUS_political_events.116
	title = AUS_political_events.116.t
	desc = AUS_political_events.116.desc
	picture = GFX_report_event_generic_military_parade

	is_triggered_only = yes

	option = {
		name = AUS_political_events.116.a
		ai_chance = {
			base = 10
		}

		army_experience = 15

		add_opinion_modifier = {
			target = FROM
			modifier = medium_increase
		}

		FROM = {
			add_opinion_modifier = {
				target = ROOT
				modifier = medium_increase
			}
		}
	}
}

country_event = { #FROM rejects joint exercises
	id = AUS_political_events.117
	title = AUS_political_events.117.t
	desc = AUS_political_events.117.desc
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes

	option = {
		name = AUS_political_events.117.a
		ai_chance = {
			base = 10
		}
	}
}

country_event = { #what do we do with our newfound puppet
	id = AUS_political_events.118
	title = AUS_political_events.118.t
	desc = AUS_political_events.118.desc
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes

	fire_only_once = yes

	option = { #we'll have to drag them in here
		name = AUS_political_events.118.a
		ai_chance = {
			base = 10
		}

		trigger = {
			is_faction_leader = yes
		}

		add_to_faction = FROM.FROM

	}

	option = { #we must organize this!
		name = AUS_political_events.118.b
		ai_chance = {
			base = 1 #this is mainly a player thing!
			modifier = {
				factor = 0 #NEVER IF FROM IS A PLAYER
				FROM = {
					is_ai = no
				}
			}
		}

		trigger = {
			is_faction_leader = no
			is_in_faction = yes
		}

		set_country_flag = AUS_formed_habsburg_alliance_flag

		leave_faction = yes
		create_faction = AUS_habsburg_alliance
		
		custom_effect_tooltip = AUS_political_events.118.c.tt

		hidden_effect = {
			add_to_faction = FROM.FROM
		}
	}

	option = { #nah. let there be chaos.
		name = AUS_political_events.118.c
		ai_chance = {
			base = 5
		}

		trigger = {
			is_in_faction = no
		}

		create_faction = AUS_habsburg_alliance

		custom_effect_tooltip = AUS_political_events.118.c.tt

		hidden_effect = {
			add_to_faction = FROM.FROM
		}
	}
}

country_event = { #FROM demands further concessions
	id = AUS_political_events.119
	title = AUS_political_events.119.t
	desc = AUS_political_events.119.desc
	picture = GFX_report_event_gathering_protest

	is_triggered_only = yes

	option = { #yeah
		name = AUS_political_events.119.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 2
				fighting_army_strength_ratio = {
					tag = FROM
					ratio < 1
				}
			}
		}

		effect_tooltip = {
			IF = {
				limit = {
					OR = {
						controls_state = 764
						any_subject_country = {
							controls_state = 764
						}
					}
				}
				764 = { transfer_state_to = FROM } 
			}
			IF = {
				limit = {
					OR = {
						controls_state = 104
						any_subject_country = {
							controls_state = 104
						}
					}
				}
				104 = { transfer_state_to = FROM } 
			}
			IF = {
				limit = {
					OR = {
						controls_state = 103
						any_subject_country = {
							controls_state = 103
						}
					}
				}
				103 = { transfer_state_to = FROM } 
			}
			IF = {
				limit = {
					OR = {
						controls_state = 804
						any_subject_country = {
							controls_state = 804
						}
					}
				}
				804 = { transfer_state_to = FROM } 
			}
			IF = {
				limit = {
					OR = {
						controls_state = 45
						any_subject_country = {
							controls_state = 45
						}
					}
				}
				45 = { transfer_state_to = FROM } 
			}
			IF = {
				limit = {
					OR = {
						controls_state = 1024
						any_subject_country = {
							controls_state = 1024
						}
					}
				}
				1024 = { transfer_state_to = FROM } 
			}
			IF = {
				limit = {
					OR = {
						controls_state = 1028
						any_subject_country = {
							controls_state = 1028
						}
					}
				}
				1028 = { transfer_state_to = FROM } 
			}
			IF = {
				limit = {
					OR = {
						controls_state = 1029
						any_subject_country = {
							controls_state = 1029
						}
					}
				}
				1029 = { transfer_state_to = FROM } 
			}
			IF = {
				limit = {
					OR = {
						controls_state = 1030
						any_subject_country = {
							controls_state = 1030
						}
					}
				}
				1030 = { transfer_state_to = FROM } 
			}
			IF = {
				limit = {
					OR = {
						controls_state = 1034
						any_subject_country = {
							controls_state = 1034
						}
					}
				}
				1034 = { transfer_state_to = FROM } 
			}
			IF = {
				limit = {
					OR = {
						controls_state = 1477
						any_subject_country = {
							controls_state = 1477
						}
					}
				}
				1477 = { transfer_state_to = FROM } 
			}
			IF = {
				limit = {
					OR = {
						controls_state = 1478
						any_subject_country = {
							controls_state = 1478
						}
					}
				}
				1478 = { transfer_state_to = FROM } 
			}
		}
			
		FROM = {
			country_event = {
				id = AUS_political_events.120
				hours = 6
			}
		}
	}

	option = { #nope
		name = AUS_political_events.119.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 50
				fighting_army_strength_ratio = {
					tag = FROM
					ratio > 2
				}
			}

			modifier = {
				factor = 10
				fighting_army_strength_ratio = {
					tag = FROM
					ratio > 1
				}
			}
		}

		effect_tooltip = {
			IF = {
				limit = {
					OR = {
						controls_state = 764
						any_subject_country = {
							controls_state = 764
						}
					}
				}
				764 = { add_claim_by = FROM } 
			}
			IF = {
				limit = {
					OR = {
						controls_state = 104
						any_subject_country = {
							controls_state = 104
						}
					}
				}
				104 = { add_claim_by = FROM } 
			}
			IF = {
				limit = {
					OR = {
						controls_state = 103
						any_subject_country = {
							controls_state = 103
						}
					}
				}
				103 = { add_claim_by = FROM } 
			}
			IF = {
				limit = {
					OR = {
						controls_state = 804
						any_subject_country = {
							controls_state = 804
						}
					}
				}
				804 = { add_claim_by = FROM } 
			}
			IF = {
				limit = {
					OR = {
						controls_state = 45
						any_subject_country = {
							controls_state = 45
						}
					}
				}
				45 = { add_claim_by = FROM } 
			}
			IF = {
				limit = {
					OR = {
						controls_state = 1024
						any_subject_country = {
							controls_state = 1024
						}
					}
				}
				1024 = { add_claim_by = FROM } 
			}
			IF = {
				limit = {
					OR = {
						controls_state = 1028
						any_subject_country = {
							controls_state = 1028
						}
					}
				}
				1028 = { add_claim_by = FROM } 
			}
			IF = {
				limit = {
					OR = {
						controls_state = 1029
						any_subject_country = {
							controls_state = 1029
						}
					}
				}
				1029 = { add_claim_by = FROM } 
			}
			IF = {
				limit = {
					OR = {
						controls_state = 1030
						any_subject_country = {
							controls_state = 1030
						}
					}
				}
				1030 = { add_claim_by = FROM } 
			}
			IF = {
				limit = {
					OR = {
						controls_state = 1034
						any_subject_country = {
							controls_state = 1034
						}
					}
				}
				1034 = { add_claim_by = FROM } 
			}
			IF = {
				limit = {
					OR = {
						controls_state = 1477
						any_subject_country = {
							controls_state = 1477
						}
					}
				}
				1477 = { add_claim_by = FROM } 
			}
			IF = {
				limit = {
					OR = {
						controls_state = 1478
						any_subject_country = {
							controls_state = 1478
						}
					}
				}
				1478 = { add_claim_by = FROM } 
			}

			FROM = {
				create_wargoal = {
					type = take_claimed_state
					target = ROOT
				}
			}
		}
		FROM = {
			country_event = {
				id = AUS_political_events.121
				hours = 6
			}
		}
	}
}

country_event = { #FROM hands over states
	id = AUS_political_events.120
	title = AUS_political_events.120.t
	desc = AUS_political_events.120.desc
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = {
		name = AUS_political_events.120.a
		ai_chance = {
			base = 10
		}

		IF = {
			limit = {
				FROM = {
					OR = {
						controls_state = 764
						any_subject_country = {
							controls_state = 764
						}
					}
				}
				
			}
			764 = { transfer_state_to = ROOT } 
		}
		IF = {
			limit = {
				FROM = {
					OR = {
						controls_state = 104
						any_subject_country = {
							controls_state = 104
						}
					}
				}
				
			}
			104 = { transfer_state_to = ROOT } 
		}
		IF = {
			limit = {
				FROM = {
					OR = {
						controls_state = 103
						any_subject_country = {
							controls_state = 103
						}
					}
				}
				
			}
			103 = { transfer_state_to = ROOT } 
		}
		IF = {
			limit = {
				FROM = {
					OR = {
						controls_state = 804
						any_subject_country = {
							controls_state = 804
						}
					}
				}
				
			}
			804 = { transfer_state_to = ROOT } 
		}
		IF = {
			limit = {
				FROM = {
					OR = {
						controls_state = 45
						any_subject_country = {
							controls_state = 45
						}
					}
				}
				
			}
			45 = { transfer_state_to = ROOT } 
		}
		IF = {
			limit = {
				FROM = {
					OR = {
						controls_state = 1024
						any_subject_country = {
							controls_state = 1024
						}
					}
				}
			}
			1024 = { transfer_state_to = ROOT } 
		}
		IF = {
			limit = {
				FROM = {
					OR = {
						controls_state = 1028
						any_subject_country = {
							controls_state = 1028
						}
					}
				}
			}
			1028 = { transfer_state_to = ROOT } 
		}
		IF = {
			limit = {
				FROM = {
					OR = {
						controls_state = 1029
						any_subject_country = {
							controls_state = 1029
						}
					}
				}
			}
			1029 = { transfer_state_to = ROOT } 
		}
		IF = {
			limit = {
				FROM = {
					OR = {
						controls_state = 1030
						any_subject_country = {
							controls_state = 1030
						}
					}
				}
			}
			1030 = { transfer_state_to = ROOT } 
		}
		IF = {
			limit = {
				FROM = {
					OR = {
						controls_state = 1034
						any_subject_country = {
							controls_state = 1034
						}
					}
				}
			}
			1034 = { transfer_state_to = ROOT } 
		}
		IF = {
			limit = {
				FROM = {
					OR = {
						controls_state = 1477
						any_subject_country = {
							controls_state = 1477
						}
					}
				}
			}
			1477 = { transfer_state_to = ROOT } 
		}
		IF = {
			limit = {
				FROM = {
					OR = {
						controls_state = 1478
						any_subject_country = {
							controls_state = 1478
						}
					}
				}
			}
			1478 = { transfer_state_to = ROOT } 
		}
	}
}

country_event = { #FROM refuses to give us what we want
	id = AUS_political_events.121
	title = AUS_political_events.121.t
	desc = AUS_political_events.121.desc
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes

	option = { #then we grab it by force
		name = AUS_political_events.121.a
		ai_chance = {
			base = 10
		}

		IF = {
			limit = {
				FROM = {
					OR = {
						controls_state = 764
						any_subject_country = {
							controls_state = 764
						}
					}
				}
				
			}
			764 = { add_claim_by = ROOT } 
		}
		IF = {
			limit = {
				FROM = {
					OR = {
						controls_state = 104
						any_subject_country = {
							controls_state = 104
						}
					}
				}
				
			}
			104 = { add_claim_by = ROOT } 
		}
		IF = {
			limit = {
				FROM = {
					OR = {
						controls_state = 103
						any_subject_country = {
							controls_state = 103
						}
					}
				}
				
			}
			103 = { add_claim_by = ROOT } 
		}
		IF = {
			limit = {
				FROM = {
					OR = {
						controls_state = 804
						any_subject_country = {
							controls_state = 804
						}
					}
				}
				
			}
			804 = { add_claim_by = ROOT } 
		}
		IF = {
			limit = {
				FROM = {
					OR = {
						controls_state = 45
						any_subject_country = {
							controls_state = 45
						}
					}
				}
				
			}
			45 = { add_claim_by = ROOT } 
		}
		IF = {
			limit = {
				FROM = {
					OR = {
						controls_state = 1024
						any_subject_country = {
							controls_state = 1024
						}
					}
				}
				
			}
			1024 = { add_claim_by = ROOT } 
		}
		IF = {
			limit = {
				FROM = {
					OR = {
						controls_state = 1028
						any_subject_country = {
							controls_state = 1028
						}
					}
				}
				
			}
			1028 = { add_claim_by = ROOT } 
		}
		IF = {
			limit = {
				FROM = {
					OR = {
						controls_state = 1029
						any_subject_country = {
							controls_state = 1029
						}
					}
				}
				
			}
			1029 = { add_claim_by = ROOT } 
		}
		IF = {
			limit = {
				FROM = {
					OR = {
						controls_state = 1030
						any_subject_country = {
							controls_state = 1030
						}
					}
				}
				
			}
			1030 = { add_claim_by = ROOT } 
		}
		IF = {
			limit = {
				FROM = {
					OR = {
						controls_state = 1034
						any_subject_country = {
							controls_state = 1034
						}
					}
				}
				
			}
			1034 = { add_claim_by = ROOT } 
		}
		IF = {
			limit = {
				FROM = {
					OR = {
						controls_state = 1477
						any_subject_country = {
							controls_state = 1477
						}
					}
				}
				
			}
			1477 = { add_claim_by = ROOT } 
		}
		IF = {
			limit = {
				FROM = {
					OR = {
						controls_state = 1478
						any_subject_country = {
							controls_state = 1478
						}
					}
				}
				
			}
			1478 = { add_claim_by = ROOT } 
		}

		
		create_wargoal = {
			type = take_claimed_state
			target = FROM
		}
	}
}

country_event = { #Georg von Trapp offers his service
	id = AUS_political_events.122
	title = AUS_political_events.122.t
	desc = AUS_political_events.122.desc
	picture = GFX_report_event_SWI_von_trapp_family

	is_triggered_only = yes

	option = { #awesome
		name = AUS_political_events.122.a
		ai_chance = {
			base = 10
		}

		set_country_flag = AUS_von_trapp_hired_flag
		
		SWI = {
			SWI_georg_von_trapp = {
				set_nationality = AUS
			}
			show_unit_leaders_tooltip = SWI_georg_von_trapp

			custom_effect_tooltip = available_chief_of_navy
			show_ideas_tooltip = SWI_georg_von_trapp
		}

		
	}

	option = { #no thanks
		name = AUS_political_events.122.b
		ai_chance = {
			base = 1
		}
	}
}

country_event = { #FROM reforms Central Powers
	id = AUS_political_events.123
	title = AUS_political_events.123.t
	desc = AUS_political_events.123.desc
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes

	option = { #we join
		name = AUS_political_events.123.a
		ai_chance = {
			base = 5
			modifier = {
				factor = 10
				has_government = FROM
			}
			modifier = {
				has_opinion = {
					target = FROM
					value > 25
				}
			}
		}

		effect_tooltip = {
			FROM = {
				add_to_faction = ROOT
			}
		}

		FROM = {
			country_event = {
				id = AUS_political_events.124
				hours = 6
			}
		}
	}

	option = { # nah
		name = AUS_political_events.123.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value < -25
				}
			}
		}
		FROM = {
			country_event = {
				id = AUS_political_events.125
				hours = 6
			}
		}
	}
}

country_event = { #FROM join Central Powers
	id = AUS_political_events.124
	title = AUS_political_events.124.t
	desc = AUS_political_events.124.desc
	picture = GFX_report_event_generic_handshake

	is_triggered_only = yes

	option = { #Great
		name = AUS_political_events.124.a

		add_to_faction = FROM

		add_ai_strategy = { 
			type = alliance 
			id = FROM
			value = 2000
		}

		FROM = {
			add_ai_strategy = { 
				type = alliance 
				id = ROOT
				value = 2000
			}
		}
	}
}

country_event = {
	id = AUS_political_events.125
	title = AUS_political_events.125.t
	desc = AUS_political_events.125.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { #Great
		name = AUS_political_events.125.a

		add_opinion_modifier = {
			target = FROM
			modifier = medium_decrease
		}
	}
}

###########################
###### News Events ########
###########################

news_event = {  #Austria Refuses Anschluss
	id = AUS_news_events.1
	title = AUS_news_events.1.t
	desc = AUS_news_events.1.desc
	picture = GFX_news_event_AUS_vaterlandische_front_rally 
	is_triggered_only = yes

	major = yes

	option = {
		name = AUS_news_events.1.a
		trigger = {
			NOT = {
				OR = {
					original_tag = GER
					original_tag = AUS
				}
			}
		}
	}

	option = {
		name = AUS_news_events.1.b
		trigger = {
			original_tag = GER
		}
	}

	option = {
		name = AUS_news_events.1.c
		trigger = {
			original_tag = AUS
		}
	}
}

news_event = { #Godwin von Brumowski crash trigger (HIDDEN)
	id = AUS_news_events.2
	hidden = yes

	fire_only_once = yes

	trigger = {
		has_dlc = "Gotterdammerung"
		date > 1936.4.15
		country_exists = AUS
		OR = {
			NOT = { has_global_flag = AUS_brumowski_crashed_flag }
			NOT = { has_global_flag = AUS_brumowski_survives_flag }
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		random_list = {
			80 = {
				AUS = { news_event = AUS_news_events.3 }
			}
			20 = {
				AUS = { news_event = AUS_news_events.4 }
			}
		}
	}

	option = {
		name = AUS_news_events.2 #this is a dummy to stop the error log from screaming
	}
}

news_event = {  #Godwin von Brumowski crashes and dies
	id = AUS_news_events.3
	title = AUS_news_events.3.t
	desc = AUS_news_events.3.desc
	picture = GFX_news_event_029
	is_triggered_only = yes

	option = { #He served us well in 1934, may he rest in peace
		name = AUS_news_events.3.a
		trigger = { 
			AND = {
				original_tag = AUS
				OR = {
					has_government = fascism
					has_government = neutrality
				}
			}
		}
		set_global_flag = AUS_brumowski_crashed_flag
	}

	option = { #Tragic
		name = AUS_news_events.3.b
		trigger = { 
			OR = {
				NOT = { original_tag = AUS }
				AND = {
					original_tag = AUS
					NOT = {
						has_government = fascism
						has_government = neutrality
					}
				}
			}
		}
	}
}

news_event = {  #Godwin von Brumowski narrowly avoids crash and lives
	id = AUS_news_events.4
	title = AUS_news_events.4.t
	desc = AUS_news_events.4.desc
	picture = GFX_news_event_AUS_godwin_von_brumowski 
	is_triggered_only = yes

	option = { #A close call
		name = AUS_news_events.4.a
		set_global_flag = AUS_brumowski_survives_flag
	}
}

news_event = {  #Austria rearms
	id = AUS_news_events.5
	title = AUS_news_events.5.t
	desc = AUS_news_events.5.desc
	picture = GFX_news_event_AUS_military_march 

	is_triggered_only = yes

	option = { #It had to happen at some point
		name = AUS_news_events.5.a
		trigger = {
			NOT = {
				original_tag = AUS
			}
		}
	}
	option = {
		name = AUS_news_events.5.b
		trigger = {
			original_tag = AUS
		}
	}
}

news_event = {  #Austria reforms the Central Powers
	id = AUS_news_events.6
	title = AUS_news_events.6.t
	desc = AUS_news_events.6.desc
	picture = GFX_news_event_generic_sign_treaty1
	is_triggered_only = yes

	major = yes 

	option = { #concerning
		name = AUS_news_events.6.a
		trigger = {
			NOT = {
				original_tag = AUS
			}
		}
	}
	option = { #great
		name = AUS_news_events.6.b
		trigger = {
			original_tag = AUS
		}
	}
}

news_event = { #Otto von Habsburg returns to Austria to rule again
	id = AUS_news_events.7
	title = AUS_news_events.7.t
	desc = AUS_news_events.7.desc
	picture = GFX_news_event_royal_visit
	is_triggered_only = yes

	major = yes

	option = { #Long live the Habsburg Prince!
		name = AUS_news_events.7.a
		trigger = {
			original_tag = AUS
		}
	}

	option = { #this was not agreed upon in the treaty
		name = AUS_news_events.7.b
		trigger = {
			OR = {
				original_tag = FRA
				original_tag = ENG
				original_tag = ITA
				original_tag = JAP
				original_tag = YUG
			}
		}
	}

	option = { #Good for them
		name = AUS_news_events.7.c
		trigger = {
			NOT = {
				original_tag = AUS
				original_tag = FRA
				original_tag = ENG
				original_tag = ITA
				original_tag = JAP
				original_tag = YUG
			}
		}
	}
}

news_event = {  #The Habsburgs reclaim Habsburg
	id = AUS_news_events.8
	title = AUS_news_events.8.t
	desc = AUS_news_events.8.desc
	picture = GFX_news_event_AUS_military_march 

	major = yes 

	is_triggered_only = yes

	option = { #CURSED!
		name = AUS_news_events.8.a
		trigger = {
			NOT = {
				original_tag = AUS
			}
		}
	}
	option = { #YASSSSSS
		name = AUS_news_events.8.b
		trigger = {
			original_tag = AUS
		}
	}
}

news_event = {  #Peaceful Communist Coup in Austria
	id = AUS_news_events.9
	title = AUS_news_events.9.t
	desc = AUS_news_events.9.desc
	picture = GFX_news_event_generic_rally2 

	major = yes 

	is_triggered_only = yes

	option = { #The Hell?!
		name = AUS_news_events.9.a
		trigger = {
			NOT = {
				original_tag = AUS
				has_government = communism
			}
		}
	}

	option = { #Good work comrades!
		name = AUS_news_events.9.b
		trigger = {
			has_government = communism
			NOT = { original_tag = AUS }
		}
	}

	option = { #YASSSSSS
		name = AUS_news_events.9.c
		trigger = {
			original_tag = AUS
		}
	}
}

news_event = {  #Armed Communist Revolution in Austria
	id = AUS_news_events.10
	title = AUS_news_events.10.t
	desc = AUS_news_events.10.desc
	picture = GFX_news_event_worker_protests 

	is_triggered_only = yes

	option = { #The Hell?!
		name = AUS_news_events.10.a
		trigger = {
			NOT = {
				original_tag = AUS
				has_government = communism
			}
		}
	}

	option = { #Good work comrades!
		name = AUS_news_events.10.b
		trigger = {
			has_government = communism
			NOT = { original_tag = AUS }
		}
	}

	option = { #YASSSSSS
		name = AUS_news_events.10.c
		trigger = {
			original_tag = AUS
		}
	}
}

news_event = {  #Austria forms the Danubian bloc
	id = AUS_news_events.11
	title = AUS_news_events.11.t
	desc = AUS_news_events.11.desc
	picture = GFX_news_event_generic_sign_treaty2
	is_triggered_only = yes

	option = { #why would they do that?
		name = AUS_news_events.11.a
		trigger = {
			NOT = {
				original_tag = AUS
				has_government = communism
			}
		}
	}
	option = { #we wish them luck
		name = AUS_news_events.11.b
		trigger = {
			NOT = {
				original_tag = AUS
			}
			has_government = communism
		}
	}
	option = { #great
		name = AUS_news_events.11.c
		trigger = {
			original_tag = AUS
		}
	}
}

news_event = { #Austria holds elections again
	id = AUS_news_events.12
	title = AUS_news_events.12.t
	desc = AUS_news_events.12.desc
	picture = GFX_news_event_election_vote
	is_triggered_only = yes

	option = { #great!
		name = AUS_news_events.12.a
		trigger = {
			has_government = democratic
		}
	}

	option = { #noted
		name = AUS_news_events.12.b
		trigger = {
			NOT = {
				has_government = democratic
			}
		}
	}
}
