########################################
# Flavor events for Holland/The Netherlands
#
# written by Sara Wendel-rtqvist & Johan Andersson
########################################

namespace = flavor_hol
normal_or_historical_nations = yes

#Erasmus
country_event = {
	id = flavor_hol.5120
	title = "flavor_hol.EVTNAME5120"
	desc = "flavor_hol.EVTDESC5120"
	picture = ADVISOR_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		OR = {
			tag = NED
			tag = HOL
		}
		is_year = 1495
		NOT = {
			is_year = 1536
		}
	}
	
	mean_time_to_happen = {
		months = 123
	}
	
	option = {
		name = "flavor_hol.EVTOPTOK"
		add_dip_power = 100
		if = {
			limit = {
				NOT = { advisor_exists = 225 }
			}
			define_advisor = {
				type = philosopher
				name = "Erasmus"
				culture = dutch
				religion = catholic
				discount = yes
				skill = 3
			}
		}
	}
}

#Hugo Grotius
country_event = {
	id = flavor_hol.5121
	title = "flavor_hol.EVTNAME5121"
	desc = "flavor_hol.EVTDESC5121"
	picture = ECONOMY_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = NED
		is_year = 1603
		NOT = {
			is_year = 1645
		}

		owns = 97
	}
	
	mean_time_to_happen = {
		months = 200
	}
	
	option = {
		name = "flavor_hol.EVTOPTOK"
		add_adm_power = 100
		if = {
			limit = {
				NOT = {
					has_completed_all_reforms_trigger = yes
				}
			}
			add_reform_progress_small_effect = yes
		}
		if = {
			limit = {
				NOT = { advisor_exists = 895 }
			}		
			
			define_advisor = {
				type = statesman
				name = "Hugo Grotius"
				culture = dutch
				discount = yes
				skill = 3
				location = 97 #Holland
			}
			add_innovativeness_small_effect = yes
		}
	}
}

#Christiaan Huygens
country_event = {
	id = flavor_hol.5122
	title = "flavor_hol.EVTNAME5122"
	desc = "flavor_hol.EVTDESC5122"
	picture = ADVISOR_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = NED
		is_year = 1623
		NOT = {
			is_year = 1687
		}
		owns = 97
	}
	
	mean_time_to_happen = {
		months = 200
	}
	
	option = {
		name = "flavor_hol.EVTOPTOK"
		add_adm_power = 100
		add_reform_progress_small_effect = yes
		if = {
			limit = {
				NOT = { advisor_exists = 905 }
			}			
			define_advisor = {
				type = natural_scientist
				name = "Christiaan Huygens"
				culture = dutch
				discount = yes
				skill = 2
				location = 97
			}
			add_innovativeness_small_effect = yes
		}
	}
}

#  Mercator
country_event = {
	id = flavor_hol.1506
	title = "flavor_hol.EVTNAME1506"
	desc = "flavor_hol.EVTDESC1506"
	picture = ADVISOR_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = NED
		is_year = 1540
		NOT = {
			is_year = 1594
		}
		owns = 92
	}
	
	mean_time_to_happen = {
		months = 200
	}
	
	option = {
		name = "flavor_hol.EVTOPTOK"
		add_mil_power = 100
		if = {
			limit = {
				NOT = { advisor_exists = 887 }
			}			
			define_advisor = {
				type = navigator
				name = "000000"
				culture = flemish
				discount = yes
				skill = 2
				location = 92 #Brabant
			}
			add_innovativeness_small_effect = yes
		}
	}
}

#Constitutionalism and the General Estates
country_event = {
	id = flavor_hol.3502
	title = "flavor_hol.EVTNAME3502"
	desc = "flavor_hol.EVTDESC3502"
	picture = ELECTION_REPUBLICAN_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = NED
		OR = {
			NOT = { has_reform = dutch_republic }
			NOT = {	has_government_attribute = has_dutch_election }
			NOT = { has_reform = stadthalter_monarchy_reform }
		}
		NOT = { has_reform = celestial_empire }
		is_revolutionary = no
		is_subject = no
	}
	
	mean_time_to_happen = {
		months = 96
	}
	
	immediate = {
		hidden_effect = {
			set_country_flag = ned_dutch_republic_event_happened
		}
	}
	
	option = {
		name = "flavor_hol.EVTOPTB3502" #Confederacy on Republican Model
		ai_chance = { factor = 100 }
		if = {
			limit = { NOT = { government = republic } }
			change_government = republic
		}
		if = {
			limit = {
				has_reform = parliamentary_reform
			}
			remove_government_reform = parliamentary_reform
		}
		add_government_reform = dutch_republic
	}
	option = {
		name = "flavor_hol.EVTOPTA3502" #Confederacy with traces of Monarchism
		ai_chance = { factor = 0 }
		if = {
			limit = { NOT = { government = monarchy } }
			change_government = monarchy
		}
		if = {
			limit = {
				has_reform = parliamentary_reform
			}
			remove_government_reform = parliamentary_reform
		}
		add_government_reform = stadthalter_monarchy_reform
	}
	option = {
		name = "flavor_hol.EVTOPTD3502" #Keep current government
		ai_chance = { factor = 0 }
	}
}

