########################################
# Major Flavor Events                  #
########################################

namespace = flavor_swe
normal_or_historical_nations = yes


# The Centralization Reforms of Gustav Vasa
country_event = {
	id = flavor_swe.1
	title = flavor_swe.1.t
	desc = flavor_swe.1.d
	picture = {
		trigger = {
			has_dlc = "Lions of the North"
		}
		picture = VASA_REFORMS_eventPicture
	}
	picture = {
		trigger = {
			NOT = { has_dlc = "Lions of the North" }
		}
		picture = REFORM_eventPicture
	}


	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_free_or_tributary_trigger = yes
		is_at_war = no
		NOT = { has_dlc = "Lions of the North" }
	}

	mean_time_to_happen = {
		months = 200
	}

	option = {		# Reform and claim
		name = flavor_swe.1.a
		ai_chance = { factor = 100 }
		if = {
			limit = {
				NOT = { has_completed_all_reforms_trigger = yes }
			}
			add_reform_progress_small_effect = yes
		}
		# Claim Skne
		if = {
			limit = {
				NOT = { owns = 6 }
				NOT = { is_core = 6 }
				NOT = { is_claim = 6 }
				
			}
			add_claim = 6
			random_country = {
				limit = { owns = 6 }
				add_opinion = {
					who = ROOT
					modifier = swe_claims_skane
				}
			}
		}
		
		# Claim Gotland
		if = {
			limit = {
				NOT = { owns = 25 }
				NOT = { is_core = 25 }
				NOT = { is_claim = 25 }
				
			}
			add_claim = 25
			random_country = {
				limit = { owns = 25 }
				add_opinion = {
					who = ROOT
					modifier = swe_claims_gotland
				}
			}
		}
		

		
		
		
		1 = {	# Stockholm
			add_base_tax = 2
		}
		2 = {	#stergtland
			add_base_tax = 1
		}
		7 = {	#Vstergtland
			add_base_tax = 1
		}
		27 = {	#Finland
			add_base_tax = 1
		}

		1 = {	# Stockholm
			add_base_manpower = 2
		}
		27 = {	#Finland
			add_base_manpower = 1
		}
		
		add_adm_power = -50
		add_dip_power = -50
		add_mil_power = -50
		
		add_country_modifier = {
			name = vasa_centralization_reforms
			duration = -1
		}		

	}
	option = {		# Let things be as they are
		name = flavor_swe.1.b
		ai_chance = { factor = 0 }
		add_prestige = -5
	}
}

# The Engelbrekt Rebellion
country_event = {
	id = flavor_swe.3217
	title = "flavor_swe.EVTNAME3217"
	desc = "flavor_swe.EVTDESC3217"
	picture = ANGRY_MOB_eventPicture


	fire_only_once = yes


	trigger = {
		tag = SWE
		junior_union_with = DAN
		NOT = { has_dlc = "Lions of the North" }
	}
	
	mean_time_to_happen = {
		months = 120
	}
	

	
	option = {		# Have Engelbrekt murdered
		name = "flavor_swe.EVTOPTA3217"
		ai_chance = { factor = 20 }
		add_stability_or_adm_power = yes
		add_liberty_desire = -10
	}
	option = {		# Stand by the union
		name = "flavor_swe.EVTOPTB3217"
		ai_chance = { factor = 20 }
		DAN = {
			add_opinion = {
				who = ROOT
				modifier = swe_supports_the_union
			}
		}
		add_liberty_desire = -25
	}
	option = {		# Pick up the torch of freedom!
		name = "flavor_swe.EVTOPTC3217"
		ai_chance = { factor = 60 }
		add_manpower = 10
		add_liberty_desire = 25
		DAN = {
			add_opinion = {
				who = ROOT
				modifier = swe_renounced_the_union
			}
		}
	}
}

# The Kalmar Recess
country_event = {
	id = flavor_swe.3218
	title = "flavor_swe.EVTNAME3218"
	desc = "flavor_swe.EVTDESC3218"
	picture = DIPLOMACY_eventPicture

	fire_only_once = yes


	trigger = {
		tag = SWE
		junior_union_with = DAN
		is_year = 1470
		NOT = { has_dlc = "Lions of the North" }
	}

	mean_time_to_happen = {
		months = 120
	}

	
	option = {		# Reject the Kalmar Recess
		name = "flavor_swe.EVTOPTA3218"
		add_liberty_desire = 25
		DAN = {
			add_opinion = {
				who = ROOT
				modifier = swe_rejected_the_kalmar_recess
			}
		}
	}
	option = {		# Honor the agreement
		name = "flavor_swe.EVTOPTB3218"
		add_stability_or_adm_power = yes
		DAN = {
			add_opinion = {
				who = ROOT
				modifier = swe_honored_the_kalmar_recess
			}
		}
	}
}

# End of the Kalmar Union
country_event = {
	id = flavor_swe.3219
	title = "flavor_swe.EVTNAME3219"
	desc = "flavor_swe.EVTDESC3219"
	picture = DIPLOMACY_eventPicture
	
	fire_only_once = yes
	
	
	trigger = {
		tag = SWE
		junior_union_with = DAN
		is_year = 1490
		NOT = { has_country_flag = swe_had_vasa_event }
	}

	mean_time_to_happen = {
		months = 12
	}

	option = {		# Freedom!
		name = "flavor_swe.EVTOPTA3219"
		custom_tooltip = swe_vasa_leads_the_rebellion_tt
		add_country_modifier = {
			name = swe_vasa_leads_the_rebellion
			duration = 9125
		}		
		hidden_effect = { set_country_flag = swe_support_from_Gustav_vasa }
		DAN = {
			add_opinion = {
				who = ROOT
				modifier = swe_renounced_the_union
			}
		}
		# Danish notification event
		hidden_effect = {
			country_event = { id = flavor_swe.3220 days = 1 }
		}
	}
	option = {		# Stay in the Union
		name = "flavor_swe.EVTOPTB3219"
		ai_chance = { factor = 0 }
		add_liberty_desire = -25
		DAN = {
			add_opinion = {
				who = ROOT
				modifier = swe_supports_the_union
			}
		}
	}
}

# Union in Danger
country_event = {
	id = flavor_swe.3220	
	title = "flavor_swe.EVTNAME3220"
	desc = "flavor_swe.EVTDESC3220"
	picture = DIPLOMACY_eventPicture
	
	is_triggered_only = yes
	
	option = {
		name = "flavor_swe.EVTOPTA3220"
		add_legitimacy = -5
	}
}


# The Parliament of Vsters
country_event = {
	id = flavor_swe.2
	title = flavor_swe.2.t
	desc = flavor_swe.2.d
	picture = LIBERUM_VETO_eventPicture
	
	
	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_free_or_tributary_trigger = yes
		OR = {
			religion = protestant
			religion = reformed
		}
	}

	mean_time_to_happen = {
		months = 64
	}


	option = {		# This is the One True Faith!
		name = flavor_swe.2.a
		add_years_of_income = 1
		add_country_modifier = {
			name = church_reduction
			duration = 1825
		}
	}

}

# Jran Persson
country_event = {
	id = flavor_swe.3281
	title = "flavor_swe.EVTNAME3281"
	desc = "flavor_swe.EVTDESC3281"
	picture = ADVISOR_eventPicture


	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_year = 1555
		NOT = { is_year = 1568 }
		owns = 4		# Bergslagen
	}

	mean_time_to_happen = {
		months = 60
	}

	
	option = {			# An Excellent Minister!
		name = "EXCELLENTMINISTER"
		add_adm_power = 50
		if = {
			limit = {
				NOT = { has_completed_all_reforms_trigger = yes }
			}
			add_reform_progress_small_effect = yes
		}
		define_advisor = {
			type = spymaster
			name = "Jran Persson"
			culture = swedish
			location = 4
			discount = yes
			skill = 2
		}
	}
}

# Per Brahe the Elder
country_event = {
	id = flavor_swe.3280
	title = "flavor_swe.EVTNAME3280"
	desc = "flavor_swe.EVTDESC3280"
	picture = ADVISOR_eventPicture

	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_year = 1550
		NOT = { is_year = 1590 }
		owns = 1		# Uppland
	}

	mean_time_to_happen = {
		months = 240
	}

	
	option = {			# An Excellent Minister!
		name = "EXCELLENTMINISTER"
		add_adm_power = 33
		add_dip_power = 33
		add_mil_power = 33
		if = {
			limit = {
				NOT = { has_completed_all_reforms_trigger = yes }
			}
			add_reform_progress_small_effect = yes
		}
		define_advisor = {
			type = statesman
			name = "Per Brahe den ldre"
			culture = swedish
			discount = yes
			location = 1
			skill = 3
		}
	}
}

# The Walloons in Sweden
country_event = {
	id = flavor_swe.3227
	title = "flavor_swe.EVTNAME3227"
	desc = "flavor_swe.EVTDESC3227"
	picture = INVENTION_eventPicture


	fire_only_once = yes


	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_free_or_tributary_trigger = yes
		OR = {
			iron = 1
			copper = 1
		}
		is_year = 1600
	}

	mean_time_to_happen = {
		months = 240
	}


	option = {		# Encourage Walloon immigration
		name = "flavor_swe.EVTOPTA3227"
		ai_chance = { factor = 90 }
		every_owned_province = {
			limit = {
				region = scandinavia_region
				OR = {
					trade_goods = iron
					trade_goods = copper
				}
			}
			add_province_modifier = {
				name = wallon_immigrants
				duration = -1
			}
		}
		add_innovativeness_small_effect = yes
	}
	option = {		# We are not interested
		name = "flavor_swe.EVTOPTB3227"
		ai_chance = { factor = 10 }
		add_stability_or_adm_power = yes
	}
}

# The Military Reforms of Gustavus Adolphus
country_event = {
	id = flavor_swe.3228
	title = "flavor_swe.EVTNAME3228"
	desc = "flavor_swe.EVTDESC3228"
	picture = REFORM_eventPicture

	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_free_or_tributary_trigger = yes
		MIL = 5
	}

	mean_time_to_happen = {
		months = 64
		
	}


	option = {		# Regional Conscription
		name = "flavor_swe.EVTOPTA3228"
		ai_chance = { factor = 80 }
		PA_random_army_exp_between_5_and_10_effect = yes    #PA: replaced flat gain with random dynamic gain. -- 200e200w
		add_country_modifier = {
			name = swedish_military_reforms
			duration = -1
		}
		add_innovativeness_small_effect = yes
	}
	option = {		# Mercenary Core		TODO
		name = "flavor_swe.EVTOPTB3228"
		ai_chance = { factor = 5 }
		PA_random_army_exp_between_5_and_10_effect = yes    #PA: replaced flat gain with random dynamic gain. -- 200e200w
		add_country_modifier = {
			name = swedish_mercenary_core
			duration = -1
		}
		add_innovativeness_small_effect = yes
		custom_tooltip = generic_more_mercs_available_indefinite_tt
	}
	option = {		# Naval Expansion
		name = "flavor_swe.EVTOPTC3228"
		ai_chance = { factor = 15 }
		PA_random_army_exp_between_5_and_10_effect = yes    #PA: replaced flat gain with random dynamic gain. -- 200e200w
		add_country_modifier = {
			name = swedish_naval_reforms
			duration = -1
		}
		add_innovativeness_small_effect = yes
	}
}



