﻿################################
### Hungarian Country Events ###
################################

add_namespace = WW_hungary
add_namespace = wuw_HUN_news_events

# Hungarian "Allied Manufacturing Programs" - event for faction leader
country_event = {
	id = WW_hungary.1
	title = WW_hungary.1.t
	desc = WW_hungary.1.desc
	picture = GFX_report_event_bul_aircraft_repairs
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# A boon to our industrial capacity
	option = { 
		name = WW_hungary.1.a
		ai_chance = {
			factor = 100
		}

		add_tech_bonus = {
			bonus = 0.5
			uses = 1
			category = air_equipment
		}	
		
		add_offsite_building = {
			type = industrial_complex
			level = 2
		}	

	}
}


# Hungarian Weapon Shipments Arrive - event for FIN
country_event = {
	id = WW_hungary.2
	title = WW_hungary.2.t
	desc = WW_hungary.2.desc
	picture = GFX_report_event_merchant_ship_01
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# Great!
	option = { 
		name = WW_hungary.2.a
		ai_chance = {
			factor = 100
		}

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

		add_equipment_to_stockpile = { 
			type = support_equipment
			amount = 250
			producer = HUN
		}
		
		add_offsite_building = {
			type = arms_factory 
			level = 1
		}	

	}
}


# PM Gyula Gömbös Dies - event for HUN
country_event = {
	id = WW_hungary.3
	title = WW_hungary.3.t
	desc = WW_hungary.3.desc
	picture = GFX_report_event_europe_funeral

	trigger = {
		original_tag = HUN
		
		date > 1936.10.4

		date < 1939.1.1

		has_government = neutrality

		has_completed_focus = wuw_HUN_strengthen_horthys_reign

		has_dlc = "Gotterdammerung"
	}

	mean_time_to_happen = { days = 1 }

	hidden = no

	fire_only_once = yes

	# Attempt to gain control of MOVE
	option = {
		name = WW_hungary.3.a
		ai_chance = {
			base = 100
		}

		IF = {
			limit = {
				has_idea = HUN_hungarian_national_defense_association
			}
			swap_ideas = {
				remove_idea = HUN_hungarian_national_defense_association
				add_idea = HUN_hungarian_national_defense_association_horthyist
			}	
		}

		retire_character = HUN_gyula_gombos_de_jakfa

		hidden_effect = {
			set_country_flag = HUN_gombos_has_died_flag
			set_country_flag = HUN_horthy_aligned_the_move_flag
		}
		
	}

	# Forcibly disband MOVE
	option = {
		name = WW_hungary.3.b
		ai_chance = {
			base = 0
			
			modifier = {
				add = 50
				is_historical_focus_on = no
			}
			
		}

		add_stability = 0.1

		add_popularity = {
			ideology = neutrality
			popularity = 0.1
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		IF = {
			limit = {
				has_idea = HUN_hungarian_national_defense_association
			}
			remove_ideas = HUN_hungarian_national_defense_association
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		retire_character = HUN_gyula_gombos_de_jakfa

		hidden_effect = {
			set_country_flag = HUN_gombos_has_died_flag
			set_country_flag = HUN_horthy_disbanded_the_move_flag
		}

	}

	# Allow the MOVE to run free
	option = {
		name = WW_hungary.3.c
		ai_chance = {
			base = 0
			
			modifier = {
				add = 30
				is_historical_focus_on = no
			}
			
		}

		add_political_power = 75

		add_popularity = {
			ideology = fascism
			popularity = 0.1
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		retire_character = HUN_gyula_gombos_de_jakfa

		hidden_effect = {
			set_country_flag = HUN_gombos_has_died_flag
			set_country_flag = HUN_horthy_allowed_the_move_to_roam_freely_flag
		}

	}

}

# Hungary demands Transylvania - event for owner of 76
country_event = {
	id = WW_hungary.4
	title = WW_hungary.4.t
	desc = WW_hungary.4.desc
	picture = GFX_report_event_vienna_award_negotiations
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They can have it
	option = { 
		name = WW_hungary.4.a
		ai_chance = {
			factor = 50
			modifier = {
				has_war_support < 0.5
				factor = 2
			}
			modifier = {
				strength_ratio = { tag = HUN ratio < 0.8 }
				factor = 2
			}
		}

		add_political_power = 50
		add_war_support = -0.02

		FROM = {
			country_event = {
				# FROM folds
				id = WW_hungary.5
				days = 2
				random_days = 3
			}
		}

	}

	# Who do they think they are?
	option = { 
		name = WW_hungary.4.b
		ai_chance = {
			factor = 50
			modifier = {
				has_war_support > 0.5
				factor = 1.5
			}
			modifier = {
				strength_ratio = { tag = HUN ratio > 1.5 }
				factor = 2
			}
		}

		add_war_support = 0.02

		FROM = {
			country_event = {
				# FROM refuses to fold
				id = WW_hungary.6
				days = 2
				random_days = 3
			}
		}

	}
}

#FROM hands over Transylvania - event for HUN
country_event = {
	id = WW_hungary.5
	title = WW_hungary.5.t
	desc = WW_hungary.5.desc
	picture = GFX_report_event_vienna_award_hungary
	
	is_triggered_only = yes

	fire_only_once = yes

	# Perfect!
	option = {
		name = WW_hungary.5.a
		ai_chance = {
			base = 100
		}

		HUN = {
			IF = {
				limit = {
					FROM = {
						controls_state = 76
					}
				}
				transfer_state = 76
			}

			IF = {
				limit = {
					FROM = {
						controls_state = 83
					}
				}
				transfer_state = 83
			}

			IF = {
				limit = {
					FROM = {
						controls_state = 84
					}
				}
				transfer_state = 84
			}
			
			IF = {
				limit = {
					FROM = {
						controls_state = 82
					}
				}
				transfer_state = 82
			}
		}

		add_threat = -1

	}
}

#FROM refuses to hand over Transylvania - event for HUN
country_event = {
	id = WW_hungary.6
	title = WW_hungary.6.t
	desc = WW_hungary.6.desc
	picture = GFX_report_event_vienna_award_hungary
	
	is_triggered_only = yes

	fire_only_once = yes

	# War it is then
	option = {
		name = WW_hungary.6.a
		ai_chance = {
			base = 50
		}

		declare_war_on = {
			target = FROM
			type = take_state_focus
			generator = { 76 83 84 } 
		}

	}

	# It is simply not worth the effort
	option = {
		name = WW_hungary.6.b
		ai_chance = {
			base = 50
		}

		add_stability = -0.1
		add_war_support = -0.05
		remove_state_claim = 76
		remove_state_claim = 83
		remove_state_claim = 84
		add_threat = -1

	}
}

# Hungary demands Southern Sloavkia - event for owner of 664 who isn't SLO or CZE
country_event = {
	id = WW_hungary.7
	title = WW_hungary.7.t
	desc = WW_hungary.7.desc
	picture = GFX_report_event_generic_rally2
	
	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			news_event = { id = news.303 }
		}
	}

	fire_only_once = yes
	
	# They can have it
	option = { 
		name = WW_hungary.7.a
		ai_chance = {
			factor = 75
			modifier = {
				has_war_support < 0.5
				factor = 2
			}
			modifier = {
				strength_ratio = { tag = HUN ratio < 0.8 }
				factor = 2
			}
		}

		FROM = { country_event = DOD_hungary.81 } 
		hidden_effect = {
			news_event = { id = news.304 days = 1 }
		}

	}

	# From our dead bodies!
	option = { 
		name = WW_hungary.7.b
		ai_chance = {
			factor = 25
			modifier = {
				has_war_support > 0.5
				factor = 1.5
			}
			modifier = {
				strength_ratio = { tag = HUN ratio > 1.5 }
				factor = 2
			}
		}

		FROM = { country_event = DOD_hungary.84 }

	}
}

# Hungary offers protection in exchange for Burgenland - event for AUS
country_event = {
	id = WW_hungary.8
	title = WW_hungary.8.t
	desc = WW_hungary.8.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# We need all the help we can get 
	option = { 
		name = WW_hungary.8.a
		ai_chance = {
			factor = 95
		}

		# They accept - event for HUN
		FROM = { 
			country_event = {
				id = WW_hungary.9
				days = 2
				random_days = 3
			}
		} 

	}

	# And how much is their guarantee worth exactly?
	option = { 
		name = WW_hungary.8.b
		ai_chance = {
			factor = 5
		}

		# They reject - event for HUN
		FROM = { 
			country_event = {
				id = WW_hungary.10
				days = 2
				random_days = 3
			}
		} 

	}
}

# Austria hands over Burgenland for guarantees - event for HUN
country_event = {
	id = WW_hungary.9
	title = WW_hungary.9.t
	desc = WW_hungary.9.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# Two old firends reuinted!
	option = { 
		name = WW_hungary.9.a
		ai_chance = {
			factor = 100
		}

		975 = {
			transfer_state_to = ROOT
		}

		give_guarantee = FROM

	}
}

# Austria refuses to hand over Burgenland for guarantees - event for HUN
country_event = {
	id = WW_hungary.10
	title = WW_hungary.10.t
	desc = WW_hungary.10.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They have a screw loose
	option = { 
		name = WW_hungary.10.a
		ai_chance = {
			factor = 100
		}

		add_political_power = 50

		add_opinion_modifier = {
			target = FROM
			modifier = medium_decrease
		}	

	}
}

# Hungary demands ownership of our Sloavkian territories - event for owner of a Slovak core
country_event = {
	id = WW_hungary.11
	title = WW_hungary.11.t
	desc = WW_hungary.11.desc
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes

	fire_only_once = no
	
	# It is not worth shedding blood over
	option = { 
		name = WW_hungary.11.a
		ai_chance = {
			factor = 60
			modifier = {
				factor = 0.3
				original_tag = SLO
			}
			modifier = {
				strength_ratio = { tag = HUN ratio < 1 }
				factor = 2
			}
		}

		# They accept - event for HUN
		FROM = { 
			country_event = {
				id = WW_hungary.12
				days = 2
				random_days = 3
			}
		} 

	}

	# Then come and get it!
	option = { 
		name = WW_hungary.11.b
		ai_chance = {
			factor = 40
			modifier = {
				factor = 1.5
				original_tag = SLO
			}
			modifier = {
				strength_ratio = { tag = HUN ratio > 1 }
				factor = 2
			}
		}

		# They reject - event for HUN
		FROM = { 
			country_event = {
				id = WW_hungary.13
				days = 2
				random_days = 3
			}
		} 

	}
}

# FROM hands over their Slovakian territories - event for HUN
country_event = {
	id = WW_hungary.12
	title = WW_hungary.12.t
	desc = WW_hungary.12.desc
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes

	fire_only_once = no
	
	# This is a great day!
	option = { 
		name = WW_hungary.12.a
		ai_chance = {
			factor = 100
		}

		add_war_support = 0.01
		add_stability = 0.01

		every_state = {
			limit = {
				is_core_of = SLO
				is_owned_and_controlled_by = FROM
			}
			transfer_state_to = ROOT
		}

	}
}

# FROM does not hand over their Slovakian territories - event for HUN
country_event = {
	id = WW_hungary.13
	title = WW_hungary.13.t
	desc = WW_hungary.13.desc
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes

	fire_only_once = no
	
	# They will regret their decision
	option = { 
		name = WW_hungary.13.a
		ai_chance = {
			factor = 80
		}

		add_war_support = 0.02

		create_wargoal = {
			type = take_claimed_state
			target = FROM
		}

	}

	# We must let this go
	option = { 
		name = WW_hungary.13.b
		ai_chance = {
			factor = 20
		}

		add_political_power = 25

		add_war_support = -0.02
		add_stability = -0.02

	}
}

# Hungary demands Vojvdina - event for owner of 45
country_event = {
	id = WW_hungary.14
	title = WW_hungary.14.t
	desc = WW_hungary.14.desc
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They can have it
	option = { 
		name = WW_hungary.14.a
		ai_chance = {
			factor = 50
			modifier = {
				has_war_support < 0.5
				factor = 2
			}
			modifier = {
				strength_ratio = { tag = HUN ratio < 0.8 }
				factor = 2
			}
			modifier = {
				is_in_faction = no
				HUN = { is_in_faction = yes }
				factor = 2
			}
		}

		FROM = {
			country_event = {
				# FROM folds
				id = WW_hungary.15
				days = 2
				random_days = 3
			}
		}

	}

	# Who do they think they are?
	option = { 
		name = WW_hungary.14.b
		ai_chance = {
			factor = 50
			modifier = {
				has_war_support > 0.5
				factor = 1.5
			}
			modifier = {
				strength_ratio = { tag = HUN ratio > 1.5 }
				factor = 2
			}
			modifier = {
				has_stability < 0.5
				factor = 0.5
			}
		}

		FROM = {
			country_event = {
				# FROM refuses to fold
				id = WW_hungary.16
				days = 2
				random_days = 3
			}
		}

	}
}

#FROM hands over Vojvodina - event for HUN
country_event = {
	id = WW_hungary.15
	title = WW_hungary.15.t
	desc = WW_hungary.15.desc
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes

	fire_only_once = yes

	# Perfect!
	option = {
		name = WW_hungary.15.a
		ai_chance = {
			base = 100
		}

		add_political_power = 25

		transfer_state = 45

	}
}

#FROM refuses to hand over Vojvodina - event for HUN
country_event = {
	id = WW_hungary.16
	title = WW_hungary.16.t
	desc = WW_hungary.16.desc
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes

	fire_only_once = yes

	# War it is then
	option = {
		name = WW_hungary.16.a
		ai_chance = {
			base = 85
		}

		create_wargoal = {
			type = take_state_focus
			target = FROM
			generator = { 45 }
		}		

	}

	# It is simply not worth the effort
	option = {
		name = WW_hungary.16.b
		ai_chance = {
			base = 15
		}

		add_stability = -0.05
		add_war_support = -0.05
		remove_state_claim = 45

	}
}

# Hungary demands occupation of West Banat! - event for owner of West Banat
country_event = {
	id = WW_hungary.17
	title = WW_hungary.17.t 
	desc = WW_hungary.17.desc
	picture = GFX_report_event_fascist_speech
	
	is_triggered_only = yes

	# We see no reason to oppose this
	option = { 
		name = WW_hungary.17.a

		ai_chance = {
			base = 90
		}

		effect_tooltip = {
			IF = {
				limit = {
					ROOT = {	
						OR = {		
							owns_state = 764
							any_subject_country = {
								is_ai = yes
								owns_state = 764
							}
						}
					}
				}
				FROM = {
					transfer_state = 764
				}
			}
		}

		HUN = { 
			country_event = {
			    id = WW_hungary.18
			    days = 1
			    random = 2
			}
		}
	}

	# Hey stop that!
	option = { 
		name = WW_hungary.17.b
		trigger = {
			NOT = {
				is_subject_of = FROM
			}
		}

		ai_chance = {
			base = 10
		}

		HUN = {
			country_event = {
			    id = WW_hungary.19
			    days = 1
			    random = 2
			}
		}
		hidden_effect = {
			set_country_flag = HUN_refused_banatian_demands
		}
	}
}

# X country accepts our demands
country_event = {
	id = WW_hungary.18
	title = WW_hungary.18.t 
	desc = WW_hungary.18.desc
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes

	# All according to Keikaku (TN: Keikaku means plan)
	option = { 
		name = WW_hungary.18.a

		IF = {
			limit = {
				OR = {
					FROM = {
						owns_state = 764
					}
					FROM = {
						any_subject_country = {
							is_ai= yes
							owns_state = 764
						}
					}
				}
			}
			ROOT = {
				transfer_state = 764
			}
		}
	}
}

# X country rejects our demands
country_event = {
	id = WW_hungary.19
	title = WW_hungary.19.t 
	desc = WW_hungary.19.desc
	picture = GFX_report_event_generic_read_write
	
	is_triggered_only = yes

	# Everything is not in fact ok
	option = { 
		name = WW_hungary.19.a

		add_war_support = 0.03

		IF = {
			limit = {
				ROOT = {
					NOT = {
						is_in_faction_with = FROM
					}
				}
			} 
			IF = {
				limit = {
					controls_state = 764
				}
				ROOT = {
					create_wargoal = {
						type = take_state_focus
						target = FROM
						generator = { 764 }
					}
				}
			}
		}
		ELSE = {
			ROOT = {
				add_opinion_modifier = {
					target = FROM
					modifier = BUL_rejected_our_proposal
				}
			}
		}
		hidden_effect = {
			FROM = {
				clr_country_flag = HUN_sent_banatian_demands
			}
		}
	}
}

# Hungary demands Carathian Ruthenia - event for owner of 73
country_event = {
	id = WW_hungary.20
	title = WW_hungary.20.t
	desc = WW_hungary.20.desc
	picture = GFX_report_event_hungary_southern_slovakia
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They can have it
	option = { 
		name = WW_hungary.20.a
		ai_chance = {
			factor = 75
			modifier = {
				has_war_support < 0.5
				factor = 2
			}
			modifier = {
				strength_ratio = { tag = HUN ratio < 0.8 }
				factor = 2
			}
			modifier = {
				is_in_faction = no
				HUN = { is_in_faction = yes }
				factor = 2
			}
		}

		FROM = {
			country_event = {
				# FROM folds
				id = WW_hungary.21
				days = 2
				random_days = 3
			}
		}

	}

	# Who do they think they are?
	option = { 
		name = WW_hungary.20.b
		ai_chance = {
			factor = 25
			modifier = {
				has_war_support > 0.5
				factor = 1.5
			}
			modifier = {
				strength_ratio = { tag = HUN ratio > 1.5 }
				factor = 2
			}
			modifier = {
				has_stability < 0.5
				factor = 0.5
			}
		}

		FROM = {
			country_event = {
				# FROM refuses to fold
				id = WW_hungary.22
				days = 2
				random_days = 3
			}
		}

	}
}

#FROM hands over Carpathian Ruthenia - event for HUN
country_event = {
	id = WW_hungary.21
	title = WW_hungary.21.t
	desc = WW_hungary.21.desc
	picture = GFX_report_event_hungary_southern_slovakia
	
	is_triggered_only = yes

	fire_only_once = yes

	# Perfect!
	option = {
		name = WW_hungary.21.a
		ai_chance = {
			base = 100
		}

		add_political_power = 25

		transfer_state = 73

	}
}

#FROM refuses to hand over Carpathian Ruthenia - event for HUN
country_event = {
	id = WW_hungary.22
	title = WW_hungary.22.t
	desc = WW_hungary.22.desc
	picture = GFX_report_event_hungarian_soldiers
	
	is_triggered_only = yes

	fire_only_once = yes

	# War it is then
	option = {
		name = WW_hungary.22.a
		ai_chance = {
			base = 85
		}

		create_wargoal = {
			type = take_state_focus
			target = FROM
			generator = { 73 }
		}		

	}

	# It is simply not worth the effort
	option = {
		name = WW_hungary.22.b
		ai_chance = {
			base = 15
		}

		add_stability = -0.05
		add_war_support = -0.05
		remove_state_claim = 73

	}
}

# Hungary demands Burgenland - event for owner of (975) 
country_event = {
	id = WW_hungary.23
	title = WW_hungary.23.t
	desc = WW_hungary.23.desc
	picture = GFX_report_event_vienna_award_hungary
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They can have it
	option = { 
		name = WW_hungary.23.a
		ai_chance = {
			factor = 50
			modifier = {
				has_war_support < 0.5
				factor = 2
			}
			modifier = {
				strength_ratio = { tag = HUN ratio < 0.8 }
				factor = 2
			}
			modifier = {
				is_in_faction = no
				HUN = { is_in_faction = yes }
				factor = 2
			}
		}

		FROM = {
			country_event = {
				# FROM folds
				id = WW_hungary.24
				days = 2
				random_days = 3
			}
		}

	}

	# Who do they think they are?
	option = { 
		name = WW_hungary.23.b
		ai_chance = {
			factor = 50
			modifier = {
				has_war_support > 0.5
				factor = 1.5
			}
			modifier = {
				strength_ratio = { tag = HUN ratio > 1.5 }
				factor = 2
			}
			modifier = {
				has_stability < 0.5
				factor = 0.5
			}
		}

		FROM = {
			country_event = {
				# FROM refuses to fold
				id = WW_hungary.25
				days = 2
				random_days = 3
			}
		}

	}
}

#FROM hands over Burgenland - event for HUN
country_event = {
	id = WW_hungary.24
	title = WW_hungary.24.t
	desc = WW_hungary.24.desc
	picture = GFX_report_event_hungary_gains_transylvania
	
	is_triggered_only = yes

	fire_only_once = yes

	# Perfect!
	option = {
		name = WW_hungary.24.a
		ai_chance = {
			base = 100
		}

		add_political_power = 25

		transfer_state = 975

	}
}

#FROM refuses to hand over Burgenland - event for HUN
country_event = {
	id = WW_hungary.25
	title = WW_hungary.25.t
	desc = WW_hungary.25.desc
	picture = GFX_report_event_hungary_refused
	
	is_triggered_only = yes

	fire_only_once = yes

	# War it is then
	option = {
		name = WW_hungary.25.a
		ai_chance = {
			base = 85
		}

		create_wargoal = {
			type = take_state_focus
			target = FROM
			generator = { 975 }
		}	

	}

	# It is simply not worth the effort
	option = {
		name = WW_hungary.25.b
		ai_chance = {
			base = 25
		}

		add_stability = -0.05
		add_war_support = -0.05
		remove_state_claim = 975

	}
}

#Hungary wishes to join our faction - event for GER
country_event = {
	id = WW_hungary.26
	title = WW_hungary.26.t
	desc = WW_hungary.26.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	fire_only_once = yes

	# Why not
	option = {
		name = WW_hungary.26.a
		ai_chance = {
			base = 100
		}

		FROM = {
			country_event = {
				# We get to join the axis
				id = WW_hungary.27
				days = 2
				random_days = 3
			}
		}	

	}

	# Heck to the no
	option = {
		name = WW_hungary.26.b
		ai_chance = {
			base = 0
		}

		FROM = {
			country_event = {
				# We do not get to join the axis
				id = WW_hungary.28
				days = 2
				random_days = 3
			}
		}

	}
}

#Germany lets us join their faction - event for HUN
country_event = {
	id = WW_hungary.27
	title = WW_hungary.27.t
	desc = WW_hungary.27.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	fire_only_once = yes

	# Why not
	option = {
		name = WW_hungary.27.a
		ai_chance = {
			base = 100
		}

		FROM = {
			add_to_faction = ROOT
		}

		hidden_effect = {
			IF = {
				limit = {
					ROOT = {
						has_completed_focus = wuw_HUN_strengthen_horthys_reign
					}
				}
				news_event = { 
					id = wuw_HUN_news_events.2
					days = 2
					random_days = 5
				}
			}
		}

	}
}

#Germany dont let us join their faction - event for HUN
country_event = {
	id = WW_hungary.28
	title = WW_hungary.28.t
	desc = WW_hungary.28.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	fire_only_once = yes

	# Why not
	option = {
		name = WW_hungary.28.a
		ai_chance = {
			base = 100
		}

		add_opinion_modifier = {
			target = FROM
			modifier = faction_traitor
		}	

		add_political_power = 50

	}
}

#Hungary to restore Habsburg rule - event for the Little Entene Members
country_event = {
	id = WW_hungary.29
	title = WW_hungary.29.t
	desc = WW_hungary.29.desc
	picture = GFX_report_event_HUN_charles_von_habsburg_marching
	
	is_triggered_only = yes

	fire_only_once = no

	# We have no means to enforce our views on the matter
	option = {
		name = WW_hungary.29.a
		ai_chance = {
			base = 10
		}

		add_opinion_modifier = {
			target = FROM
			modifier = medium_decrease
		}	

		add_political_power = 50

	}

	# At least make them feel it
	option = {
		name = WW_hungary.29.b
		ai_chance = {
			base = 10
		}

		IF = {
			limit = {
				has_dlc = "By Blood Alone"
			}
			send_embargo = FROM
		}
		ELSE = {
			add_opinion_modifier = {
				target = FROM
				modifier = embargo
			}	
		}

		add_opinion_modifier = {
			target = FROM
			modifier = large_decrease
		}	

		add_political_power = 15

	}
}

#The Little Entente Requires Promises of peace - event for the HUN
country_event = {
	id = WW_hungary.30
	title = WW_hungary.30.t
	desc = WW_hungary.30.desc
	picture = GFX_report_event_HUN_charles_von_habsburg_marching
	
	is_triggered_only = yes

	fire_only_once = yes

	# We can promise non-agression for now...
	option = {
		name = WW_hungary.30.a
		ai_chance = {
			base = 100
		}

		add_timed_idea = {
			idea = HUN_promises_of_peace
			days = 365
		}	

	}

	# They can not force us to do so!
	option = {
		name = WW_hungary.30.b
		ai_chance = {
			base = 0
		}

		add_war_support = 0.05
		add_named_threat = { 
			threat = 2
			name = HUN_habsburg_refused_promises_of_peace
		}	

		every_country = {
			limit = {
				exists = yes
				NOT = {
					OR = {
						has_war_with = ROOT
						is_in_faction_with = ROOT
					}
				}
				is_subject = no
				OR = {
					original_tag = ROM
					original_tag = YUG
					original_tag = CZE
					original_tag = SLO
					original_tag = TRA
					original_tag = SER
				}
			}
			create_wargoal = {
				type = topple_government
				target = ROOT
			}	
		}

	}
}

# A New Monarch - event for AUS
country_event = {
	id = WW_hungary.31
	title = WW_hungary.31.t 
	desc = WW_hungary.31.desc
	picture = GFX_report_event_military_planning
	
	is_triggered_only = yes

	# oki
	option = { 
		name = WW_hungary.31.a

		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 }
		    }
		}

		mark_focus_tree_layout_dirty = yes

	}
}