#Creation of the Amsterdam Stock Exchange
country_event = {
	id = flavor_hol.3504
	title = "flavor_hol.EVTNAME3504"
	desc = "flavor_hol.EVTDESC3504"
	picture = ECONOMY_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = NED
		is_year = 1580
	}
	
	mean_time_to_happen = {
		months = 100
	}
	
	option = {
		name = "flavor_hol.EVTOPTA3504" #Expand Loan Market
		add_country_modifier = {
			name = hol_expand_loan_market
			duration = -1
		}
		add_innovativeness_small_effect = yes
	}
	option = {
		name = "flavor_hol.EVTOPTB3504" #Issue Strict Control
		add_country_modifier = {
			name = hol_strict_control
			duration = -1
		}
		add_innovativeness_small_effect = yes
	}
}

#Veerinigte Westindische Companie
country_event = {
	id = flavor_hol.3506
	title = "flavor_hol.EVTNAME3506"
	desc = "flavor_hol.EVTDESC3506"
	picture = SHIP_SAILING_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = NED
		is_year = 1610
		any_active_trade_node = {
			has_merchant = prev
			province_id = 1516	#Carribean tradenode
		}
	}
	
	mean_time_to_happen = {
		months = 100
	}
	
	option = {
		name = "flavor_hol.EVTOPTA3506" #We will exploit this!
	
		491 = {
			add_trade_modifier = {
				who = root
				duration = -1
				power = 25
				key = hol_jamaican_trade_node
			}
		}
	}
}

# Dutch Military Reforms
country_event = {
	id = flavor_hol.3507
	title = "flavor_hol.EVTNAME3507"
	desc = "flavor_hol.EVTDESC3507"
	picture = REFORM_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		OR = {
			has_country_flag = ned_unlocked_military_reforms_flag
			AND = {
				tag = NED
				is_year = 1601
				NOT = { is_year = 1626 }
			}
		}
	}
	
	mean_time_to_happen = {
		months = 50
	}

	immediate = {
		set_country_flag = ned_unlocked_military_reforms_flag 
	}
	
	option = {
		name = "flavor_hol.EVTOPTA3507" # Reform Army and Navy
		add_dip_power = 100
		add_mil_power = 100
		add_navy_tradition = 10
		add_army_tradition = 10
	}
	option = {
		name = "flavor_hol.EVTOPTB3507" # Reform Army
		add_mil_power = 200
		add_army_tradition = 20
	}
	option = {
		name = "flavor_hol.EVTOPTC3507" # Reform Navy
		add_dip_power = 200
		add_navy_tradition = 20
	}
}

# Calvinism in the Netherlands
country_event = {
	id = flavor_hol.3508
	title = "flavor_hol.EVTNAME3508"
	desc = "flavor_hol.EVTDESC3508"
	picture = RELIGION_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = NED
		is_year = 1618
		religion = reformed
	}
	
	mean_time_to_happen = {
		months = 120
	}
	
	option = {
		name = "flavor_hol.EVTOPTA3508" #Gomarism
		add_country_modifier = {
			name = hol_gomarism
			duration = -1
		}
	}
	option = {
		name = "flavor_hol.EVTOPTB3508" #Arminianism
		add_country_modifier = {
			name = hol_arminianism
			duration = -1
		}
	}
}

#Statholder office is made Hereditary in Oranien Dynasty
country_event = {
	id = flavor_hol.3513
	title = "flavor_hol.EVTNAME3513"
	desc = "flavor_hol.EVTDESC3513"
	picture = COURT_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = NED
		is_year = 1600
		NOT = { is_year = 1700 }
		has_government_attribute = has_dutch_election
	}
	
	mean_time_to_happen = {
		months = 200
	}
	
	option = {
		name = "flavor_hol.EVTOPTA3513" #Yes, we need Order!
		add_legitimacy_equivalent = { amount = -20 republican_tradition = -10 }
		add_stability_or_adm_power = yes
		set_country_flag = ned_hereditary_stadtholder
	}
	option = {
		name = "flavor_hol.EVTOPTB3513" #No, we need Freedom!
		add_legitimacy_equivalent = { amount = 10 republican_tradition = 5 }
	}
}

#The Revolution in Holland
country_event = {
	id = flavor_hol.3515
	title = "flavor_hol.EVTNAME3515"
	desc = "flavor_hol.EVTDESC3515"
	picture = DEBATE_REPUBLICAN_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = NED
		NOT = { exists = FRA }
		revolution_target_exists = yes
		OR = {
			government = monarchy
			has_government_attribute = has_dutch_election
		}
		NOT = { stability = 3 }
	}
	
	mean_time_to_happen = {
		months = 32
	}
	
	option = {
		name = "flavor_hol.EVTOPTA3515" #React against Revolutionary Tendencies!
		add_stability = -1
		random_owned_province = {
			revolutionary_rebels = 3
		}
	}
}

#Jan de Witt
country_event = {
	id = flavor_hol.3713
	title = "flavor_hol.EVTNAME3713"
	desc = "flavor_hol.EVTDESC3713"
	picture = INVENTION_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = NED
		is_year = 1650
		NOT = { is_year = 1672 }
		has_regency = no
	}
	
	mean_time_to_happen = {
		months = 100
	}
	
	option = {
		name = "flavor_hol.EVTOPTA3713"
		add_reform_progress_small_effect = yes
		add_ruler_modifier = {
			name = hol_de_witt
		}
	}
}