# The Sinking of Vasa
country_event = {
	id = flavor_swe.1628
	title = "flavor_swe.EVTNAME1628"
	desc = "flavor_swe.EVTDESC1628"
	picture = {
		trigger = {
			has_dlc = "Golden Century"
		}
		picture = FLAGSHIP_SUNK_eventPicture
	}
	picture = {
		trigger = {
			NOT = { has_dlc = "Golden Century" }
		}
		picture = SHIP_SAILING_eventPicture
	}
	goto = sink_sink_province	
	fire_only_once = yes
	
	trigger = {
		NOT = { has_country_flag = sca_swe_unsinkable_vasa }
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		dip_tech = 15
		num_of_heavy_ship = 1
		any_owned_province = {
			heavy_ships_in_province = ROOT
		}
	}
	
	mean_time_to_happen = {
		months = 12
	}

	immediate = {
		hidden_effect = {
			random_owned_province = {
				limit = {
					heavy_ships_in_province = ROOT
				}
				save_event_target_as = sink_sink_province
				kill_units = {
					type = heavy_ship
					who = ROOT
					amount = 1
				}
			}
		}
	}
	
	
	option = {		# Our reputation is ruined!
		name = "flavor_swe.EVTOPTA1628"
		add_prestige = -25
		event_target:sink_sink_province = {
			custom_tooltip = flavor_swe.1628.a.tt
		}
		set_country_flag = lost_first_vasa_ship
	}
}

# Per Brahe the Younger
country_event = {
	id = flavor_swe.3282
	title = "flavor_swe.EVTNAME3282"
	desc = "flavor_swe.EVTDESC3282"
	picture = ADVISOR_eventPicture
	
	
	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_year = 1632
		NOT = { is_year = 1680 }
		owns = 1		# Uppland
	}

	mean_time_to_happen = {
		months = 120
	}

	immediate = {
		set_country_flag = SWE_had_event_3282
	}
	
	option = {			# An Excellent Minister!
		name = "EXCELLENTMINISTER"
		add_adm_power = 40
		add_dip_power = 40
		add_mil_power = 40
		define_advisor = {
			type = statesman
			name = "Per Brahe den yngre"
			culture = swedish
			location = 1
			discount = yes
			skill = 3
		}
	}
}


# Magnus Gabriel De la Gardie
country_event = {
	id = flavor_swe.3283
	title = "flavor_swe.EVTNAME3283"
	desc = "flavor_swe.EVTDESC3283"
	picture = ADVISOR_eventPicture
	
	
	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_year = 1652
		NOT = { is_year = 1686 }
		owns = 36		# Estland
	}

	mean_time_to_happen = {
		months = 80
	}

	
	option = {			# An Excellent Minister!
		name = "EXCELLENTMINISTER"
		add_adm_power = 25
		add_dip_power = 25
		add_mil_power = 25
		define_advisor = {
			type = statesman
			name = "Magnus Gabriel De la Gardie"
			culture = swedish
			discount = yes
			location = 36
			skill = 2
		}
	}
}

# The Mercantile Reforms
country_event = {
	id = flavor_swe.3231
	title = "flavor_swe.EVTNAME3231"
	desc = "flavor_swe.EVTDESC3231"
	picture = REFORM_eventPicture

	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_free_or_tributary_trigger = yes
		adm_tech = 16
		
	}

	mean_time_to_happen = {
		months = 120
	}


	option = {		# Mercantilist Policy
		name = "flavor_swe.EVTOPTA3231"
		ai_chance = { factor = 50 }
		add_country_modifier = {
			name = swedish_mercantile_reforms
			duration = -1
		}
	}
	option = {		# Free Trade Policy
		name = "flavor_swe.EVTOPTB3231"
		ai_chance = { factor = 25 }
		add_country_modifier = {
			name = swedish_free_trade_policy
			duration = -1
		}
	}
	option = {		# Colonial Policy
		name = "flavor_swe.EVTOPTC3231"
		ai_chance = { factor = 25 }
		add_country_modifier = {
			name = swedish_colonial_reforms
			duration = -1
		}
	}
}

# The Absolutism
country_event = {
	id = flavor_swe.3232
	title = "flavor_swe.EVTNAME3232"
	desc = "flavor_swe.EVTDESC3232"
	picture = COURT_eventPicture

	fire_only_once = yes


	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_year = 1600
		is_free_or_tributary_trigger = yes
		government = monarchy
	}

	mean_time_to_happen = {
		months = 200
	}


	option = {		# The King shall rule supreme
		name = "flavor_swe.EVTOPTA3232"
		ai_chance = { factor = 90 }
		add_stability = -1
		add_absolutism = 15
		add_country_modifier = {
			name = the_absolutism
			duration = -1
		}
	}
	option = {		# The King must heed the Council
		name = "flavor_swe.EVTOPTB3232"
		ai_chance = { factor = 10 }
		add_stability = 3
	}
}
	
# Axel Oxenstierna
country_event = {
	id = flavor_swe.3233
	title = "flavor_swe.EVTNAME3233"
	desc = "flavor_swe.EVTDESC3233"
	picture = ADVISOR_eventPicture


	fire_only_once = yes
	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_year = 1613
		NOT = { is_year = 1654 }
		owns = 1		# Uppland
	}

	mean_time_to_happen = {
		months = 200
	}


	option = {		# An Excellent Minister!
		name = "EXCELLENTMINISTER"
		add_adm_power = 100
		add_dip_power = 100
		add_mil_power = 100
		set_country_flag = swe_oxenstierna
		add_innovativeness_small_effect = yes
	}
}

# The Court of Appeals
country_event = {
	id = flavor_swe.3235
	title = "flavor_swe.EVTNAME3235"
	desc = "flavor_swe.EVTDESC3235"
	picture = LIBERUM_VETO_eventPicture

	fire_only_once = yes


	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_year = 1610
		NOT = { is_year = 1630 }
	}

	mean_time_to_happen = {
		months = 2000
	}

	option = {		# Ok
		name = "flavor_swe.EVTOPTA3235"
		add_stability_or_adm_power = yes
		add_country_modifier = {
			name = swedish_court_of_appeals
			duration = -1
		}
	}
}

# Oxenstierna's Regency
country_event = {
	id = flavor_swe.3236
	title = "flavor_swe.EVTNAME3236"
	desc = "flavor_swe.EVTDESC3236"
	picture = ADVISOR_eventPicture

	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		has_regency = yes
		has_consort_regency = no
		NOT = { is_year = 1670 }
		has_country_flag = swe_oxenstierna
		has_estate = estate_nobles 
	}

	mean_time_to_happen = {
		months = 4
	}


	option = {		# Grant the aristocracy new privileges
		name = "flavor_swe.EVTOPTA3236"
		ai_chance = { factor = 75 }
		add_stability_or_adm_power = yes
		add_ruler_modifier = {
			name = aristocratic_privileges
			duration = 9125
		}
	}
	option = {		# Resist these tendencies
		name = "flavor_swe.EVTOPTB3236"
		ai_chance = { factor = 25 }
		add_stability = -1
		change_adm = 1
		change_dip = 1
		change_mil = 1
	}
}

# The Quarter Reduction of Charles X
country_event = {
	id = flavor_swe.3237
	title = "flavor_swe.EVTNAME3237"
	desc = "flavor_swe.EVTDESC3237"
	picture = ECONOMY_eventPicture


	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		ADM = 4
		average_home_autonomy = 20
	}

	mean_time_to_happen = {
		months = 120
	}

	
	option = {		# More land to the Crown
		name = "flavor_swe.EVTOPTA3237"
		ai_chance = { factor = 60 }
		
		every_owned_province = {
			add_local_autonomy = -10
		}
		
	}
	option = {		# Increased Contributions
		name = "flavor_swe.EVTOPTB3237"
		ai_chance = { factor = 20 }
		add_years_of_income = 0.25
	}
	option = {		# Align with the Lords
		name = "flavor_swe.EVTOPTC3237"
		ai_chance = { factor = 20 }
		add_stability_or_adm_power = yes
	}
}

# The Quarter Reduction of Christina
country_event = {
	id = flavor_swe.3238
	title = "flavor_swe.EVTNAME3238"
	desc = "flavor_swe.EVTDESC3238"
	picture = ECONOMY_eventPicture

	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_female = yes
		has_regency = no
		
	}

	mean_time_to_happen = {
		months = 120
	}

	option = {		# More land to the Crown
		name = "flavor_swe.EVTOPTC3238"
		ai_chance = { factor = 60 }
		random_owned_province = {
			limit = {
				is_in_capital_area = yes
				culture = swedish
			}
			add_base_tax = 1
		}
		
	}


	option = {		# Align with the Lords
		name = "flavor_swe.EVTOPTA3238"
		ai_chance = { factor = 20 }
		random_owned_province = {
			limit = {
				is_in_capital_area = yes
				culture = swedish
			}
			add_base_manpower = 1
		}
	}
}

# Queen Christina - The Catholic Maiden
country_event = {
	id = 3239
	title = "flavor_swe.EVTNAME3239"
	desc = "flavor_swe.EVTDESC3239"
	picture = POPE_PREACHING_eventPicture


	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_female = yes
		religion_group = christian
		NOT = { religion = catholic }
		ruler_religion = catholic
		has_regency = no
	}

	mean_time_to_happen = {
		months = 64
	}


	option = {		# Abdicate
		name = "flavor_swe.EVTOPTA3239"
		ai_chance = { factor = 75 }
		add_stability_or_adm_power = yes
		kill_ruler = yes
	}
	option = {		# Stay and convert
		name = "flavor_swe.EVTOPTB3239"
		ai_chance = { factor = 0 }
		change_religion = catholic
		PAP = {
			add_opinion = {
				who = ROOT
				modifier = swe_reconverted_to_catholisism
			}
		}
	}
}

# Magnus Gabriel de la Gardie's Regency
country_event = {
	id = flavor_swe.3240
	title = "flavor_swe.EVTNAME3240"
	desc = "flavor_swe.EVTDESC3240"
	picture = DEBATE_REPUBLICAN_eventPicture

	fire_only_once = yes


	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_year = 1600
		has_regency = yes
		has_consort_regency = no
	}

	mean_time_to_happen = {
		months = 32
	}

	immediate = {
		set_country_flag = SWE_had_event_3240
	}
	
	option = {		# Replace the King's Men
		name = "flavor_swe.EVTOPTA3240"
		ai_chance = { factor = 75 }
		add_ruler_modifier = {
			name = aligned_with_aristocracy
			duration = -1
		}
	}
	option = {		# Comply with the King's Will
		name = "flavor_swe.EVTOPTB3240"
		ai_chance = { factor = 25 }
		add_stability = -2
	}
}