# Hungary demands for the restoration of Cisleithania - event for AUS
country_event = {
	id = WW_hungary.32
	title = WW_hungary.32.t
	desc = WW_hungary.32.desc
	picture = GFX_report_event_royal_visit
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They are right
	option = { 
		name = WW_hungary.32.a
		ai_chance = {
			base = 75
			modifier = {
				has_war_support < 0.5
				factor = 2
			}
			modifier = {
				strength_ratio = { tag = HUN ratio < 0.8 }
				factor = 2
			}
			modifier = {
				is_in_faction = no
				factor = 1.5
			}
			modifier = {
				has_opinion = {
					target = HUN
					value > 50
				}	
				factor = 1.5
			}
			modifier = {
				FROM = {
					has_war = yes
				}
				factor = 0.5
			}
		}

		FROM = {
			country_event = {
				# FROM accepts our demands
				id = WW_hungary.33
				days = 2
				random_days = 3
			}
		}

	}

	# The king was exiled for a reason!
	option = { 
		name = WW_hungary.32.b
		ai_chance = {
			base = 15
			modifier = {
				has_war_support > 0.5
				factor = 1.5
			}
			modifier = {
				strength_ratio = { tag = HUN ratio > 1.5 }
				factor = 2
			}
			modifier = {
				has_stability < 0.5
				factor = 0.5
			}
			modifier = {
				FROM = {
					has_war = yes
				}
				factor = 1.5
			}
		}

		FROM = {
			country_event = {
				# FROM rejects our demands
				id = WW_hungary.34
				days = 2
				random_days = 3
			}
		}

	}
}

# Austria accepts a Habsburg Monarch - event for HUN
country_event = {
	id = WW_hungary.33
	title = WW_hungary.33.t
	desc = WW_hungary.33.desc
	picture = GFX_report_event_royal_visit
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They made the right choice
	option = { 
		name = WW_hungary.33.a
		ai_chance = {
			factor = 100
		}

		every_state = {
			limit = {
				is_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
				is_core_of = AUS
			}
			transfer_state_to = AUS
		}

		custom_effect_tooltip = HUN_cisleithania_tt

		ROOT = {
			HUN_joseph_august_von_habsburg = { set_nationality = AUS }
		}

		AUS = {
			add_political_power = 75
			hidden_effect = {
				drop_cosmetic_tag = yes
				set_cosmetic_tag = AUS_cisleithania
				mark_focus_tree_layout_dirty = yes
			}
		}

		puppet = AUS 

		hidden_effect = {
			set_country_flag = HUN_created_austrian_monarchy 
			AUS = {
				country_event = {
				    id = WW_hungary.31
				    days = 0
				}
			}
		}

	}
}

# Austria rejects a Habsburg Monarch - event for HUN
country_event = {
	id = WW_hungary.34
	title = WW_hungary.34.t
	desc = WW_hungary.34.desc
	picture = GFX_report_event_royal_visit
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They made the incorrect choice
	option = { 
		name = WW_hungary.34.a
		ai_chance = {
			factor = 100
		}

		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM
		}

	}
}

#Hungary wishes to join our faction - event for GER
country_event = {
	id = WW_hungary.35
	title = WW_hungary.35.t
	desc = WW_hungary.35.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	fire_only_once = yes

	# Why not
	option = {
		name = WW_hungary.35.a
		ai_chance = {
			base = 100
		}

		FROM = {
			country_event = {
				# We get to join the central powers
				id = WW_hungary.36
				days = 2
				random_days = 3
			}
		}	

	}

	# Heck to the no
	option = {
		name = WW_hungary.35.b
		ai_chance = {
			base = 0
		}

		FROM = {
			country_event = {
				# We do not get to join the central powers
				id = WW_hungary.37
				days = 2
				random_days = 3
			}
		}

	}
}

#Germany lets us join their faction - event for HUN
country_event = {
	id = WW_hungary.36
	title = WW_hungary.36.t
	desc = WW_hungary.36.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	fire_only_once = yes

	# Why not
	option = {
		name = WW_hungary.36.a
		ai_chance = {
			base = 100
		}

		FROM = {
			add_to_faction = ROOT
		}

	}
}

#Germany dont let us join their faction - event for HUN
country_event = {
	id = WW_hungary.37
	title = WW_hungary.37.t
	desc = WW_hungary.37.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	fire_only_once = yes

	# Why not
	option = {
		name = WW_hungary.37.a
		ai_chance = {
			base = 100
		}

		add_opinion_modifier = {
			target = FROM
			modifier = faction_traitor
		}	

		add_political_power = 50

		ROOT = {
			uncomplete_national_focus = {
				focus = wuw_HUN_seek_an_alliance_with_the_kaiser
				uncomplete_children = yes
				refund_political_power = no
			}	
		}

		set_global_flag = GER_Rejected_HUN_central_powers

	}
}