# Anthony Heinsius
country_event = {
	id = flavor_hol.3714
	title = "flavor_hol.EVTNAME3714"
	desc = "flavor_hol.EVTDESC3714"
	picture = INVENTION_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = NED
		is_year = 1688
		NOT = { is_year = 1720 }
		has_regency = no
	}
	
	mean_time_to_happen = {
		months = 100
	}
	
	option = {
		name = "flavor_hol.EVTOPTA3713"
		add_ruler_modifier = {
			name = hol_anthony_heinsius
		}
	}
}

# Leiden University
country_event = {
	id = flavor_hol.1
	title = "flavor_hol.EVTNAME1"
	desc = "flavor_hol.EVTDESC1"
	picture = UNIVERSITY_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		OR = {
			has_country_flag = ned_unlocks_leiden_university
			AND = {
				tag = NED
				is_year = 1575
				NOT = { is_year = 1600 }
				owns = 4383
			}
		}
	}
	
	mean_time_to_happen = {
		months = 100
	}
	
	option = {
		name = "flavor_hol.EVTOPTA1" #Sponsor the university
		add_years_of_income = -0.25
		add_prestige = 5
		4383 = {
			add_or_upgrade_university_building = yes
		}
		add_innovativeness_small_effect = yes
	}
	option = {
		name = "flavor_hol.EVTOPTB1" #Do nothing
		add_prestige = -1

	}
}

#Synod of Dort
country_event = {
	id = flavor_hol.2
	title = "flavor_hol.EVTNAME2"
	desc = "flavor_hol.EVTDESC2"
	picture = RELIGION_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = NED
		OR = { 
			has_country_modifier = hol_gomarism
			has_country_modifier = hol_arminianism 
		}
		is_year = 1640
	}
	
	mean_time_to_happen = {
		months = 200
	}
	
	option = {
		name = "flavor_hol.EVTOPTA2" #Gomarism is frowned upon 
		trigger = {
			has_country_modifier = hol_gomarism
		}
		remove_country_modifier = hol_gomarism
	}
	option = {
		name = "flavor_hol.EVTOPTB2" #Arminianism is condemned
		trigger = {
			has_country_modifier = hol_arminianism
		}
		remove_country_modifier = hol_arminianism
	}
	option = {
		name = "flavor_hol.EVTOPTC2" #Ignore it
		add_stability_or_adm_power = yes
		
	}
}

# Statenvertaling
country_event = {
	id = flavor_hol.3
	title = "flavor_hol.EVTNAME3"
	desc = "flavor_hol.EVTDESC3"
	picture = RELIGION_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = NED
		is_year = 1630
		NOT = { is_year = 1655 }
	}
	
	mean_time_to_happen = {
		months = 100
	}
	
	option = {
		name = "flavor_hol.EVTOPTA3" #Found the Statenbijbel
		add_years_of_income = -0.5
		add_reform_progress_small_effect = yes
		add_country_modifier = { 
			name = hol_statenbijbel
			duration = -1 
		}
	}
	option = {
		name = "flavor_hol.EVTOPTB3"
		add_prestige = -1
	}
}

# Simon Stevin
country_event = {
	id = flavor_hol.4
	title = "flavor_hol.EVTNAME4"
	desc = "flavor_hol.EVTDESC4"
	picture = ADVISOR_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = NED
		is_year = 1570
		NOT = {
			is_year = 1620
		}
		NOT = { advisor_exists = 893 }
		NOT = { is_advisor_employed = 893 }
		owns = 97
	}
	
	mean_time_to_happen = {
		months = 200
	}
	
	option = {
		name = "flavor_hol.EVTOPTA4" #Employ him
		add_dip_power = 100
		define_advisor = {
			type = natural_scientist
			name = "Simon Stevin"
			culture = flemish
			discount = yes
			skill = 3
			location = 97
		}
		add_innovativeness_small_effect = yes
	}
}

# Wilhelmus 
country_event = {
	id = flavor_hol.5
	title = "flavor_hol.EVTNAME5"
	desc = "flavor_hol.EVTDESC5"
	picture = COURT_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = NED
		is_year = 1574
		NOT = { is_year = 1600 }
		has_regency = no
	}
	
	mean_time_to_happen = {
		months = 78
	}
	
	option = {
		name = "flavor_hol.EVTOPTOK"
		add_reform_progress_small_effect = yes
		add_ruler_modifier = { name = hol_wilhelmus }
	}
}

################################################
# Additional Flavor Events by Henrik Lohmander
################################################

# Tulip Crash
country_event = {
	id = flavor_hol.6
	title = flavor_hol.6.t
	desc = flavor_hol.6.d
	picture = COURT_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = NED
		is_year = 1550
		monthly_income = 150
		1269 = {		#Antwerpen
		
			trade_share = {
				country = NED
				share = 25
			}
		}
	}
	
	mean_time_to_happen = {
		months = 64
	}
	
	option = {
		name = flavor_hol.6.a
		add_stability = -1
		
		add_country_modifier = {
			name = hol_tulip_crisis
			duration = 3650	
		}
	}
	option = {
		name = flavor_hol.6.b
		add_inflation = 10
	}
}