# The Great Reduction of Charles XI
country_event = {
	id = flavor_swe.3243
	title = "flavor_swe.EVTNAME3243"
	desc = "flavor_swe.EVTDESC3243"
	picture = ECONOMY_eventPicture

	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		has_regency = no
		is_year = 1650
	}

	mean_time_to_happen = {
		months = 200
	}


	option = {		# Time of reckoning for the nobles
		name = "flavor_swe.EVTOPTA3243"
		ai_chance = { factor = 90 }
		add_ruler_modifier = {
			name = reduction_of_charles_xi
			duration = -1
		}
		random_owned_province = {
			limit = {
				is_capital = no
				is_core = ROOT
				is_in_capital_area = yes
			}
			add_base_tax = 2
			add_base_manpower = 1
			set_province_flag = reduction_of_charles_xi
		}
		random_owned_province = {
			limit = {
				is_capital = no
				is_core = ROOT
				is_in_capital_area = yes
				NOT = { has_province_flag = reduction_of_charles_xi }
			}
			add_base_tax = 1
		}
		random_owned_province = {
			limit = {
				is_capital = no
				is_core = ROOT
				is_in_capital_area = yes
				NOT = { has_province_flag = reduction_of_charles_xi }
			}
			add_base_tax = 1
		}
		
		# Clear flags
		hidden_effect = {
			every_owned_province = {
				limit = {
					has_province_flag = reduction_of_charles_xi
				}
				clr_province_flag = reduction_of_charles_xi
			}
		}
	}
	option = {		# Bargain with the nobles
		name = "flavor_swe.EVTOPTB3243"
		ai_chance = { factor = 10 }
		add_ruler_modifier = {
			name = reduction_compromise
			duration = -1
		}
	}
	option = {		# Leave it be
		name = "flavor_swe.EVTOPTC3243"
		ai_chance = { factor = 0 }
		every_owned_province = {
			add_local_autonomy = 5
		}
	}
}

# The Great Army Reorganization
country_event = {
	id = flavor_swe.3244
	title = "flavor_swe.EVTNAME3244"
	desc = "flavor_swe.EVTDESC3244"
	picture = MILITARY_CAMP_eventPicture


	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_year = 1650
		NOT = { is_year = 1750 }
	}

	mean_time_to_happen = {
		months = 200
	}


	option = {		# Reform the army.
		name = "flavor_swe.EVTOPTA3244"
		ai_chance = { factor = 90 }
		PA_random_army_exp_between_5_and_10_effect = yes    #PA: replaced flat gain with random dynamic gain. -- 200e200w
		add_country_modifier = {
			name = the_great_army_reorganization
			duration = 9125
		}
	}
	option = {		# Maintain present system
		name = "flavor_swe.EVTOPTB3244"
		ai_chance = { factor = 10 }
		add_stability_or_adm_power = yes 
		add_army_tradition = 10 
	}
}

# The Product Act
country_event = {
	id = flavor_swe.3247
	title = "flavor_swe.EVTNAME3247"
	desc = "flavor_swe.EVTDESC3247"
	picture = MERCHANTS_TALKING_eventPicture

	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_year = 1700
		NOT = { is_year = 1800 }
	}

	mean_time_to_happen = {
		months = 200
	}



	option = {		# Enact
		name = "flavor_swe.EVTOPTA3247"
		ai_chance = { factor = 75 }
		add_stability = -1
		add_country_modifier = {
			name = the_product_act
			duration = 9125
		}
	}
	option = {		# The present policy is perfect
		name = "flavor_swe.EVTOPTB3247"
		ai_chance = { factor = 25 }
		add_stability_or_adm_power = yes
	}
}

# Pietism and the Conventicle Edict
country_event = {
	id = flavor_swe.3248
	title = "flavor_swe.EVTNAME3248"
	desc = "flavor_swe.EVTDESC3248"
	picture = RELIGION_eventPicture


	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_year = 1710
		OR = {
			religion = protestant
			religion = reformed
		}
	}

	mean_time_to_happen = {
		months = 240
	}


	option = {		# Sign the Edict
		name = "flavor_swe.EVTOPTA3248"
		ai_chance = { factor = 75 }
		add_country_modifier = {
			name = the_conventicle_edict
			duration = 9125
		}
	}
	option = {		# Allow Pietism
		name = "flavor_swe.EVTOPTB3248"
		ai_chance = { factor = 25 }
		add_country_modifier = {
			name = pietism
			duration = 9125
		}
	}
}

# The Anjala League
country_event = {
	id = flavor_swe.3259
	title = "flavor_swe.EVTNAME3259"
	desc = "flavor_swe.EVTDESC3259"
	picture = MILITARY_CAMP_eventPicture


	fire_only_once = yes
	
	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_free_or_tributary_trigger = yes
		war_with = RUS
		NOT = { exists = FIN }
		any_owned_province = {
			is_core = FIN
		}
		RUS = {
			any_owned_province = {
				OR = {
					is_core = SCA
					is_core = SWE
				}
			}
		}
		num_of_generals = 1
	}

	mean_time_to_happen = {
		months = 12
	}
	
	option = {		# Negotiate with the Traitors
		name = "flavor_swe.EVTOPTA3259"
		ai_chance = { factor = 25 }
		add_stability_or_adm_power = yes
		every_owned_province = {
			limit = {
				NOT = { is_core = FIN }
				OR = {
					area = finland_area
					area = bothnia_area
				}
			}
			add_province_modifier = {
				name = traitorous_officers
				duration = 3650
			}
			add_core = FIN
		}
	}
	option = {		# Assasinate the Leaders
		name = "flavor_swe.EVTOPTB3259"
		ai_chance = { factor = 75 }
		kill_leader = {
			type = random
		}
		RUS = {
			country_event = { id = flavor_rus.31 }
		}
	}
}

# The Dethronement of Gustav IV Adolf
country_event = {
	id = flavor_swe.3260
	title = "flavor_swe.EVTNAME3260"
	desc = "flavor_swe.EVTDESC3260"
	picture = COURT_eventPicture


	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_year = 1750
		is_free_or_tributary_trigger = yes
		NOT = { ADM = 4 }
		NOT = { DIP = 4 }
		NOT = { MIL = 4 }
		is_female = no
	}

	mean_time_to_happen = {
		months = 32
	}


	option = {		# Dethrone him
		name = "flavor_swe.EVTOPTA3260"
		kill_ruler = yes
	}
	option = {		# Let him rule
		name = "flavor_swe.EVTOPTB3260"
		add_stability_or_adm_power = yes
	}
}

# The Reforms of Gustav IV Adolf
country_event = {
	id = flavor_swe.3261
	title = "flavor_swe.EVTNAME3261"
	desc = "flavor_swe.EVTDESC3261"
	picture = REFORM_eventPicture


	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_year = 1750
	}

	mean_time_to_happen = {
		months = 120
	}


	option = {		# Reform the economy
		name = "flavor_swe.EVTOPTA3261"
		ai_chance = { factor = 90 }
		random_owned_province = {
			limit = {
				is_capital = no
				is_core = ROOT
				is_in_capital_area = yes
			}
			add_base_tax = 1
		}
		random_owned_province = {
			limit = {
				is_capital = no
				is_core = ROOT
				is_in_capital_area = yes
			}
			add_base_tax = 1
		}
	}
	option = {		# Go on as before
		name = "flavor_swe.EVTOPTB3261"
		ai_chance = { factor = 10 }
		add_stability_or_adm_power = yes
		add_legitimacy = 10
	}
}

# The Act of Union and Security
country_event = {
	id = flavor_swe.3263
	title = "flavor_swe.EVTNAME3263"
	desc = "flavor_swe.EVTDESC3263"
	picture = REFORM_eventPicture

	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_year = 1750
	}

	mean_time_to_happen = {
		months = 1200
	}


	option = {		# Pass the Act
		name = "flavor_swe.EVTOPTA3263"
		ai_chance = { factor = 90 }
		add_stability = -1
		add_country_modifier = {
			name = the_act_of_union_and_security
			duration = 9125
		}
	}
	option = {		# Refuse the Act
		name = "flavor_swe.EVTOPTB3263"
		ai_chance = { factor = 10 }
		add_stability_or_adm_power = yes
	}
}

# The Great Agricultural Reform
country_event = {
	id = flavor_swe.3264
	title = "flavor_swe.EVTNAME3264"
	desc = "flavor_swe.EVTDESC3264"
	picture = REFORM_eventPicture


	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_year = 1700
	}

	mean_time_to_happen = {
		months = 400
	}


	option = {		# Initiate the reform
		name = "flavor_swe.EVTOPTA3264"
		add_country_modifier = {
			name = the_great_agricultural_reform
			duration = -1
		}
		change_government_reform_progress = -50
		random_owned_province = {
			limit = { 
				region = scandinavia_region 
				trade_goods = grain 
			}
			add_base_production = 1 
		}
		random_owned_province = {
			limit = { 
				region = scandinavia_region 
				trade_goods = grain 
			}
			add_base_production = 1 
		}
		random_owned_province = {
			limit = { 
				region = scandinavia_region 
				trade_goods = grain 
			}
			add_base_production = 1 
		}
		random_owned_province = {
			limit = { 
				region = scandinavia_region 
				trade_goods = grain 
			}
			add_base_production = 1 
		} 
	}
	option = {		# Carry on as before
		name = "flavor_swe.EVTOPTB3264"
		ai_chance = { factor = 10 }
		add_stability_or_adm_power = yes
	}
}


# The Great Dalecarlian Dance
country_event = {
	id = flavor_swe.1743	
	title = "flavor_swe.EVTNAME1743"
	desc = "flavor_swe.EVTDESC1743"
	picture = ANGRY_MOB_eventPicture
	
	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_year = 1700
		owns = 8		# Dalaskogen
		NOT = { stability = 0 }
	}
	
	mean_time_to_happen = {
		months = 200
	}
	
	
	option = {		# Restrict their trade
		name = "flavor_swe.EVTOPTA1743"
		8 = {
			spawn_rebels = {
				type = anti_tax_rebels
				size = 2
			}
		}
	}
	option = {		# Confirm their trade rights
		name = "flavor_swe.EVTOPTB1743"
		ai_chance = { factor = 10 }
		8 = {
			add_province_modifier = {
				name = local_free_trade
				duration = -1
			}
		}
	}
}