#AH offers us a place in the Central Powers - event for GER
country_event = {
	id = WW_hungary.38
	title = WW_hungary.38.t
	desc = WW_hungary.38.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	fire_only_once = yes

	# Why not
	option = {
		name = WW_hungary.38.a
		ai_chance = {
			base = 100
		}

		FROM = {
			country_event = {
				# Germany to join the central powers
				id = WW_hungary.39
				days = 2
				random_days = 3
			}
		}	

	}

	# Heck to the no
	option = {
		name = WW_hungary.38.b
		ai_chance = {
			base = 0
		}

		FROM = {
			country_event = {
				# Germany to not join the central powers
				id = WW_hungary.40
				days = 2
				random_days = 3
			}
		}

	}
}

#Germany to join the central powers - event for HUN
country_event = {
	id = WW_hungary.39
	title = WW_hungary.39.t
	desc = WW_hungary.39.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	fire_only_once = yes

	# Nice
	option = {
		name = WW_hungary.39.a
		ai_chance = {
			base = 100
		}
		
		add_to_faction = FROM

		hidden_effect = {
			news_event = { #Hungary reforms the Central Powers
				id = wuw_HUN_news_events.3
				hours = 42
			}
		}
		
	}
}

#Germany to not join the central powers - event for HUN
country_event = {
	id = WW_hungary.40
	title = WW_hungary.40.t
	desc = WW_hungary.40.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	fire_only_once = yes

	# Then we shall lead!
	option = {
		name = WW_hungary.40.a
		ai_chance = {
			base = 30
		}

		add_war_support = 0.025

		set_global_flag = GER_Rejected_HUN_central_powers

		hidden_effect = {
			news_event = { #Hungary reforms the Central Powers
				id = wuw_HUN_news_events.3
				hours = 42
			}
		}

	}

	# We must try a different approach
	option = {
		name = WW_hungary.40.b
		ai_chance = {
			base = 70
		} 

		add_opinion_modifier = {
			target = FROM
			modifier = faction_traitor
		}	

		add_political_power = 50

		ROOT = {
			uncomplete_national_focus = {
				focus = wuw_HUN_seek_an_alliance_with_the_kaiser
				uncomplete_children = yes
				refund_political_power = no
			}	
		}

		set_global_flag = GER_Rejected_HUN_central_powers

	}
}

#Hungary wishes to join our faction - event for ENG
country_event = {
	id = WW_hungary.41
	title = WW_hungary.41.t
	desc = WW_hungary.41.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	fire_only_once = yes

	# Why not
	option = {
		name = WW_hungary.41.a
		ai_chance = {
			base = 100
		}

		FROM = {
			country_event = {
				# We get to join the allies
				id = WW_hungary.42
				days = 2
				random_days = 3
			}
		}	

	}

	# Heck to the no
	option = {
		name = WW_hungary.41.b
		ai_chance = {
			base = 0
		}

		FROM = {
			country_event = {
				# We do not get to join the allies
				id = WW_hungary.43
				days = 2
				random_days = 3
			}
		}

	}
}

#Germany lets us join their faction - event for HUN
country_event = {
	id = WW_hungary.42
	title = WW_hungary.42.t
	desc = WW_hungary.42.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	fire_only_once = yes

	# Why not
	option = {
		name = WW_hungary.42.a
		ai_chance = {
			base = 100
		}

		FROM = {
			add_to_faction = ROOT
		}

	}
}

#Germany dont let us join their faction - event for HUN
country_event = {
	id = WW_hungary.43
	title = WW_hungary.43.t
	desc = WW_hungary.43.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	fire_only_once = yes

	# Why not
	option = {
		name = WW_hungary.43.a
		ai_chance = {
			base = 100
		}

		add_opinion_modifier = {
			target = FROM
			modifier = faction_traitor
		}	

		add_political_power = 50

		ROOT = {
			uncomplete_national_focus = {
				focus = wuw_HUN_the_old_grand_alliance
				uncomplete_children = yes
				refund_political_power = no
			}	
		}

		set_global_flag = ENG_Rejected_HUN_grand_alliance

	}
}

# Hungary Demands we restore Wiedist Rule - event for ALB
country_event = {
	id = WW_hungary.44
	title = WW_hungary.44.t
	desc = WW_hungary.44.desc
	picture = GFX_report_event_royal_visit
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They are right
	option = { 
		name = WW_hungary.44.a
		ai_chance = {
			factor = 80
			modifier = {
				has_war_support < 0.5
				factor = 2
			}
			modifier = {
				strength_ratio = { tag = HUN ratio < 0.8 }
				factor = 2
			}
			modifier = {
				is_in_faction = no
				HUN = { is_in_faction = yes }
				factor = 2
			}
		}

		FROM = {
			country_event = {
				# FROM accepts our demands
				id = WW_hungary.45
				days = 2
				random_days = 3
			}
		}

	}

	# The king was exiled for a reason!
	option = { 
		name = WW_hungary.44.b
		ai_chance = {
			factor = 25
			modifier = {
				has_war_support > 0.5
				factor = 1.5
			}
			modifier = {
				strength_ratio = { tag = HUN ratio > 1.5 }
				factor = 2
			}
			modifier = {
				has_stability < 0.5
				factor = 0.5
			}
		}

		FROM = {
			country_event = {
				# FROM rejects our demands
				id = WW_hungary.46
				days = 2
				random_days = 3
			}
		}

	}
}

# Albania Accepts a Wiedist Monarch - event for HUN
country_event = {
	id = WW_hungary.45
	title = WW_hungary.45.t
	desc = WW_hungary.45.desc
	picture = GFX_report_event_royal_visit
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They made the right choice
	option = { 
		name = WW_hungary.45.a
		ai_chance = {
			factor = 100
		}

		802 = {
			add_core_of = ALB
		}

		970 = {
			add_core_of = ALB
		}

		every_state = {
			limit = {
				is_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
				is_core_of = ALB
			}
			transfer_state_to = ALB
		}

		ALB = {
			drop_cosmetic_tag = yes
			set_cosmetic_tag = ALB_wiedist_principality
			set_party_name = {
				ideology = neutrality
				long_name = ALB_house_of_wied_party_long
				name = ALB_house_of_wied_party
			}	
			promote_character = ALB_wilhelm_of_wied
		}

		puppet = ALB 

		hidden_effect = {
			set_country_flag = HUN_created_wiedist_monarchy 
		}
	}
}

# Albania Rejects a Wiedist Monarch - event for HUN
country_event = {
	id = WW_hungary.46
	title = WW_hungary.46.t
	desc = WW_hungary.46.desc
	picture = GFX_report_event_royal_visit
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They made the incorrect choice
	option = { 
		name = WW_hungary.46.a
		ai_chance = {
			factor = 100
		}

		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM
		}

		unlock_decision_tooltip = HUN_place_wied_on_the_albanian_throne 

	}
}

# Hungary Demands we restore Habsburg Rule - event for POL
country_event = {
	id = WW_hungary.47
	title = WW_hungary.47.t
	desc = WW_hungary.47.desc
	picture = GFX_report_event_royal_visit
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# It is our duty
	option = { 
		name = WW_hungary.47.a
		ai_chance = {
			factor = 80
			modifier = {
				has_war_support < 0.5
				factor = 2
			}
			modifier = {
				strength_ratio = { tag = HUN ratio < 0.8 }
				factor = 2
			}
			modifier = {
				is_in_faction = no
				HUN = { is_in_faction = yes }
				factor = 2
			}
		}

		FROM = {
			country_event = {
				# FROM accepts our demands
				id = WW_hungary.48
				days = 2
				random_days = 3
			}
		}

	}

	# Death to monarchs!
	option = { 
		name = WW_hungary.47.b
		ai_chance = {
			factor = 25
			modifier = {
				has_war_support > 0.5
				factor = 1.5
			}
			modifier = {
				strength_ratio = { tag = HUN ratio > 1.5 }
				factor = 2
			}
			modifier = {
				has_stability < 0.5
				factor = 0.5
			}
		}

		FROM = {
			country_event = {
				# FROM rejects our demands
				id = WW_hungary.49
				days = 2
				random_days = 3
			}
		}

	}
}

# Poland Accepts a Habsburg Monarch - event for HUN
country_event = {
	id = WW_hungary.48
	title = WW_hungary.48.t
	desc = WW_hungary.48.desc
	picture = GFX_report_event_royal_visit
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They made the right choice
	option = { 
		name = WW_hungary.48.a
		ai_chance = {
			factor = 100
		}

		every_state = {
			limit = {
				OR = {
					is_controlled_by = ROOT
					any_country = {
						is_subject_of = ROOT
						controls_state = PREV
					}
				}
				NOT = {
					is_core_of = ROOT
				}
				is_core_of = POL
				NOT = {
					is_owned_and_controlled_by = POL
				}
				NOT = {
					OR = {
						state = 762
						state = 88
						state = 91
						state = 89
						state = 80
						state = 72
					}
				}
			}
			transfer_state_to = POL
		}

		POL = {
			drop_cosmetic_tag = yes
			set_cosmetic_tag = POL_KINGDOM
			IF = {
				limit = {
					has_character = POL_karl_albrecht
				}
				promote_character = POL_karl_albrecht
			}
		}

		add_to_faction = FROM 

		hidden_effect = {
			set_country_flag = HUN_created_polish_habsburg_monarchy 
		}
	}
}

# Poland Rejects a Habsburg Monarch - event for HUN
country_event = {
	id = WW_hungary.49
	title = WW_hungary.49.t
	desc = WW_hungary.49.desc
	picture = GFX_report_event_royal_visit
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They made the incorrect choice
	option = { 
		name = WW_hungary.49.a
		ai_chance = {
			factor = 100
		}

		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM
		}

		unlock_decision_tooltip = HUN_place_a_habsburg_on_the_polish_throne 

	}
}

# A New Monarch - event for SPR
country_event = {
	id = WW_hungary.50
	title = WW_hungary.50.t 
	desc = WW_hungary.50.desc
	picture = GFX_report_event_military_planning
	
	is_triggered_only = yes

	# oki
	option = { 
		name = WW_hungary.50.a

		set_politics = {
			ruling_party = neutrality
			elections_allowed = no
			name = SPR_habsburg_legitimists
			long_name = SPR_habsburg_legitimists
		}	

		add_country_leader_role = {
		    character = SPA_karl_pius_von_habsburg
		    promote_leader = yes
		    country_leader = {
		        ideology = despotism
		        expire = "1965.1.1.1"
		        traits = { carlist_habsburg_pretender }
		    }
		}

	}
}

# Hungary Demands we restore Habsburg Rule - event for SPR
country_event = {
	id = WW_hungary.51
	title = WW_hungary.51.t
	desc = WW_hungary.51.desc
	picture = GFX_report_event_royal_visit
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# It is our duty
	option = { 
		name = WW_hungary.51.a
		ai_chance = {
			factor = 80
			modifier = {
				has_war_support < 0.5
				factor = 2
			}
			modifier = {
				strength_ratio = { tag = HUN ratio < 0.8 }
				factor = 2
			}
			modifier = {
				is_in_faction = no
				HUN = { is_in_faction = yes }
				factor = 2
			}
		}

		IF = {
			limit = {
				has_idea = SPA_recovering_from_civil_war
			}
			remove_ideas = SPA_recovering_from_civil_war
		}
		ELSE_IF = {
			limit = {
				has_idea = SPA_recovering_from_civil_war_2
			}
			remove_ideas = SPA_recovering_from_civil_war_2
		}
		ELSE_IF = {
			limit = {
				has_idea = SPA_recovering_from_civil_war_3
			}
			remove_ideas = SPA_recovering_from_civil_war_3
		}

		FROM = {
			country_event = {
				# FROM accepts our demands
				id = WW_hungary.52
				days = 2
				random_days = 3
			}
		}

	}

	# Death to monarchs!
	option = { 
		name = WW_hungary.51.b
		ai_chance = {
			factor = 25
			modifier = {
				has_war_support > 0.5
				factor = 1.5
			}
			modifier = {
				strength_ratio = { tag = HUN ratio > 1.5 }
				factor = 2
			}
			modifier = {
				has_stability < 0.5
				factor = 0.5
			}
		}

		FROM = {
			country_event = {
				# FROM rejects our demands
				id = WW_hungary.53
				days = 2
				random_days = 3
			}
		}

	}
}

# Spain Accepts a Habsburg Monarch - event for HUN
country_event = {
	id = WW_hungary.52
	title = WW_hungary.52.t
	desc = WW_hungary.52.desc
	picture = GFX_report_event_royal_visit
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They made the right choice
	option = { 
		name = WW_hungary.52.a
		ai_chance = {
			factor = 100
		}

		every_state = {
			limit = {
				OR = {
					is_controlled_by = ROOT
					any_country = {
						is_subject_of = ROOT
						controls_state = PREV
					}
				}
				NOT = {
					is_core_of = ROOT
				}
				is_core_of = SPR
				NOT = {
					is_owned_and_controlled_by = SPR
				}
			}
			transfer_state_to = SPR
		} 

		SPR = {
			drop_cosmetic_tag = yes
			set_cosmetic_tag = SPR_habsburg
			country_event = {
				id = WW_hungary.50
				hours = 0
			}	
		}

		add_to_faction = FROM

		hidden_effect = {
			set_country_flag = HUN_created_spanish_habsburg_monarchy 
		}
	}
}

# Spain Rejects a Habsburg Monarch - event for HUN
country_event = {
	id = WW_hungary.53
	title = WW_hungary.53.t
	desc = WW_hungary.53.desc
	picture = GFX_report_event_royal_visit
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They made the incorrect choice
	option = { 
		name = WW_hungary.53.a
		ai_chance = {
			factor = 100
		}

		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM
		}

		unlock_decision_tooltip = HUN_place_a_habsburg_on_the_spanish_throne 

	}
}

# A New Monarch - event for UKR
country_event = {
	id = WW_hungary.54
	title = WW_hungary.54.t 
	desc = WW_hungary.54.desc
	picture = GFX_report_event_military_planning
	
	is_triggered_only = yes

	# oki
	option = { 
		name = WW_hungary.54.a

		set_politics = {
			ruling_party = neutrality
			elections_allowed = no
			name = UKR_habsburg_legitimists
			long_name = UKR_habsburg_legitimists
		}

		add_country_leader_role = {
		    character = HUN_vasyl_vyshyvanyi
		    promote_leader = yes
		    country_leader = {
		        ideology = despotism
		        expire = "1965.1.1.1"
		        traits = { HUN_the_habsburg_hetman }
		    }
		}

	}
}