# House of Elzevir
country_event = {
	id = flavor_hol.7
	title = flavor_hol.7.t
	desc = flavor_hol.7.d
	picture = BIG_BOOK_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = NED
		#is_year = 1580
		has_institution = printing_press
		NOT = { is_year = 1595 }
		owns = 97
	}
	
	mean_time_to_happen = {
		months = 15
	}
	
	option = {
		name = flavor_hol.7.a
		add_dip_power = 100
		add_prestige = 5
		97 = {
			change_trade_goods = paper
			add_province_modifier = {
				name = "ned_house_of_elzevir"
				duration = -1
			}
		}
	}
}

# Groot Desseyn, The Grand Design
country_event = {
	id = flavor_hol.8
	title = flavor_hol.8.t
	desc = flavor_hol.8.d
	picture = EXPLORERS_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		always = no
		tag = NED
		is_year = 1590
		NOT = { is_year = 1640 }
		is_free_or_tributary_trigger = yes
		POR = {
			NOT = { alliance_with = NED }
			any_owned_province = {
				OR = {
					continent = north_america
					continent = south_america
					continent = africa
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 150
	}
	
	option = {
		name = flavor_hol.8.a #Sounds like a grand plan!
		every_province = {
			limit = {
				OR = {
					owned_by = POR
					owner = { is_colonial_nation_of = POR }
				}
				OR = {
					continent = south_america
					continent = africa
				}
			}
			add_claim = NED
		}
		POR = {
			add_opinion = { who = NED modifier = ned_grand_design }
			every_ally = {
				add_opinion = { who = NED modifier = ned_grand_design }
			}
		}
	}
	option = {
		name = flavor_hol.8.b #No, the international community would hate us.
		add_prestige = 5
	}
}

# The Fluyte
country_event = {
	id = flavor_hol.9
	title = flavor_hol.9.t
	desc = flavor_hol.9.d
	picture = SHIP_SAILING_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = NED
		dip_tech = 10 #Flutes
		NOT = { is_year = 1610 }
		owns = 97
	}
	
	mean_time_to_happen = {
		months = 45
	}
	
	option = {
		name = flavor_hol.9.a #Ok.
		add_prestige = 5
		97 = {
			add_province_modifier = {
				name = "ned_shipbuilding_industry"
				duration = -1
			}
		}
		add_innovativeness_small_effect = yes
	}
}

# Hardships of the VoC
country_event = {
	id = flavor_hol.10
	title = flavor_hol.10.t
	desc = flavor_hol.10.d
	picture = NAVAL_MILITARY_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = NED
		has_global_flag = decline_of_spices_happened
		is_year = 1650
		has_country_modifier = dutch_india_trade_co
		any_owned_province = {
			OR = {
				region = malaya_region
				region = moluccas_region
				region = indonesia_region
				region = coromandel_region
				region = deccan_region
				region = west_india_region
				region = hindusthan_region
				region = bengal_region
				region = burma_region
				region = indo_china_region
			}
			is_owned_by_trade_company = yes
		}
	}
	
	mean_time_to_happen = {
		months = 300
	}
	
	option = {
		name = flavor_hol.10.a #Reorient to a more generalist approach
		add_dip_power = -50
		set_country_flag = ned_voc_hardships
	}
	option = {
		name = flavor_hol.10.b #Provide Generous loans to help the VoC get back on its feet
		add_years_of_income = -0.25
		set_country_flag = ned_voc_big_debt
	}
	option = {
		name = flavor_hol.10.c #Dissolve the VoC (this is not a very attractive option at this point)
		add_stability = -3
		add_inflation = 5
		remove_country_modifier = dutch_india_trade_co
	}
}

#VoC in financial peril
country_event = {
	id = flavor_hol.11
	title = flavor_hol.11.t
	desc = flavor_hol.11.d
	picture = NAVAL_MILITARY_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = NED
		OR = {
			has_country_flag = ned_voc_hardships
			has_country_flag = ned_voc_big_debt
		}
		is_year = 1700
		has_country_modifier = dutch_india_trade_co
		any_owned_province = {
			OR = {
				region = malaya_region
				region = moluccas_region
				region = indonesia_region
				region = coromandel_region
				region = deccan_region
				region = west_india_region
				region = hindusthan_region
				region = bengal_region
				region = burma_region
				region = indo_china_region
			}
			is_owned_by_trade_company = yes
		}
	}
	
	mean_time_to_happen = {
		months = 300
		modifier = {
			factor = 0.5
			has_country_flag = ned_voc_big_debt
		}
	}
	
	option = {
		name = flavor_hol.11.a #They need more loans!
		add_years_of_income = -0.5
		set_country_flag = ned_voc_in_peril
	}
	option = {
		name = flavor_hol.11.b #Dissolve the VoC
		set_country_flag = VoC_nationalized
		add_stability = -2
		add_inflation = 8
		remove_country_modifier = dutch_india_trade_co
	}
}