# A Swedish City!
country_event = {
	id = flavor_swe.1974
	title = flavor_swe.1974.t
	desc = flavor_swe.1974.d
	picture = REVOLUTION_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		primary_culture = swedish
		183 = {
			owned_by = ROOT
			culture = swedish
			NOT = { is_capital = yes }
		}
	}
	mean_time_to_happen = {
		months = 1
	}
	
	option = {
		name = flavor_swe.1974.a
		set_capital = 183
		183 = { add_base_tax = 2 }
	}
}



########################################
# Minor Flavor Events                  #
########################################

# Erik Dahlberg
country_event = {
	id = flavor_swe.5030
	title = "flavor_swe.EVTNAME5030"
	desc = "flavor_swe.EVTDESC5030"
	picture = ADVISOR_eventPicture
	
	
	fire_only_once = yes
	
	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_year = 1660
		NOT = { is_year = 1703 }
	}

	mean_time_to_happen = {
		months = 100
	}
	

	option = {				# Excellent
		name = "EXCELLENT"
		add_mil_power = 75
	}
}

# Olof Rudbeck publishes 'Atlantica'
country_event = {
	id = flavor_swe.5031
	title = "flavor_swe.EVTNAME5031"
	desc = "flavor_swe.EVTDESC5031"
	picture = ADVISOR_eventPicture


	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_year = 1660
		NOT = { is_year = 1702 }
	}

	mean_time_to_happen = {
		months = 100
	}
	

	option = {				# Excellent
		name = "EXCELLENT"
		add_legitimacy = 25
	}
}

# Emanuel Swedenborg
country_event = {
	id = flavor_swe.5032
	title = "flavor_swe.EVTNAME5032"
	desc = "flavor_swe.EVTDESC5032"
	picture = INVENTION_eventPicture


	fire_only_once = yes
	
	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_year = 1718
		NOT = { is_year = 1772 }
	}

	mean_time_to_happen = {
		months = 100
	}
	

	option = {				# Excellent
		name = "EXCELLENT"
		add_dip_power = 75
		add_innovativeness_small_effect = yes
	}
}

# Carl von Linn
country_event = {
	id = flavor_swe.5033
	title = "flavor_swe.EVTNAME5033"
	desc = "flavor_swe.EVTDESC5033"
	picture = IMPORTANT_STATUE_eventPicture

	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_year = 1737
		NOT = { is_year = 1778 }
	}

	mean_time_to_happen = {
		months = 100
	}
	

	option = {				# Excellent
		name = "EXCELLENT"
		add_prestige = 25
		add_innovativeness_big_effect = yes
	}
}


########################################
# Age of Freedom
########################################

# Arvid Horn and the Age of Freedom
country_event = {
	id = flavor_swe.3246
	title = "flavor_swe.EVTNAME3246"
	desc = "flavor_swe.EVTDESC3246"
	picture = DEBATE_REPUBLICAN_eventPicture

	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		is_year = 1700
		has_country_modifier = the_absolutism
		government = monarchy
		OR = {
			NOT = { ADM = 4 }
			has_regency = yes
			average_home_autonomy = 10
			is_bankrupt = yes
		}
		
	}

	mean_time_to_happen = {
		months = 12
	}


	option = {		# Abandon absolutism
		name = "flavor_swe.EVTOPTA3246"
		ai_chance = {
			factor = 75
			modifier = {
				factor = 0
				stability = 2
			}
		}
		add_stability = 3
		if = {
			limit = {
				has_country_modifier = the_absolutism
			}
			remove_country_modifier = the_absolutism
		}
		add_country_modifier = {
			name = age_of_fredom
			duration = -1
		}
		add_absolutism = -25
	}
	option = {		# Hold on to the reins
		name = "flavor_swe.EVTOPTB3246"
		ai_chance = {
			factor = 25
			modifier = {
				factor = 0
				NOT = { stability = 1 }
			}
		}
		add_stability = -5
	}
}


# The Mercantile Reforms of the Hats
country_event = {
	id = flavor_swe.3253
	title = "flavor_swe.EVTNAME3253"
	desc = "flavor_swe.EVTDESC3253"
	picture = ECONOMY_eventPicture


	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		has_country_flag = swedish_hats
	}

	mean_time_to_happen = {
		months = 120
	}


	option = {		# Time to experiment
		name = "flavor_swe.EVTOPTA3253"
		ai_chance = { factor = 90 }
		add_years_of_income = -0.5
		add_mercantilism = 20
	}
	option = {		# Mercantilism is Dead
		name = "flavor_swe.EVTOPTB3253"
		ai_chance = { factor = 10 }
		add_mercantilism = -10
	}
}



# Swedish Parliament of 1738
country_event = {
	id = flavor_swe.3254
	title = "flavor_swe.EVTNAME3254"
	desc = "flavor_swe.EVTDESC3254"
	picture = LIBERUM_VETO_eventPicture

	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		has_country_modifier = age_of_fredom
		is_year = 1738
		NOT = { is_year = 1739 }
		exists = FRA
		exists = RUS
	}

	mean_time_to_happen = {
		months = 1
	}


	option = {		# Hats
		name = "flavor_swe.EVTOPTA3254"
		clr_country_flag = swedish_caps
		set_country_flag = swedish_hats
		FRA = { 
			add_opinion = {
				who = ROOT
				modifier = swedish_hats
			}
		}
		RUS = {
			add_casus_belli = {
				target = ROOT
				type = cb_insult
				months = 36
			}
		}
		add_dip_power = 100
	}
	option = {		# Caps
		name = "flavor_swe.EVTOPTB3254"
		clr_country_flag = swedish_hats
		set_country_flag = swedish_caps
		RUS = { 
			add_opinion = {
				who = ROOT
				modifier = swedish_caps
			}
		}
		FRA = {
			add_casus_belli = {
				target = ROOT
				type = cb_insult
				months = 36
			}
		}
		add_mil_power = 100
	}
}

# Swedish Parliament of 1746
country_event = {
	id = flavor_swe.3255
	title = "flavor_swe.EVTNAME3255"
	desc = "flavor_swe.EVTDESC3255"
	picture = LIBERUM_VETO_eventPicture

	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		has_country_modifier = age_of_fredom
		is_year = 1746
		NOT = { is_year = 1747 }
		exists = FRA
		exists = RUS
	}

	mean_time_to_happen = {
		months = 1
	}



	option = {		# Hats
		name = "flavor_swe.EVTOPTA3255"
		clr_country_flag = swedish_caps
		set_country_flag = swedish_hats
		FRA = { 
			add_opinion = {
				who = ROOT
				modifier = swedish_hats
			}
		}
		RUS = {
			add_casus_belli = {
				target = ROOT
				type = cb_insult
				months = 36
			}
		}
		add_dip_power = 100
	}
	option = {		# Caps
		name = "flavor_swe.EVTOPTB3255"
		clr_country_flag = swedish_hats
		set_country_flag = swedish_caps
		RUS = { 
			add_opinion = {
				who = ROOT
				modifier = swedish_caps
			}
		}
		FRA = {
			add_casus_belli = {
				target = ROOT
				type = cb_insult
				months = 36
			}
		}
		add_mil_power = 100
	}
}

# The Coup of 1756
country_event = {
	id = flavor_swe.3256
	title = "flavor_swe.EVTNAME3256"
	desc = "flavor_swe.EVTDESC3256"
	picture = ASSASSINATION_eventPicture

	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		has_country_modifier = age_of_fredom
		is_year = 1756
		NOT = { is_year = 1758 }
	}

	mean_time_to_happen = {
		months = 6
	}


	option = {		# Confirm Current Constitution
		name = "flavor_swe.EVTOPTA3256"
		ai_chance = { factor = 50 }
		add_stability_or_adm_power = yes
	}
	option = {		# Agree to more Royal Power
		name = "flavor_swe.EVTOPTB3256"
		add_legitimacy = 20
	}
}

# Swedish Parliament of 1760
country_event = {
	id = 3257
	title = "flavor_swe.EVTNAME3257"
	desc = "flavor_swe.EVTDESC3257"
	picture = LIBERUM_VETO_eventPicture

	fire_only_once = yes

	trigger = {
		tag = ROOT
		has_country_modifier = age_of_fredom
		is_year = 1760
		NOT = { is_year = 1761 }
		exists = FRA
		exists = RUS
	}

	mean_time_to_happen = {
		months = 1
	}

	option = {		# Hats
		name = "flavor_swe.EVTOPTA3257"
		clr_country_flag = swedish_caps
		set_country_flag = swedish_hats
		FRA = { 
			add_opinion = {
				who = ROOT
				modifier = swedish_hats
			}
		}
		RUS = {
			add_casus_belli = {
				target = ROOT
				type = cb_insult
				months = 36
			}
		}
		add_dip_power = 100
	}
	option = {		# Caps
		name = "flavor_swe.EVTOPTB3257"
		clr_country_flag = swedish_hats
		set_country_flag = swedish_caps
		RUS = { 
			add_opinion = {
				who = ROOT
				modifier = swedish_caps
			}
		}
		FRA = {
			add_casus_belli = {
				target = ROOT
				type = cb_insult
				months = 36
			}
		}
		add_mil_power = 100
	}
}

# Swedish Parliament of 1765
country_event = {
	id = flavor_swe.3258
	title = "flavor_swe.EVTNAME3258"
	desc = "flavor_swe.EVTDESC3258"
	picture = LIBERUM_VETO_eventPicture
	
	fire_only_once = yes

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		has_country_modifier = age_of_fredom
		is_year = 1765
		NOT = { is_year = 1766 }
		exists = FRA
		exists = RUS
	}

	mean_time_to_happen = {
		months = 1
	}
	option = {		# Hats
		name = "flavor_swe.EVTOPTB3258"
		clr_country_flag = swedish_caps
		set_country_flag = swedish_hats
		FRA = { 
			add_opinion = {
				who = ROOT
				modifier = swedish_hats
			}
		}
		RUS = {
			add_casus_belli = {
				target = ROOT
				type = cb_insult
				months = 36
			}
		}
		add_dip_power = 100
	}
	option = {		# Caps
		name = "flavor_swe.EVTOPTA3258"
		clr_country_flag = swedish_hats
		set_country_flag = swedish_caps
		RUS = { 
			add_opinion = {
				who = ROOT
				modifier = swedish_caps
			}
		}
		FRA = {
			add_casus_belli = {
				target = ROOT
				type = cb_insult
				months = 36
			}
		}
		add_mil_power = 100
	}
}