#Hungary offers Czechoslovakia a Habsburg crown - event for CZE
country_event = {
	id = WW_hungary.55
	title = WW_hungary.55.t
	desc = WW_hungary.55.desc
	picture = GFX_report_event_czech_soldiers_01
	
	is_triggered_only = yes

	option = { #Agree to join the Empire
		name = WW_hungary.55.a
		ai_chance = {
			base = 25
			modifier = {
				threat > 20
				factor = 1.5
			}
			modifier = {
				threat > 40
				factor = 1.5
			}
			modifier = {
				threat > 60
				factor = 2
			}
			modifier = {
				has_non_aggression_pact_with = HUN
				factor = 1.4
			}
			modifier = {
				is_in_faction = no
				factor = 2.5
			}
			modifier = {
				GER = {
					OR = {
						focus_progress = { focus = GER_demand_sudetenland progress > 0}
						focus_progress = { focus = GER_fate_of_czechoslovakia progress > 0}
					}
				}
				factor = 10 #ohshitohshitohshit
			}
			modifier = {
				is_in_faction = yes
				factor = 0.8
			}
			modifier = {
				has_opinion = {
					target = HUN
					value > 65
				}
				factor = 1.5
			}
			modifier = {
				strength_ratio = { tag = HUN ratio < 1 }
				factor = 2
			}
		}
		#custom_effect_tooltip =  GAME_OVER_TT
		HUN = { country_event = { id = WW_hungary.56 hours = 6 } }
		
	}
	option = { #Refuse
		name = WW_hungary.55.b
		ai_chance = {
			base = 30
			modifier = {
				is_in_faction = yes
				factor = 2 #we're good thanks
			}
			modifier = {
				HUN = {
					is_ai = yes
				}
				factor = 0
			}
		}
		HUN = { country_event = { id = WW_hungary.57 hours = 6 } }
		set_country_flag = HUN_AH_CZE_refused #needed for munich chain
	}

}

#CZE gets a Habsburg monarhch (becomes a puppet of HUN) - event for HUN
country_event = {
	id = WW_hungary.56
	title = WW_hungary.56.t
	desc = WW_hungary.56.desc
	picture = GFX_report_event_polish_army
	
	is_triggered_only = yes

	option = {
		name = WW_hungary.56.a

		every_state = {
			limit = {
				is_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
				is_core_of = FROM
				NOT = {
					OR = {
						state = 73
						state = 664
						state = 71
						state = 70
					}
				}
			}
			transfer_state_to = FROM
		}

		custom_effect_tooltip = HUN_bohemia_and_silesia_tt

		FROM = {
			hidden_effect = {
				drop_cosmetic_tag = yes
				set_cosmetic_tag = CZE_kingdom_of_bohemia_and_silesia
			}	
		}

		FROM = {
			add_political_power = 75
			promote_character = CZE_albrecht_franz
		}

		puppet = FROM 

		hidden_effect = {
			set_country_flag = HUN_created_bohemian_monarchy 
		}
		
		hidden_effect = {
			HUN = { set_country_flag = CZE_annexed_peacefully } # Used to change division name lists for HUN
		}
		
	}

}

#CZE refuses a Habsburg monarch - event for HUN
country_event = {
	id = WW_hungary.57
	title = WW_hungary.57.t
	desc = WW_hungary.57.desc
	picture = GFX_report_event_czech_soldiers_02
	
	is_triggered_only = yes

	option = { #say no
		name = WW_hungary.57.a

		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM
		}	

		add_state_claim = 69
		add_state_claim = 9
		add_state_claim = 75
		add_state_claim = 70
		add_state_claim = 74
		add_state_claim = 71
		add_state_claim = 73
		add_state_claim = 72
		add_state_claim = 664

	}

}

# Hungary demands ownership of our Galician territories - event for owner of a Galician state
country_event = {
	id = WW_hungary.58
	title = WW_hungary.58.t
	desc = WW_hungary.58.desc
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes

	fire_only_once = no
	
	# It is not worth shedding blood over
	option = { 
		name = WW_hungary.58.a
		ai_chance = {
			base = 70
			modifier = {
				factor = 0.5
				original_tag = ROM
				ROM = {
					owns_state = 76
				}
			}
			modifier = {
				strength_ratio = { tag = HUN ratio < 1 }
				factor = 2
			}
		}

		# They accept - event for HUN
		FROM = { 
			country_event = {
				id = WW_hungary.59
				days = 2
				random_days = 3
			}
		} 

	}

	# Then come and get it!
	option = { 
		name = WW_hungary.58.b
		ai_chance = {
			base = 40
			modifier = {
				factor = 1.2
				original_tag = POL
			}
			modifier = {
				strength_ratio = { tag = HUN ratio > 1 }
				factor = 2
			}
		}

		# They reject - event for HUN
		FROM = { 
			country_event = {
				id = WW_hungary.60
				days = 2
				random_days = 3
			}
		} 

	}
}

# FROM hands over their Galician territories - event for HUN
country_event = {
	id = WW_hungary.59
	title = WW_hungary.59.t
	desc = WW_hungary.59.desc
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes

	fire_only_once = no
	
	# This is a great day!
	option = { 
		name = WW_hungary.59.a
		ai_chance = {
			factor = 100
		}

		add_war_support = 0.01
		add_stability = 0.01

		every_state = {
			limit = {
				OR = {
					state = 88
					state = 89
					state = 91
					state = 80
				}
				is_owned_and_controlled_by = FROM
			}
			transfer_state_to = ROOT
			add_core_of = ROOT
		}

	}
}

# FROM does not hand over their Galician territories - event for HUN
country_event = {
	id = WW_hungary.60
	title = WW_hungary.60.t
	desc = WW_hungary.60.desc
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes

	fire_only_once = no
	
	# They will regret their decision
	option = { 
		name = WW_hungary.60.a
		ai_chance = {
			factor = 80
		}

		add_war_support = 0.02

		create_wargoal = {
			type = take_claimed_state
			target = FROM
		}

	}

	# We must let this go
	option = { 
		name = WW_hungary.60.b
		ai_chance = {
			factor = 20
		}

		add_political_power = 25

		add_war_support = -0.02
		add_stability = -0.02

	}
}

# A New Queen - event for MEX
country_event = {
	id = WW_hungary.61
	title = WW_hungary.61.t 
	desc = WW_hungary.61.desc
	picture = GFX_report_event_military_planning
	
	is_triggered_only = yes

	# oki
	option = { 
		name = WW_hungary.61.a

		set_politics = {
			ruling_party = neutrality
			elections_allowed = no
			name = MEX_house_of_iturbide
			long_name = MEX_house_of_iturbide
		}	

		add_popularity = {
			ideology = neutrality
			popularity = 0.7
		}	

		add_country_leader_role = {
		    character = MEX_maria_de_iturbide
		    promote_leader = yes
		    country_leader = {
		        ideology = despotism
		        expire = "1965.1.1.1"
		        traits = { head_of_the_imperial_house_of_mexico_trait }
		    }
		}

	}
}

# Hungary Demands we restore Habsburg Rule - event for MEX
country_event = {
	id = WW_hungary.62
	title = WW_hungary.62.t 
	desc = WW_hungary.62.desc
	picture = GFX_report_event_royal_visit
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# It is our duty
	option = { 
		name = WW_hungary.62.a
		ai_chance = {
			factor = 80
			modifier = {
				has_war_support < 0.5
				factor = 2
			}
			modifier = {
				strength_ratio = { tag = HUN ratio < 0.8 }
				factor = 2
			}
			modifier = {
				is_in_faction = no
				HUN = { is_in_faction = yes }
				factor = 2
			}
		}

		FROM = {
			country_event = {
				# FROM accepts our demands
				id = WW_hungary.63
				days = 2
				random_days = 3
			}
		}

	}

	# Death to monarchs!
	option = { 
		name = WW_hungary.62.b
		ai_chance = {
			factor = 25
			modifier = {
				has_war_support > 0.5
				factor = 1.5
			}
			modifier = {
				strength_ratio = { tag = HUN ratio > 1.5 }
				factor = 2
			}
			modifier = {
				has_stability < 0.5
				factor = 0.5
			}
		}

		FROM = {
			country_event = {
				# FROM rejects our demands
				id = WW_hungary.64
				days = 2
				random_days = 3
			}
		}

	}
}

# Mexico Accepts a Habsburg Monarch - event for HUN
country_event = {
	id = WW_hungary.63
	title = WW_hungary.63.t
	desc = WW_hungary.63.desc
	picture = GFX_report_event_royal_visit
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They made the right choice
	option = { 
		name = WW_hungary.63.a
		ai_chance = {
			factor = 100
		}

		every_state = {
			limit = {
				OR = {
					is_controlled_by = ROOT
					any_country = {
						is_subject_of = ROOT
						controls_state = PREV
					}
				}
				NOT = {
					is_core_of = ROOT
				}
				is_core_of = MEX
				NOT = {
					is_owned_and_controlled_by = MEX
				}
			}
			transfer_state_to = MEX
		} 

		custom_effect_tooltip = HUN_third_mexican_empire_tt

		MEX = {
			hidden_effect = {
				drop_cosmetic_tag = yes
				set_cosmetic_tag = MEX_habsburg_empire
			}
			country_event = {
				id = WW_hungary.61
				hours = 0
			}	
		}

		add_to_faction = FROM

		hidden_effect = {
			set_country_flag = HUN_created_mexican_habsburg_monarchy 
		}
	}
}

# Mexico Rejects a Habsburg Monarch - event for HUN
country_event = {
	id = WW_hungary.64
	title = WW_hungary.64.t
	desc = WW_hungary.64.desc
	picture = GFX_report_event_royal_visit
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They made the incorrect choice
	option = { 
		name = WW_hungary.64.a
		ai_chance = {
			factor = 100
		}

		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM
		}

		unlock_decision_tooltip = HUN_place_a_habsburg_on_the_mexican_throne 

	}
}

# We have been assigned a new monarch - event for CRO
country_event = {
	id = WW_hungary.65
	title = WW_hungary.65.t 
	desc = WW_hungary.65.desc
	picture = GFX_report_event_military_planning
	
	is_triggered_only = yes

	# oki
	option = { 
		name = WW_hungary.65.a

		set_politics = {
			ruling_party = neutrality
			elections_allowed = no
			name = CRO_house_of_habsburg
			long_name = CRO_house_of_habsburg
		}	

		add_country_leader_role = {
		    character = CRO_joseph_francis
		    promote_leader = yes
		    country_leader = {
		        ideology = despotism
		        expire = "1965.1.1.1"
		        traits = { ban_of_croatia_slavonia }
		    }
		}

	}
}

# Hungary Demands we restore Habsburg Rule - event for CRO
country_event = {
	id = WW_hungary.66
	title = WW_hungary.66.t
	desc = WW_hungary.66.desc
	picture = GFX_report_event_royal_visit
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# It is our duty
	option = { 
		name = WW_hungary.66.a
		ai_chance = {
			factor = 80
			modifier = {
				has_war_support < 0.5
				factor = 2
			}
			modifier = {
				strength_ratio = { tag = HUN ratio < 0.8 }
				factor = 2
			}
			modifier = {
				is_in_faction = no
				HUN = { is_in_faction = yes }
				factor = 2
			}
		}

		FROM = {
			country_event = {
				# FROM accepts our demands
				id = WW_hungary.67
				days = 2
				random_days = 3
			}
		}

	}

	# Death to monarchs!
	option = { 
		name = WW_hungary.66.b
		ai_chance = {
			factor = 25
			modifier = {
				has_war_support > 0.5
				factor = 1.5
			}
			modifier = {
				strength_ratio = { tag = HUN ratio > 1.5 }
				factor = 2
			}
			modifier = {
				has_stability < 0.5
				factor = 0.5
			}
		}

		FROM = {
			country_event = {
				# FROM rejects our demands
				id = WW_hungary.68
				days = 2
				random_days = 3
			}
		}

	}
}

# Croatia Accepts a Habsburg Monarch - event for HUN
country_event = {
	id = WW_hungary.67
	title = WW_hungary.67.t
	desc = WW_hungary.67.desc
	picture = GFX_report_event_royal_visit
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They made the right choice
	option = { 
		name = WW_hungary.67.a
		ai_chance = {
			factor = 100
		}

		every_state = {
			limit = {
				OR  = {
					state = 104
					state = 804
				}
				NOT = {
					is_core_of = CRO
				}
			}
			add_core_of = CRO
		}

		every_state = {
			limit = {
				OR = {
					is_controlled_by = ROOT
					any_country = {
						is_subject_of = ROOT
						controls_state = PREV
					}
				}
				NOT = {
					is_core_of = ROOT
				}
				is_core_of = CRO
				NOT = {
					is_owned_and_controlled_by = CRO
				}
			}
			transfer_state_to = CRO
		} 

		CRO = {
			drop_cosmetic_tag = yes
			set_cosmetic_tag = CRO_croatia_slavonia_kingdom
			country_event = {
				id = WW_hungary.65
				hours = 0
			}	
		}

		IF = {
			limit = {
				CRO = {
					NOT = {
						is_subject_of = ROOT
					}
				}
			}
			puppet = CRO 
		}

		hidden_effect = {
			set_country_flag = HUN_created_croatian_habsburg_monarchy 
		}

	}
}

# Croatia Rejects a Habsburg Monarch - event for HUN
country_event = {
	id = WW_hungary.68
	title = WW_hungary.68.t
	desc = WW_hungary.68.desc
	picture = GFX_report_event_royal_visit
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They made the incorrect choice
	option = { 
		name = WW_hungary.68.a
		ai_chance = {
			factor = 100
		}

		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM
		}

		unlock_decision_tooltip = HUN_place_a_habsburg_on_the_croatian_throne 

	}
}

# Hungary Demands we restore Habsburg Rule - event for LBV
country_event = {
	id = WW_hungary.69
	title = WW_hungary.69.t
	desc = WW_hungary.69.desc
	picture = GFX_report_event_royal_visit
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# It is our duty
	option = { 
		name = WW_hungary.69.a
		ai_chance = {
			factor = 80
			modifier = {
				has_war_support < 0.5
				factor = 2
			}
			modifier = {
				strength_ratio = { tag = HUN ratio < 0.8 }
				factor = 2
			}
			modifier = {
				is_in_faction = no
				HUN = { is_in_faction = yes }
				factor = 2
			}
		}

		FROM = {
			country_event = {
				# FROM accepts our demands
				id = WW_hungary.70
				days = 2
				random_days = 3
			}
		}

	}

	# Death to monarchs!
	option = { 
		name = WW_hungary.69.b
		ai_chance = {
			factor = 25
			modifier = {
				has_war_support > 0.5
				factor = 1.5
			}
			modifier = {
				strength_ratio = { tag = HUN ratio > 1.5 }
				factor = 2
			}
			modifier = {
				has_stability < 0.5
				factor = 0.5
			}
		}

		FROM = {
			country_event = {
				# FROM rejects our demands
				id = WW_hungary.71
				days = 2
				random_days = 3
			}
		}

	}
}

# Lombardy-Venetia Accepts a Habsburg Monarch - event for HUN
country_event = {
	id = WW_hungary.70
	title = WW_hungary.70.t
	desc = WW_hungary.70.desc
	picture = GFX_report_event_royal_visit
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They made the right choice
	option = { 
		name = WW_hungary.70.a
		ai_chance = {
			factor = 100
		}

		LBV = {
			every_core_state = {
				limit = {
					OR = {
						is_controlled_by = ROOT
						any_country = {
							is_subject_of = ROOT
							controls_state = PREV
						}
					}
					NOT = {
						is_core_of = ROOT
					}
					NOT = {
						is_owned_and_controlled_by = LBV
					}
				}
				transfer_state_to = LBV
			}
		}

		LBV = {
			drop_cosmetic_tag = yes	
		}

		IF = {
			limit = {
				LBV = {
					NOT = {
						is_subject_of = ROOT
					}
				}
			}
			puppet = LBV 
		}

		hidden_effect = {
			set_country_flag = HUN_created_lombardo_venetian_habsburg_monarchy 
		}

	}
}