#Nationalization of the VoC?
country_event = {
	id = flavor_hol.12
	title = flavor_hol.12.t
	desc = flavor_hol.12.d
	picture = NAVAL_MILITARY_eventPicture
	
	fire_only_once = yes #Unlike the others this one also triggers if you have provinces in the east and the VoC modifier but have removed (or never added) the provinces to a trade company
	
	trigger = {
		tag = NED
		has_country_flag = ned_voc_in_peril
		is_year = 1750
		has_country_modifier = dutch_india_trade_co
		any_owned_province = {
			OR = {
				region = malaya_region
				region = moluccas_region
				region = indonesia_region
				region = coromandel_region
				region = deccan_region
				region = west_india_region
				region = hindusthan_region
				region = bengal_region
				region = burma_region
				region = indo_china_region
			}
		}
	}
	
	mean_time_to_happen = {
		months = 210
		modifier = {
			factor = 0.5
			has_country_flag = ned_voc_big_debt
		}
	}
	
	option = {
		name = flavor_hol.12.a #They need even more loans!
		custom_tooltip = flavor_hol.12.a.tt
		set_country_flag = VoC_huge_debts
		add_years_of_income = -1
	}
	option = {
		name = flavor_hol.12.b #Dissolve the VoC
		set_country_flag = VoC_nationalized
		add_stability = -1
		add_dip_power = -50
		add_inflation = 10
		remove_country_modifier = dutch_india_trade_co
	}
}

#The Bank of Amsterdam & The International Capital Market
country_event = {
	id = flavor_hol.13
	title = flavor_hol.13.t
	desc = flavor_hol.13.d
	picture = BANKRUPTCY_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = NED
		is_year = 1700
		OR = {
			has_country_modifier = hol_expand_loan_market
			AND = {
				has_country_modifier = dutch_india_trade_co
				has_country_flag = VoC_huge_debts
			}
			has_country_flag = VoC_nationalized
		}
	}
	
	mean_time_to_happen = {
		months = 210
		modifier = {
			factor = 0.5
			has_country_modifier = dutch_india_trade_co
			has_country_flag = VoC_huge_debts
		}
		modifier = {
			factor = 0.7
			has_country_flag = VoC_nationalized
		}
	}
	
	option = {
		name = flavor_hol.13.a #
		add_inflation = 10
		add_adm_power = -100
	}
	option = {
		name = flavor_hol.13.b #
		add_country_modifier = {
			name = "ned_bank_crisis"
			duration = 3650
		}
	}
}

#The Immortal Seven
country_event = {
	id = flavor_hol.14
	title = flavor_hol.14.t
	desc = flavor_hol.14.d
	picture = SPY_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		OR = {
			tag = GBR
			tag = ENG
		}
		is_year = 1600
		NOT = { is_year = 1700 }
		government = monarchy
		exists = NED
		is_subject = no
		NOT = { legitimacy = 50 }
		OR = {
			religion = protestant
			religion = reformed
			religion = anglican
			religion = hussite
		}
		OR = {
			any_ally = { religion = catholic }
			marriage_with = NED
		}
		NED = {
			is_subject = no
			has_government_attribute = has_dutch_election
			num_of_cities = 6 #If too small this won't make much sense.
			OR = {
				religion = protestant
				religion = reformed
				religion = anglican
				religion = hussite
			}
			OR = {
				AND = {
					has_dlc = "Res Publica"
					is_orangists_in_power = yes
				}
				has_country_flag = ned_hereditary_stadtholder
			}
		}
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 0.5
			NOT = { legitimacy = 50 }
		}
		modifier = {
			factor = 0.5
			NOT = { legitimacy = 25 }
		}
		modifier = {
			factor = 0.8
			alliance_with = FRA
		}
	}
	
	option = {
		name = flavor_hol.14.a #Ok.
		NED = { country_event = { id = flavor_hol.15 } }
	}
}

#Invitation to William
country_event = {
	id = flavor_hol.15
	title = flavor_hol.15.t
	desc = flavor_hol.15.d
	picture = SPY_eventPicture
	
	fire_only_once = yes
	
	is_triggered_only = yes
	
	option = {
		name = flavor_hol.15.a #Accept
		ai_chance = {
			factor = 1
		}
		add_casus_belli = {
			target = FROM
			type = cb_restore_personal_union
			months = 60
		}
		FROM = {
			country_event = { id = flavor_hol.16 }
		}
		tooltip = {
			FROM = {
				add_opinion = {
					who = NED
					modifier = ned_accepted_glorious_revolution
				}
			}
		}
	}
	option = {
		name = flavor_hol.15.b #Refuse
		ai_chance = {
			factor = 0
		}
		FROM = {
			country_event = { id = flavor_hol.17 }
		}
		tooltip = {
			FROM = {
				add_opinion = {
					who = NED
					modifier = ned_refused_glorious_revolution
				}
			}
		}
	}
}

# The Meddlesome Dutch
country_event = {
	id = flavor_hol.16
	title = flavor_hol.16.t
	desc = flavor_hol.16.d
	picture = SPY_eventPicture
	
	fire_only_once = yes
	
	is_triggered_only = yes
	
	option = {
		name = flavor_hol.16.a #Ok.
		custom_tooltip = flavor_hol.16.a.tt
		add_opinion = {
			who = NED
			modifier = ned_accepted_glorious_revolution
		}
	}
}