# The Coup d'Etat and the Enlightened Despot
country_event = {
	id = flavor_swe.3262
	title = "flavor_swe.EVTNAME3262"
	desc = "flavor_swe.EVTDESC3262"
	picture = COURT_eventPicture

	trigger = {
		OR = {
			tag = SWE
			AND = {
				was_tag = SWE
				NOT = { exists = SWE }
				tag = SCA
			}		
		}
		has_country_modifier = age_of_fredom
		NOT = { has_reform = celestial_empire }
		government = monarchy
		OR = {
			MIL = 5
			ADM = 5
			DIP = 5
		}
		has_regency = no
	}

	mean_time_to_happen = {
		months = 32
	}


	option = {		# The King shall rule!
		name = "flavor_swe.EVTOPTA3262"
		remove_country_modifier = age_of_fredom
		add_government_reform = political_absolutism_reform
		#set_legacy_government = enlightened_despotism
	}
	option = {		# No more tyrants!
		name = "flavor_swe.EVTOPTB3262"
		add_stability_or_adm_power = yes
		remove_country_modifier = age_of_fredom
	}
}



########################################
# DLC Events for Sweden
#
# written by Ogulcan Yildirim
########################################

# The League War - Swedish Contribution
country_event = {
	id = flavor_swe.101
	title = "flavor_swe.101.t"
	desc = "flavor_swe.101.desc"
	picture = SWEDEN_LEAGUE_WAR_eventPicture
	trigger = {
		has_dlc = "Art of War"
		OR = {
			AND = {
				has_country_flag = swe_catholic_modifier_for_league_war
				in_league = catholic
			}
			AND = {
				has_country_flag = swe_reformation_modifier_for_league_war
				in_league = protestant
			}
		}
		NOT = { has_country_modifier = swe_fight_for_the_catholic_league }
		NOT = { has_country_modifier = swe_fight_for_the_protestant_league }
		is_in_league_war = yes
	}
	fire_only_once = yes
	mean_time_to_happen = { months = 1 }
	option = {		# Let us show these infidels what Swedish soldiers are made of!
		name = "flavor_swe.101.a"
		if = {
			limit = { has_country_flag = swe_catholic_modifier_for_league_war }
			add_country_modifier = {
				name = swe_fight_for_the_catholic_league
				duration = -1
				desc = swe_fight_for_league_tt
			}
		}
		if = {
			limit = { has_country_flag = swe_reformation_modifier_for_league_war }
			add_country_modifier = {
				name = swe_fight_for_the_protestant_league
				duration = -1
				desc = swe_fight_for_league_tt
			}
		}
		ai_chance = {
			factor = 1
		}
	}
}

# The League War - End of Swedish Contribution
country_event = {
	id = flavor_swe.1010
	title = "flavor_swe.1010.t"
	desc = "flavor_swe.1010.desc"
	picture = SWEDEN_LEAGUE_WAR_eventPicture
	trigger = {
		OR = {
			has_country_modifier = swe_fight_for_the_catholic_league
			has_country_modifier = swe_fight_for_the_protestant_league
		}
		is_in_league_war = no
	}
	fire_only_once = yes
	mean_time_to_happen = { months = 1 }
	option = {		# It was a good run
		name = "flavor_swe.1010.a"
		remove_country_modifier = swe_fight_for_the_catholic_league
		remove_country_modifier = swe_fight_for_the_protestant_league
		ai_chance = {
			factor = 1
		}
	}
}

# The Engelbrekt Rebellion - Mission Reward
country_event = {
	id = flavor_swe.102
	title = "flavor_swe.EVTNAME3217"
	desc = "flavor_swe.102.desc"
	picture = ANGRY_MOB_eventPicture
	is_triggered_only = yes
	major = yes
	major_trigger = {
		OR = {
			tag = NOR
			tag = DAN
		}
	}
	option = {		# The time has not come yet
		name = "flavor_swe.102.a"
		ai_chance = { factor = 20 }
		DAN = {
			add_opinion = {
				who = ROOT
				modifier = swe_supports_the_union
			}
		}
		add_liberty_desire = -25
	}
	option = {		# Pick up the torch of freedom!
		name = "flavor_swe.102.b"
		ai_chance = { factor = 60 }
		add_manpower = 10
		add_liberty_desire = 25
		DAN = {
			add_opinion = {
				who = ROOT
				modifier = swe_renounced_the_union
			}
		}
	}
}

# The Allotment System of Sweden
country_event = {
	id = flavor_swe.103
	title = "flavor_swe.103.t"
	desc = "flavor_swe.103.desc"
	picture = CAROLEANS_eventPicture
	is_triggered_only = yes

	option = {		# The time has not come yet
		name = "flavor_swe.103.a"
		unlock_government_reform = {
			government_reform = allotment_system
		}
		if = {
			limit = { government = monarchy }
			add_government_reform = allotment_system
		}
		PA_random_army_exp_between_5_and_10_effect = yes    #PA: replaced flat gain with random dynamic gain. -- 200e200w
		ai_chance = { 
			factor = 100
		}
	}
}

# A new rebellion leader rises!
country_event = {
	id = flavor_swe.104
	title = flavor_swe.104.t
	desc = flavor_swe.104.desc
	picture = VASA_eventPicture
	is_triggered_only = yes
	major = yes
	major_trigger = {
		OR = {
			tag = DAN
			tag = NOR
		}
	}

	immediate = {
		hidden_effect = {
			set_country_flag = swe_had_vasa_event
		}
	}
	
	option = {		# A vasa will lead our armies!
		name = "flavor_swe.104.a"
		if = {
			limit = {
				NOT = { is_year = 1490 }
			}
			define_general = {
				name = "Johan Vasa"
				shock = 4
				fire = 1
				manuever = 4
				siege = 1
			}
			hidden_effect = { set_country_flag = swe_support_from_Johan_vasa }
		}
		else_if = {
			limit = {
				NOT = { is_year = 1520 }
			}
			define_general = {
				name = "Erik Vasa"
				shock = 4
				fire = 1
				manuever = 4
				siege = 1
			}
			hidden_effect = { set_country_flag = swe_support_from_Erik_vasa }
		}
		else = {
			define_general = {
				name = "Gustav Vasa"
				shock = 4
				fire = 1
				manuever = 4
				siege = 1
			}
			hidden_effect = { set_country_flag = swe_support_from_Gustav_vasa }
		}
		add_country_modifier = {
			name = swe_any_vasa_leads_the_rebellion
			duration = 10950
		}
		custom_tooltip = swe_vasa_will_lead_sweden_tt
		ai_chance = {
			factor = 1
		}
	}
}

# Vasa's Victory
country_event = {
	id = flavor_swe.105
	title = flavor_swe.105.t
	desc = flavor_swe.105.desc
	picture = GOOD_WITH_MONARCH_eventPicture
	is_triggered_only = yes
	
	option = {		# VICTORY OVER THE DANES
		name = "flavor_swe.105.a"
		remove_country_modifier = swe_any_vasa_leads_the_rebellion
		if = {
			limit = {
				has_leader = "Johan Vasa"
			}
			define_leader_to_ruler = {
				name = "Johan Vasa"
				adm = 6
				dip = 4
				mil = 4
				claim = 50
				fixed = yes
			}
		}
		else_if = {
			limit = {
				has_leader = "Erik Vasa"
			}
			define_leader_to_ruler = {
				name = "Erik Vasa"
				adm = 6
				dip = 4
				mil = 4
				claim = 50
				fixed = yes
			}
		}
		else_if = {
			limit = {
				has_leader = "Gustav Vasa"
			}
			define_leader_to_ruler = {
				name = "Gustav Vasa"
				adm = 6
				dip = 4
				mil = 4
				claim = 50
				fixed = yes
			}
		}
		else_if = {
			limit = {
				NOT = { is_year = 1490 }
			}
			define_ruler = {
				name = "Johan I"
				dynasty = "Vasa"
				age = 25
				adm = 6
				dip = 4
				mil = 4
			}
		}
		else_if = {
			limit = {
				NOT = { is_year = 1520 }
			}
			define_ruler = {
				name = "Erik I"
				dynasty = "Vasa"
				age = 25
				adm = 6
				dip = 4
				mil = 4
			}
		}
		else = {
			define_ruler = {
				name = "Gustav I"
				dynasty = "Vasa"
				age = 25
				adm = 6
				dip = 4
				mil = 4
			}
			hidden_effect = {
				add_ruler_personality = lawgiver_personality
				add_ruler_personality = industrious_personality
			}
		}
		add_ruler_modifier = {
			name = swe_rise_of_a_new_dynasty
			duration = -1
		}
		remove_heir = {}
		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				OR = {
					AND = {
						adm = 4
						dip = 4
						mil = 4
					}
					AND = {
						adm = 3
						dip = 3
						mil = 5
					}
					AND = {
						adm = 3
						dip = 5
						mil = 3
					}
					AND = {
						adm = 5
						dip = 3
						mil = 3
					}
				}
			}
		}
	}
	option = {	#I want to keep the current king though
		name = "flavor_swe.105.b"
		remove_country_modifier = swe_any_vasa_leads_the_rebellion
		add_legitimacy = 30
		add_ruler_modifier = {
			name = swe_rise_of_a_new_dynasty
			duration = -1
		}
		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				NOT = {
					OR = {
						AND = {
							adm = 4
							dip = 4
							mil = 4
						}
						AND = {
							adm = 3
							dip = 3
							mil = 5
						}
						AND = {
							adm = 3
							dip = 5
							mil = 3
						}
						AND = {
							adm = 5
							dip = 3
							mil = 3
						}
					}
				}
			}
		}
	}

	after = {
		clr_country_flag = swe_support_from_Johan_vasa
		clr_country_flag = swe_support_from_Erik_vasa
		clr_country_flag = swe_support_from_Gustav_vasa
	}
}

# Foreign Supporters
country_event = {
	id = flavor_swe.106
	title = flavor_swe.106.t
	desc = flavor_swe.106.desc
	picture = DIPLOMACY_eventPicture
	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			every_country = {
				limit = {
					NOT = { overlord_of = ROOT }
					OR = {
						is_rival = DAN
						is_enemy = DAN
					}
				}
				set_country_flag = swe_flag_for_supporters
			}
		}
	}

	after = {
		hidden_effect = {
			every_country = {
				limit = {
					has_country_flag = swe_flag_for_supporters
				}
				clr_country_flag = swe_flag_for_supporters
			}
		}
	}

	option = {	#Accept foreign alliances
		name = flavor_swe.106.a
		trigger = {
			hidden_trigger = {
				any_known_country = {
					has_country_flag = swe_flag_for_supporters
				}
			}
		}
		custom_tooltip = flavor_swe.106.a.tt
		hidden_effect = {
			every_country = {
				limit = {
					has_country_flag = swe_flag_for_supporters
					NOT = { is_supporting_independence_of = ROOT }
					has_opinion = { who = ROOT value = 0 }
				}
				country_event = {
					id = flavor_swe.107
				}
			}
		}

		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				overlord = {
					reverse_has_opinion = {
						who = ROOT
						value = 100
					}
				}
			}
		}
	}

	option = {	#We will defeat the Danes on our own
		name = flavor_swe.106.b
		add_country_modifier = {
			name = swe_fight_for_independence
			duration = -1
			desc = swe_fight_for_independence_tt
		}
		custom_tooltip = flavor_swe.106.b.tt

		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				overlord = {
					reverse_has_opinion = {
						who = ROOT
						value = 100
					}
				}
			}
		}
	}

	option = {	#The Kalmar Union is our future, actually
		name = flavor_swe.106.c
		add_liberty_desire = -50

		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				overlord = {
					NOT = {
						reverse_has_opinion = {
							who = ROOT
							value = 100
						}
					}
				}
			}
		}
	}
}