# Lombardy-Venetia Rejects a Habsburg Monarch - event for HUN
country_event = {
	id = WW_hungary.71
	title = WW_hungary.71.t
	desc = WW_hungary.71.desc
	picture = GFX_report_event_royal_visit
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They made the incorrect choice
	option = { 
		name = WW_hungary.71.a
		ai_chance = {
			factor = 100
		}

		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM
		}

		unlock_decision_tooltip = HUN_place_a_habsburg_on_the_lombardo_venetian_throne 

	}
}

# Hungary demands ownership of our Silesian territories - event for owner of a Silesian core
country_event = {
	id = WW_hungary.72
	title = WW_hungary.72.t
	desc = WW_hungary.72.desc
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes

	fire_only_once = no
	
	# It is not worth shedding blood over
	option = { 
		name = WW_hungary.72.a
		ai_chance = {
			factor = 60
			modifier = {
				factor = 0.3
				original_tag = SIL
			}
			modifier = {
				factor = 0.2
				original_tag = GER
			}
			modifier = {
				strength_ratio = { tag = HUN ratio < 1 }
				factor = 2
			}
		}

		# They accept - event for HUN
		FROM = { 
			country_event = {
				id = WW_hungary.73
				days = 2
				random_days = 3
			}
		} 

	}

	# Then come and get it!
	option = { 
		name = WW_hungary.72.b
		ai_chance = {
			factor = 40
			modifier = {
				factor = 1.5
				original_tag = SIL
			}
			modifier = {
				strength_ratio = { tag = HUN ratio > 1 }
				factor = 2
			}
		}

		# They reject - event for HUN
		FROM = { 
			country_event = {
				id = WW_hungary.74
				days = 2
				random_days = 3
			}
		} 

	}
}

# FROM hands over their Silesian territories - event for HUN
country_event = {
	id = WW_hungary.73
	title = WW_hungary.73.t
	desc = WW_hungary.73.desc
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes

	fire_only_once = no
	
	# This is a great day!
	option = { 
		name = WW_hungary.73.a
		ai_chance = {
			factor = 100
		}

		add_war_support = 0.01
		add_stability = 0.01

		IF = {
			limit = {
				CZE = {
					is_subject_of = ROOT
				}
			}
			every_state = {
				limit = {
					is_core_of = SIL
					is_owned_and_controlled_by = FROM
				}
				transfer_state_to = CZE
			}
			ELSE = {
				every_state = {
					limit = {
						is_core_of = SIL
						is_owned_and_controlled_by = FROM
					}
					transfer_state_to = ROOT
				}
			}
		}

	}
}

# FROM does not hand over their Silesian territories - event for HUN
country_event = {
	id = WW_hungary.74
	title = WW_hungary.74.t
	desc = WW_hungary.74.desc
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes

	fire_only_once = no
	
	# They will regret their decision
	option = { 
		name = WW_hungary.74.a
		ai_chance = {
			factor = 80
		}

		add_war_support = 0.02

		create_wargoal = {
			type = take_claimed_state
			target = FROM
		}

	}

	# We must let this go
	option = { 
		name = WW_hungary.74.b
		ai_chance = {
			factor = 20
		}

		add_political_power = 25

		add_war_support = -0.02
		add_stability = -0.02

	}
}

# Hungary demands ownership of the Holy Lands - event for owner of Palestine (454)
country_event = {
	id = WW_hungary.75
	title = WW_hungary.75.t
	desc = WW_hungary.75.desc
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes

	fire_only_once = no
	
	# It is not worth shedding blood over
	option = { 
		name = WW_hungary.75.a
		ai_chance = {
			factor = 60
			modifier = {
				factor = 0.3
				original_tag = PAL
			}
			modifier = {
				factor = 0.2
				original_tag = ISR
			}
			modifier = {
				strength_ratio = { tag = HUN ratio < 1 }
				factor = 2
			}
		}

		# They accept - event for HUN
		FROM = { 
			country_event = {
				id = WW_hungary.76
				days = 2
				random_days = 3
			}
		} 

	}

	# Then come and get it!
	option = { 
		name = WW_hungary.75.b
		ai_chance = {
			factor = 40
			modifier = {
				factor = 1.5
				original_tag = PAL
			}
			modifier = {
				factor = 1.5
				original_tag = ISR
			}
			modifier = {
				strength_ratio = { tag = HUN ratio > 1 }
				factor = 2
			}
		}

		# They reject - event for HUN
		FROM = { 
			country_event = {
				id = WW_hungary.77
				days = 2
				random_days = 3
			}
		} 

	}
}

# FROM hands over the holy land - event for HUN
country_event = {
	id = WW_hungary.76
	title = WW_hungary.76.t
	desc = WW_hungary.76.desc
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes

	fire_only_once = no
	
	# This is a great day!
	option = { 
		name = WW_hungary.76.a
		ai_chance = {
			factor = 100
		}

		transfer_state = 454 #PALESTINE

		add_war_support = 0.03

		454 = {
			set_state_category = town
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = bunker
				level = 2
				province = 4206
				instant_build = yes
			}
			add_building_construction = {
				type = bunker
				level = 2
				province = 1086
				instant_build = yes
			}
			IF = {
				limit = {
					anti_air_building < 5
				}
				add_building_construction = {
					type = anti_air_building
					level = 1
					instant_build = yes
				}
			}
		}

	}
}

# FROM does not hand over the holy land - event for HUN
country_event = {
	id = WW_hungary.77
	title = WW_hungary.77.t
	desc = WW_hungary.77.desc
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes

	fire_only_once = no
	
	# They will regret their decision
	option = { 
		name = WW_hungary.77.a
		ai_chance = {
			factor = 80
		}

		add_war_support = 0.02

		create_wargoal = {
			type = take_claimed_state
			target = FROM
		}

	}

	# We must let this go
	option = { 
		name = WW_hungary.77.b
		ai_chance = {
			factor = 20
		}

		add_political_power = 25

		add_war_support = -0.02
		add_stability = -0.02

	}
}

# We have been assigned a new monarch - event for PAP
country_event = {
	id = WW_hungary.78
	title = WW_hungary.78.t 
	desc = WW_hungary.78.desc
	picture = GFX_report_event_military_planning
	
	is_triggered_only = yes

	# oki
	option = { 
		name = WW_hungary.78.a

		add_country_leader_role = {
			character =  ITA_papa_pio_xii # optional if inside character scope
			promote_leader = yes
			country_leader = {
				ideology = oligarchism
				expire = 1958.12.16
				traits = { supreme_pontiff grand_master_of_the_equestrian_order_of_the_holy_sepulcher_of_jerusalem }
			}
		}

	}
}

# We have been assigned a new monarch - event for SPM
country_event = {
	id = WW_hungary.79
	title = WW_hungary.79.t 
	desc = WW_hungary.79.desc
	picture = GFX_report_event_military_planning
	
	is_triggered_only = yes

	# oki
	option = { 
		name = WW_hungary.79.a

		promote_character = {
			character = ITA_vittorio_emanuele_iii 
			ideology = despotism
		}

	}
}

# Hungary demands integration - event for AH subject
country_event = {
	id = WW_hungary.80
	title = WW_hungary.80.t
	desc = WW_hungary.80.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	fire_only_once = no
	
	# It is as it should be
	option = { 
		name = WW_hungary.80.a
		ai_chance = {
			factor = 100
		}

		# They accept - event for HUN
		FROM = { 
			country_event = {
				id = WW_hungary.81
				days = 1
				random_days = 2
			}
		} 

	}

	# "They will never take us alive!
	option = { 
		name = WW_hungary.80.b
		ai_chance = {
			factor = 0
		}

		# They reject - event for HUN
		FROM = { 
			country_event = {
				id = WW_hungary.82
				days = 1
				random_days = 2
			}
		} 

	}
}