# Conspirators in the cold
country_event = {
	id = flavor_hol.17
	title = flavor_hol.17.t
	desc = flavor_hol.17.d
	picture = SPY_eventPicture
	
	fire_only_once = yes
	
	is_triggered_only = yes
	
	option = {
		name = flavor_hol.17.a #Great!
		add_opinion = {
			who = NED
			modifier = ned_refused_glorious_revolution
		}
	}
}

#Franco-Dutch tensions

country_event = {
	id = flavor_hol.18
	title = flavor_hol.18.t
	desc = flavor_hol.18.d
	picture = LAND_MILITARY_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = NED
		exists = FRA
		is_year = 1650
		OR = {
			religion = protestant
			religion = reformed
		}
		FRA = {
			religion = catholic
			OR = {
				NOT = { has_country_modifier = edict_de_nantes }
				is_neighbor_of = NED
			}
		}
	}
	
	mean_time_to_happen = {
		months = 450
	}
	
	option = {
		name = flavor_hol.18.a #Our policy must be to contain the French
		FRA = {
			country_event = { id = flavor_hol.19 }
			every_rival_country = {
				limit = {
					NOT = { tag = NED }
					knows_country = NED
				}
				add_opinion = {
					who = NED
					modifier = ned_anti_french_policy
				}
			}
			add_opinion = {
				who = NED
				modifier = fra_dutch_friction
			}
		}
	}
	
	option = {
		name = flavor_hol.18.b #Pursue a friendly policy towards the French
		FRA = {
			add_opinion = {
				who = NED
				modifier = ned_friendly_towards_france
			}
		}
		hidden_effect = {
			add_opinion = {
				who = FRA
				modifier = ned_friendly_towards_france
			}
		}
	}
}

#Le Prisonnier de Hollande / Franco-Dutch Relations
country_event = {
	id = flavor_hol.19
	title = flavor_hol.19.t
	desc = flavor_hol.19.d
	picture = LAND_MILITARY_eventPicture
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = flavor_hol.19.a #Ok.
		custom_tooltip = flavor_hol.19.a.tt
	}
}

#Dejima - Japan
country_event = {
	id = flavor_hol.20
	title = flavor_hol.20.t
	desc = flavor_hol.20.d
	picture = MERCHANTS_TALKING_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		has_reform = shogunate
		has_country_modifier = sakoku_law
		has_country_flag = sakoku_law
		exists = NED
		any_owned_province = {
			region = japan_region
			has_discovered = NED
		}
		NED = {
			has_country_modifier = dutch_india_trade_co
		}
	}
	
	mean_time_to_happen = {
		months = 10
	}
	
	option = {
		name = flavor_hol.20.a #Allow the Dutch to stay.
		set_country_flag = ned_dejima_allowed
		NED = {
			country_event = { id = flavor_hol.21 }
			add_opinion = {
				who = ROOT
				modifier = ned_dejima
			}
		}
		custom_tooltip = flavor_hol.20.a.tt
	}
	option = {
		name = flavor_hol.20.b #All Westerners must go.
		add_prestige = 5
	}
}

#Dejima - Netherlands
country_event = {
	id = flavor_hol.21
	title = flavor_hol.21.t
	desc = flavor_hol.21.d
	picture = MERCHANTS_TALKING_eventPicture
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = flavor_hol.21.a #Great!
		1376 = {
			add_trade_modifier = {
				who = NED
				duration = -1
				power = 20
				key = NED_DEJIMA_TRADE
			}
		}
	}
}

#Arumer Zwarte Hoop
country_event = {
	id = flavor_hol.22
	title = flavor_hol.22.t
	desc = flavor_hol.22.d
	picture = ANGRY_MOB_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		NOT = { primary_culture = dutch }
		owns_core_province = 99
		owns_core_province = 100
		NOT = { is_year = 1523 }
		NOT = { exists = BUR }
		NOT = { exists = FRI }
		NOT = { exists = GEL }
	}
	
	mean_time_to_happen = {
		months = 75
	}
	
	option = {
		name = flavor_hol.22.a #Crush the Traitors.
		99 = {
			spawn_rebels = {
				type = nationalist_rebels
				size = 1
				leader = "Pier Gerlofs Donia"
			}
		}
		100 = {
			spawn_rebels = {
				type = nationalist_rebels
				size = 1
			}
		}
	}
}

#Pruikentijd - The Age of the Wigwearers
country_event = {
	id = flavor_hol.23
	title = flavor_hol.23.t
	desc = flavor_hol.23.d
	picture = ARTWORK_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = NED
		is_year = 1700
		trade_income_percentage = 0.4
	}
	
	mean_time_to_happen = {
		months = 360
	}
	
	option = {
		name = flavor_hol.23.a #Complacency? Pfah!
		add_country_modifier = {
			name = "ned_pruikentijd"
			duration = 5475
		}
		add_prestige = -10
	}
}

#Baruch Spinoza
country_event = {
	id = flavor_hol.24
	title = flavor_hol.24.t
	desc = flavor_hol.24.d
	picture = ARTWORK_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = NED
		is_year = 1655
		NOT = { is_year = 1677 }
	}
	
	mean_time_to_happen = {
		months = 66
	}
	
	option = {
		name = flavor_hol.24.a #Ok.
		add_adm_power = 100
		add_prestige = 5
		if = {
			limit = {
				NOT = { advisor_exists = 922 }
			}
			define_advisor = {
				type = philosopher
				name = "Baruch Spinoza"
				religion = jewish
				culture = portugese #Or Dutch
				discount = yes
				skill = 3
				location = 97
			}
		}
		
	}
}