# End of the Fighting of our own
country_event = {
	id = flavor_swe.1060
	title = flavor_swe.1060.t
	desc = {
		trigger = {
			is_at_war = no
			has_country_flag = swe_defeated_denmark
		}
		desc = flavor_swe.1060.desc.a
	}
	desc = {
		trigger = {
			is_at_war = yes
			num_of_allies = 1
		}
		desc = flavor_swe.1060.desc.b
	}
	desc = {
		trigger = {
			is_at_war = no
			NOT = { has_country_flag = swe_defeated_denmark }
		}
		desc = flavor_swe.1060.desc.c
	}
	picture = {
		picture = GOOD_WITH_MONARCH_eventPicture
		trigger = {
			is_at_war = no
			has_country_flag = swe_defeated_denmark
		}
	}
	picture = {
		picture = BAD_WITH_MONARCH_eventPicture
		trigger = {
			is_at_war = yes
			num_of_allies = 1
		}
	}
	picture = {
		picture = DIPLOMACY_eventPicture
		trigger = {
			is_at_war = no
			NOT = { has_country_flag = swe_defeated_denmark }
		}
	}
	trigger = {
		has_country_modifier = swe_fight_for_independence
		is_subject = no
		OR = {
			is_at_war = no
			AND = {
				is_in_war = {
					attacker_leader = ROOT
					defender_leader = DAN
				}
				num_of_allies = 1
			}
		}
	}
	fire_only_once = yes

	mean_time_to_happen = {
		days = 1
	}

	option = {	#We have won our independence!
		name = flavor_swe.1060.a
		trigger = {
			is_at_war = no
			has_country_flag = swe_defeated_denmark
		}
		remove_country_modifier = swe_fight_for_independence
		add_prestige = 25
		add_legitimacy = 10
		add_splendor = 200
		add_adm_power = 100
		add_dip_power = 100
		add_mil_power = 100
		custom_tooltip = flavor_swe.1060.a.tt
		hidden_effect = {
			every_country = {
				limit = {
					OR = {
						is_rival = DAN
						is_enemy = DAN
						ai_attitude = {
							who = DAN
							attitude = attitude_threatened
						}
						ai_attitude = {
							who = DAN
							attitude = attitude_hostile
						}
						ai_attitude = {
							who = DAN
							attitude = attitude_outraged
						}
					}
				}
				add_opinion = {
					who = ROOT
					modifier = swe_defeated_denmark_alone
				}
			}
		}

		ai_chance = {
			factor = 1
		}
	}

	option = {	#We had to rely on allies after all...
		name = flavor_swe.1060.b
		trigger = {
			is_in_war = {
				attacker_leader = ROOT
				defender_leader = DAN
			}
			num_of_allies = 1
		}
		remove_country_modifier = swe_fight_for_independence
		add_prestige = -15
		add_legitimacy = -20

		ai_chance = {
			factor = 1
		}
	}

	option = {	#Huh... that was easier than expected
		name = flavor_swe.1060.c
		trigger = {
			is_at_war = no
			NOT = { has_country_flag = swe_defeated_denmark }
		}
		remove_country_modifier = swe_fight_for_independence

		ai_chance = {
			factor = 1
		}
	}
}

# Choice of supporting Sweden's independence
country_event = {
	id = flavor_swe.107
	title = flavor_swe.107.t
	desc = flavor_swe.107.desc
	picture = DIPLOMACY_eventPicture
	is_triggered_only = yes
	major = yes
	major_trigger = {
		OR = {
			tag = DAN
			tag = SWE
			tag = NOR
		}
	}
	trigger = {
		FROM = { is_subject = yes }
	}

	option = {	#We will help the Swedes!
		name = flavor_swe.107.a
		support_independence_of = FROM

		ai_chance = {
			factor = 100
			modifier = {
				factor = 100
				OR = {
					is_rival = DAN
					is_enemy = DAN
				}
			}
			modifier = {
				factor = 0
				alliance_with = DAN
			}
		}
	}

	option = {	#Nah, not feeling it
		name = flavor_swe.107.b
		FROM = {
			add_opinion = {
				who = ROOT
				modifier = swe_refused_to_support_independence
			}
			overlord = {
				add_opinion = {
					who = ROOT
					modifier = dan_refused_to_support_independence
				}
			}
		}

		ai_chance = {
			factor = 0
			modifier = {
				factor = 100
				alliance_with = DAN
			}
		}
	}
}

# Support from the Estates
country_event = {
	id = flavor_swe.108
	title = flavor_swe.108.t
	desc = flavor_swe.108.desc
	picture = NOBLE_ESTATE_DEMANDS_eventPicture

	is_triggered_only = yes

	immediate = { hidden_effect = { set_country_flag = swe_in_estate_event } }
	after = { hidden_effect = { clr_country_flag = swe_in_estate_event } }

	option = {	#We take the Support from the Nobles
		name = flavor_swe.108.a
		trigger = {
			num_of_estate_privileges = {
				estate = estate_nobles
				value = 3
			}
		}
		define_advisor = {
			type = commandant
			skill = 2
			cost_multiplier = 0.25
		}
		add_country_modifier = {
			name = swe_debt_with_the_nobles
			duration = -1
		}
		custom_tooltip = swe_in_debt_with_the_nobles_tt
		ai_chance = {
			factor = 0
		}
	}

	option = {	#We take the Support from the Burghers
		name = flavor_swe.108.b
		trigger = {
			num_of_estate_privileges = {
				estate = estate_burghers
				value = 3
			}
			any_owned_province = {
				has_port = yes
			}
		}
		random_owned_province = {
			limit = {
				has_port = yes
			}
			add_unit_construction = {
				type = galley
				cost = 0
				speed = 0.1
				amount = 10
			}
		}
		add_country_modifier = {
			name = swe_debt_with_the_burghers
			duration = -1
		}
		custom_tooltip = swe_in_debt_with_the_burghers_tt
		ai_chance = {
			factor = 0
		}
	}

	option = {	#We take the Support from the Clergy
		name = flavor_swe.108.c
		trigger = {
			num_of_estate_privileges = {
				estate = estate_church
				value = 3
			}
		}
		if = {
			limit = {
				religion = catholic
			}
			add_papal_influence = 200
			1 = { add_cardinal = yes }
		}
		else_if = {
			limit = {
				religion = protestant
			}
			add_church_power = 200
			add_years_of_income = 0.25
		}
		else_if = {
			limit = {
				religion = reformed
			}
			add_fervor = 100
			add_years_of_income = 0.25
		}
		else_if = {
			limit = {
				religion = orthodox
			}
			add_patriarch_authority = 20
			add_years_of_income = 0.25
		}
		else = {
			add_years_of_income = 0.5
		}
		add_country_modifier = {
			name = swe_debt_with_the_clergy
			duration = -1
		}
		custom_tooltip = swe_in_debt_with_the_clergy_tt
		ai_chance = {
			factor = 0
		}
	}

	option = {	#We need nobody but ourselves
		name = flavor_swe.108.d
		add_prestige = 20
		ai_chance = {
			factor = 1
		}
	}
}

# Free Support from the Estates
country_event = {
	id = flavor_swe.1080
	title = flavor_swe.1080.t
	desc = flavor_swe.1080.desc
	picture = NOBLE_ESTATE_eventPicture

	is_triggered_only = yes

	immediate = { hidden_effect = { set_country_flag = swe_in_estate_event } }
	after = { hidden_effect = { clr_country_flag = swe_in_estate_event } }

	option = {	#We take the Support from the Nobles
		name = flavor_swe.108.a
		define_advisor = {
			type = commandant
			skill = 2
			cost_multiplier = 0.25
		}
		ai_chance = {
			factor = 1
		}
	}

	option = {	#We take the Support from the Burghers
		name = flavor_swe.108.b
		trigger = {
			any_owned_province = {
				has_port = yes
			}
		}
		random_owned_province = {
			limit = {
				has_port = yes
			}
			add_unit_construction = {
				type = galley
				cost = 0
				speed = 0.1
				amount = 10
			}
		}
		ai_chance = {
			factor = 1
		}
	}

	option = {	#We take the Support from the Clergy
		name = flavor_swe.108.c
		if = {
			limit = {
				religion = catholic
			}
			add_papal_influence = 200
			1 = { add_cardinal = yes }
		}
		else_if = {
			limit = {
				religion = protestant
			}
			add_church_power = 200
			add_years_of_income = 0.25
		}
		else_if = {
			limit = {
				religion = reformed
			}
			add_fervor = 100
			add_years_of_income = 0.25
		}
		else_if = {
			limit = {
				religion = orthodox
			}
			add_patriarch_authority = 20
			add_years_of_income = 0.25
		}
		else = {
			add_years_of_income = 0.5
		}
		ai_chance = {
			factor = 1
		}
	}
}

# Formation of the Sweden Empire
country_event = {
	id = flavor_swe.109
	title = flavor_swe.109.t
	desc = flavor_swe.109.desc
	picture = EMPEROR_eventPicture
	is_triggered_only = yes

	option = {
		name = flavor_swe.109.a
		if = {
			limit = { NOT = { government_rank = 3 } }
			set_government_rank = 3
		}
		add_country_modifier = {
			name = sca_great_empire_of_scandinavia
			duration = -1
		}
		custom_tooltip = allow_earlier_scandinavia_formation_tt
		hidden_effect = { set_country_flag = can_form_scandinavia_earlier }
		ai_chance = {
			factor = 1
		}
	}
}

# Pillage of Lbeck
country_event = {
	id = flavor_swe.110
	title = flavor_swe.110.t
	desc = flavor_swe.110.desc
	picture = SIEGE_eventPicture
	is_triggered_only = yes

	option = {	#Barbarians...
		name = flavor_swe.110.a
		tooltip = {
			45 = {
				add_loot_from_rich_province_general_effect = {
					LOOTER = ROOT
				}
			}
		}
		ai_chance = {
			factor = 1
		}
	}
}

