#Dutch events (Netherlands++)

namespace = FEE_Netherlands_Events

#Generaliteitslanden
country_event = {
	id = FEE_Netherlands_Events.1
	title = FEE_Netherlands_Events.1.T
	desc = FEE_Netherlands_Events.1.D
	picture = CITY_DEVELOPMENT_eventPicture

	trigger = {
		tag = NED
		OR = {
			religion = protestant
			religion = reformed
		}
		government = republic
		NOT = { has_idea_group = humanist_ideas }
		is_at_war = no

		any_owned_province = {
			has_owner_religion = no
			OR = {
				culture = dutch
				culture = wallonian
				culture = flemish
			}
			is_capital = no
			NOT = { has_province_modifier = fee_ned_generality_lands }
		}
	}

	mean_time_to_happen = {
		months = 60
	}

	option = {
		name = FEE_Netherlands_Events.1.OPT1

		random_owned_province = {
			limit = {
				has_owner_religion = no
				OR = {
					culture = dutch
					culture = wallonian
					culture = flemish
				}
				is_capital = no
				NOT = { has_province_modifier = fee_ned_generality_lands }
			}
			add_province_modifier = {
				name = fee_ned_generality_lands
				duration = -1
			}
		}
	}
}

#Province Achieves Representation
country_event = {
	id = FEE_Netherlands_Events.2
	title = FEE_Netherlands_Events.2.T
	desc = FEE_Netherlands_Events.2.D
	picture = CITY_VIEW_eventPicture

	trigger = {
		tag = NED
		OR = {
			religion = protestant
			religion = reformed
		}
		government = republic
		NOT = { has_idea_group = humanist_ideas }
		is_at_war = no

		any_owned_province = {
			has_province_modifier = fee_ned_generality_lands
			OR = {
				has_owner_religion = yes
				owner = {
					full_idea_group = humanist_ideas
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 36
	}

	option = {
		name = FEE_Netherlands_Events.2.OPT1

		random_owned_province = {
			limit = {
				has_province_modifier = fee_ned_generality_lands
			}
			remove_province_modifier = fee_ned_generality_lands
		}
	}
}

#Arrival in Indonesia
country_event = {
	id = FEE_Netherlands_Events.3
	title = FEE_Netherlands_Events.3.T
	desc = FEE_Netherlands_Events.3.D
	picture = SHIP_SAILING_eventPicture

	fire_only_once = yes

	trigger = {
		tag = NED
		has_discovered = 624
	}

	mean_time_to_happen = {
		months = 120
	}

	option = {
		name = FEE_Netherlands_Events.3.OPT1
		ai_chance = { factor = 100 }

		597 = {
			add_trade_modifier = {
				who = ROOT
				duration = -1
				power = 50
				key = fee_ned_esat_indian_trade_ports
			}
		}
		630 = {
			add_trade_modifier = {
				who = ROOT
				duration = -1
				power = 50
				key = fee_ned_esat_indian_trade_ports
			}
		}
		624 = {
			add_permanent_province_modifier = {
				name = fee_ned_dutch_warehouses
				duration = 9125
			}
		}
		set_country_flag = fee_ned_allow_for_founding_of_batavia
	}

	option = {
		name = FEE_Netherlands_Events.3.OPT2
		ai_chance = { factor = 0 }

		add_prestige = -5
	}
}

#Founding of Batavia
country_event = {
	id = FEE_Netherlands_Events.4
	title = FEE_Netherlands_Events.4.T
	desc = FEE_Netherlands_Events.4.D
	picture = LIBERUM_VETO_eventPicture

	fire_only_once = yes

	trigger = {
		tag = NED
		has_country_flag = fee_ned_allow_for_founding_of_batavia
		630 = {
			owner = {
				is_at_war = no
				controls = 630
			}
		}
		west_java_area = {
			has_discovered = ROOT
		}
		east_java_area = {
			has_discovered = ROOT
		}
		central_java_area = {
			has_discovered = ROOT
		}
	}

	mean_time_to_happen = {
		months = 120
	}

	major = yes
	major_trigger = {
		owns = 630
	}

	immediate = {
		hidden_effect = {
			set_country_flag = fee_allow_for_formusa
		}
	}

	option = {
		name = FEE_Netherlands_Events.4.OPT1
		ai_chance = { factor = 100 }
		trigger = {
			NOT = { owns = 630 }
		}

		add_treasury = -250
		630 = {
			owner = {
				country_event = {
					id = FEE_Netherlands_Events.5
					tooltip = fee_ned_acquire_batavia_tt
				}
			}
		}
	}

	option = {
		name = FEE_Netherlands_Events.4.OPT2
		ai_chance = { factor = 100 }
		trigger = {
			owns = 630
		}

		add_treasury = 250
		630 = {
			add_core = NED
			change_province_name = "Batavia"
			rename_capital = "Batavia"
			add_province_modifier = {
				name = fee_ned_structured_city
				duration = -1
			}
			add_base_tax = 1
			add_base_production = 1
			add_base_manpower = 3
		}
	}

	option = {
		name = FEE_Netherlands_Events.4.OPT2
		ai_chance = { factor = 0 }
		trigger = {
			NOT = { owns = 630 }
		}

		add_mil_power = 25
		add_permanent_claim_province = {
			province = 630
		}
	}

	after = {
		hidden_effect = { clr_country_flag = fee_ned_allow_for_founding_of_batavia }
	}
}

#Founding of Batavia
country_event = {
	id = FEE_Netherlands_Events.5
	title = FEE_Netherlands_Events.5.T
	desc = FEE_Netherlands_Events.5.D
	picture = DIPLOMACY_eventPicture

	is_triggered_only = yes
	trigger = {
		owns = 630
	}

	major = yes
	major_trigger = {
		tag = NED
	}

	option = {
		name = FEE_Netherlands_Events.5.OPT1
		ai_chance = { factor = 100 }

		while = {
			limit = {
				check_variable = { which = money_to_give value = 0.25 }
			}
			subtract_variable = { which = money_to_give value = 1 }
			ROOT = { add_treasury = 1 }
		}
		630 = {
			cede_province = FROM
			add_core = FROM
			change_province_name = "Batavia"
			rename_capital = "Batavia"
			add_province_modifier = {
				name = fee_ned_structured_city
				duration = -1
			}
			add_base_tax = 1
			add_base_production = 1
			add_base_manpower = 3
		}
	}

	option = {
		name = FEE_Netherlands_Events.5.OPT2
		ai_chance = { factor = 0 }
		trigger = {
			ai = no
		}

		add_army_tradition = 5
		add_mil_power = 25
		FROM = {
			add_prestige = -5
			add_permanent_claim_province = {
				province = 630
			}
		}
	}
}

#Formosa
country_event = {
	id = FEE_Netherlands_Events.6
	title = FEE_Netherlands_Events.6.T
	desc = FEE_Netherlands_Events.6.D
	picture = LIBERUM_VETO_eventPicture

	fire_only_once = yes

	trigger = {
		tag = NED
		has_country_flag = fee_allow_for_formusa
		taiwan_area = {
			has_discovered = ROOT
		}
		738 = {
			is_city = no
		}
		exists = FRM
	}

	mean_time_to_happen = {
		months = 240
	}

	immediate = {
		hidden_effect = {
			set_country_flag = fee_allow_tunging_event
		}
	}

	option = {
		name = FEE_Netherlands_Events.6.OPT1
		ai_chance = { factor = 100 }

		738 = {
			cede_province = ROOT
			add_core = ROOT
			change_province_name = "Zeelandia"
			rename_capital = "Fort Zeelandia"
		}
	}
}

#Koxinga and Tungning
country_event = {
	id = FEE_Netherlands_Events.7
	title = FEE_Netherlands_Events.7.T
	desc = FEE_Netherlands_Events.7.D
	picture = LIBERUM_VETO_eventPicture

	fire_only_once = yes

	trigger = {
		tag = NED
		exists = FRM
		738 = {
			owned_by = ROOT
		}
	}

	option = {
		name = FEE_Netherlands_Events.7.OPT1
		ai_chance = { factor = 0 }

		738 = {
			cede_province = FRM
			add_core = FRM
			change_province_name = "Anping"
			rename_capital = "Anping"
		}
	}

	option = {
		name = FEE_Netherlands_Events.7.OPT2
		ai_chance = { factor = 100 }

		738 = {
			add_core = FRM
		}
		FRM = {
			country_event = { id = FEE_Netherlands_Events.8 }
		}
	}
}

#The Dutch impede us
country_event = {
	id = FEE_Netherlands_Events.8
	title = FEE_Netherlands_Events.8.T
	desc = FEE_Netherlands_Events.8.D
	picture = LIBERUM_VETO_eventPicture

	is_triggered_only = yes

	option = {
		name = FEE_Netherlands_Events.8.OPT1
		ai_chance = { factor = 100 }

		add_prestige_or_monarch_power = { amount = 5 }
		declare_war_with_cb = {
			who = PREV
			casus_belli = cb_core
			war_goal_province = 738
		}
	}

	option = {
		name = FEE_Netherlands_Events.8.OPT2
		ai_chance = { factor = 0 }

		add_prestige = -5
	}
}

#The Supreme Court of Holland
country_event = {
	id = FEE_Netherlands_Events.9
	title = FEE_Netherlands_Events.9.T
	desc = FEE_Netherlands_Events.9.D
	picture = GREAT_BUILDING_eventPicture

	fire_only_once = yes

	trigger = {
		OR = {
			tag = HOL
			tag = NED
		}
		4383 = {
			owned_by = ROOT
			NOT = { has_building = courthouse }
			NOT = { has_building = town_hall }
		}
		is_year = 1500
		stability = 2
	}

	mean_time_to_happen = {
		months = 200
	}

	option = {
		name = FEE_Netherlands_Events.9.OPT1
		ai_chance = {
			factor = 50
		}

		add_stability_or_adm_power = yes
		4383 = {
			add_province_modifier = {
				name = fee_ned_judicial_center
				duration = -1
			}
			if = {
				limit = { has_building = courthouse }
				remove_building = courthouse
				add_building_construction = {
					building = town_hall
					speed = 0.5
					cost = 0
				}
			}
			else_if = {
				limit = { has_building = town_hall }
				add_base_tax = 2
			}
			else = {
				add_building_construction = {
					building = courthouse
					speed = 0.5
					cost = 0
				}
			}
		}
	}
}

#The Corneliszoon Sawmill
country_event = {
	id = FEE_Netherlands_Events.10
	title = FEE_Netherlands_Events.10.T
	desc = FEE_Netherlands_Events.10.D
	picture = HARBOUR_eventPicture

	fire_only_once = yes

	trigger = {
		OR = {
			tag = HOL
			tag = NED
		}
		is_year = 1500
		NOT = { is_year = 1607 }
	}

	mean_time_to_happen = {
		months = 120
	}

	option = {
		name = FEE_Netherlands_Events.10.OPT1
		ai_chance = {
			factor = 50
		}

		every_owned_province = {
			limit = { region = low_countries_region }
			add_permanent_province_modifier = {
				name = fee_ned_corneliszoon_sawmill
				duration = -1
			}
		}
	}
}

#Defensive Reforms
country_event = {
	id = FEE_Netherlands_Events.11
	title = FEE_Netherlands_Events.11.T
	desc = FEE_Netherlands_Events.11.D
	picture = FORT_eventPicture

	fire_only_once = yes

	trigger = {
		tag = NED
		mil_tech = 14
	}

	mean_time_to_happen = {
		months = 200
	}

	option = {
		name = FEE_Netherlands_Events.11.OPT1
		ai_chance = {
			factor = 50
		}

		add_years_of_income = -1
		add_country_modifier = {
			name = fee_ned_dutch_defense
			duration = 7300
		}
		every_owned_province = {
			if = {
				limit = { has_building = fort_15th }
				add_building_construction = {
					building = fort_16th
					speed = 0.50
					cost = 0
				}
			}
		}
	}

	option = {
		name = FEE_Netherlands_Events.11.OPT2
		ai_chance = {
			factor = 50
		}

		add_mil_power = 100
	}
}

#Michiel de Ruyter
country_event = {
	id = FEE_Netherlands_Events.12
	title = FEE_Netherlands_Events.12.T
	desc = FEE_Netherlands_Events.12.D
	picture = SHIP_SAILING_eventPicture

	fire_only_once = yes
	trigger = {
		tag = NED
		is_year = 1600
		NOT = { is_year = 1680 }
	}

	mean_time_to_happen = {
		months = 240
		modifier = {
			factor = 0.8
			OR = {
				has_idea_group = maritime_ideas
				has_idea_group = naval_ideas
			}
		}
		modifier = {
			factor = 0.8
			if = {
				limit = { exists = GBR }
				navy_size = GBR
			}
			else = {
				navy_size = ENG
			}
		}
	}

	option = {
		name = FEE_Netherlands_Events.12.OPT1
		ai_chance = {
			factor = 50
		}

		define_admiral = {
			name = "Michiel de Ruyter"
			female = no
			fire = 6
			shock = 6
			manuever = 6
			siege = 2
		}
		add_country_modifier = {
			name = fee_ned_admiral_ruyter
			duration = 14600
		}
	}

	option = {
		name = FEE_Netherlands_Events.12.OPT2
		ai_chance = {
			factor = 50
		}

		define_advisor = {
			type = naval_reformer
			name = "Michiel de Ruyter"
			skill = 3
			culture = dutch
			religion = ROOT
		}
		add_country_modifier = {
			name = fee_ned_ruyter
			duration = 14600
		}
	}
}

#A Daring Attack
country_event = {
	id = FEE_Netherlands_Events.13
	title = FEE_Netherlands_Events.13.T
	desc = FEE_Netherlands_Events.13.D
	picture = LAND_MILITARY_eventPicture

	fire_only_once = yes

	trigger = {
		tag = NED
		if = {
			limit = { exists = GBR }
			GBR = {
				owns = 236
				war_with = ROOT
			}
		}
		else = {
			ENG = {
				owns = 236
				war_with = ROOT
			}
		}
		num_of_heavy_ship = 6
		236 = { heavy_ships_in_province = 6 }
	}

	option = {
		name = FEE_Netherlands_Events.13.OPT1
		ai_chance = {
			factor = 50
		}

		country_event = {
			id = FEE_Netherlands_Events.15
			days = 3
		}
		if = {
			limit = { exists = GBR }
			GBR = {
				country_event = {
					id = FEE_Netherlands_Events.14
					days = 3
				}
			}
		}
		else = {
			ENG = {
				country_event = {
					id = FEE_Netherlands_Events.14
					days = 3
				}
			}
		}
	}
}

#Raid on the Medway (England)
country_event = {
	id = FEE_Netherlands_Events.14
	title = FEE_Netherlands_Events.14.T
	desc = FEE_Netherlands_Events.14.D
	picture = SIEGE_eventPicture

	is_triggered_only = yes

	option = {
		name = FEE_Netherlands_Events.14.OPT1
		ai_chance = {
			factor = 50
		}

		add_stability = -1
		add_war_exhaustion = 3
		add_prestige = -15
		add_country_modifier = {
			name = fee_ned_raid_medway
			duration = 3650
		}
		283 = {
			kill_units = {
				who = owner
				type = heavy_ship
				amount = 12
			}
		}
	}
}

#Raid on the Medway (NED)
country_event = {
	id = FEE_Netherlands_Events.15
	title = FEE_Netherlands_Events.15.T
	desc = FEE_Netherlands_Events.15.D
	picture = SIEGE_eventPicture

	is_triggered_only = yes

	option = {
		name = FEE_Netherlands_Events.15.OPT1
		ai_chance = {
			factor = 50
		}

		add_stability_or_adm_power = yes
		add_war_exhaustion = -2
		add_prestige_or_monarch_power = { amount = 10 }
		if = {
			limit = {
				capital_scope = { has_port = yes }
			}
			capital_scope = {
				heavy_ship = ROOT
				heavy_ship = ROOT
			}
		}
		else = {
			random_owned_province = {
				limit = { has_port = yes }
				heavy_ship = ROOT
				heavy_ship = ROOT
			}
		}
	}
}

#Dutch Settlers at the Cape
country_event = {
	id = FEE_Netherlands_Events.16
	title = FEE_Netherlands_Events.16.T
	desc = FEE_Netherlands_Events.16.D
	picture = EXPLORERS_eventPicture

	fire_only_once = yes
	trigger = {
		tag = NED
		owns = 1177
		has_idea = quest_for_the_new_world
		has_idea = colonial_ventures
		has_idea = overseas_exploration
	}

	mean_time_to_happen = {
		months = 200
	}

	option = {
		name = FEE_Netherlands_Events.16.OPT1
		ai_chance = {
			factor = 33
		}

		add_years_of_income = -0.25
		1177 = {
			add_base_production = 3
			add_base_manpower = 4
			change_culture = ROOT
			change_religion = ROOT
			add_or_upgrade_fort_building = yes
			add_or_upgrade_courthouse_building = yes
		}
	}

	option = {
		name = FEE_Netherlands_Events.16.OPT2
		ai_chance = {
			factor = 33
		}

		add_years_of_income = -0.5
		trade_company_south_africa = {
			limit = { is_empty = yes }
			add_province_modifier = {
				name = fee_ned_boer_migration
				duration = 10950
			}
			change_culture = ROOT
			change_religion = ROOT
		}
	}

	option = {
		name = FEE_Netherlands_Events.16.OPT3
		ai_chance = {
			factor = 33
		}

		add_estate_burghers_loyalty_effect = yes
		add_mercantilism_or_monarch_power = { amount = 2 }
	}
}

#The Grand Alliance
country_event = {
	id = FEE_Netherlands_Events.17
	title = FEE_Netherlands_Events.17.T
	desc = FEE_Netherlands_Events.17.D
	picture = DIPLOMACY_eventPicture

	fire_only_once = yes

	trigger = {
		tag = NED
		is_year = 1600
		OR = {
			NOT = { alliance_with = FRA }
			marriage_with = FRA
		}
		exists = FRA
	}

	mean_time_to_happen = {
		months = 200
	}

	option = {
		name = FEE_Netherlands_Events.17.OPT1
		ai_chance = {
			factor = 50
		}

		FRA = {
			every_rival_country = {
				remove_rival = ROOT
				add_casus_belli = {
					type = cb_liberation
					target = FRA
				}
				add_opinion = {
					who = ROOT
					modifier = fee_ned_leader_grand_alliance_opinion
				}
			}
		}
		add_country_modifier = {
			name = fee_ned_leader_grand_alliance
			duration = -1
		}
		add_casus_belli = {
			type = cb_liberation
			target = FRA
		}
	}

	option = {
		name = FEE_Netherlands_Events.17.OPT2
		ai_chance = {
			factor = 50
		}

		FRA = {
			every_rival_country = {
				add_casus_belli = {
					type = cb_liberation
					target = FRA
				}
				add_opinion = {
					who = ROOT
					modifier = fee_ned_stand_against_france_opinion
				}
			}
		}
		add_country_modifier = {
			name = fee_ned_stand_against_france
			duration = -1
		}
		add_casus_belli = {
			type = cb_liberation
			target = FRA
		}
	}
}

#Rembrandt
country_event = {
	id = FEE_Netherlands_Events.18
	title = FEE_Netherlands_Events.18.T
	desc = FEE_Netherlands_Events.18.D
	picture = PAINTER_ARTIST_eventPicture

	fire_only_once = yes
	trigger = {
		owns = 4383
		is_year = 1600
		NOT = { is_year = 1640 }
		stability = 1
	}

	mean_time_to_happen = {
		months = 12
	}

	option = {
		name = FEE_Netherlands_Events.18.OPT1
		ai_chance = {
			factor = 50
		}

		define_advisor = {
			type = artist
			name = "Rembrandt"
			skill = 3
			culture = dutch
			religion = root
			cost_multiplier = 0.50
		}
		add_prestige_or_monarch_power = { amount = 20 }
	}
}

#Huguenot Refugees
country_event = {
	id = FEE_Netherlands_Events.19
	title = FEE_Netherlands_Events.19.T
	desc = FEE_Netherlands_Events.19.D
	picture = RELIGIOUS_WARS_eventPicture

	fire_only_once = yes

	trigger = {
		tag = NED
		is_year = 1610
		NOT = { religion = catholic }
		FRA = {
			religion = catholic
		}
	}

	mean_time_to_happen = {
		months = 60
	}

	option = {
		name = FEE_Netherlands_Events.19.OPT1
		ai_chance = {
			factor = 50
		}

		add_country_modifier = {
			name = fee_ned_huguenot_influx
			duration = 7300
		}
		random_owned_province = {
			limit = {
				NOT = { religion = catholic }
			}
			add_base_tax = 2
			add_base_production = 2
		}
		random_owned_province = {
			limit = {
				NOT = { religion = catholic }
			}
			add_base_tax = 2
			add_base_production = 2
		}
		FRA = {
			add_opinion = {
				who = ROOT
				modifier = fee_ned_huguenot_influx_opinion
			}
		}
	}

	option = {
		name = FEE_Netherlands_Events.19.OPT2
		ai_chance = {
			factor = 50
		}

		add_country_modifier = {
			name = fee_ned_secured_borders
			duration = 7300
		}
		add_stability_or_adm_power = yes
		FRA = {
			add_opinion = {
				who = ROOT
				modifier = fee_ned_secured_borders_opinion
			}
		}
	}
}

#Dike Piercing
country_event = {
	id = FEE_Netherlands_Events.20
	title = FEE_Netherlands_Events.20.T
	desc = FEE_Netherlands_Events.20.D
	picture = WOUNDED_SOLDIERS_eventPicture

	trigger = {
		tag = NED
		any_country = { offensive_war_with = ROOT }
		NOT = { war_score = -50 }
		num_of_owned_provinces_with = {
			value = 2
			region = low_countries_region
			NOT = { controlled_by = ROOT }
		}
	}

	option = {
		name = FEE_Netherlands_Events.20.OPT1
		ai_chance = {
			factor = 50
		}

		add_war_exhaustion = 3
		low_countries_region = {
			limit = { owned_by = ROOT }
			add_province_modifier = {
				name = fee_ned_dikes_pierced
				duration = 3650
			}
			add_devastation = 10
		}
	}

	option = {
		name = FEE_Netherlands_Events.20.OPT2
		ai_chance = {
			factor = 50
		}

		add_stability_or_adm_power = yes
		add_country_modifier = {
			name = fee_ned_fight_homeland
			duration = 3650
		}
	}
}

#Lack of Investment in Manufacturing
country_event = {
	id = FEE_Netherlands_Events.21
	title = FEE_Netherlands_Events.21.T
	desc = FEE_Netherlands_Events.21.D
	picture = DIPLOMACY_eventPicture

	fire_only_once = yes

	trigger = {
		tag = NED
		is_year = 1700
		calc_true_if = {
			amount = 1
			all_country = { monthly_income = ROOT }
		}
		owns = 97
	}

	mean_time_to_happen = {
		months = 60
	}

	option = {
		name = FEE_Netherlands_Events.21.OPT1
		ai_chance = {
			factor = 33
		}

		add_years_of_income = -1
		add_country_modifier = {
			name = fee_ned_investment_industry
			duration = 7300
		}
	}

	option = {
		name = FEE_Netherlands_Events.21.OPT2
		ai_chance = {
			factor = 33
		}

		add_years_of_income = -0.5
		97 = {
			add_permanent_province_modifier = {
				name = fee_ned_financial_hub
				duration = -1
			}
		}

		add_country_modifier = {
			name = fee_ned_banking_focus
			duration = -1
		}
	}

	option = {
		name = FEE_Netherlands_Events.21.OPT2
		ai_chance = {
			factor = 33
		}

		add_stability_or_adm_power = yes
		add_country_modifier = {
			name = fee_ned_trade_compacency
			duration = 7300
		}
	}
}

#The States General
country_event = {
	id = FEE_Netherlands_Events.22
	title = FEE_Netherlands_Events.22.T
	desc = FEE_Netherlands_Events.22.D
	picture = DEBATE_REPUBLICAN_eventPicture

	fire_only_once = yes
	trigger = {
		tag = BUR
		HOL = { is_subject_of = ROOT }
		FLA = { is_subject_of = ROOT }
		BRB = { is_subject_of = ROOT }
		is_year = 1450
	}

	mean_time_to_happen = {
		months = 60
	}

	option = {
		name = FEE_Netherlands_Events.22.OPT1
		ai_chance = {
			factor = 50
		}

		add_stability_or_adm_power = yes
		add_country_modifier = {
			name = fee_ned_estates_general
			duration = 18250
		}
		HOL = { add_liberty_desire = -15 }
		FLA = { add_liberty_desire = -15 }
		BRB = { add_liberty_desire = -15 }
		every_core_province = {
			limit = {
				OR = {
					culture = flemish
					culture = dutch
					culture = wallonian
				}
			}
			add_province_modifier = {
				name = fee_ned_rights_privileges
				duration = -1
			}
		}
	}

	option = {
		name = FEE_Netherlands_Events.22.OPT2
		ai_chance = {
			factor = 50
		}

		add_prestige_or_monarch_power = { amount = 10 }
		if = {
			limit = {
				calc_true_if = {
					amount = 3
					all_subject_country = {
						OR = {
							AND = {
								is_expanded_mod_active = { mod = subjects }
								OR = {
									is_subject_of_type = brother_kingdom
									is_subject_of_type = integrated_personal_union
								}
							}
							is_subject_of_type = personal_union
						}
					}
				}
			}
			add_country_modifier = {
				name = fee_ned_asserted_control_3
				duration = 18250
			}
		}
		else_if = {
			limit = {
				calc_true_if = {
					amount = 2
					all_subject_country = {
						OR = {
							AND = {
								is_expanded_mod_active = { mod = subjects }
								OR = {
									is_subject_of_type = brother_kingdom
									is_subject_of_type = integrated_personal_union
								}
							}
							is_subject_of_type = personal_union
						}
					}
				}
			}
			add_country_modifier = {
				name = fee_ned_asserted_control_2
				duration = 18250
			}
		}
		else_if = {
			limit = {
				calc_true_if = {
					amount = 1
					all_subject_country = {
						OR = {
							AND = {
								is_expanded_mod_active = { mod = subjects }
								OR = {
									is_subject_of_type = brother_kingdom
									is_subject_of_type = integrated_personal_union
								}
							}
							is_subject_of_type = personal_union
						}
					}
				}
			}
			add_country_modifier = {
				name = fee_ned_asserted_control_1
				duration = 18250
			}
		}
		else = {
			add_country_modifier = {
				name = fee_ned_asserted_control_0
				duration = 18250
			}
		}
		HOL = { add_liberty_desire = 15 }
		FLA = { add_liberty_desire = 15 }
		BRB = { add_liberty_desire = 15 }
		every_core_province = {
			limit = {
				OR = {
					culture = flemish
					culture = dutch
					culture = wallonian
				}
			}
			add_province_modifier = {
				name = fee_ned_rights_suppressed
				duration = -1
			}
		}
	}
}

#Baltic Grain
country_event = {
	id = FEE_Netherlands_Events.23
	title = FEE_Netherlands_Events.23.T
	desc = FEE_Netherlands_Events.23.D
	picture = MERCHANTS_TALKING_eventPicture

	fire_only_once = yes
	trigger = {
		tag = HOL
		owns = 97
	}

	mean_time_to_happen = {
		months = 120
	}

	option = {
		name = FEE_Netherlands_Events.23.OPT1
		ai_chance = {
			factor = 100
		}

		97 = {
			add_province_modifier = {
				name = fee_ned_grain_import_center
				duration = -1
			}
		}
		1926 = {
			add_trade_modifier = {
				who = ROOT
				duration = -1
				power = 10
				key = fee_ned_baltic_trade_influence
			}
		}
	}
}

#The Frisian Peasant Rebellion
country_event = {
	id = FEE_Netherlands_Events.24
	title = FEE_Netherlands_Events.24.T
	desc = FEE_Netherlands_Events.24.D
	picture = ANGRY_MOB_eventPicture

	fire_only_once = yes
	trigger = {
		OR = {
			NOT = { tag = FRI }
			NOT = { tag = EFR }
		}
		owns = 100
		owns = 4382
		owns = 1931
		is_year = 1500
		NOT = { is_year = 1530 }
	}

	option = {
		name = FEE_Netherlands_Events.24.OPT1
		ai_chance = {
			factor = 50
		}

		random_owned_province = {
			limit = { culture = frisian }
			spawn_rebels = {
				size = 3
				type = leadered_peasant_rebels
				leader = "Pier Gerlofs Donia"
			}
		}
		every_owned_province = {
			limit = { culture = frisian }
			add_local_autonomy = 25
		}
	}

	option = {
		name = FEE_Netherlands_Events.24.OPT2
		ai_chance = {
			factor = 50
		}
		trigger = {
			NOT = { exists = FRI }
		}

		100 = {
			if = {
				limit = {
					NOT = { is_core = FRI }
				}
				add_core = FRI
			}
		}
		4382 = {
			if = {
				limit = {
					NOT = { is_core = FRI }
				}
				add_core = FRI
			}
		}
		1931 = {
			if = {
				limit = {
					NOT = { is_core = FRI }
				}
				add_core = FRI
			}
		}
		release = FRI
		FRI = {
			change_religion = catholic
			change_primary_culture = frisian
			hidden_effect = {
				add_years_of_income = 1
				add_yearly_manpower = 1
				define_ruler = {
					name = "Pier Gerlofs Donia"
					culture = frisian
					religion = catholic
					adm = 2
					dip = 4
					mil = 3
				}
				capital_scope = {
					build_to_forcelimit = {
						infantry = 0.7
						cavalry = 0.2
						artillery = 0.1
					}
				}
				every_owned_province = {
					change_religion = catholic
					change_culture = frisian
				}
			}
		}
		create_march = FRI
	}
}

#Sack of Antwerp (Spain)
country_event = {
	id = FEE_Netherlands_Events.25
	title = FEE_Netherlands_Events.25.T
	desc = FEE_Netherlands_Events.25.D
	picture = CITY_eventPicture

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = FEE_Netherlands_Events.25.OPT1

		add_years_of_income = 0.35
		add_army_professionalism = -0.025
		add_prestige = -20
		add_country_modifier = {
			name = fee_ned_spanish_fury
			duration = 14600
		}
		1744 = {
			owner = {
				add_opinion = {
					who = ROOT
					modifier = fee_ned_sacked_antwerp
				}
				country_event = { id = FEE_Netherlands_Events.26 }
			}
		}
	}

	option = {
		name = FEE_Netherlands_Events.25.OPT2

		add_years_of_income = 0.1
		add_army_professionalism = 0.05
		add_prestige_or_monarch_power = { amount = 5 }
		add_mil_power = -35
		add_country_modifier = {
			name = fee_ned_discipline_restored
			duration = 14600
		}
		1744 = {
			owner = {
				add_opinion = {
					who = ROOT
					modifier = fee_ned_sacked_antwerp_punished_mutineers
				}
				country_event = { id = FEE_Netherlands_Events.26 }
			}
		}
	}
}

#Sack of Antwerp (Owner)
country_event = {
	id = FEE_Netherlands_Events.26
	title = FEE_Netherlands_Events.26.T
	desc = FEE_Netherlands_Events.26.D
	picture = CITY_eventPicture

	fire_only_once = yes

	is_triggered_only = yes

	option = {
		name = FEE_Netherlands_Events.26.OPT1

		add_country_modifier = {
			name = fee_ned_black_legend
			duration = -1
		}
		1744 = {
			add_base_tax = -2
			add_base_production = -2
			add_base_manpower = -2
			add_devastation = 95
			if = {
				limit = {
					has_trade_building_trigger = yes
				}
				remove_building = marketplace
				remove_building = trade_depot
				remove_building = stock_exchange
			}
			add_province_modifier = {
				name = fee_ned_destroyed_infrastructure
				duration = 7300
			}
			add_province_modifier = {
				name = fee_ned_decline_antwerp_cloth_market
				duration = -1
			}
		}

		97 = {
			add_base_tax = 1
			add_base_production = 2
			add_base_manpower = 1
			add_province_modifier = {
				name = fee_ned_refugees_antwerp
				duration = 7300
			}
			add_province_modifier = {
				name = fee_ned_legacy_antwerp
				duration = -1
			}
		}
	}
}