country_event = { #The Great Council of the Low Countries
	id = flavor_hol.200
	title = flavor_hol.200.t 
	desc = flavor_hol.200.d 
	picture = DEBATE_REPUBLICAN_eventPicture
	fire_only_once = yes
	trigger = {
		tag = BUR
		HOL = { is_subject_of = ROOT }
		BRB = { is_subject_of = ROOT }
		1744 = { country_or_non_sovereign_subject_holds = ROOT }
		is_year = 1460
		NOT = { is_year = 1500 }
	}

	mean_time_to_happen = {
		months = 180
	}
	
	option = {	
		name = flavor_hol.200.a 
		
		add_country_modifier = {
			name = hol_parliament_of_mechelen_modifier
			duration = 3650
		}
		HOL = { add_liberty_desire = -5 }
		BRB = { add_liberty_desire = -5 }
	}
}

country_event = { #The Shifting Winds of Trade
	id = flavor_hol.201
	title = flavor_hol.201.t 
	desc = flavor_hol.201.d 
	picture = HARBOUR_eventPicture
	fire_only_once = yes
	trigger = {
		OR = {
			primary_culture = dutch
			primary_culture = flemish
			primary_culture = frisian
		}
		capital_scope = { region = low_countries_region }
		monthly_income = HSA
		45 = {
			trade_share = {
				country = ROOT
				share = 15
			}
		}
		is_at_war = no
		NOT = { is_year = 1500 }
	}

	mean_time_to_happen = {
		months = 200
	}
	
	option = {
		name = flavor_hol.201.a 
		
		add_country_modifier = {
			name = hol_influx_prosperity_modifier
			duration = 3650
		}
		add_country_modifier = {
			name = hol_ample_grain_trade_modifier 
			duration = 3650
		}
	}
}

country_event = {
	id = flavor_hol.202
	title = flavor_hol.202.t 
	desc = flavor_hol.202.d 
	picture = CITY_VIEW_eventPicture
	fire_only_once = yes
	trigger = {
		owns_core_province = 1744
		1744 = { 
			NOT = { unrest = 1 }
			if = { 
				limit = { has_dlc = "Mandate of Heaven" } 
				NOT = { devastation = 1 } 
			}
			num_of_times_improved = 5
			num_of_buildings_in_province = 4
		}
		OR = {
			primary_culture = dutch
			primary_culture = flemish
			primary_culture = frisian
		}
		is_subject = no
		capital_scope = { region = low_countries_region }
		NOT = { is_year = 1525 }
	}
	
	option = {
		name = flavor_hol.202.a 
		
		1744 = {
			add_base_tax = 2
		}
		custom_tooltip = " "
		1744 = { set_center_level_2_center_of_trade = yes }
		custom_tooltip = " "
		add_mercantilism_or_monarch_power = { amount = 1 } 
	}
}

country_event = { #Doctorate Rights in the Netherlands
	id = flavor_hol.203
	title = flavor_hol.203.t 
	desc = flavor_hol.203.d 
	picture = UNIVERSITY_eventPicture
	fire_only_once = yes
	
	trigger = {
		tag = NED
		num_of_owned_provinces_with = {
			value = 12
			development = 15
			has_building = university
			region = low_countries_region
		}
	}
	
	option = {
		name = flavor_hol.203.a 
		
		if = {
			limit = { has_dlc = "Rule Britannia" }
			change_innovativeness = 3
		}
		else = {
			random_owned_province = {
				limit = {
					development = 15
					has_building = university
					region = low_countries_region
				} 
				add_base_production = 1
			}
			random_owned_province = {
				limit = {
					development = 15
					has_building = university
					region = low_countries_region
				}
				add_base_tax = 1
			}
		}
		add_country_modifier = {
			name = ned_illustrious_schools_low_countries_modifier
			duration = 5475
		}
	}
}	

country_event = { #The Port of Amsterdam 
	id = flavor_hol.204
	title = flavor_hol.204.t 
	desc = flavor_hol.204.d 
	picture = CITY_VIEW_eventPicture
	fire_only_once = yes

	trigger = {
		OR = {
			primary_culture = dutch
			primary_culture = flemish
			primary_culture = frisian
		}
		owns_core_province = 97
		97 = { num_of_times_improved = 10 }
		97 = { has_production_building_trigger = yes }
		is_year = 1525
	}

	mean_time_to_happen = {
		months = 500
	}
	
	option = {
		name = flavor_hol.204.a 
		
		97 = {
			upgrade_production_building = yes
		}
	}
}

country_event = { #Rempbrant
	id = flavor_hol.205
	title = flavor_hol.205.t 
	desc = flavor_hol.205.d 
	picture = PAINTER_ARTIST_eventPicture
	fire_only_once = yes
	trigger = {
		OR = {
			primary_culture = dutch
			primary_culture = flemish
			primary_culture = frisian
		}
		capital_scope = { region = low_countries_region }
		is_year = 1629
		NOT = { is_year = 1670 }
	}

	mean_time_to_happen = {
		months = 24
	}
	
	option = {
		name = flavor_hol.205.a 
		
		define_advisor = {
			type = artist 
			name = "Rembrandt van Rijn"
			cost_multiplier = 0.25
			skill = 3
		}
		if = {
			limit = { has_dlc = "Rule Britannia" }
			change_innovativeness = 3 
		}
		else = { add_dip_power = 50 }
	}
}