# Gustav I Vasa's Victory
country_event = {
	id = flavor_swe.111
	title = flavor_swe.105.t
	desc = flavor_swe.105.desc
	picture = GOOD_WITH_MONARCH_eventPicture
	is_triggered_only = yes
	
	option = {		# Gustav I Vasa will lead us to victory!
		name = "flavor_swe.105.a"
		remove_country_modifier = swe_vasa_leads_the_rebellion
		define_ruler = {
			name = "Gustav I"
			dynasty = "Vasa"
			age = 27
			adm = 6
			dip = 4
			mil = 4
		}
		if = {
			limit = { has_heir = yes }
			remove_heir = {}
		}
		hidden_effect = {
			add_ruler_personality = lawgiver_personality
			add_ruler_personality = industrious_personality
		}
		add_ruler_modifier = {
			name = swe_rise_of_a_new_dynasty
			duration = -1
		}
	}
	option = {	#I want to keep the current king though
		name = "flavor_swe.105.b"
		remove_country_modifier = swe_any_vasa_leads_the_rebellion
		add_legitimacy = 30
		add_ruler_modifier = {
			name = swe_rise_of_a_new_dynasty
			duration = -1
		}
	}

	after = {
		clr_country_flag = swe_support_from_Johan_vasa
		clr_country_flag = swe_support_from_Erik_vasa
		clr_country_flag = swe_support_from_Gustav_vasa
	}
}

# Investment of Dalaskogen
country_event = {
	id = flavor_swe.112
	title = flavor_swe.112.t
	desc = flavor_swe.112.desc
	picture = FALUN_COPPER_MINE_eventPicture
	is_triggered_only = yes

	option = {	#Invest into the Copper mine itself
		name = flavor_swe.112.a
		trigger = {
			has_dlc = "Leviathan"
			8 = {
				NOT = {
					has_great_project = {
						type = falun_copper_mine
						tier = 2
					}
				}
				NOT = {
					has_great_project = {
						type = falun_copper_mine
						tier = 3
					}
				}
			}
		}
		8 = {
			set_great_project_tier_2 = {
				type = falun_copper_mine
			}
		}
		add_treasury = -1500

		ai_chance = {
			factor = 100
		}
	}

	option = {	#Expand into the infrastructure around the Mine
		name = flavor_swe.112.b
		trigger = {
			8 = {
				NOT = { trade_goods = gold }	#Will never be true, but better safe tahn 
			}
		}
		8 = {
			if = {
				limit = {
					has_manufactory_trigger = yes
				}
				add_base_production = 4
			}
			else = {
				add_manufactory = yes
			}
			if = {
				limit = {
					has_building = counting_house
				}
				add_base_production = 2
			}
			else = {
			add_building = counting_house
			}
		}
		add_treasury = -750
		
		ai_chance = {
			factor = 50
		}
	}

	option = {	#We don't have to do anything
		name = flavor_swe.112.c
		8 = {
			add_base_production = 4
		}
		
		ai_chance = {
			factor = 25
		}
	}
}

#Construction of the Vasa (II)
country_event = {
	id = flavor_swe.113
	title = flavor_swe.113.t
	desc = {
		desc = flavor_swe.113.desc.a
		trigger = {
			NOT = { has_country_flag = lost_first_vasa_ship }
		}
	}
	desc = {
		desc = flavor_swe.113.desc.b
		trigger = {
			has_country_flag = lost_first_vasa_ship
		}
	}
	picture = SHIP_SAILING_eventPicture
	is_triggered_only = yes
	goto = vasa_ii_province
	immediate = { 
		hidden_effect = { 
			set_country_flag = sca_swe_unsinkable_vasa 
			random_owned_province = {
				limit = {
					has_port = yes
				}
				save_event_target_as = vasa_ii_province
			}
		} 
	}
	
	option = {	#This will make a fine flagship!
		name = flavor_swe.113.a
		trigger = {
			NOT = { has_country_flag = lost_first_vasa_ship }
		}
		add_navy_tradition = 20
		event_target:vasa_ii_province = {
			create_flagship = {
				name = "Vasa"
				type = heavy_ship
			}
		}
		create_admiral = {
			tradition = 100
		}
	}
	
	option = {	#And this time it will NOT sink!
		name = flavor_swe.113.b
		trigger = {
			has_country_flag = lost_first_vasa_ship
		}
		add_navy_tradition = 20
		add_prestige = 10
		event_target:vasa_ii_province = {
			create_flagship = {
				name = "Vasa II, the Unsinkable"
				type = heavy_ship
			}
		}
		create_admiral = {
			tradition = 100
		}
	}
}

# Monopolization of Copper
country_event = {
	id = flavor_swe.114
	title = flavor_swe.114.t
	desc = flavor_swe.114.desc
	picture = TRADE_GOODS_METALS_AND_MINING_EQUIPENT_eventPicture
	is_triggered_only = yes
	major = yes
	
	option = {	#Monopolize the Copper Market
		name = "flavor_swe.114.a"
		add_mercantilism = 5
		change_price = {
			trade_goods = copper
			key = SWEDEN_COPPER_MONOPOLIZATION
			value = 1.5
			duration = 14600
		}
		change_price = {
			trade_goods = iron
			key = SWEDEN_IRON_MONOPOLIZATION
			value = 0.25
			duration = 14600
		}
		ai_chance = {
			factor = 0
		}
	}
	
	option = {	#Flood the Copper Market
		name = "flavor_swe.114.b"
		add_years_of_owned_provinces_production_income = {
			years = 10
			trigger = {
				OR = {
					province_id = 8
					province_id = 4
					province_id = 5
					province_id = 1985
				}
			}
			custom_tooltip = swe_industrialize_sweden_tt
		}
		change_price = {
			trade_goods = copper
			key = SWEDEN_COPPER_FLOOD
			value = -0.5
			duration = 14600
		}
		change_price = {
			trade_goods = iron
			key = SWEDEN_IRON_FLOOD
			value = -0.15
			duration = 14600
		}
		ai_chance = {
			factor = 0
		}
	}
	
	option = {	#Keep it moderate
		name = "flavor_swe.114.c"
		add_years_of_owned_provinces_production_income = {
			years = 5
			trigger = {
				OR = {
					province_id = 8
					province_id = 4
					province_id = 5
					province_id = 1985
				}
			}
			custom_tooltip = swe_industrialize_sweden_tt
		}
		add_mercantilism = 2
		change_price = {
			trade_goods = copper
			key = SWEDEN_COPPER
			value = 0.2
			duration = 14600
		}
		change_price = {
			trade_goods = iron
			key = SWEDEN_IRON
			value = 0.1
			duration = 14600
		}
		ai_chance = {
			factor = 1
		}
	}
}

# The universities of Lund and Uppsala
country_event = {
	id = flavor_swe.119
	title = flavor_swe.119.t
	desc = flavor_swe.119.desc
	picture = UNIVERSITY_eventPicture
	is_triggered_only = yes
	
	option = {
		name = "flavor_swe.119.a"
		add_adm_power = 200
		change_innovativeness = 3
		1 = { add_building = university }
		6 = { add_building = university }
	}
}

# Fate of Scania
country_event = {
	id = flavor_swe.120
	title = flavor_swe.120.t
	desc = flavor_swe.120.desc
	picture = CONQUEST_eventPicture
	is_triggered_only = yes
	
	option = {	#Assimilate the Danes
		name = "flavor_swe.120.a"
		add_stability = -1
		skaneland_area = {
			limit = {
				owned_by = ROOT
				NOT = { culture = ROOT }
			}
			change_culture = ROOT
			add_local_autonomy = -100
			add_nationalism = -10
		}
		add_historical_rival = DAN
		DAN = { add_historical_rival = ROOT }
		6 = {
			spawn_rebels = {
				type = nationalist_rebels
				friend = DAN
				size = 2
			}
		}
		ai_chance = {
			factor = 1
		}
	}
	
	option = {	#With time they will learn to accept us
		name = "flavor_swe.120.b"
		add_stability_or_adm_power = yes
		skaneland_area = {
			limit = {
				owned_by = ROOT
				NOT = { culture = ROOT }
			}
			add_local_autonomy = 10
		}
		ai_chance = {
			factor = 0
		}
	}
}

# Fate of an independent Sweden
country_event = {
	id = flavor_swe.121
	title = flavor_swe.121.t
	desc = flavor_swe.121.desc
	picture = MILITARY_CAMP_eventPicture
	fire_only_once = yes
	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			clr_country_flag = swe_declared_independence_war
		}
	}
	
	option = {	#The World stands at our feet!
		name = "flavor_swe.121.a"
		if = {
			limit = { NOT = { owns_core_province = 16 } }
			add_permanent_claim = 16
		}
		if = {
			limit = { NOT = { owns_core_province = 315 } }
			add_permanent_claim = 315
		}
		if = {
			limit = { NOT = { owns_core_province = 1777 } }
			add_permanent_claim = 1777
		}
		if = {
			limit = { NOT = { owns_core_province = 1776 } }
			add_permanent_claim = 1776
		}
		karelia_area = {
			limit = {
				NOT = { is_core = ROOT }
				NOT = { is_permanent_claim = ROOT }
			}
			add_permanent_claim = ROOT
		}
		north_karelia = {
			limit = {
				NOT = { is_core = ROOT }
				NOT = { is_permanent_claim = ROOT }
			}
			add_permanent_claim = ROOT
		}
		novgorod_area = {
			limit = {
				NOT = { is_core = ROOT }
				NOT = { is_permanent_claim = ROOT }
			}
			add_permanent_claim = ROOT
		}
		estonia_ingria_area = {
			limit = {
				NOT = { is_core = ROOT }
				NOT = { is_permanent_claim = ROOT }
			}
			add_permanent_claim = ROOT
		}
		livonia_area = {
			limit = {
				NOT = { is_core = ROOT }
				NOT = { is_permanent_claim = ROOT }
			}
			add_permanent_claim = ROOT
		}
		curonia_area = {
			limit = {
				NOT = { is_core = ROOT }
				NOT = { is_permanent_claim = ROOT }
			}
			add_permanent_claim = ROOT
		}
		hinter_pommern_area = {
			limit = {
				NOT = { is_core = ROOT }
				NOT = { is_permanent_claim = ROOT }
			}
			add_permanent_claim = ROOT
		}
		vorpommern_area = {
			limit = {
				NOT = { is_core = ROOT }
				NOT = { is_permanent_claim = ROOT }
			}
			add_permanent_claim = ROOT
		}
		mecklenburg_area = {
			limit = {
				NOT = { is_core = ROOT }
				NOT = { is_permanent_claim = ROOT }
			}
			add_permanent_claim = ROOT
		}
		ai_chance = {
			factor = 1
		}
	}
}