# FROM accepts integration - event for HUN
country_event = {
	id = WW_hungary.81
	title = WW_hungary.81.t
	desc = WW_hungary.81.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	fire_only_once = no
	
	# And all is well in the world
	option = { 
		name = WW_hungary.81.a
		ai_chance = {
			factor = 100
		}

		every_state = {
			limit = {
				is_owned_by = FROM
				is_core_of = FROM
				OR = {
					state = 102
					state = 853
					state = 103
					state = 104
					state = 804
					state = 109
					state = 45
					state = 83
					state = 76
					state = 84
					state = 764
					state = 82
					state = 848
					state = 153
					state = 152
					state = 4
					state = 975
					state = 976
					state = 69
					state = 9
					state = 75
					state = 74
					state = 72
					state = 70
					state = 664
					state = 71
					state = 73
					state = 972
					state = 155
					state = 43
					state = 973
					state = 974
					state = 154
					state = 80
					state = 89
					state = 91
					state = 88
					state = 852
					state = 736 
					state = 39
					state = 850
					state = 160
					state = 159
				}
			}
			add_core_of = ROOT
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		IF = {
			limit = {
				FROM = {
					has_character = CZE_vojtyech_luzha
				}
			}
			FROM = {
				CZE_vojtyech_luzha = {
					set_nationality = ROOT
				}
			}
		}

		IF = {
			limit = {
				FROM = {
					has_character = CZE_josef_shnejdarek
				}
			}
			FROM = {
				CZE_josef_shnejdarek = {
					set_nationality = ROOT
				}
			}
		}

		IF = {
			limit = {
				FROM = {
					has_character = CZE_richard_tesarzhik
				}
			}
			FROM = {
				CZE_richard_tesarzhik = {
					set_nationality = ROOT
				}
			}
		}

		IF = {
			limit = {
				FROM = {
					has_character = CZE_sergej_vojcechovsky
				}
			}
			FROM = {
				CZE_sergej_vojcechovsky = {
					set_nationality = ROOT
				}
			}
		}

		IF = {
			limit = {
				FROM = {
					has_character = AUS_valentin_feuerstein
				}
			}
			FROM = {
				AUS_valentin_feuerstein = {
					set_nationality = ROOT
				}
			}
		}

		IF = {
			limit = {
				FROM = {
					has_character = AUS_eduard_barger
				}
			}
			FROM = {
				AUS_eduard_barger = {
					set_nationality = ROOT
				}
			}
		}

		IF = {
			limit = {
				FROM = {
					has_character = AUS_karl_eglseer
				}
			}
			FROM = {
				AUS_karl_eglseer = {
					set_nationality = ROOT
				}
			}
		}

		IF = {
			limit = {
				FROM = {
					has_character = AUS_alfred_jansa
				}
			}
			FROM = {
				AUS_alfred_jansa = {
					set_nationality = ROOT
				}
			}
		}

		IF = {
			limit = {
				FROM = {
					has_character = AUS_ludwig_von_eimannsberger
				}
			}
			FROM = {
				AUS_ludwig_von_eimannsberger = {
					set_nationality = ROOT
				}
			}
		}

		IF = {
			limit = {
				FROM = {
					has_character = AUS_lothar_rendulic
				}
			}
			FROM = {
				AUS_lothar_rendulic = {
					set_nationality = ROOT
				}
			}
		}

		IF = {
			limit = {
				FROM = {
					has_character = MNT_blazo_dukanovic
				}
			}
			FROM = {
				MNT_blazo_dukanovic = {
					set_nationality = ROOT
				}
			}
		}

		IF = {
			limit = {
				FROM = {
					has_character = CRO_duro_jakcin
				}
			}
			FROM = {
				CRO_duro_jakcin = {
					set_nationality = ROOT
				}
			}
		}

		IF = {
			limit = {
				FROM = {
					has_character = AUS_johannes_of_liechtenstein
				}
			}
			FROM = {
				AUS_johannes_of_liechtenstein = {
					set_nationality = ROOT
				}
			}
		}

		IF = {
			limit = {
				FROM = {
					has_character = AUS_alois_of_liechtenstein
				}
			}
			FROM = {
				AUS_alois_of_liechtenstein = {
					set_nationality = ROOT
				}
			}
		}

		annex_country = {
			target = FROM
			transfer_troops = yes
		}	

	}
}

# FROM denies integration - event for HUN
country_event = {
	id = WW_hungary.82
	title = WW_hungary.82.t
	desc = WW_hungary.82.desc
	picture = GFX_report_event_hungarian_soldiers
	
	is_triggered_only = yes

	fire_only_once = no
	
	# We will make them pay
	option = { 
		name = WW_hungary.82.a
		ai_chance = {
			factor = 100
		}

		set_autonomy = {
			target = FROM
			autonomy_state = autonomy_free
			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
		}	

		every_state = {
			limit = {
				is_owned_by = FROM
				NOT = {
					OR = {
						is_claimed_by = ROOT
						is_core_of =  ROOT
					}
				}
				OR = {
					state = 155
					state = 43
					state = 973
					state = 974
					state = 154
					state = 102
					state = 853
					state = 103
					state = 104
					state = 804
					state = 109
					state = 45
					state = 83
					state = 76
					state = 84
					state = 39
					state = 163
					state = 736
					state = 852
					state = 850
					state = 764
					state = 82
					state = 67
					state = 762
					state = 66
					state = 88
					state = 91
					state = 89
					state = 80
				}
			}
			add_claim_by = ROOT
		}	

		custom_effect_tooltip = generic_skip_one_line_tt
		
		ROOT = {
			declare_war_on = {
				target = FROM
				type = annex_everything
			}	
		}

	}
}

# Hungary offers to purchase Burgenland - event for owner of (975) 
country_event = {
	id = WW_hungary.83
	title = WW_hungary.83.t
	desc = WW_hungary.83.desc
	picture = GFX_report_event_vienna_award_hungary
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They can have it
	option = { 
		name = WW_hungary.83.a
		ai_chance = {
			factor = 75
			modifier = {
				strength_ratio = { tag = HUN ratio < 0.8 }
				factor = 2
			}
			modifier = {
				is_in_faction = no
				HUN = { is_in_faction = yes }
				factor = 2
			}
			modifier = {
				NOT = {
					OR = {
						has_completed_focus = AUS_great_austrian_economic_push
						has_completed_focus = AUS_bring_phonix_insurance_from_the_ashes
						has_completed_focus = AUS_apprentice_programmes
					}
				}
				factor = 1.5
			}
		}

		effect_tooltip = {
			ROOT = {
				add_ideas = HUN_payments_from_hungary_idea
				add_offsite_building = {
					type = industrial_complex
					level = 2
				}	
			}

			FROM = {
				add_political_power = -120

				transfer_state = 975
			}
			
		}

		FROM = {
			country_event = {
				# FROM folds
				id = WW_hungary.84
				hours = 2
			}
		}

	}

	# Who do they think they are?
	option = { 
		name = WW_hungary.83.b
		ai_chance = {
			factor = 50
			modifier = {
				strength_ratio = { tag = HUN ratio > 1.5 }
				factor = 2
			}
			modifier = {
				has_completed_focus = AUS_great_austrian_economic_push
				factor = 2.5
			}
		}

		FROM = {
			country_event = {
				# FROM refuses to fold
				id = WW_hungary.85
				hours = 2
			}
		}

	}
}

#FROM hands over Burgenland - event for HUN
country_event = {
	id = WW_hungary.84
	title = WW_hungary.84.t
	desc = WW_hungary.84.desc
	picture = GFX_report_event_hungary_gains_transylvania
	
	is_triggered_only = yes

	fire_only_once = yes

	# Perfect!
	option = {
		name = WW_hungary.84.a
		ai_chance = {
			base = 100
		}

		FROM = {
			add_ideas = HUN_payments_from_hungary_idea
			add_offsite_building = {
				type = industrial_complex
				level = 2
			}	
		}

		add_political_power = -120

		transfer_state = 975

	}
}

#FROM refuses to hand over Burgenland - event for HUN
country_event = {
	id = WW_hungary.85
	title = WW_hungary.85.t
	desc = WW_hungary.85.desc
	picture = GFX_report_event_hungary_refused
	
	is_triggered_only = yes

	fire_only_once = yes

	# War it is then
	option = {
		name = WW_hungary.85.a
		ai_chance = {
			base = 85
		}

		create_wargoal = {
			type = take_state_focus
			target = FROM
			generator = { 975 }
		}	

	}

	# It is simply not worth the effort
	option = {
		name = WW_hungary.85.b
		ai_chance = {
			base = 25
		}

		add_political_power = 10
		
		remove_state_claim = 975

	}
}

# Hungary stages an uprising in Leitha - event for owner of (975) 
country_event = {
	id = WW_hungary.86
	title = WW_hungary.86.t
	desc = WW_hungary.86.desc
	picture = GFX_report_event_spr_anarchist_uprising
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They can have it
	option = { 
		name = WW_hungary.86.a
		ai_chance = {
			factor = 50
			modifier = {
				strength_ratio = { tag = HUN ratio < 0.8 }
				factor = 2
			}
			modifier = {
				is_in_faction = no
				HUN = { is_in_faction = yes }
				factor = 2
			}
		}

		add_political_power = 50
		add_stability = -0.05

	}

	# Who do they think they are?
	option = { 
		name = WW_hungary.86.b
		ai_chance = {
			factor = 50
			modifier = {
				strength_ratio = { tag = HUN ratio > 1.5 }
				factor = 2
			}
		}

		declare_war_on = {
			target = FROM
			type = take_core_state
			generator = 975
		}		

	}
}

#Hungary wishes to join our faction - event for ENG
country_event = {
	id = WW_hungary.87
	title = WW_hungary.87.t
	desc = WW_hungary.87.desc
	picture = GFX_report_event_DEN_danish_politics
	
	is_triggered_only = yes

	fire_only_once = yes

	# Why not
	option = {
		name = WW_hungary.87.a
		ai_chance = {
			base = 100
		}

		FROM = {
			country_event = {
				# We get to join the axis
				id = WW_hungary.88
				days = 2
				random_days = 3
			}
		}	

	}

	# Heck to the no
	option = {
		name = WW_hungary.87.b
		ai_chance = {
			base = 0
		}

		FROM = {
			country_event = {
				# We do not get to join the axis
				id = WW_hungary.89
				days = 2
				random_days = 3
			}
		}

	}
}

#UK lets us join their faction - event for HUN
country_event = {
	id = WW_hungary.88
	title = WW_hungary.88.t
	desc = WW_hungary.88.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	fire_only_once = yes

	# Why not
	option = {
		name = WW_hungary.88.a
		ai_chance = {
			base = 100
		}

		FROM = {
			add_to_faction = ROOT
		}

	}
}

#UK dont let us join their faction - event for HUN
country_event = {
	id = WW_hungary.89
	title = WW_hungary.89.t
	desc = WW_hungary.89.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	fire_only_once = yes

	# Why not
	option = {
		name = WW_hungary.89.a
		ai_chance = {
			base = 100
		}

		add_opinion_modifier = {
			target = FROM
			modifier = faction_traitor
		}	

		add_political_power = 50

	}
}

# A New Monarch - event for HUN
country_event = {
	id = WW_hungary.90
	title = WW_hungary.90.t 
	desc = WW_hungary.90.desc
	picture = GFX_report_event_military_planning
	
	is_triggered_only = yes

	# Kepp miklos horthy
	option = { 
		name = WW_hungary.90.a
		ai_chance = {
			base = 40
		}

		add_stability = -0.15

		HUN_miklos_horthy = {
			swap_country_leader_traits = { 
				remove = HUN_the_regent
				add = HUN_the_apostolic_king
			}
			set_portraits = {
				civilian = {
					large = GFX_portrait_HUN_miklos_horthy_monarch
				}
			}
		}

		hidden_effect = {
			set_cosmetic_tag = HUN_horthyist_kingdom
			news_event = { 
				id = wuw_HUN_news_events.5
				days = 1
			}
		}

	}

	# crown istvan horthy as king
	option = { 
		name = WW_hungary.90.b 
		ai_chance = {
			base = 69
		}

		add_stability = -0.05

		add_country_leader_role = {
		    character = HUN_istvan_horthy
		    promote_leader = yes
		    country_leader = {
		        ideology = despotism
		        expire = "1965.1.1.1"
		        traits = { dislikes_germany HUN_popular_aviator }
		    }
		}

		hidden_effect = {
			set_cosmetic_tag = HUN_horthyist_kingdom
			news_event = { 
				id = wuw_HUN_news_events.5
				days = 1
			}
		}

	}
}

# Hungary offers to annex us- event for ROM
country_event = {
	id = WW_hungary.91
	title = WW_hungary.91.t
	desc = WW_hungary.91.desc
	picture = GFX_report_event_vienna_award_hungary
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# We are stronger together
	option = { 
		name = WW_hungary.91.a
		ai_chance = {
			base = 75
			modifier = {
				strength_ratio = { tag = HUN ratio < 0.8 }
				factor = 2
			}
			modifier = {
				has_government = democratic
				factor = 2
			}
		}

		custom_effect_tooltip = GAME_OVER_TT

		FROM = {
			country_event = {
				# FROM folds
				id = WW_hungary.92
				days = 2
				random_days = 3
			}
		}

	}

	# Who do they think they are?
	option = { 
		name = WW_hungary.91.b
		ai_chance = {
			base = 5
			modifier = {
				strength_ratio = { tag = HUN ratio > 1.8 }
				factor = 2
			}
		}

		FROM = {
			country_event = {
				# FROM refuses to fold
				id = WW_hungary.93
				days = 2
				random_days = 3
			}
		}

	}
}

#FROM accepts integration - event for HUN
country_event = {
	id = WW_hungary.92
	title = WW_hungary.92.t
	desc = WW_hungary.92.desc
	picture = GFX_report_event_hungary_gains_transylvania
	
	is_triggered_only = yes

	fire_only_once = yes

	# Perfect!
	option = {
		name = WW_hungary.92.a
		ai_chance = {
			base = 100
		}

		ROM = {
			every_unit_leader = {
				set_nationality = HUN
			}
		}

		annex_country = {	
			target = ROM
			transfer_troops = yes
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		every_state = {
			limit = {
				is_core_of = ROM
			}
			add_core_of = ROOT
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		set_cosmetic_tag = HUN_kingdom_of_hun_and_rom

	}
}

#FROM rejects integration - event for HUN
country_event = {
	id = WW_hungary.93
	title = WW_hungary.93.t
	desc = WW_hungary.93.desc
	picture = GFX_report_event_hungary_refused
	
	is_triggered_only = yes

	fire_only_once = yes

	# War it is then
	option = {
		name = WW_hungary.93.a
		ai_chance = {
			base = 100
		}

		add_political_power = 100

	}
}

# Electing a New [ROOT.GetAdjective] President (of the revolutionary council) - event for HUN
country_event = {
	id = WW_hungary.94
	title = WW_hungary.94.t 
	desc = WW_hungary.94.desc
	picture = GFX_report_event_communists_cheer
	
	is_triggered_only = yes

	# Bela Kun must return to power
	option = { 
		name = WW_hungary.94.a
		ai_chance = {
			base = 30
			modifier = {
				factor = 0
				OR = {
					has_country_flag = HUN_AI_RANDOM_COMMUNIST
					has_game_rule = {
						rule = HUN_ai_behavior
						option = COMMUNIST
					}
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_country_flag = HUN_AI_RANDOM_REPUBLICAN_DEMOCRACY
					has_game_rule = {
						rule = HUN_ai_behavior
						option = REPUBLICAN_DEMOCRACY
					}
					has_country_flag = HUN_AI_RANDOM_REPUBLICAN_DEMOCRACY_EXPANSIONIST
					has_game_rule = {
						rule = HUN_ai_behavior
						option = REPUBLICAN_DEMOCRACY_EXPANSIONIST
					}
				}
			}
		}
		trigger = {
		    OR = {
		    	is_subject = no
		    	AND = {
		    		is_subject = yes
		    		any_country = {
		    			has_subject = ROOT
		    			has_government = communism
		    		}
		    	}
		    }
		    NOT = {
		    	is_subject_of = SOV
		    }
		}

		set_politics = {
			ruling_party = communism
			elections_allowed = no
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		add_country_leader_role = {
		    character = HUN_bela_kun
		    promote_leader = yes
		    country_leader = {
		    	ideology = marxism
		    	traits = { HUN_the_hungarian_lenin }
		    	expire = "1965.1.1.1"
		    	id = -1
		    }
		}

		add_popularity = {
			ideology = communism
			popularity = 0.1
		}

	}

	# Mátyás Rákosi has earned the people's respect
	option = { 
		name = WW_hungary.94.b 
		ai_chance = {
			base = 30
			modifier = {
				factor = 0
				OR = {
					has_country_flag = HUN_AI_RANDOM_RESTORE_THE_SOCIALIST_REPUBLIC
					has_game_rule = {
						rule = HUN_ai_behavior
						option = RESTORE_THE_SOCIALIST_REPUBLIC
					}
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_country_flag = HUN_AI_RANDOM_REPUBLICAN_DEMOCRACY
					has_game_rule = {
						rule = HUN_ai_behavior
						option = REPUBLICAN_DEMOCRACY
					}
					has_country_flag = HUN_AI_RANDOM_REPUBLICAN_DEMOCRACY_EXPANSIONIST
					has_game_rule = {
						rule = HUN_ai_behavior
						option = REPUBLICAN_DEMOCRACY_EXPANSIONIST
					}
				}
			}
		}
		trigger = {
		    OR = {
		    	is_subject = no
		    	AND = {
		    		is_subject = yes
		    		any_country = {
		    			has_subject = ROOT
		    			has_government = communism
		    		}
		    	}
		    }
		}

		set_politics = {
			ruling_party = communism
			elections_allowed = no
			long_name = HUN_mdp_party_long
			name = HUN_mdp_party
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		add_popularity = {
			ideology = communism
			popularity = 0.1
		}

	}

	# Mihály Károlyi should lead us
	option = { 
		name = WW_hungary.94.c 
		ai_chance = {
			base = 35
			modifier = {
				factor = 0
				OR = {
					has_country_flag = HUN_AI_RANDOM_RESTORE_THE_SOCIALIST_REPUBLIC
					has_game_rule = {
						rule = HUN_ai_behavior
						option = RESTORE_THE_SOCIALIST_REPUBLIC
					}
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_country_flag = HUN_AI_RANDOM_COMMUNIST
					has_game_rule = {
						rule = HUN_ai_behavior
						option = COMMUNIST
					}
				}
			}
		}
		trigger = {
		    OR = {
		    	is_subject = no
		    	AND = {
		    		is_subject = yes
		    		any_country = {
		    			has_subject = ROOT
		    			has_government = democratic
		    		}
		    	}
		    }
		}

		add_political_power = 50
		add_stability = 0.05

		custom_effect_tooltip = generic_skip_one_line_tt

		add_popularity = {
			ideology = democratic
			popularity = 0.1
		}	

	}
}

# The First Presidential Election of the Second Republic - event for HUN
country_event = {
	id = WW_hungary.95
	title = WW_hungary.95.t 
	desc = WW_hungary.95.desc
	picture = GFX_report_event_journalists_speech
	
	is_triggered_only = yes

	# Mihály Károlyi knows how to lead
	option = { 
		name = WW_hungary.95.a
		ai_chance = {
			base = 35
		}

		add_political_power = 50
		add_stability = 0.05

		custom_effect_tooltip = generic_skip_one_line_tt

		add_popularity = {
			ideology = democratic
			popularity = 0.1
		}

	}

	# Árpád Szakasits can find a good middle-ground
	option = { 
		name = WW_hungary.95.b 
		ai_chance = {
			base = 35
		}

		promote_character = {
			character = HUN_arpad_szakasits 
			ideology = socialism 
		}	

		add_political_power = 25
		add_popularity = {
			ideology = democratic
			popularity = 0.1
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		set_party_name = {
		    ideology = democratic
		    long_name = HUN_democratic_party_long
		    name = HUN_democratic_party
		}

	}

	# János Zichy can help us get back on our feet
	option = { 
		name = WW_hungary.95.c 
		ai_chance = {
			base = 30
		}

		add_country_leader_role = {
		    character = HUN_janos_zichy
		    promote_leader = yes
		    country_leader = {
		    	ideology = liberalism
		    	traits = { HUN_christian_academic }
		    	expire = "1965.1.1.1"
		    	id = -1
		    }
		}

		add_political_power = 25
		add_popularity = {
			ideology = democratic
			popularity = 0.1
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		set_party_name = {
		    ideology = democratic
		    long_name = HUN_democratic_christian_economic_party_long
		    name = HUN_democratic_christian_economic_party
		}

	}
}

# Hungary demands ownership of our Sloavkian territories - event for owner of a Slovak core
country_event = {
	id = WW_hungary.96
	title = WW_hungary.96.t
	desc = WW_hungary.96.desc
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes

	fire_only_once = no
	
	# It is not worth shedding blood over
	option = { 
		name = WW_hungary.96.a
		ai_chance = {
			factor = 60
			modifier = {
				factor = 0.3
				original_tag = SLO
			}
			modifier = {
				strength_ratio = { tag = HUN ratio < 1 }
				factor = 2
			}
		}

		# They accept - event for HUN
		FROM = { 
			country_event = {
				id = WW_hungary.97
				days = 2
				random_days = 3
			}
		} 

	}

	# Then come and get it!
	option = { 
		name = WW_hungary.96.b
		ai_chance = {
			factor = 40
			modifier = {
				strength_ratio = { tag = HUN ratio > 1 }
				factor = 2
			}
		}

		# They reject - event for HUN
		FROM = { 
			country_event = {
				id = WW_hungary.98
				days = 2
				random_days = 3
			}
		} 

	}
}

# FROM hands over their Slovakian territories - event for HUN
country_event = {
	id = WW_hungary.97
	title = WW_hungary.97.t
	desc = WW_hungary.97.desc
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes

	fire_only_once = no
	
	# This is a great day!
	option = { 
		name = WW_hungary.97.a
		ai_chance = {
			factor = 100
		}

		add_war_support = 0.01
		add_stability = 0.01

		every_state = {
			limit = {
				is_core_of = SLO
				OR = {
					is_owned_and_controlled_by = SLO
					is_owned_and_controlled_by = FROM
				}
			}
			transfer_state_to = ROOT
		}

	}
}

# FROM does not hand over their Slovakian territories - event for HUN
country_event = {
	id = WW_hungary.98
	title = WW_hungary.98.t
	desc = WW_hungary.98.desc
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes

	fire_only_once = no
	
	# They will regret their decision
	option = { 
		name = WW_hungary.98.a
		ai_chance = {
			factor = 80
		}

		add_war_support = 0.02

		create_wargoal = {
			type = take_claimed_state
			target = FROM
		}

	}

	# We must let this go
	option = { 
		name = WW_hungary.98.b
		ai_chance = {
			factor = 20
		}

		add_political_power = 25

		add_war_support = -0.02
		add_stability = -0.02

	}
}

# Hungary Demands Overlordship over Székely Lands - event for owner of a Székely Land (76)
country_event = {
	id = WW_hungary.99
	title = WW_hungary.99.t
	desc = WW_hungary.99.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# For a more just world!
	option = { 
		name = WW_hungary.99.a
		ai_chance = {
			factor = 70
			modifier = {
				factor = 0.9
				original_tag = ROM
			}
			modifier = {
				strength_ratio = { tag = HUN ratio < 1 }
				factor = 2
			}
		}

		# They accept - event for HUN
		FROM = { 
			country_event = {
				id = WW_hungary.100
				days = 2
				random_days = 3
			}
		} 

	}

	# They are clearly delusional
	option = { 
		name = WW_hungary.99.b
		ai_chance = {
			factor = 30
			modifier = {
				strength_ratio = { tag = HUN ratio > 1 }
				factor = 2
			}
		}

		# They reject - event for HUN
		FROM = { 
			country_event = {
				id = WW_hungary.101
				days = 2
				random_days = 3
			}
		} 

	}
}

# [FROM.GetName] grants us a Székelyföld Protectorate - event for HUN
country_event = {
	id = WW_hungary.100
	title = WW_hungary.100.t
	desc = WW_hungary.100.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# Reunited at long last!
	option = { 
		name = WW_hungary.100.a
		ai_chance = {
			factor = 100
		}

		add_war_support = 0.05
		add_political_power = 50

		custom_effect_tooltip = generic_skip_one_line_tt

		76 = {
			add_victory_points = {
				province = 9672
				value = 8
			}	
			transfer_state_to = TRA
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		puppet = TRA

		custom_effect_tooltip = generic_skip_one_line_tt	

		TRA = {
			set_cosmetic_tag = TRA_szekely_land
		}

		hidden_effect = {
			IF = {
				limit = {
					TRA = {
						capital_scope = {
							NOT = {
								is_in_array = {
									array = AUS.expansion_targets
									value = THIS
								}
							}
						}
					}
				}

				TRA = {
					capital_scope = {
						add_to_array = {
							array = AUS.expansion_targets
							value = TRA
						}
					}
				}
			}
		}

	}
}

# [FROM.GetName] refuses us our Székelyföld Protectorate - event for HUN
country_event = {
	id = WW_hungary.101
	title = WW_hungary.101.t
	desc = WW_hungary.101.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They will regret their actions
	option = { 
		name = WW_hungary.101.a
		ai_chance = {
			factor = 80
		}

		create_wargoal = {
			type = take_state
			target = FROM
			generator = { 76 }
		}	

	}

	# There is not much we can do
	option = { 
		name = WW_hungary.101.b
		ai_chance = {
			factor = 20
		}

		add_war_support = -0.02

	}
}


# The March on Budapest - event for HUN
country_event = {
	id = WW_hungary.102
	title = WW_hungary.102.t 
	desc = WW_hungary.102.desc
	picture = GFX_report_event_fascists_posing
	
	is_triggered_only = yes

	# Gömbös must take up emergency powers!
	option = { 
		name = WW_hungary.102.a
		ai_chance = {
			base = 30
		}

		add_country_leader_role = {
		    character = HUN_gyula_gombos_de_jakfa
		    promote_leader = yes
		    country_leader = {
		    	ideology = despotism
		    	traits = { HUN_popular_among_paramilitaries }
		    	expire = "1965.1.1.1"
		    	id = -1
		    }
		}

		add_political_power = 50
		add_popularity = {
			ideology = fascism
			popularity = 0.1
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		add_stability = -0.1

		hidden_effect = {
			remove_ideas = HUN_gyula_gombos_de_jakfa
		}

	}
}

# Ferenc Szálasi's coup d'etat - event for HUN
country_event = {
	id = WW_hungary.103
	title = WW_hungary.103.t 
	desc = WW_hungary.103.desc
	picture = GFX_report_event_hungary_southern_slovakia
	
	is_triggered_only = yes

	# Stand down and make Szálasi the new Nemzetvezető
	option = { 
		name = WW_hungary.103.a
		ai_chance = {
			base = 100
		}

		set_politics = {
			ruling_party = fascism
			elections_allowed = no
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		add_trait = {
		    character = HUN_ferenc_szalasi
		    ideology = nazism
		    trait = HUN_nemzetvezeto_trait
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		add_threat = 1
		set_party_name = {
			ideology = fascism
			long_name = HUN_arrow_cross_party_hungarist_movement_long
			name = HUN_arrow_cross_party_hungarist_movement
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		HUN_remove_trianon_effect = yes

		hidden_effect = {
			news_event = { id = news.298 days = 1 }
		}

	}

	# We will agree to their terms, on a condition
	option = { 
		name = WW_hungary.103.b
		ai_chance = {
			base = 0
		}
		trigger = {
			has_country_leader = {
				ruling_only = yes
				character = HUN_gyula_gombos_de_jakfa
			}	
		}

		set_politics = {
			ruling_party = fascism
			elections_allowed = no
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		add_country_leader_role = {
		    character = HUN_gyula_gombos_de_jakfa
		    promote_leader = yes
		    country_leader = {
		    	ideology = fascism_ideology
		    	traits = { HUN_popular_among_paramilitaries HUN_nemzetvezeto_trait }
		    	expire = "1965.1.1.1"
		    	id = -1
		    }
		}

		add_stability = -0.15
		add_war_support = -0.05

		custom_effect_tooltip = generic_skip_one_line_tt

		add_threat = 1
		set_party_name = {
			ideology = fascism
			long_name = HUN_arrow_cross_party_hungarist_movement_long
			name = HUN_arrow_cross_party_hungarist_movement
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		HUN_remove_trianon_effect = yes

		hidden_effect = {
			news_event = { id = news.298 days = 1 }
		}

	}
}

# Hungary demands ownership of our Croatian territories - event for owner of a Croatian state
country_event = {
	id = WW_hungary.104
	title = WW_hungary.104.t
	desc = WW_hungary.104.desc
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes

	fire_only_once = no
	
	# It is not worth shedding blood over
	option = { 
		name = WW_hungary.104.a
		ai_chance = {
			factor = 60
			modifier = {
				factor = 0.5
				original_tag = CRO
			}
			modifier = {
				strength_ratio = { tag = HUN ratio < 1 }
				factor = 2
			}
			modifier = {
				factor = 2
				is_ally_with = HUN
			}
		}

		# They accept - event for HUN
		FROM = { 
			country_event = {
				id = WW_hungary.105
				days = 2
				random_days = 3
			}
		} 

	}

	# Then come and get it!
	option = { 
		name = WW_hungary.104.b
		ai_chance = {
			factor = 40
			modifier = {
				factor = 1.5
				original_tag = CRO
			}
			modifier = {
				strength_ratio = { tag = HUN ratio > 1 }
				factor = 2
			}
			modifier = {
				factor = 0.5
				is_ally_with = HUN
			}
		}

		# They reject - event for HUN
		FROM = { 
			country_event = {
				id = WW_hungary.106
				days = 2
				random_days = 3
			}
		} 

	}
}

# FROM hands over their Croatian territories - event for HUN
country_event = {
	id = WW_hungary.105
	title = WW_hungary.105.t
	desc = WW_hungary.105.desc
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes

	fire_only_once = no
	
	# This is a great day!
	option = { 
		name = WW_hungary.105.a
		ai_chance = {
			factor = 100
		}

		add_war_support = 0.01
		add_stability = 0.01

		every_state = {
			limit = {
				OR = {
					state = 109
					state = 103
				}
				is_owned_and_controlled_by = FROM
			}
			transfer_state_to = ROOT
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		IF = {
			limit = {
				OR = {
					FROM = {
						original_tag = CRO
					}
					CRO = {
						exists = no
					}
				}
			}

			every_possible_country = {

				limit = {
					has_character = CRO_duro_jakcin
				}

				set_nationality = {
				    target_country = ROOT
				    character = CRO_duro_jakcin
				}	

			}

		}

	}
}

# FROM does not hand over their Croatian territories - event for HUN
country_event = {
	id = WW_hungary.106
	title = WW_hungary.106.t
	desc = WW_hungary.106.desc
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes

	fire_only_once = no
	
	# They will regret their decision
	option = { 
		name = WW_hungary.106.a
		ai_chance = {
			factor = 80
		}

		add_war_support = 0.02

		create_wargoal = {
			type = take_claimed_state
			target = FROM
		}

	}

	# We must let this go
	option = { 
		name = WW_hungary.106.b
		ai_chance = {
			factor = 20
		}

		add_political_power = 25

		add_war_support = -0.02
		add_stability = -0.02

	}
}

# DISUSED!!!
# Goering become king - HIDDEN event for HUN
#country_event = {
#	id = WW_hungary.107
#	title = WW_hungary.107.t
#	desc = WW_hungary.107.desc
#	#picture = GFX_report_event_HUN_hungary_occupies_area
#	
#	is_triggered_only = yes
#
#	fire_only_once = yes
#
#	hidden = yes
#
#	immediate = {
#		add_advisor_role = {
#			character = GER_hermann_goring
#			advisor = {
#				slot = political_advisor
#				cost = 150
#				can_be_fired = no
#				idea_token = GER_hermann_goring_king_of_hun
#				traits = {
#					HUN_apostolic_king_of_hungary_fascist_trait
#				}
#			}
#			activate = yes
#		}
#	}
#	
#	# They will regret their decision
#	option = { 
#		name = WW_hungary.107.a
#		ai_chance = {
#			factor = 100
#		}
#
#		
#
#	}
#}

# [FROM.GetNameDefCap] wants to Crown Hermann Goering King - event for GER
country_event = {
	id = WW_hungary.108
	title = WW_hungary.108.t
	desc = WW_hungary.108.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# We will allow it
	option = { 
		name = WW_hungary.108.a
		ai_chance = {
			base = 100
		}

		# They accept - event for HUN
		FROM = { 
			country_event = {
				id = WW_hungary.109
				days = 2
				random_days = 3
			}
		} 

	}

	# It would not be appropriate
	option = { 
		name = WW_hungary.108.b
		ai_chance = {
			base = 0
		}

		# They reject - event for HUN
		FROM = { 
			country_event = {
				id = WW_hungary.110
				days = 2
				random_days = 3
			}
		} 

	}
}

# [FROM.GetLeader] Allows Goering to be Crowned - event for HUN
country_event = {
	id = WW_hungary.109
	title = WW_hungary.109.t
	desc = WW_hungary.109.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# We are grateful
	option = { 
		name = WW_hungary.109.a
		ai_chance = {
			factor = 100
		}

		custom_effect_tooltip = goering_as_king_tt

		hidden_effect = {
			set_country_flag = HUN_has_goering_as_king_flag
			activate_advisor = GER_hermann_goring_king_of_hun
		}

	}
}

# [FROM.GetLeader] Disallows Goering being Crowned - event for HUN
country_event = {
	id = WW_hungary.110
	title = WW_hungary.110.t
	desc = WW_hungary.110.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# A Kingdom no more it seems
	option = { 
		name = WW_hungary.110.a
		ai_chance = {
			factor = 100
		}

		add_political_power = 50
		add_stability = 0.05

	}
}

# Referendum to join Hungary in South Slovakia - event for owner of Southern Slovakia
country_event = {
	id = WW_hungary.111
	title = WW_hungary.111.t 
	desc = WW_hungary.111.desc
	picture = GFX_report_event_generic_read_write
	
	is_triggered_only = yes

	# If it is what the people wish for
	option = { 
		name = WW_hungary.111.a

		ai_chance = {
			base = 95
		}

		effect_tooltip = {
			IF = {

				limit = {
					ROOT = {	
						OR = {		
							owns_state = 664
							any_subject_country = {
								is_ai = yes
								owns_state = 664
							}
						}
					}
				}

				add_political_power = 50
				add_stability = 0.05

				custom_effect_tooltip = generic_skip_one_line_tt

				FROM = {
					transfer_state = 664
				}

			}
		}

		HUN = { 
			country_event = {
			    id = WW_hungary.112
			    days = 1
			    random = 2
			}
		}
	}

	# The referendum was fraudulent
	option = { 
		name = WW_hungary.111.b
		trigger = {
			NOT = {
				is_subject_of = FROM
			}
		}

		ai_chance = {
			base = 5
		}

		HUN = {
			country_event = {
			    id = WW_hungary.113
			    days = 1
			    random = 2
			}
		}

		hidden_effect = {
			set_country_flag = HUN_from_refused_south_slovak_referendum_results
		}
	}
}

# X country accepts the referendum
country_event = {
	id = WW_hungary.112
	title = WW_hungary.112.t 
	desc = WW_hungary.112.desc
	picture = GFX_report_event_generic_handshake
	
	is_triggered_only = yes

	# A reasonable response
	option = { 
		name = WW_hungary.112.a

		IF = {
			limit = {
				OR = {
					FROM = {
						owns_state = 664
					}
					FROM = {
						any_subject_country = {
							is_ai = yes
							owns_state = 664
						}
					}
				}
			}
			FROM = {
				add_political_power = 50
				add_stability = 0.05
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			664 = {
				add_core_of = ROOT
			}
			ROOT = {
				transfer_state = 664
			}
		}
	}
}

# X country declares the referendum illegitimate
country_event = {
	id = WW_hungary.113
	title = WW_hungary.113.t 
	desc = WW_hungary.113.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	# We will have to accept it 
	option = { 
		name = WW_hungary.113.a

		add_political_power = 75
		664 = {
			add_core_of = ROOT
		}

		custom_effect_tooltip = generic_skip_one_line_tt
		
		ROOT = {
			add_opinion_modifier = {
				target = FROM
				modifier = BUL_rejected_our_proposal
			}
		}
		
		hidden_effect = {
			FROM = {
				clr_country_flag = HUN_sent_banatian_demands
			}
		}
	}
}


# Referendum to join Hungary in Carpathian Ruthenia - event for owner of Carpathian Ruthenia
country_event = {
	id = WW_hungary.114
	title = WW_hungary.114.t 
	desc = WW_hungary.114.desc
	picture = GFX_report_event_generic_read_write
	
	is_triggered_only = yes

	# If it is what the people wish for
	option = { 
		name = WW_hungary.114.a

		ai_chance = {
			base = 95
		}

		effect_tooltip = {
			IF = {

				limit = {
					ROOT = {	
						OR = {		
							owns_state = 73
							any_subject_country = {
								is_ai = yes
								owns_state = 73
							}
						}
					}
				}

				add_political_power = 50
				add_stability = 0.05

				custom_effect_tooltip = generic_skip_one_line_tt

				FROM = {
					transfer_state = 73
				}

			}
		}

		HUN = { 
			country_event = {
			    id = WW_hungary.115
			    days = 1
			    random = 2
			}
		}
	}

	# The referendum was fraudulent
	option = { 
		name = WW_hungary.114.b
		trigger = {
			NOT = {
				is_subject_of = FROM
			}
		}

		ai_chance = {
			base = 5
		}

		HUN = {
			country_event = {
			    id = WW_hungary.116
			    days = 1
			    random = 2
			}
		}

		hidden_effect = {
			set_country_flag = HUN_from_refused_carpatho_ukrainian_referendum_results
		}
	}
}

# X country accepts the referendum
country_event = {
	id = WW_hungary.115
	title = WW_hungary.115.t 
	desc = WW_hungary.115.desc
	picture = GFX_report_event_generic_handshake
	
	is_triggered_only = yes

	# A reasonable response
	option = { 
		name = WW_hungary.115.a

		IF = {
			limit = {
				OR = {
					FROM = {
						owns_state = 73
					}
					FROM = {
						any_subject_country = {
							is_ai = yes
							owns_state = 73
						}
					}
				}
			}
			FROM = {
				add_political_power = 50
				add_stability = 0.05
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			73 = {
				add_core_of = ROOT
			}
			ROOT = {
				transfer_state = 73
			}
		}
	}
}

# X country declares the referendum illegitimate
country_event = {
	id = WW_hungary.116
	title = WW_hungary.116.t 
	desc = WW_hungary.116.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	# We will have to accept it 
	option = { 
		name = WW_hungary.116.a

		add_political_power = 75
		73 = {
			add_core_of = ROOT
		}

		custom_effect_tooltip = generic_skip_one_line_tt
		
		ROOT = {
			add_opinion_modifier = {
				target = FROM
				modifier = BUL_rejected_our_proposal
			}
		}
		
		hidden_effect = {
			FROM = {
				clr_country_flag = HUN_sent_banatian_demands
			}
		}
	}
}


# Referendum to join Hungary in Vojvodina - event for owner of Vojvodina
country_event = {
	id = WW_hungary.117
	title = WW_hungary.117.t 
	desc = WW_hungary.117.desc
	picture = GFX_report_event_generic_read_write
	
	is_triggered_only = yes

	# If it is what the people wish for
	option = { 
		name = WW_hungary.117.a

		ai_chance = {
			base = 95
		}

		effect_tooltip = {
			IF = {

				limit = {
					ROOT = {	
						OR = {		
							owns_state = 45
							any_subject_country = {
								is_ai = yes
								owns_state = 45
							}
						}
					}
				}

				add_political_power = 50
				add_stability = 0.05

				custom_effect_tooltip = generic_skip_one_line_tt

				FROM = {
					transfer_state = 45
				}

			}
		}

		HUN = { 
			country_event = {
			    id = WW_hungary.118
			    days = 1
			    random = 2
			}
		}
	}

	# The referendum was fraudulent
	option = { 
		name = WW_hungary.117.b
		trigger = {
			NOT = {
				is_subject_of = FROM
			}
		}

		ai_chance = {
			base = 5
		}

		HUN = {
			country_event = {
			    id = WW_hungary.119
			    days = 1
			    random = 2
			}
		}

		hidden_effect = {
			set_country_flag = HUN_from_refused_vojvodinan_referendum_results
		}
	}
}

# X country accepts the referendum
country_event = {
	id = WW_hungary.118
	title = WW_hungary.118.t 
	desc = WW_hungary.118.desc
	picture = GFX_report_event_generic_handshake
	
	is_triggered_only = yes

	# A reasonable response
	option = { 
		name = WW_hungary.118.a

		IF = {
			limit = {
				OR = {
					FROM = {
						owns_state = 45
					}
					FROM = {
						any_subject_country = {
							is_ai = yes
							owns_state = 45
						}
					}
				}
			}
			FROM = {
				add_political_power = 50
				add_stability = 0.05
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			45 = {
				add_core_of = ROOT
			}
			ROOT = {
				transfer_state = 45
			}
		}
	}
}

# X country declares the referendum illegitimate
country_event = {
	id = WW_hungary.119
	title = WW_hungary.119.t 
	desc = WW_hungary.119.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	# We will have to accept it 
	option = { 
		name = WW_hungary.119.a

		add_political_power = 75
		45 = {
			add_core_of = ROOT
		}

		custom_effect_tooltip = generic_skip_one_line_tt
		
		ROOT = {
			add_opinion_modifier = {
				target = FROM
				modifier = BUL_rejected_our_proposal
			}
		}
		
		hidden_effect = {
			FROM = {
				clr_country_flag = HUN_sent_banatian_demands
			}
		}
	}
}


# Referendum to join Hungary in North Transylvania - event for owner of North Transylvania
country_event = {
	id = WW_hungary.120
	title = WW_hungary.120.t 
	desc = WW_hungary.120.desc
	picture = GFX_report_event_generic_read_write
	
	is_triggered_only = yes

	# If it is what the people wish for
	option = { 
		name = WW_hungary.120.a

		ai_chance = {
			base = 95
		}

		effect_tooltip = {
			IF = {

				limit = {
					ROOT = {	
						OR = {		
							owns_state = 76
							any_subject_country = {
								is_ai = yes
								owns_state = 76
							}
						}
					}
				}

				add_political_power = 50
				add_stability = 0.05

				custom_effect_tooltip = generic_skip_one_line_tt

				FROM = {
					transfer_state = 76
				}

			}
		}

		HUN = { 
			country_event = {
			    id = WW_hungary.121
			    days = 1
			    random = 2
			}
		}
	}

	# The referendum was fraudulent
	option = { 
		name = WW_hungary.120.b
		trigger = {
			NOT = {
				is_subject_of = FROM
			}
		}

		ai_chance = {
			base = 5
		}

		HUN = {
			country_event = {
			    id = WW_hungary.122
			    days = 1
			    random = 2
			}
		}

		hidden_effect = {
			set_country_flag = HUN_from_refused_north_transylvanian_referendum_results
		}
	}
}

# X country accepts the referendum
country_event = {
	id = WW_hungary.121
	title = WW_hungary.121.t 
	desc = WW_hungary.121.desc
	picture = GFX_report_event_generic_handshake
	
	is_triggered_only = yes

	# A reasonable response
	option = { 
		name = WW_hungary.121.a

		IF = {
			limit = {
				OR = {
					FROM = {
						owns_state = 76
					}
					FROM = {
						any_subject_country = {
							is_ai = yes
							owns_state = 76
						}
					}
				}
			}
			FROM = {
				add_political_power = 50
				add_stability = 0.05
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			76 = {
				add_core_of = ROOT
			}
			ROOT = {
				transfer_state = 76
			}
		}
	}
}

# X country declares the referendum illegitimate
country_event = {
	id = WW_hungary.122
	title = WW_hungary.122.t 
	desc = WW_hungary.122.desc
	picture = GFX_report_event_hungary_parliament
	
	is_triggered_only = yes

	# We will have to accept it 
	option = { 
		name = WW_hungary.122.a

		add_political_power = 75
		76 = {
			add_core_of = ROOT
		}

		custom_effect_tooltip = generic_skip_one_line_tt
		
		ROOT = {
			add_opinion_modifier = {
				target = FROM
				modifier = BUL_rejected_our_proposal
			}
		}
		
		hidden_effect = {
			FROM = {
				clr_country_flag = HUN_sent_banatian_demands
			}
		}
	}
}

# The Scythe Cross March on Budapest - event for HUN
country_event = {
	id = WW_hungary.123
	title = WW_hungary.123.t
	desc = WW_hungary.123.desc
	picture = GFX_report_event_eng_blackshirt_march

	trigger = {
		original_tag = HUN
		
		date > 1936.4.25

		date < 1939.1.1

		has_civil_war = no

		has_dlc = "Gotterdammerung"
	}

	mean_time_to_happen = { days = 1 }

	hidden = no

	fire_only_once = yes

	# Disperse them and arrest their pathetic leader!
	option = {
		name = WW_hungary.123.a
		ai_chance = {
			base = 100
		}

		add_political_power = 25

		custom_effect_tooltip = generic_skip_one_line_tt

		add_popularity = {
			ideology = fascism
			popularity = -0.03
		}	

		hidden_effect = {
			set_country_flag = HUN_zoltan_boszormeny_arrested_flag
		}
		
	}

	# Open fire and scare them off
	option = {
		name = WW_hungary.123.b
		ai_chance = {
			base = 0
			
			modifier = {
				add = 50
				is_historical_focus_on = no
			}
			
		}

		add_stability = 0.01
		add_war_support = 0.01

		custom_effect_tooltip = generic_skip_one_line_tt

		add_popularity = {
			ideology = fascism
			popularity = 0.05
		}	

		hidden_effect = {
			set_country_flag = HUN_scythe_cross_in_hiding_flag
		}

	}
}

# Stalin Arrives in Georgia
country_event = {
	id = WW_hungary.124
	title = WW_hungary.124.t
	desc = WW_hungary.124.desc
	picture = GFX_report_event_stalin_meeting

	is_triggered_only = yes

	fire_only_once = yes
	
	option = {
		name = WW_hungary.124.a
		
		GEO_ioseb_jughashvili = {
			add_country_leader_role = {
				promote_leader = yes
				country_leader = {
					ideology = stalinism
					expire = "1965.1.1.1"
					traits = { GEO_vengeful_stalinist } 
				}
			}	
		}

		IF = {
			limit = {
				NOT = {
					has_government = communism
				}
			}
			set_politics = {
				ruling_party = communism
				elections_allowed = no
				long_name = SOV_communism_party_russian_long
				name = SOV_communism_party
			}
		}
		
		
	}

	option = {
		name = WW_hungary.124.b
		
		add_political_power = 50
		
	}
}













#############################
### Hungarian News Events ###
#############################


# Hungary announces the Györ Program - news event for everybody
news_event = {
	id = wuw_HUN_news_events.1
	title = wuw_HUN_news_events.1.t
	desc = wuw_HUN_news_events.1.d
	picture = GFX_news_event_HUN_gyor_program_announcement
	
	major = no
	
	is_triggered_only = yes
	
	# They are building up for something... (for everyone except HUN)
	option = {
		name = wuw_HUN_news_events.1.a
		trigger = {
			NOT = {
				TAG = HUN
			}
		}
	}

	# This will secure our future! (for HUN)
	option = {
		name = wuw_HUN_news_events.1.b
		trigger = { TAG = HUN }
	}
} 

# Horthyist Hungary joins the Axis - news event for everybody
news_event = {
	id = wuw_HUN_news_events.2
	title = wuw_HUN_news_events.2.t
	desc = wuw_HUN_news_events.2.d
	picture = GFX_news_event_HUN_alliance_with_germany
	
	major = yes
	
	is_triggered_only = yes
	
	# They are building up for something... (for everyone except HUN and GER)
	option = {
		name = wuw_HUN_news_events.2.a
		trigger = {
			NOT = {
				OR = {
					TAG = HUN
					TAG = GER
				}
			}
		}
	}

	# This will secure our future! (for HUN)
	option = {
		name = wuw_HUN_news_events.2.b
		trigger = { TAG = HUN }
	}

	# This will secure our future! (for GER)
	option = {
		name = wuw_HUN_news_events.2.c
		trigger = { TAG = GER }
	}
} 

news_event = {  #Hungary reforms the Central Powers
	id = wuw_HUN_news_events.3
	title = wuw_HUN_news_events.3.t
	desc = wuw_HUN_news_events.3.desc
	picture = GFX_news_event_royal_visit
	is_triggered_only = yes

	major = yes 

	option = { #It had to happen at some point
		name = wuw_HUN_news_events.3.a
		trigger = {
			NOT = {
				OR = {
					TAG = HUN
					TAG = GER
				}
			}
		}
	}
	option = {
		name = wuw_HUN_news_events.3.b
		trigger = {
			original_tag = HUN
		}
	}
	option = {
		name = wuw_HUN_news_events.3.c
		trigger = {
			original_tag = GER
		}
	}
}

news_event = {  # Hungary declares global dominion
	id = wuw_HUN_news_events.4
	title = wuw_HUN_news_events.4.t
	desc = wuw_HUN_news_events.4.desc
	picture = GFX_news_event_german_speech
	is_triggered_only = yes

	major = yes 

	option = { # They need to be destroyed
		name = wuw_HUN_news_events.4.a
		trigger = {
			NOT = {
				TAG = HUN	
			}
		}
	}
	option = { # The world is our oyster!
		name = wuw_HUN_news_events.4.b
		trigger = {
			original_tag = HUN
		}
	}
}

#Hungary crowns a horthyist king
news_event = {
	id = wuw_HUN_news_events.5
	title = wuw_HUN_news_events.5.t
	desc = wuw_HUN_news_events.5.desc
	picture = GFX_news_event_royal_visit
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = wuw_HUN_news_events.5.a
		trigger = {
			TAG = HUN
		}
	}
	option = {
		name = wuw_HUN_news_events.5.b
		trigger = { 
			NOT = { TAG = HUN }
			OR = {
				has_government = democratic
				has_government = communism
				has_government = fascism
			}
		}
	}
	option = { 
		name = wuw_HUN_news_events.5.c
		trigger = { 
			NOT = { TAG = HUN }
			has_government = neutrality
		}
	}
}

#Hungary crowns a Habsburg king
news_event = {
	id = wuw_HUN_news_events.6
	title = wuw_HUN_news_events.6.t
	desc = wuw_HUN_news_events.6.desc
	picture = GFX_news_event_royal_visit
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = wuw_HUN_news_events.6.a
		trigger = {
			TAG = HUN
		}
	}
	option = {
		name = wuw_HUN_news_events.6.b
		trigger = { 
			NOT = { TAG = HUN }
			OR = {
				has_government = democratic
				has_government = communism
				has_government = fascism
			}
		}
	}
	option = { 
		name = wuw_HUN_news_events.6.c
		trigger = { 
			NOT = { TAG = HUN }
			has_government = neutrality
		}
	}
}

#Restoration of the Hungarian Soviet Republic 
news_event = {
	id = wuw_HUN_news_events.7
	title = wuw_HUN_news_events.7.t
	desc = wuw_HUN_news_events.7.desc
	picture = GFX_news_event_HUN_bela_kun
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = wuw_HUN_news_events.7.a
		trigger = {
			TAG = HUN
		}
	}
	option = {
		name = wuw_HUN_news_events.7.b
		trigger = { 
			NOT = { TAG = HUN }
			OR = {
				has_government = democratic
				has_government = neutrality
				has_government = fascism
			}
		}
	}
	option = { 
		name = wuw_HUN_news_events.7.c
		trigger = { 
			NOT = { TAG = HUN }
			has_government = communism
		}
	}
}

#Proclamation of the Hungarian People's Republic
news_event = {
	id = wuw_HUN_news_events.8
	title = wuw_HUN_news_events.8.t
	desc = wuw_HUN_news_events.8.desc
	picture = GFX_news_event_HUN_leninist_gathering
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = wuw_HUN_news_events.8.a
		trigger = {
			TAG = HUN
		}
	}
	option = {
		name = wuw_HUN_news_events.8.b
		trigger = { 
			NOT = { TAG = HUN }
			OR = {
				has_government = democratic
				has_government = neutrality
				has_government = fascism
			}
		}
	}
	option = { 
		name = wuw_HUN_news_events.8.c
		trigger = { 
			NOT = { TAG = HUN }
			has_government = communism
		}
	}
}

#Hungary Occupies Burgenland
news_event = {
	id = wuw_HUN_news_events.9 
	title = wuw_HUN_news_events.9.t
	desc = wuw_HUN_news_events.9.desc
	picture = GFX_news_event_HUN_hungary_occupies_area
	
	major = no
	
	is_triggered_only = yes
	
	option = {
		name = wuw_HUN_news_events.9.a
		trigger = {
			TAG = HUN
		}
	}
	option = {
		name = wuw_HUN_news_events.9.b
		trigger = { 
			TAG = AUS
		}
	}
	option = { 
		name = wuw_HUN_news_events.8.c
		trigger = { 
			NOT = { 
				OR = {
					TAG = HUN 
					TAG = AUS
				}
			}
		}
	}
}