country_event = { #Powerhouse in the Book Trade
	id = flavor_hol.206
	title = flavor_hol.206.t  
	desc = flavor_hol.206.d 
	picture = BIG_BOOK_eventPicture 
	fire_only_once = yes

	trigger = {
		tag = NED
		is_year = 1616
		owns_core_province = 100
		is_at_war = no
	}

	mean_time_to_happen = {
		months = 120
	}
	
	option = {
		name = flavor_hol.206.a 
		
		100 = {
			change_trade_goods = paper 
			add_base_production = 3
		}
		change_price = {
			trade_goods = paper
			key = ned_dutch_bookmarket_key
			value = 0.15
			duration = -1
		}
	}
}

country_event = { #Jan Amos Comenius
	id = flavor_hol.207
	title = flavor_hol.207.t 
	desc = flavor_hol.207.d 
	picture = ADVISOR_eventPicture
	fire_only_once = yes 
	
	trigger = {
		tag = NED 
		is_year = 1600 
		NOT = { is_year = 1650 }
		OR = { 
			religion = protestant 
			religion = reformed 
			has_global_modifier_value = {
				which = tolerance_heretic 
				value = 2 
			}
		}
	}
	
	mean_time_to_happen = { months = 48 } 
	
	option = { 
		name = flavor_hol.207.a 
		
		define_advisor = {
			type = philosopher
			name = "Jan Amos Comenius"
			culture = czech
			skill = 3 
			cost_multiplier = 0.25
		}
		if = { 
			limit = { has_dlc = "Rule Britannia" }
			change_innovativeness = 1 
		}
		else = { add_adm_power = 50 }
	}
}

country_event = { #Antonie van Leeuwenhoek
	id = flavor_hol.208
	title = flavor_hol.208.t 
	desc = flavor_hol.208.d 
	picture = ADVISOR_eventPicture
	fire_only_once = yes 
	
	trigger = {	
		tag = NED 
		is_year = 1630 
		NOT = { is_year = 1720 }
		OR = { 
			religion = protestant 
			religion = reformed 
			has_global_modifier_value = {
				which = tolerance_heretic 
				value = 2 
			}
		}
	}
	
	mean_time_to_happen = { months = 120 }
	
	option = { 
		name = flavor_hol.208.a 
		
		define_advisor = {
			type = natural_scientist
			name = "Antonie van Leeuwenhoek"
			skill = 3
			cost_multiplier = 0.25
		}
		if = { 
			limit = { has_dlc = "Rule Britannia" }
			change_innovativeness = 1 
		}
		else = { add_adm_power = 50 }
	}
}

country_event = { #Jan Leeghwater
	id = flavor_hol.209
	title = flavor_hol.209.t 
	desc = flavor_hol.209.d 
	picture = ADVISOR_eventPicture
	fire_only_once = yes 
	
	trigger = {
		tag = NED 
		is_year = 1575 
		NOT = { is_year = 1625 }
		any_owned_province = {
			OR = {
				development = 40
				is_capital_of = ROOT
				province_has_center_of_trade_of_level = 3
				region = low_countries_region
			}
		}
	}
	
	mean_time_to_happen = { months = 120 }
	
	option = {
		name = flavor_hol.209.a 
		
		add_adm_power = 100
		every_owned_province = {
			limit = {
				OR = {
					development = 40
					is_capital_of = ROOT
					province_has_center_of_trade_of_level = 3
				}
				region = low_countries_region
			}
			add_base_tax = 1
		}
	}
}

country_event = { #Joost van den Vondel
	id = flavor_hol.210
	title = flavor_hol.210.t 
	desc = flavor_hol.210.d 
	picture = CULTURE_eventPicture
	fire_only_once = yes 
	trigger = {
		tag = NED 
		is_year = 1587 
		NOT = { is_year = 1680 } 
	}
	mean_time_to_happen = { months = 120 } 
	
	option = { 
		name = flavor_hol.210.a 
		
		add_dip_power = 50 
		if = {
			limit = { has_dlc = "Mandate of Heaven" }
			add_splendor = 100
		}
		else = { add_prestige_or_monarch_power = { amount = 10 } }
	}
}

country_event = { 
	id = flavor_hol.211 
	title = flavor_hol.211.t 
	desc = flavor_hol.211.d 
	picture = CONSORT_DOING_BADLY_eventPicture
	fire_only_once = yes 
	
	trigger = { 
		tag = NED 
		NOT = { stability = 3 } 
		num_of_loans = 1 
		war_exhaustion = 3
		OR = { 
			is_bankrupt = yes 
			NOT = { adm = 3 } 
			NOT = { dip = 3 } 
		}
		is_at_war = yes 
	}

	mean_time_to_happen = {
		months = 12
	}
	
	option = { 
		name = flavor_hol.211.a
		
		kill_ruler = yes 
		add_stability = -3
		add_legitimacy = -25 
		add_republican_tradition = -20
		add_manpower = -0.002
	}
}