# Lord of Eastern Europe
country_event = {
	id = flavor_swe.123
	title = flavor_swe.123.t
	desc = flavor_swe.123.desc
	picture = TRADE_GOODS_FURS_FISH_AND_SALT_eventPicture
	is_triggered_only = yes
	
	option = {
		name = "flavor_swe.123.a"
		if = {
			limit = { has_dlc = "Rights of Man" }
			add_ruler_personality = entrepreneur_personality
		}
		else = { add_dip_power = 100 } 
		change_dip = 1 		
		33 = {
			add_trade_modifier = {
				who = ROOT
				duration = -1
				power = 15
				key = swe_the_varangian_route
			}
		}
		280 = {
			add_trade_modifier = {
				who = ROOT
				duration = -1
				power = 15
				key = swe_the_varangian_route
			}
		}
		1322 = {
			add_trade_modifier = {
				who = ROOT
				duration = -1
				power = 15
				key = swe_the_varangian_route
			}
		}
		1652 = {
			add_trade_modifier = {
				who = ROOT
				duration = -1
				power = 15
				key = swe_the_varangian_route
			}
		}
		ai_chance = {
			factor = 1
		}
	}
}

# The Poland Question
country_event = {
	id = flavor_swe.124
	title = flavor_swe.124.t
	desc = flavor_swe.124.desc
	picture = DEBATE_REPUBLICAN_eventPicture
	is_triggered_only = yes

	immediate = { hidden_effect = { set_country_flag = swe_selecting_polish_goal } }
	after = { hidden_effect = { clr_country_flag = swe_selecting_polish_goal } }
	
	option = {	#Try to get our dynasty on their throne
		name = "flavor_swe.124.a"
		trigger = {
			religion_group = christian
		}
		custom_tooltip = flavor_swe.124.a.tt
		hidden_effect = {
			set_country_flag = swe_polish_throne_goal
			clr_country_flag = swe_poland_conquest_goal
			clr_country_flag = swe_polish_swedish_coexistence_goal
		}
		ai_chance = {
			factor = 0
		}
	}
	
	option = {	#Poland is our claim!
		name = "flavor_swe.124.b"
		custom_tooltip = flavor_swe.124.b.tt
		hidden_effect = {
			clr_country_flag = swe_polish_throne_goal
			set_country_flag = swe_poland_conquest_goal
			clr_country_flag = swe_polish_swedish_coexistence_goal
		}
		ai_chance = {
			factor = 1
		}
	}
	
	option = {	#We have no business with the Poles
		name = "flavor_swe.124.c"
		custom_tooltip = flavor_swe.124.c.tt
		hidden_effect = {
			clr_country_flag = swe_polish_throne_goal
			clr_country_flag = swe_poland_conquest_goal
			set_country_flag = swe_polish_swedish_coexistence_goal
		}
		ai_chance = {
			factor = 0
		}
	}
}

# Purchase of Memel
country_event = {
	id = flavor_swe.125
	title = flavor_swe.125.t
	desc = flavor_swe.125.desc
	picture = DIPLOMACY_eventPicture
	is_triggered_only = yes
	goto = 40
	immediate = {
		hidden_effect = {
			if = {
				limit = { exists = PLC }
				PLC = { save_event_target_as = swe_polish_ally }
			}
			else_if = {
				limit = { exists = POL }
				POL = { save_event_target_as = swe_polish_ally }
			}
		}
	}
	
	option = {	#Buy Memel from Poland
		name = "flavor_swe.125.a"
		trigger = { has_saved_event_target = swe_polish_ally }
		event_target:swe_polish_ally = {
			country_event = {
				id = flavor_swe.126
			}
		}
		ai_chance = {
			factor = 1
		}
	}
	
	option = {	#Not worth it
		name = "flavor_swe.125.b"
		ai_chance = {
			factor = 0
		}
	}
}

# Purchase of Memel - Sweden asks
country_event = {
	id = flavor_swe.126
	title = flavor_swe.126.t
	desc = flavor_swe.126.desc
	picture = DIPLOMACY_eventPicture
	is_triggered_only = yes
	goto = 40
	
	option = {	#Accepts
		name = "flavor_swe.126.a"
		40 = {
			tooltip = {
				cede_province = FROM
				if = {
					limit = { is_core = ROOT }
					remove_core = ROOT
				}
				if = {
					limit = {
						OR = {
							is_permanent_claim = ROOT
							is_claim = ROOT
						}
					}
					remove_claim = ROOT
				}
			}
		}
		add_treasury = 500
		FROM = {
			country_event = {
				id = flavor_swe.127
			}
		}
		ai_chance = {
			factor = 1
		}
	}
	
	option = {	#Nah
		name = "flavor_swe.126.b"
		FROM = {
			country_event = {
				id = flavor_swe.128
			}
		}
		ai_chance = {
			factor = 0
		}
	}
}

# Purchase of Memel - Poland sells Memel
country_event = {
	id = flavor_swe.127
	title = flavor_swe.127.t
	desc = flavor_swe.127.desc
	picture = DIPLOMACY_eventPicture
	is_triggered_only = yes
	goto = 40
	
	option = {	#Accepts
		name = "flavor_swe.127.a"
		add_treasury = -500
		40 = {
			cede_province = ROOT
			if = {
				limit = { is_core = FROM }
				remove_core = FROM
			}
			if = {
				limit = {
					OR = {
						is_permanent_claim = FROM
						is_claim = FROM
					}
				}
				remove_claim = FROM
			}
		}
		ai_chance = {
			factor = 1
		}
	}
}

# Purchase of Memel - Poland refuses to sell Memel
country_event = {
	id = flavor_swe.128
	title = flavor_swe.128.t
	desc = flavor_swe.128.desc
	picture = DIPLOMACY_eventPicture
	is_triggered_only = yes
	goto = 40
	
	option = {	#Accepts
		name = "flavor_swe.128.a"
		add_prestige = -5
		ai_chance = {
			factor = 1
		}
	}
}

# Purchase of Riga
country_event = {
	id = flavor_swe.129
	title = flavor_swe.129.t
	desc = flavor_swe.129.desc
	picture = DIPLOMACY_eventPicture
	is_triggered_only = yes
	goto = 38
	immediate = {
		hidden_effect = {
			if = {
				limit = { exists = PLC }
				PLC = { save_event_target_as = swe_polish_ally }
			}
			else_if = {
				limit = { exists = POL }
				POL = { save_event_target_as = swe_polish_ally }
			}
		}
	}
	
	option = {	#Buy Riga from Poland
		name = "flavor_swe.129.a"
		trigger = { has_saved_event_target = swe_polish_ally }
		event_target:swe_polish_ally = {
			country_event = {
				id = flavor_swe.130
			}
		}
		ai_chance = {
			factor = 1
		}
	}
	
	option = {	#Not worth it
		name = "flavor_swe.129.b"
		ai_chance = {
			factor = 1
		}
	}
}

# Purchase of Riga - Sweden asks
country_event = {
	id = flavor_swe.130
	title = flavor_swe.130.t
	desc = flavor_swe.130.desc
	picture = DIPLOMACY_eventPicture
	is_triggered_only = yes
	goto = 38
	
	option = {	#Accepts
		name = "flavor_swe.130.a"
		38 = { 
			tooltip = {
				cede_province = FROM
				if = {
					limit = { is_core = ROOT }
					remove_core = ROOT
				}
				if = {
					limit = {
						OR = {
							is_permanent_claim = ROOT
							is_claim = ROOT
						}
					}
					remove_claim = ROOT
				}
			}
		}
		add_treasury = 1000
		FROM = {
			country_event = {
				id = flavor_swe.131
			}
		}
		ai_chance = {
			factor = 1
		}
	}
	
	option = {	#Nah
		name = "flavor_swe.130.b"
		FROM = {
			country_event = {
				id = flavor_swe.132
			}
		}
		ai_chance = {
			factor = 1
		}
	}
}

# Purchase of Riga - Poland sells Riga
country_event = {
	id = flavor_swe.131
	title = flavor_swe.131.t
	desc = flavor_swe.131.desc
	picture = DIPLOMACY_eventPicture
	is_triggered_only = yes
	goto = 38
	
	option = {	#Accepts
		name = "flavor_swe.131.a"
		add_treasury = -1000
		38 = {
			cede_province = ROOT
			if = {
				limit = { is_core = FROM }
				remove_core = FROM
			}
			if = {
				limit = {
					OR = {
						is_permanent_claim = FROM
						is_claim = FROM
					}
				}
				remove_claim = FROM
			}
		}
		ai_chance = {
			factor = 1
		}
	}
}

# Purchase of Riga - Poland refuses to sell Riga
country_event = {
	id = flavor_swe.132
	title = flavor_swe.132.t
	desc = flavor_swe.132.desc
	picture = DIPLOMACY_eventPicture
	is_triggered_only = yes
	goto = 38
	
	option = {	#Accepts
		name = "flavor_swe.132.a"
		ai_chance = {
			factor = 1
		}
	}
}

# The Centralization Reforms of Gustav Vasa
country_event = {
	id = flavor_swe.133
	title = flavor_swe.1.t
	desc = flavor_swe.1.d
	picture = VASA_REFORMS_eventPicture
	is_triggered_only = yes

	option = {		# Reform and claim
		name = flavor_swe.1.a
		ai_chance = { factor = 100 }
		if = {
			limit = {
				NOT = { has_completed_all_reforms_trigger = yes }
			}
			add_reform_progress_small_effect = yes
		}		
		
		1 = {	# Stockholm
			add_base_tax = 2
		}
		2 = {	#stergtland
			add_base_tax = 1
		}
		7 = {	#Vstergtland
			add_base_tax = 1
		}
		27 = {	#Finland
			add_base_tax = 1
		}

		1 = {	# Stockholm
			add_base_manpower = 2
		}
		27 = {	#Finland
			add_base_manpower = 1
		}
		
		add_adm_power = -50
		add_dip_power = -50
		add_mil_power = -50
		
		add_country_modifier = {
			name = vasa_centralization_reforms
			duration = -1
		}
	}
}

# Sweden proclaims Protection for the Protestants
country_event = {
	id = flavor_swe.134
	title = flavor_swe.134.t
	desc = flavor_swe.134.desc
	picture = PROTESTANT_CATHOLIC_DEBATE_eventPicture
	is_triggered_only = yes
	major = yes
	
	option = {	#I will lead you to victory!
		name = "flavor_swe.134.a"
		enable_hre_leagues = yes
		join_league = protestant
		set_global_flag = evangelical_union_happened
		ai_chance = {
			factor = 1
		}
	}
}

# Sweden provokes the creation of the Evangelical Union
country_event = {
	id = flavor_swe.135
	title = flavor_swe.135.t
	desc = flavor_swe.135.desc
	picture = PROTESTANT_CATHOLIC_DEBATE_eventPicture
	is_triggered_only = yes
	major = yes
	
	option = {	#Sweden will lead us to victory!
		name = "flavor_swe.135.a"
		enable_hre_leagues = yes
		join_league = protestant
		FROM = { join_league = protestant }
		set_global_flag = evangelical_union_happened
		ai_chance = {
			factor = 1
		}
	}
}