NED_1 = {
	slot = 1
	generic = no
	ai = yes
	has_country_shield = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = { 
		has_dlc = "Winds of Change"
		OR = {
			tag = NED
			tag = HOL
			tag = BRB
			tag = GEL
			tag = UTR
			tag = FRI
			tag = FLA
		}
	} 

	NED_flanders = {
		icon = ned_in_flanders_fields
		position = 2
		required_missions = { NED_raise_the_militia } 
		provinces_to_highlight = {  
			OR = {
				area = flanders_area
				area = brabant_area
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
		} 

		trigger = {  
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = flanders_area
					area = brabant_area
				}
				value = 4
			}
			1744 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
		} 

		effect = {  
			if = {
				limit = {
					primary_culture = flemish
				}
				add_years_of_owned_provinces_production_income = {
					years = 5
					trigger = {
						trade_goods = cloth
						OR = {
							area = flanders_area
							area = brabant_area
						}
					}
					custom_tooltip = NED_FROM_CLOTH_PROVINCES
				}
				1744 = {
					add_center_of_trade_level = 1
				}
			}
			else = {
				country_event_with_option_insight = {
					id = dutch_mission_events.2
					option_1 = "
						1744 = {
							change_culture = ROOT
							add_province_modifier = {
								name = ned_hollander_settlers
								duration = 7300
							}
						}
					"
					option_2 = "
						custom_tooltip = NED_ALL_FLEMISH_PROVINCES_LOSE_SEPERATISM
						custom_tooltip = \" \"
						define_advisor = {
							culture = flemish
							skill = 2
							type = artist
							cost_multiplier = 0.5
						}
					"
				}
			}
		} 
	}
}

NED_1_1 = {
	slot = 1
	generic = no
	ai = yes
	has_country_shield = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = { 
		tag = NED  
		has_dlc = "Winds of Change"
	} 

	NED_luxembourg_fortress = {
		icon = fortress_switzerland
		position = 4
		required_missions = { NED_unification_of_low_countries } 
		provinces_to_highlight = {  
			province_id = 94
			OR = {
				NOT = { development = 15 }
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
				NOT = { has_fort_building_trigger = yes  }
			}
		} 
	
		trigger = {  
			94 = {
				country_or_non_sovereign_subject_holds = ROOT
				has_fort_building_trigger = yes
				development = 15
			}
		} 
	
		effect = {  
			94 = {
				add_or_upgrade_fort_building = yes
				add_province_modifier = {
					name = ned_the_bock
					duration = -1
				}
			}
		} 
	}

	NED_dutch_polders = {
		icon = mission_colonial
		position = 6
		provinces_to_highlight = {  
			region = low_countries_region
			has_port = yes
			country_or_non_sovereign_subject_holds = ROOT
			OR = {
				NOT = { num_of_times_improved_by_owner = 1 }
				NOT = { num_of_buildings_in_province = 1 }
			}
		} 
	
		trigger = {  
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				region = low_countries_region
				has_port = yes
				num_of_times_improved_by_owner = 1
				num_of_buildings_in_province = 1
				value = 6
			}
		} 

		effect = {  
			distribute_development = {
				type = production
				amount = 5
				limit = "
					region = low_countries_region
					has_port = yes
					num_of_times_improved_by_owner = 1
					num_of_buildings_in_province = 1
				"
			}
			custom_tooltip = NED_GRANT_FOLLOWING_TO_ALL_PROVINCES_THAT_MEET_REQUIREMENT
			tooltip = {
				add_province_modifier = {
					name = ned_reclamation_of_coast
					duration = 7300
				}
			}
			hidden_effect = {
				every_owned_province = {
					limit = {
						region = low_countries_region
						has_port = yes
						num_of_times_improved_by_owner = 1
						num_of_buildings_in_province = 1
					}
					add_province_modifier = {
						name = ned_reclamation_of_coast
						duration = 7300
					}
				}
			}
		} 
	}

	NED_low_countries_urbanization = {
		icon = mission_hanseatic_city
		position = 7
		required_missions = {
			NED_dutch_polders
			NED_dutch_canal_works
		}
		provinces_to_highlight = {  
			region = low_countries_region
			country_or_non_sovereign_subject_holds = ROOT
			OR = {
				NOT = { development = 25 }
				NOT = { num_of_buildings_in_province = 4 }
			}
		} 
	
		trigger = {  
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				region = low_countries_region
				development = 25
				num_of_buildings_in_province = 4
				value = 10
			}
			monthly_income = 200
		} 
	
		effect = {  
			if = {
				limit = {
					NOT = { primary_culture = flemish }
				}
				custom_tooltip = NED_DUTCH_URBANIZATION_TOOLTIP
				tooltip = {
					add_province_modifier = {
						name = ned_dutch_urbanization
						duration = -1
					}
				}
				set_country_flag = ned_unlock_dutch_urbanization_flag
				hidden_effect = {
					every_owned_province = {
						limit = {
							region = low_countries_region
							development = 25
							num_of_buildings_in_province = 4
						}
						add_province_modifier = {
							name = ned_dutch_urbanization
							duration = -1
						}
					}
				}
			}
			else = {
				custom_tooltip = NED_DUTCH_URBANIZATION_TOOLTIP
				tooltip = {
					add_province_modifier = {
						name = ned_flemish_urbanization
						duration = -1
					}
				}
				set_country_flag = ned_unlock_flemish_urbanization_flag
				hidden_effect = {
					every_owned_province = {
						limit = {
							region = low_countries_region
							development = 25
							num_of_buildings_in_province = 4
						}
						add_province_modifier = {
							name = ned_flemish_urbanization
							duration = -1
						}
					}
				}
			}
		} 
	}

	NED_fluyts = {
		icon = indonesian_trade
		position = 8
		required_missions = { NED_rise_of_dutch_navy } 

		trigger = {  
			num_of_light_ship = 50
			dip_tech = 7
			if = {
				limit = {
					has_dlc = "Rights of Man"
				}
				num_of_admirals_with_traits = 1
			}
			else = {
				num_of_admirals = 3
			}
		} 

		effect = {  
			set_country_flag = ned_unlocks_fluyts_privileges_flag
			custom_tooltip = NED_UNLOCK_MAXIMIZE_CARGO_SPACE_PRIVILEGE
			custom_tooltip = " "
			custom_tooltip = NED_UNLOCK_DIVERSIFY_FLUYTS_PRIVILEGE
		} 
	}

	NED_sea_beggars = {
		icon = mission_sponsor_piracy
		position = 9

		trigger = {  
			if = {
				limit = {
					OR = {
						has_dlc = "Wealth of Nations"
						has_dlc = "El Dorado"
						has_dlc = "Mare Nostrum"
						has_dlc = "Golden Century"
						has_dlc = "Lions of the North"
					}
				}
				num_ships_privateering = 40
			}
			else = {
				capital_scope = {
					trade_node_value = 40
				}
			}
			navy_size = 50 # modified
		} 

		effect = {  
			add_country_modifier = {
				name = ned_letter_of_marques
				duration = -1
			}
		} 
	}

	NED_organizing_the_church = {
		icon = control_the_church
		position = 11

		trigger = {  
			if = {
				limit = {
					has_estate = estate_church
				}
				estate_loyalty = {
					estate = estate_church
					loyalty = 60
				}
				OR = {
					NOT = {
						estate_influence = {
							estate = estate_church
							influence = 50
						}
					}
					num_of_estate_privileges = {
						estate = estate_church
						value = 4
					}
				}
			}
			else = {
				num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
					has_tax_building_trigger = yes
					value = 5
				}
			}
		} 

		effect = {  
			simple_dynamic_effect_without_alternative = {
				first_custom_tooltip = NED_IF_INFLUENCE
				first_limit = "
					OR = {
						NOT = {
							estate_influence = {
								estate = estate_church
								influence = 50
							}
						}
						NOT = { has_estate = estate_church }
					}
				"
				first_effect = "
					change_estate_land_share = { estate = estate_church share = -5 }
					add_years_of_income = 0.5
				"
				second_custom_tooltip = NED_IF_PRIVILEGES
				second_limit = "
					num_of_estate_privileges = {
						estate = estate_church
						value = 4
					}
				"
				second_effect = "
					add_adm_power = 100
					add_estate_loyalty = {
						estate = estate_church
						loyalty = 10
					}
				"
			}
		} 
	}

	NED_religious_immigrants = {
		icon = mission_cope_with_refugees
		position = 13
		required_missions = { NED_humanism } 
		
		provinces_to_highlight = {
			region = low_countries_region
			owned_by = ROOT
			NOT = {
				development = 35
			}
		}
	
		trigger = {  
			OR = {
				full_idea_group = humanist_ideas
				theologian = 3
			}
			any_owned_province = {
				region = low_countries_region
				development = 35
			}
		} 
	
		effect = {  
			distribute_development = {
				type = production
				amount = 5
			}
			distribute_development = {
				type = tax
				amount = 5
			}
			add_innovativeness_small_effect = yes
			custom_tooltip = " "
			custom_tooltip = NED_NO_INTERFAITH_DIALOG_CLERGY_MALUS
			set_country_flag = ned_buff_interfaith_dialog_clergy_loyalty_flag
		} 
	}

	NED_carribean_colonies = {
		icon = mission_colonize_the_caribbean
		position = 17
		required_missions = { NED_west_indies_company }
		provinces_to_highlight = {
			colonial_region = colonial_the_carribean 
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {  
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				colonial_region = colonial_the_carribean 
				value = 5
			}
		} 

		effect = {  
			custom_tooltip = NED_BUFF_NEW_WORLD_CHARTERS
			set_country_flag = ned_new_world_charters_buff_flag
			random_subject_country = {
				limit = {
					capital_scope = {
						colonial_region = colonial_the_carribean
					}
				}
				add_country_modifier = {
					name = ned_carribean_colony
					duration = 5475
				}
			}
		} 
	}

	NED_guyana = {
		icon = mission_colonise_brazil
		position = 18
		required_missions = { NED_carribean_colonies } 
		provinces_to_highlight = {
			OR = {
				province_id = 743
				province_id = 744
				province_id = 745
				province_id = 2937
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}

		trigger = {  
			743 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			744 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			745 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			2937 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
		} 

		effect = {  
			745 = {
				add_base_manpower = 1
				add_base_production = 1
				add_base_tax = 1
				add_or_upgrade_production_building = yes
			}
			744 = {
				add_or_upgrade_production_building = yes
			}
			743 = {
				add_or_upgrade_production_building = yes
			}
			2937 = {
				add_or_upgrade_production_building = yes
			}
		} 
	}
}

NED_2 = {
	slot = 2
	generic = no
	ai = yes
	has_country_shield = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = { 
		has_dlc = "Winds of Change"
		OR = {
			tag = NED
			tag = HOL
			tag = BRB
			tag = GEL
			tag = UTR
			tag = FRI
			tag = FLA
		}
	} 

	NED_raise_the_militia = {
		icon = mission_landsknecht_soldier
		position = 1

		trigger = {  
			OR = {
				army_size_percentage = 1
				army_size = 4 # modified
			}
		} 

		effect = {  
			give_claims = { area = north_brabant_area }
			give_claims = { area = holland_area }
			give_claims = { area = frisia_area }
			give_claims = { area = flanders_area }
			give_claims = { area = brabant_area }
			
			custom_tooltip = SEPERATOR_TOOLTIP
			
			complex_dynamic_effect = {
				first_custom_tooltip = NED_IF_SUBJECT
				first_limit = "
					is_subject = yes
				"
				first_effect = "
					set_country_flag = ned_no_stab_loss_on_independence_flag
					custom_tooltip = NED_WE_WONT_LOSE_STABILITY_UPON_DECLARING_WAR_ON_OVERLORD
				"
				second_custom_tooltip = NED_IF_FREE
				second_limit = "
					is_subject = no
				"
				second_effect = "
					create_general_with_pips = { tradition = 40 add_shock = 1 }
				"
			}
		} 
	}

	NED_holland = {
		icon = interest_of_holland
		position = 2
		required_missions = { NED_raise_the_militia } 
		provinces_to_highlight = {  
			OR = {
				area = holland_area
				area = north_brabant_area
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
		}

		trigger = {  
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = holland_area
					area = north_brabant_area
				}
				value = 5
			}
		} 

		effect = { 
			custom_tooltip = NED_LOSE_10_AE_WITH_HRE
			
			custom_tooltip = SEPERATOR_TOOLTIP
			
			hidden_effect = {
				every_known_country = {
					limit = {
						is_part_of_hre = yes
					}
					add_aggressive_expansion = {
						who = ROOT
						value = -10
					}
				}
			} 
			if = {
				limit = {
					OR = {
						tag = HOL
						was_tag = HOL
					}
				}
				country_event_with_effect_insight = {
					id = dutch_mission_events.1
					effect = "
						change_mil = 1
						add_legitimacy = 20
					"
				}
			}
			else = {
				custom_tooltip = NED_MOST_DEVELOPED_PROVINCE_GAINS_FOLLOWING
				tooltip = {
					add_base_production = 1
					add_base_manpower = 1
					add_base_manpower = 1
				}
				hidden_effect = {
					pick_best_provinces = {
						scope = every_owned_province
						scale = higher_development_than
						1 = yes
						event_target_name = "low_countries_target"
						global_trigger = "
							OR = {
								area = holland_area
								area = north_brabant_area
							}
						"
					}
					if = {
						limit = {
							has_saved_event_target = low_countries_target_1
						}
						event_target:low_countries_target_1 = {
							add_base_production = 1
							add_base_manpower = 1
							add_base_manpower = 1
						}
					}
				}
			}
		}
	}

	NED_unification_of_low_countries = {
		icon = je_maintiendrai
		position = 3
		required_missions = {
			NED_friesland
			NED_holland
			NED_flanders
		}
		provinces_to_highlight = {  
			region = low_countries_region
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		} 

		trigger = {  
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				value = 15
				region = low_countries_region
			}
		} 

		effect = {
			give_claims = { region = low_countries_region }
			custom_tooltip = " "
			custom_tooltip = NED_ALLOW_FASTER_NETHERLANDS_FORMATION
			set_country_flag = ned_ignore_tech_requirement_netherlands
			if = {
				limit = {
					tag = NED
				}
				add_country_modifier = {
					name = ned_je_maintiedrai
					duration = 14600
				}
			}
			else = {
				add_country_modifier = {
					name = ned_je_maintiedrai
					duration = 10950
				}
				custom_tooltip = " "
				custom_tooltip = NED_IF_NETHERLANDS_EXTEND_ABOVE_MODIFIER
			}
		} 
	}
}

NED_2_1 = {
	slot = 2
	generic = no
	ai = yes
	has_country_shield = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = { 
		has_dlc = "Winds of Change"
		tag = NED
	} 

	NED_cloth_trading = {
		icon = ned_cloth_trading
		position = 5

		trigger = {  
			trade_goods_produced_amount = {
				trade_goods = cloth
				amount = 25
			}
		} 

		effect = {  
			custom_tooltip = NED_ALL_DUTCH_PROVINCES_GAIN_MODIFIER
			tooltip = {
				add_province_modifier = {
					name = ned_dutch_cloth_trading
					duration = 5475
				}
			}
			
			custom_tooltip = NED_ALL_FLEMISH_PROVINCES_GAIN_FOLLOWING
			tooltip = {
				add_province_modifier = {
					name = ned_flemish_cloth_trading
					duration = 5475
				}
			}
			hidden_effect = {
				every_owned_province = {
					limit = {
						region = low_countries_region
						trade_goods = cloth
						NOT = { culture = flemish }
					}
					add_province_modifier = {
						name = ned_dutch_cloth_trading
						duration = 5475
					}
				}
				every_owned_province = {
					limit = {
						region = low_countries_region
						trade_goods = cloth
						culture = flemish
					}
					add_province_modifier = {
						name = ned_flemish_cloth_trading
						duration = 5475
					}
				}
			}
		} 
	}

	NED_dutch_canal_works = {
		icon = ned_dykes
		position = 6
		required_missions = { NED_cloth_trading }
		
		provinces_to_highlight = {
			if = {
				limit = { has_dlc = "Leviathan" }
				OR = {
					AND = {
						province_id = 97
						NOT = {
							has_great_project = {
								type = dutch_polders
								tier = 3
							}
						}
					}
					AND = {
						region = low_countries_region
						OR = {
							NOT = { country_or_non_sovereign_subject_holds = root }
							NOT = { num_of_times_improved = 3 }
						}
					}
				}
			}
			else = {
				region = low_countries_region
				OR = {
					NOT = { country_or_non_sovereign_subject_holds = root }
					NOT = { num_of_times_improved = 3 }
				}
			}
		}
	
		trigger = {  
			if = {
				limit = {
					has_dlc = "Leviathan"
				}
				97 = {
					has_great_project = {
						type = dutch_polders
						tier = 3
					}
				}
			}
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				num_of_times_improved = 3
				value = 6
			}
		} 
	
		effect = {
			add_dip_power = 100
			
			custom_tooltip = SEPERATOR_TOOLTIP
			
			add_prestige_or_monarch_power = { amount = 10 }
			
			custom_tooltip = SEPERATOR_TOOLTIP
			
			if = {
				limit = {
					has_dlc = "Leviathan"
				}
				set_country_flag = ned_buff_dutch_polders_great_project_flag
				custom_tooltip = NED_MODIFY_DUTCH_POLDERS_MONUMENT
			}
			else = {
				add_country_modifier = {
					name = ned_dutch_polders_modifier
					duration = -1
				}
			}
		} 
	}

	NED_rise_of_dutch_navy = {
		icon = imperial_navy
		position = 7

		trigger = {  
			OR = {
				AND = {
					navy_size_percentage = 1
					naval_forcelimit = 20
				}
				navy_size = 20 # modified
			}
		} 

		effect = {  
			add_navy_tradition = 10
			add_country_modifier = {
				name = ned_staatse_vloot
				duration = 7300
			}
		} 
	}

	NED_dutch_admiralities = {
		icon = mission_establish_high_seas_navy
		position = 8
		required_missions = { NED_rise_of_dutch_navy }
		
		provinces_to_highlight = {
			OR = {
				province_id = 97
				province_id = 100
				province_id = 4383
				province_id = 96
			}
			OR = {
				NOT = {
					development = 20
				}
				NOT = {
					has_shipyard_building_trigger = yes
				}
			}
		}
	
		trigger = {  
			num_of_admirals = 5
			97 = {
				has_shipyard_building_trigger = yes
				development = 20
			}
			100 = {
				has_shipyard_building_trigger = yes
				development = 20
			}
			4383 = {
				has_shipyard_building_trigger = yes
				development = 20
			}
			96 = {
				has_shipyard_building_trigger = yes
				development = 20
			}
		} 

		effect = {  
			define_admiral = {
				name = "Michiel de Ruyter"
				fire = 5
				shock = 5
				manuever = 6
				siege = 0
				trait = bestevaer_personality
			}
			country_event_with_option_insight = {
				id = dutch_mission_events.6
				option_1 = "
					custom_tooltip = NED_MODIFY_BURGHERS_IN_THE_ADMIRALITY_TOOLTIP
				"
				option_2 = "
					custom_tooltip = NED_GRANT_DUTCH_ADMIRALITY_CONDITIONAL_MODIFIERS
				"
			}
		} 
	}

	NED_amsterdam_stock_exchange = {
		icon = mission_ned_amsterdam_bourse
		position = 9
		required_missions = { NED_fluyts } 
		provinces_to_highlight = {  
			province_id = 97
			OR = {
				NOT = {
					development = 30
				}
				if = {
					limit = {
						has_dlc = "Leviathan"
					}
					NOT = {
						has_great_project = {
							type = amsterdam_bourse
							tier = 2
						}
					}
				}
			}
		}
	
		trigger = {  
			97 = {
				country_or_non_sovereign_subject_holds = ROOT
				development = 30
				has_great_project = {
					type = amsterdam_bourse
					tier = 2
				}
			}
		} 

		effect = {  
            if = {
                limit = {
                    has_dlc = "Leviathan"
                }
                97 = {
                    add_great_project_tier = {
                        type = amsterdam_bourse
                        tier = 1
                    }
                }
                custom_tooltip = NED_UNLOCK_BOURSE_CONDITIONAL_MODIFIER
                set_country_flag = ned_bourse_conditional_modifier_flag
            }
            else = {
                distribute_development = {
                    type = production
                    amount = 10
                }
                
                add_mercantilism_or_monarch_power = { amount = 3 }
            }
        } 
    }

	NED_dutch_naval_supremacy = {
		icon = mission_naval_dominance
		position = 10
		required_missions = {
			NED_free_trade
			NED_amsterdam_stock_exchange
			NED_sea_beggars
		}

		trigger = {  
			NOT = { any_known_country = { navy_size = ROOT } }
			navy_size = 125 # modified
			navy_tradition = 75
			monthly_income = 300
		} 

		effect = {  
			if = {
				limit = { has_dlc = "Emperor" }
				custom_tooltip = NED_HALVE_THE_NAVAL_HEGEMONY_REQUIREMENTS
				set_country_flag = jap_halve_naval_hegemony_requirements
			}
			else = {
				add_prestige_or_monarch_power = { amount = 25 }
				
				custom_tooltip = SEPERATOR_TOOLTIP
				
				add_dip_power = 100
			}
			
			custom_tooltip = " "
			add_country_modifier = {
				name = ned_one_world
				duration = -1
			}
		} 
	}

	NED_humanism = {
		icon = mission_european_church
		position = 12
		required_missions = {
			NED_universities
			NED_organizing_the_church
		}

		trigger = {  
			OR = {
				full_idea_group = humanist_ideas
				ruler_has_personality = tolerant_personality
				theologian = 3
			}
			monthly_adm = 8
		} 

		effect = {  
			add_country_modifier = {
				name = ned_land_of_many_values
				duration = 5475
			}
			add_innovativeness_small_effect = yes
		} 
	}

	NED_erasmus = {
		icon = ned_erasmus
		position = 14
		required_missions = {
			NED_unified_confession
			NED_religious_immigrants
		}

		trigger = {  
			religious_unity = 1
			theologian = 3
			OR = {
				full_idea_group = humanist_ideas
				monthly_adm = 11
			}
			stability = 3
			if = {
				limit = {
					uses_fervor = yes
				}
				fervor = 100
			}
		} 

		effect = {  
			complex_dynamic_effect = {
				first_custom_tooltip = NED_IF_REFORMED
				first_limit = "
					religion = reformed
				"
				first_effect = "
					hidden_effect = {
						set_country_flag = ned_buff_fervor_actions
						update_fervor_effects = yes
					}
					custom_tooltip = NED_BUFF_FERVOR_ACTIONS_BY_50
				"
				second_custom_tooltip = NED_IF_NOT_REFORMED
				second_limit = "
					NOT = { religion = reformed }
					has_estate = estate_church
				"
				second_effect = "
					set_country_flag = ned_buff_clerical_studies
					custom_tooltip = NED_BUFF_CLERICAL_STUDIES_PRIVILEGE
				"
				third_custom_tooltip = NED_IF_NO_CLERGY
				third_limit = "
					NOT = { has_estate = estate_church }
				"
				third_effect = "
					add_stability_or_adm_power = yes
				"
			}
		} 
	}

	NED_west_indies_company = {
		icon = charter_the_wic
		position = 16
		required_missions = { NED_start_exploration }

		trigger = {  
			num_of_colonies = 1
		} 

		effect = {  
			add_country_modifier = {
				name = ned_west_indies_charter
				duration = 7300
			}
			custom_tooltip = " "
			add_prestige_or_monarch_power = { amount = 5 }
		} 
	}

	NED_new_amsterdam = {
		icon = mission_rb_the_thirteen_colonies
		position = 17
		required_missions = { NED_west_indies_company }
		
		provinces_to_highlight = {
			province_id = 965
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
	
		trigger = {  
			965 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
		} 

		effect = {  
			965 = {
				change_province_name = "Nieuw-Amsterdam"
				rename_capital = "Nieuw-Amsterdam"
				add_or_upgrade_production_building = yes
				add_or_upgrade_trade_building = yes
			}
		} 
	}

	NED_grand_design = {
		icon = colonize_brazil
		position = 18
		required_missions = {
			NED_carribean_colonies
			NED_ivory_trade
		}
		provinces_to_highlight = {  
			OR = {
				region = guinea_region
				region = brazil_region
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		} 

		trigger = {  
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					region = guinea_region
					region = brazil_region
				}
				value = 15
			}
		} 

		effect = {  
			define_advisor = {
				type = naval_reformer
				skill = 3
				cost_multiplier = 0.25
				name = "Piet Hein"
			}
			add_country_modifier = {
				name = ned_grand_designs_effects
				duration = 7300
			}
		} 
	}

	NED_dutch_slavery = {
		icon = mission_the_triangle_trade
		position = 19
		required_missions = { NED_grand_design } 

		trigger = {
			adm_tech = 15
			OR = {
				trading_part = {
					trade_goods = slaves
					value = 0.25
				}
				slaves = 35
			}
		} 

		effect = {
			add_prestige_or_monarch_power = { amount = 10 }
			custom_tooltip = " "
			custom_tooltip = NED_UNLOCKS_ABOLISHMENT_OF_SLAVERY_EARLIER
			set_country_flag = ned_abolish_slavery_flag
		} 
	}

	NED_japan = {
		icon = mission_trade_with_japan
		position = 20
		required_missions = { NED_malacca_trade } 
		provinces_to_highlight = {  
			region = japan_region
			province_has_center_of_trade_of_level = 1
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}

		trigger = {  
			OR = {
				japan_region = {
					province_has_center_of_trade_of_level = 1
					country_or_non_sovereign_subject_holds = ROOT
				}
				1020 = {
					owner = {
						NOT = { tag = ROOT }
						has_opinion = {
							who = ROOT
							value = 125
						}
					}
				}
			}
		} 

		effect = {  
			complex_dynamic_effect_without_alternative = {
				first_custom_tooltip = NED_IF_COMPLETED_VIA_CONQUEST
				first_limit = "
					japan_region = {
						province_has_center_of_trade_of_level = 1
						country_or_non_sovereign_subject_holds = ROOT
					}
				"
				first_effect = "
					add_mercantilism_or_monarch_power = { amount = 3 }
					custom_tooltip = NED_PRODUCTION_IN_ALL_COT_JAPAN_PROVINCES
					hidden_effect = {
						japan_region = {
							limit = {
								country_or_non_sovereign_subject_holds = ROOT
								province_has_center_of_trade_of_level = 1
							}
							add_base_production = 1
						}
					}
				"
				second_custom_tooltip = NED_IF_RELATIONS_KYOTO
				second_limit = "
					1020 = {
						owner = {
							NOT = { tag = ROOT }
							has_opinion = {
								who = ROOT
								value = 125
							}
						}
					}
				"
				second_effect = "
					1020 = {
						owner = { add_dip_power = 100 }
						custom_tooltip = SEPERATOR_TOOLTIP
						add_province_triggered_modifier = ned_dutch_traders
						custom_tooltip = SEPERATOR_TOOLTIP
						custom_tooltip = NED_AS_LONG_AS_DUTCH_TRADER_MODIFIER_IS_ACTIVE_GAIN_TRADE_POWER
					}
				"
			}
			
			hidden_effect = {
				if = {
					limit = {
						NOT = {
							japan_region = {
								province_has_center_of_trade_of_level = 1
								country_or_non_sovereign_subject_holds = ROOT
							}
						}
						1020 = {
							owner = {
								NOT = { tag = ROOT }
								has_opinion = {
									who = ROOT
									value = 125
								}
							}
						}
					}
					1020 = {
						add_province_triggered_modifier = ned_dutch_traders
					}
				}
			}
		} 
	}
}

NED_3 = {
	slot = 3
	generic = no
	ai = yes
	has_country_shield = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = { 
		has_dlc = "Winds of Change"
		OR = {
			tag = NED
			tag = HOL
			tag = BRB
			tag = GEL
			tag = UTR
			tag = FRI
			tag = FLA
		}
	} 

	NED_friesland = {
		icon = ned_friesland
		position = 2
		required_missions = { NED_raise_the_militia } 
		provinces_to_highlight = {  
			area = frisia_area
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
		} 

		trigger = {  
			frisia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		} 

		effect = {  
			if = {
				limit = {
					primary_culture = frisian
				}
				add_country_modifier = {
					name = ned_protection_of_frisian_freedom
					duration = 5475
				}
				100 = {
					add_base_production = 1
				}
				4382 = {
					add_base_production = 1
				}
			}
			else = {
				add_army_tradition_or_mil_power = { amount = 10 }
				
				custom_tooltip = SEPERATOR_TOOLTIP
				
				add_estate_loyalty = {
					estate = estate_nobles
					loyalty = 10
				}
			}
		} 
	}
}

NED_3_1 = {
	slot = 3
	generic = no
	ai = yes
	has_country_shield = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = { 
		has_dlc = "Winds of Change"
		tag = NED
	}

	NED_english_channel_dominance = {
		icon = mission_control_the_channel
		position = 4
		required_missions = { NED_unification_of_low_countries } 
		provinces_to_highlight = {
			province_id = 1269
			NOT = {
				trade_share = {
					country = ROOT
					share = 60
				}
			}
		} 
		trigger = {  
			1269 = {
				trade_share = {
					country = ROOT
					share = 60
				}
			}
			num_of_light_ship = 30
		} 

		effect = {  
			custom_tooltip = NED_GAIN_DIPLO_POWER_PER_ENGLISH_COT
			custom_tooltip = " "
			define_advisor = {
				type = trader
				skill = 2
				cost_multiplier = 0.5
			}
			hidden_effect = {
				1269 = {
					every_trade_node_member_province = {
						limit = {
							province_has_center_of_trade_of_level = 1
							owned_by = ROOT
						}
						owner = {
							add_dip_power = 25
						}
					}
				}
			}
		} 
	}

	NED_glorious_revolution = {
		icon = the_glorious_revolution
		position = 5
		required_missions = {
			NED_english_channel_dominance
			NED_english_relations
		}
		provinces_to_highlight = {  
			if = {
				limit = {
					exists = ENG
					NOT = { exists = GBR }
				}
				owner = {
					tag = ENG
				}
			}
			else_if = {
				limit = {
					exists = GBR
				}
				owner = {
					tag = GBR
				}
			}
			else = {
				OR = {
					area = home_counties_area
					area = east_anglia_area
					area = wessex_area
					area = west_midlands_area
					area = east_midlands_area
					area = wales_area
					area = yorkshire_area
					area = scottish_marches_area
				}
			}
		}

		trigger = {
			OR = {
				senior_union_with = ENG
				senior_union_with = GBR
				num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
					value = 10
					OR = {
						area = home_counties_area
						area = east_anglia_area
						area = wessex_area
						area = west_midlands_area
						area = east_midlands_area
						area = wales_area
						area = yorkshire_area
						area = scottish_marches_area
					}
				}
			}
		} 

		effect = {
			complex_dynamic_effect = {
				first_custom_tooltip = NED_IF_ENGLAND_PU
				first_limit = "
					OR = {
						senior_union_with = ENG
						senior_union_with = GBR
					}
				"
				first_effect = "
					ned_glorious_revolution_effect_opt_1 = yes
				"
				second_custom_tooltip = NED_IF_CONQUEST
				second_limit = "
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						value = 10
						OR = {
							area = home_counties_area
							area = east_anglia_area
							area = wessex_area
							area = west_midlands_area
							area = east_midlands_area
							area = wales_area
							area = yorkshire_area
							area = scottish_marches_area
						}
					}
				"
				second_effect = "
					add_country_modifier = {
						name = ned_conquest_of_england
						duration = 5475
					}
					add_accepted_culture = english
				"
			}
		}
	}
 

	NED_black_devils = {
		icon = mission_marines
		position = 8
		required_missions = { NED_rise_of_dutch_navy }
		
		provinces_to_highlight = {
			region = low_countries_region
			country_or_non_sovereign_subject_holds = ROOT
			OR = {
				NOT = { development = 25 }
				NOT = { has_dock_building_trigger = yes }
			}
		}
	
		trigger = {  
			OR = {
				num_of_marines = 20
				num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
					region = low_countries_region
					development = 20
					has_dock_building_trigger = yes
					value = 5
				}
			}
		} 
	
		effect = {  
			if = {
				limit = {
					OR = {
						has_dlc = "Rule Britannia"
						has_dlc = "Golden Century"
						has_dlc = "Lions of the North"
						has_dlc = "Domination"
					}
				}
				add_country_modifier = {
					name = ned_elite_naval_infantry
					duration = -1
				}
				custom_tooltip = NED_UNLOCK_BLACK_DEVILS_PRIVILEGE_FOR_BURGHERS
				set_country_flag = ned_unlock_black_devils_privilege_flag
			}
			else = {
				capital_scope = {
					add_or_upgrade_shipyard_building = yes
					add_or_upgrade_dock_building = yes
					add_base_production = 3
				}
			}
		}
	}

	NED_free_trade = {
		icon = mission_dominate_home_trade_node
		position = 9

		trigger = {  
			capital_scope = {
				trade_node_value = 75
			}
			OR = {
				AND = {
					trade_income_percentage = 0.3
					monthly_income = 200
				}
				AND = {
					trader = 3
					monthly_dip = 10
				}
			}
		} 

		effect = {  
			custom_tooltip = NED_MODIFY_FREE_ENTERPRISES_PRIVILEGE
			set_country_flag = ned_buffed_free_enterprises
			custom_tooltip = " "
			add_dip_power = 100
		} 
	}

	NED_universities = {
		icon = mission_early_modern_university
		position = 11
		provinces_to_highlight = { 
			region = low_countries_region
			OR = {
				NOT = { development = 20 }
				NOT = { num_of_buildings_in_province = 3 }
			}
		} 
	
		trigger = {  
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				region = low_countries_region
				development = 20
				num_of_buildings_in_province = 3
				value = 3
			}
			if = {
				limit = {
					has_dlc = "Rule Britannia"
				}
				innovativeness = 15
			}
		} 
	
		effect = {  
			add_dip_power = 50
			add_mil_power = 50
			add_adm_power = 50
			custom_tooltip = NED_GRANT_UNIVERSITY_IN_MOST_DEVELOPED_PROVINCE
			hidden_effect = {
				pick_best_provinces = {
					scope = every_owned_province
					scale = higher_development_than
					1 = yes
					event_target_name = "low_countries_university_target"
					global_trigger = "
						region = low_countries_region
					"
				}
				if = {
					limit = {
						has_saved_event_target = low_countries_university_target_1
					}
					event_target:low_countries_university_target_1 = {
						add_or_upgrade_university_building = yes
					}
				}
			}
		}
	}

	NED_leiden_university = {
		icon = leiden_university
		position = 12
		required_missions = { NED_universities }
		provinces_to_highlight = {
			province_id = 4383
			OR = {
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
				NOT = { development = 30 }
			}
		}
		trigger = {  
			4383 = {
				country_or_non_sovereign_subject_holds = ROOT
				development = 30
			}
			if = {
				limit = {
					has_dlc = "Rule Britannia"
				}
				innovativeness = 50
			}
			else = {
				has_adm_advisor_3 = yes
				has_dip_advisor_3 = yes
				has_mil_advisor_3 = yes
			}
		} 

		effect = {
			set_country_flag = ned_unlocks_leiden_university
			country_event_with_effect_insight = {
				id = flavor_hol.1
				effect = "
					add_years_of_income = -0.25
					add_prestige = 5
					4383 = {
						add_or_upgrade_university_building = yes
					}
					add_innovativeness_small_effect = yes
				"
			}
		} 
	}

	NED_unified_confession = {
		icon = religious_resolution
		position = 13
		required_missions = {
			NED_humanism
			NED_patronage_of_arts
		}

		trigger = {  
			religious_unity = 0.9
			if = {
				limit = {
					has_estate = estate_church
				}
				estate_loyalty = {
					estate = estate_church
					loyalty = 65
				}
			}
			OR = {
				has_estate_privilege = estate_burghers_enforced_interfaith_dialogue
				num_of_converted_provinces = { amount = 15 }
			}
		} 

		effect = {  
			custom_tooltip = NED_BUFF_INTERFAITH_DIALOG
			set_country_flag = ned_buff_interfaith_dialog_grant_tolerance_heretics_flag
			custom_tooltip = " "
			complex_dynamic_effect = {
				first_custom_tooltip = NED_IF_REFORMED
				first_limit = "
					religion = reformed
				"
				first_effect = "
					custom_tooltip = NED_ADD_100_FERVOR
					hidden_effect = {
						add_fervor = 100
					}
				"
			}
		} 
	}

	NED_start_exploration = {
		icon = mission_explore_the_world
		position = 15

		trigger = {  
			OR = {
				has_institution = new_world_i
				exploration_ideas = 2
			}
		} 

		effect = {  
			add_country_modifier = {
				name = ned_set_sail_to_unknown
				duration = 3650
			}
			define_explorer = {
				fire = 2
				shock = 2
				manuever = 6
				siege = 0
				name = "Abel Tasman"
			}
		} 
	}

	NED_ivory_trade = {
		icon = mission_trade_in_gold_coast
		position = 17
		required_missions = {
			NED_west_indies_company
			NED_founding_the_voc
		}
		provinces_to_highlight = {  
			region = guinea_region
			province_has_center_of_trade_of_level = 1
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		} 

		trigger = {  
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				region = guinea_region
				province_has_center_of_trade_of_level = 2
				value = 2
			}
			1147 = {
				is_strongest_trade_power = ROOT
			}
		} 

		effect = {  
			custom_tooltip = NED_UPGRADE_ALL_GUINEA_COTS
			custom_tooltip = " "
			1147 = {
				add_trade_modifier = {
					who = ROOT
					duration = 5475
					power = 100
					key = NED_INFLUENCE_IN_IVORY_COAST
				}
			}
			hidden_effect = {
				every_owned_province = {
					limit = {
						region = guinea_region
						province_has_center_of_trade_of_level = 1
						NOT = {
							area_for_scope_province = {
								province_has_center_of_trade_of_level = 3
							}
						}
					}
					add_center_of_trade_level = 1
				}
			}
		} 
	}

	NED_malacca_trade = {
		icon = mission_portuguese_malacca
		position = 19
		required_missions = { NED_access_to_india } 
		provinces_to_highlight = {  
			OR = {
				region = malaya_region
				region = indonesia_region
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		} 

		trigger = {  
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					region = malaya_region
					region = indonesia_region
				}
				province_has_center_of_trade_of_level = 1
				value = 3
			}
			596 = {
				trade_share = {
					country = ROOT
					share = 50
				}
			}
		} 

		effect = {  
			custom_tooltip = NED_BUFFS_VOC_PRIVILEGE
			set_country_flag = ned_voc_burghers_buff_flag
		} 
	}

	NED_taiwan = {
		icon = dutch_formosa
		position = 20
		required_missions = { NED_malacca_trade } 
		provinces_to_highlight = {  
			area = taiwan_area
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}

		trigger = {  
			taiwan_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		} 

		effect = {  
			738 = {
				add_or_upgrade_fort_building = yes
				center_of_trade = 2
				add_province_modifier = {
					name = ned_formossa_fort
					duration = -1
				}
			}
			define_advisor = {
				type = colonial_governor
				skill = 3
				culture = swedish
				cost_multiplier = 0.5
				name = "Frederick Coyett"
			}
		} 
	}

	NED_east_indies_domination = {
		icon = dutch_east_indies
		position = 21
		required_missions = {
			NED_city_of_batavia
			NED_taiwan
			NED_japan
		}
		
		provinces_to_highlight = {
			OR = {
				superregion = india_superregion
				superregion = east_indies_superregion
				superregion = china_superregion
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
	
		trigger = {  
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					superregion = india_superregion
					superregion = east_indies_superregion
					superregion = china_superregion
				}
				value = 30
			}
			monthly_income = 500
		} 
	
		effect = {  
			custom_tooltip = NED_BUFF_VOC_PRIVILEGE_TRADE_BUFFS
			set_country_flag = ned_voc_trade_buffs_flag
			capital_scope = {
				add_trade_node_income = 5
			}
			add_mercantilism_or_monarch_power = { amount = 5 }
		} 
	}
}

NED_4 = {
	slot = 4
	generic = no
	ai = yes
	has_country_shield = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = { 
		has_dlc = "Winds of Change"
		OR = {
			tag = NED
			tag = HOL
			tag = BRB
			tag = GEL
			tag = UTR
			tag = FRI
			tag = FLA
		}
	} 

	NED_end_sound_toll = {
		icon = mission_end_the_sound_toll
		position = 2
		required_missions = { NED_hansa_relations } 
		provinces_to_highlight = {  
			province_id = 12
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		} 

		trigger = {  
			tag = NED
			12 = {
				OR = {
					country_or_non_sovereign_subject_holds = ROOT
					AND = {
						NOT = { country_or_non_sovereign_subject_holds = ROOT }
						owner = {
							has_opinion = {
								who = ROOT
								value = 150
							}
						}
					}
				}
			}
		} 

		effect = {
			complex_dynamic_effect = {
				first_custom_tooltip = NED_IF_COMPLETED_THROUGH_DIPLOMACY
				first_limit = "
					12 = {
						NOT = { country_or_non_sovereign_subject_holds = ROOT }
						owner = {
							has_opinion = {
								who = ROOT
								value = 150
							}
						}
					}
				"
				first_effect = "
					12 = {
						add_province_triggered_modifier = ned_sound_toll_ties
						custom_tooltip = NED_PROVINCE_TRIGGERED_MODIFIER_GRANTS_TRADE_POWER
					}
				"
				second_custom_tooltip = NED_IF_COMPLETED_THROUGH_HOSTILITY
				second_limit = "
					12 = {
						country_or_non_sovereign_subject_holds = ROOT
					}
				"
				second_effect = "
					country_event_with_option_insight = {
						id = dutch_mission_events.4
						option_1 = \"
							12 = {
								add_or_upgrade_trade_building = yes
							}
							custom_tooltip = NED_LOSE_RELATIONS_WITH_LUBECK_COUNTRIES
						\"
						option_2 = \"
							12 = {
								remove_province_modifier = sound_toll
								add_or_upgrade_production_building = yes
							}
							add_dip_power = 75
							custom_tooltip = NED_GAIN_RELATIONS_WITH_LUBECK_COUNTRIES
						\"
					}
				"
			}
			hidden_effect = {
				if = {
					limit = {
						12 = {
							country_or_non_sovereign_subject_holds = ROOT
						}
					}
					country_event = {
						id = dutch_mission_events.4
					}
				}
			}
		} 
	}

	NED_baltic_supremacy = {
		icon = mission_rb_control_the_hansa
		position = 3
		required_missions = { NED_sail_towards_lubeck } 
		provinces_to_highlight = {  
			province_id = 45
			NOT = {
				trade_share = {
					country = ROOT
					share = 25
				}
			}
		} 

		trigger = {  
			45 = {
				is_strongest_trade_power = ROOT
				trade_share = {
					country = ROOT
					share = 25
				}
			}
		} 

		effect = {  
			add_estate_loyalty = {
				estate = estate_burghers
				loyalty = 10
			}
			
			custom_tooltip = SEPERATOR_TOOLTIP
			
			change_ruler_stat = {
				type = dip
				amount = 1
			}
			
			custom_tooltip = SEPERATOR_TOOLTIP
			
			complex_dynamic_effect = {
				first_custom_tooltip = NED_IF_NO_LUBECK
				first_limit = "
					OR = {
						NOT = {
							exists = HSA
						}
						is_trade_league_leader = no
					}
				"
				first_effect = "
					add_country_modifier_for_age = {
						name = ned_connection_to_the_baltic
						age = age_of_reformation
					}
				"
			}
		} 
	}
}

NED_4_1 = {
	slot = 4
	generic = no
	ai = yes
	has_country_shield = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = { 
		has_dlc = "Winds of Change"
		tag = NED
	} 

	NED_english_relations = {
		icon = english_alliance
		position = 4
		provinces_to_highlight = {  } 
	
		trigger = {  
			if = {
				limit = {
					exists = ENG
					NOT = {
						exists = GBR
					}
				}
				naval_strength = { who = ENG value = 1.1 }
				OR = {
					ENG = { is_subject = yes }
					has_spy_network_in = { who = ENG value = 30 }
				}
				total_development = ENG
			}
			else_if = {
				limit = {
					exists = GBR
				}
				naval_strength = { who = GBR value = 1.1 }
				OR = {
					GBR = { is_subject = yes }
					has_spy_network_in = { who = GBR value = 30 }
				}
				total_development = GBR
			}
			else = {
				num_of_heavy_ship = 20
			}
		} 
	
		effect = {  
			if = {
				limit = {
					valid_for_personal_unions_trigger = yes
					exists = ENG
					ENG = {
						valid_for_personal_unions_trigger = yes
					}
					NOT = {
						exists = GBR
					}
				}
				add_casus_belli = {
					type = cb_restore_personal_union
					target = ENG
					months = 240
				}
				
				custom_tooltip = SEPERATOR_TOOLTIP
				
				add_country_modifier = {
					name = ned_devise_glorious_crossing
					duration = 7300
				}
			}
			else_if = {
				limit = {
					valid_for_personal_unions_trigger = yes
					exists = GBR
					GBR = {
						valid_for_personal_unions_trigger = yes
					}
				}
				add_casus_belli = {
					type = cb_restore_personal_union
					target = GBR
					months = 240
				}
				
				custom_tooltip = SEPERATOR_TOOLTIP
				
				add_country_modifier = {
					name = ned_devise_glorious_crossing
					duration = 7300
				}
			}
			else = {
				give_claims = { area = home_counties_area }
				give_claims = { area = east_anglia_area }
				give_claims = { area = wessex_area }
				give_claims = { area = west_midlands_area }
				give_claims = { area = east_midlands_area }
				give_claims = { area = wales_area }
				give_claims = { area = yorkshire_area }
				give_claims = { area = scottish_marches_area }
				
				custom_tooltip = SEPERATOR_TOOLTIP
				
				add_country_modifier = {
					name = ned_preparation_of_british_conquest
					duration = 7300
				}
			}
		} 
	}

	NED_military_reforms = {
		icon = army_reforms
		position = 5

		trigger = {  
			army_size = 10 # modified
			OR = {
				army_tradition = 25
				army_professionalism = 0.1
			}
		} 

		effect = {  
			add_country_modifier = {
				name = ned_found_dutch_states_army
				duration = 9125
			}
		} 
	}

	NED_marician_reforms = {
		icon = professional_army
		position = 6
		required_missions = { NED_military_reforms } 

		trigger = {  
			army_size = 25 # modified
			if = {
				limit = {
					has_dlc = "Cradle of Civilization"
				}
				army_professionalism = 0.3
			}
			else = {
				monthly_mil = 9
			}
			OR = {
				army_reformer = 3
				ruler_has_personality = martial_educator_personality
				mil = 4
			}
		} 

		effect = {  
            define_general = {
                name = "Wilhelm Ludwig von Nassau"
                shock = 3
                fire = 4
                manuever = 6
                siege = 1
                trait = us_heit_personality
            }
            if = {
                limit = {
                    NOT = { has_country_flag = ned_unlocked_military_reforms_flag }
                }
                set_country_flag = ned_unlocked_military_reforms_flag
                country_event_with_option_insight = {
                    id = flavor_hol.3507
                    option_1 = "
                        add_dip_power = 100
                        add_mil_power = 100
                        add_navy_tradition = 10
                        add_army_tradition = 10
                    "
                    option_2 = "
                        add_mil_power = 200
                        add_army_tradition = 20
                    "
                    option_3 = "
                        add_dip_power = 200
                        add_navy_tradition = 20
                    "
                }
            }
        }   
	}

	NED_army_of_the_state = {
		icon = establish_a_standing_army
		position = 7
		required_missions = {
			NED_marician_reforms
			NED_garrision_system
		} 
	
		trigger = {  
			army_size = 70 # modified
			num_of_battles = { amount = 200 }
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				region = low_countries_region
				has_manpower_building_trigger = yes
				base_manpower = 6
				value = 5
			}
		} 
	
		effect = {  
			distribute_development = {
				type = manpower
				amount = 15
				limit = "
					region = low_countries_region
					has_manpower_building_trigger = yes
				"
			}
			if = {
				limit = {
					has_dlc = "Domination"
				}
				custom_tooltip = NED_MODIFY_STAATSE_LEGER_REFORM
				set_country_flag = ned_staatse_leger_buff_flag
				hidden_effect = {
					if = {
						limit = {
							has_reform = staatse_leger_reform
						}
						add_country_modifier = {
							name = ned_empowered_staatse_leger
							duration = -1
							hidden = yes
						}
					}
				}
			}
			else = {
				change_mil = 2
				add_mil_power = 100
			}
		} 
	}

	NED_statists_and_oragnists = {
		icon = mission_alliances
		position = 8

		trigger = {  
			stability = 2
			reform_level = 4
			if = {
				limit = {
					has_government_attribute = has_dutch_election
				}
				OR = {
					statists_vs_orangists = 0.33
					NOT = { 	statists_vs_orangists = -0.33 }
				}
			}
			custom_trigger_tooltip = {
				tooltip = NED_HAD_DUTCH_REPUBLIC_EVENT
				has_country_flag = ned_dutch_republic_event_happened
			}
		} 

		effect = {  
			country_event_with_option_insight = {
				id = dutch_mission_events.7
				option_1 = " 
					custom_tooltip = NED_UNLOCK_ORANGIST_BUFFS
				"
				option_2 = "
					custom_tooltip = NED_UNLOCK_STATISTS_BUFFS
				"
			}
		} 
	}

	NED_managing_stadholders = {
		icon = consolidate_the_stadholders
		position = 9
		required_missions = { NED_statists_and_oragnists }

		trigger = {  
			legitimacy_equivalent = 80
			if = {
				limit = {
					has_government_attribute = has_dutch_election
				}
				OR = {
					statists_vs_orangists = 0.75
					NOT = { 	statists_vs_orangists = -0.75 }
				}
			}
			has_adm_advisor_2 = yes
			has_dip_advisor_2 = yes
			has_mil_advisor_2 = yes
		} 

		effect = {  
			change_government_reform_progress = 50
			custom_tooltip = " "
			custom_tooltip = NED_NO_MORE_CORRUPT_STADHOLDERS
			set_country_flag = ned_remove_embezzler_rulers
			custom_tooltip = " "
			complex_dynamic_effect = {
				first_custom_tooltip = NED_IF_STATISTS_IN_POWER
				first_limit = "
					NOT = { 	statists_vs_orangists = -0.75 }
				"
				first_effect = " 
					add_country_modifier = {
						name = ned_prelude_true_freedom
						duration = 7300
					}
				"
				second_custom_tooltip = NED_IF_ORANGISTS_IN_POWER
				second_limit = "
					statists_vs_orangists = 0.75
				"
				second_effect = " 
					change_ruler_stat = {
						type = mil
						amount = 1
					}
					change_ruler_stat = {
						type = dip
						amount = 1
					}
					change_ruler_stat = {
						type = adm
						amount = 1
					}
					add_splendor = 200
				"
			}
		} 
	}

	NED_question_of_the_confederation = {
		icon = bavarian_netherlands
		position = 10
		required_missions = {
			NED_organizing_the_seven_provinces
			NED_managing_stadholders
		}
	
		trigger = {  
			has_final_tier_reforms_trigger = yes
			if = {
				limit = {
					has_government_attribute = has_dutch_election
				}
				OR = {
					statists_vs_orangists = 0.9
					NOT = { 	statists_vs_orangists = -0.9 }
				}
			}
			total_development = 500
		} 

		effect = {  
			complex_dynamic_effect = {
				first_custom_tooltip = NED_IF_STATISTS_IN_POWER
				first_limit = "
					has_government_attribute = has_dutch_election
					NOT = { statists_vs_orangists = -0.9 }
				"
				first_effect = "
					add_country_modifier = {
						name = ned_true_freedom
						duration = -1
					}
				"
				
				second_custom_tooltip = NED_IF_ORANGISTS_IN_POWER
				second_limit = "
					has_government_attribute = has_dutch_election
					statists_vs_orangists = 0.9
				"
				second_effect = "
					add_country_modifier = {
						name = ned_orangist_triumph
						duration = -1
					}
				"
				
				third_custom_tooltip = NED_IF_NO_DUTCH_GOVERNMENT
				third_limit = "
					NOT = { has_government_attribute = has_dutch_election }
				"
				third_effect = "
					custom_tooltip = NED_BUFF_GOVERNING_CAPACITY_PRIVILEGES
					set_country_flag = ned_land_rights_buff_flag
				"
			}
		} 
	}

	NED_patronage_of_arts = {
		icon = sponsor_the_arts
		position = 12
		required_missions = {
			NED_northern_renaissance
			NED_universities
		}

		trigger = {  
			prestige = 50
			if = {
				limit = {
					has_estate = estate_burghers
				}
				estate_loyalty = {
					estate = estate_burghers
					loyalty = 65
				}
			}
		} 

		effect = {  
			add_splendor = 200
			custom_tooltip = " "
			custom_tooltip = NED_BUFF_PATRONAGE_OF_ARTS_PRIVILEGE
			set_country_flag = ned_patronage_buff_flag
			custom_tooltip = " "
			capital_scope = {
				add_next_institution_embracement = 50
			}
		} 
	}

	NED_golden_age = {
		icon = ned_golden_age
		position = 14
		required_missions = {
			NED_unified_confession
			NED_dutch_architecture
		}
	
		trigger = {  
			total_development = 700
			prestige = 90
			if = {
				limit = {
					OR = {
						has_dlc = "Rights of Man"
						has_dlc = "Emperor"
					}
				}
				NOT = {
					great_power_rank = 2
				}
				monthly_income = 400
			}
			else = {
				monthly_income = 600
			}
			has_adm_advisor_3 = yes
			has_dip_advisor_3 = yes
			has_mil_advisor_3 = yes
		} 
	
		effect = {  
			add_country_modifier = {
				name = ned_dutch_golden_age
				duration = -1
			}
			if = { 
				limit = { has_dlc = "Mandate of Heaven" }
				custom_tooltip = pol_if_used_ge_rest_else_30_years_extension_tt 
				if = {
					limit = { has_had_golden_age = yes } 
					reset_golden_age = yes 
				}
				else_if = {
					limit = { in_golden_age = yes } 
					extend_golden_age = 600
				}
			}
		} 
	}

	NED_founding_the_voc = {
		icon = chater_the_voc
		position = 16
		required_missions = { NED_start_exploration }

		trigger = {  
			OR = {
				india_superregion = {
					has_discovered = ROOT
				}
				east_indies_superregion = {
					has_discovered = ROOT
				}
			}
		} 

		effect = {  
			add_estate_loyalty = {
				estate = estate_burghers
				loyalty = 10
			}
			custom_tooltip = " "
			custom_tooltip = NED_UNLOCK_VOC_PRIVILEGE
			set_country_flag = ned_voc_privilege_flag
		} 
	}

	NED_access_to_india = {
		icon = mission_indian_trade_company
		position = 18
		required_missions = { NED_cape_of_good_hope } 
		provinces_to_highlight = {  } 

		trigger = {  
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					superregion = india_superregion
					superregion = east_indies_superregion
					superregion = china_superregion
				}
				value = 3
			}
		} 

		effect = {  
			add_mercantilism = 2
			add_years_of_income = 0.3
			give_claims = {
				area = lanka_area
			}
			give_claims = {
				area = south_lanka_area
			}
			give_claims = { id = 596 }
		} 
	}

	NED_ceylon_bases = {
		icon = seize_ceylon
		position = 19
		required_missions = { NED_access_to_india } 
		provinces_to_highlight = {  
			OR = {
				area = lanka_area
				area = south_lanka_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		} 

		trigger = {  
			lanka_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			south_lanka_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		} 

		effect = {  
			capital_scope = {
				add_trade_node_income = 2
			}
			add_dip_power = 100
		} 
	}

	NED_city_of_batavia = {
		icon = found_batavia
		position = 20
		required_missions = { NED_malacca_trade } 
		provinces_to_highlight = {  
			province_id = 630
			OR = {
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
				NOT = { development = 15 }
			}
		} 

		trigger = {  
			630 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
		} 

		effect = { 
			630 = {
				add_permanent_province_modifier = {
					name = ned_fort_of_batavia
					duration = -1
				}
			}
		} 
	}
}

NED_5 = {
	slot = 5
	generic = no
	ai = yes
	has_country_shield = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = { 
		has_dlc = "Winds of Change"
		OR = {
			tag = NED
			tag = HOL
			tag = BRB
			tag = GEL
			tag = UTR
			tag = FRI
			tag = FLA
		}
	} 

	NED_hansa_relations = {
		icon = mission_bane_of_the_hansa
		position = 1
		provinces_to_highlight = {  
			province_id = 45
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		} 

		trigger = {  
			OR = {
				45 = {
					country_or_non_sovereign_subject_holds = ROOT
				}
				45 = {
					trade_share = {
						country = ROOT
						share = 5
					}
				}
				45 = {
					owner = {
						has_opinion = {
							who = ROOT
							value = 125
						}
						alliance_with = ROOT
					}
				}
			}
		} 

		effect = {  
			add_mercantilism_or_monarch_power = { amount = 2 }
			
			custom_tooltip = SEPERATOR_TOOLTIP
			
			complex_dynamic_effect = {
				first_custom_tooltip = NED_IF_COMPLETED_THROUGH_DIPLOMACY
				first_limit = "
					45 = {
						owner = {
							has_opinion = {
								who = ROOT
								value = 125
							}
							alliance_with = ROOT
						}
					}
				"
				first_effect = "
					45 = {
						add_trade_modifier = {
							who = ROOT
							duration = 5475
							power = 60
							key = NED_HANSA_ALLIANCES
						}
					}
					add_dip_power = 100
				"
				second_custom_tooltip = NED_IF_COMPLETED_THROUGH_HOSTILITY
				second_limit = "
					OR = {
						45 = {
							country_or_non_sovereign_subject_holds = ROOT
						}
						45 = {
							trade_share = {
								country = ROOT
								share = 5
							}
						}
					}
				"
				second_effect = "
					give_claims = { id = 45 }
					give_claims = { id = 25 }
					45 = {
						add_trade_modifier = {
							who = ROOT
							duration = 5475
							power = 30
							key = NED_CHALLENGE_HANSA
						}
					}
				"
			}
		} 
	}

	NED_sail_towards_lubeck = {
		icon = support_the_bulk_trades
		position = 2
		required_missions = { NED_hansa_relations } 
		provinces_to_highlight = {  
			province_id = 45
			NOT = {
				trade_share = {
					country = ROOT
					share = 15
				}
			}
		} 

		trigger = {  
			num_of_light_ship = 30
			45 = {
				trade_share = {
					country = ROOT
					share = 15
				}
			}
		} 

		effect = {  
			capital_scope = {
				add_trade_node_income = 3
			}
			
			custom_tooltip = SEPERATOR_TOOLTIP
			
			custom_tooltip = NED_GRANT_CLAIMS_ON_ALL_BATLIC_COT_PROVINCES
			hidden_effect = {
				1926 = {
					every_trade_node_member_province = { 
						limit = {
							province_has_center_of_trade_of_level = 1
							NOT = { is_core = ROOT }
							NOT = { is_permanent_claim = ROOT }
						}
						add_permanent_claim = ROOT
					}
				}
			}
		} 
	}

	NED_securing_baltic_grain = {
		icon = mission_pol_breadbasket_europe
		position = 4
		required_missions = { NED_sail_towards_lubeck }

		trigger = { 
			trading_bonus = {
				trade_goods = grain
				value = yes
			}
			1 = {
				trade_share = {
					country = ROOT
					share = 30
				}
				is_strongest_trade_power = ROOT
			}
		} 

		effect = {  
			distribute_development = {
				type = production
				amount = 5
			}
			custom_tooltip = NED_GRANT_BONUS_ON_ALL_LOW_COUNTRIES_FARMLANDS_PROVINCES
			tooltip = {
				add_province_modifier = {
					name = ned_baltic_grain_supply
					duration = -1
				}
			}
			hidden_effect = {
				every_owned_province = {
					limit = {
						region = low_countries_region
						has_terrain = farmlands
					}
					add_province_modifier = {
						name = ned_baltic_grain_supply
						duration = -1
					}
				}
			}
		} 
	}
}

NED_5_1 = {
	slot = 5
	generic = no
	ai = yes
	has_country_shield = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = { 
		has_dlc = "Winds of Change"
		tag = NED
	} 

	NED_garrision_system = {
		icon = fixed_garrison_system
		position = 6
		required_missions = { NED_military_reforms }

		trigger = {  
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				region = low_countries_region
				province_has_current_tech_fort_trigger = yes
				has_fort_building_trigger = yes
				value = 7
			}
			fortification_expert = 2
		} 

		effect = {  
			custom_tooltip = NED_FORTS_GRANT_BONUSES_IN_LOW_COUNTRIES
			set_country_flag = ned_buffed_forts_flag
			hidden_effect = {
				if = {
					limit = {
						full_idea_group = defensive_ideas
					}
					every_owned_province = {
						limit = {
							region = low_countries_region
							has_fort_building_trigger = yes
						}
						add_province_modifier = {
							name = ned_low_countries_fort_buff_buffed
							duration = -1
							hidden = yes
						}
					}
				}
				else = {
					every_owned_province = {
						limit = {
							region = low_countries_region
							has_fort_building_trigger = yes
						}
						add_province_modifier = {
							name = ned_low_countries_fort_buff
							duration = -1
							hidden = yes
						}
					}
				}
			}
		} 
	}

	NED_dutch_engineering = {
		icon = dutch_engineering
		position = 7
		required_missions = { NED_garrision_system } 
		
		trigger = {  
			num_of_artillery = 15 # modified
			OR = {
				has_global_modifier_value = {
					which = siege_ability
					value = 0.2
				}
				AND = {
					monthly_mil = 13
					has_leader_with = {
						siege = 4
					}
				}
			}
		} 

		effect = {  
			country_event_with_effect_insight = {
				id = dutch_mission_events.5
				effect = "
					define_advisor = {
						type = fortification_expert
						skill = 3
						cost_multiplier = 0.5
						name = \"Menno van Coehoorn\"
					}
					custom_tooltip = NED_MILITARY_ENGINEER_GRANTS_SIEGE_ABILITY
				"
			}
		} 
	}

	NED_organizing_the_seven_provinces = {
		icon = generality_lands
		position = 9
		required_missions = { NED_statists_and_oragnists }

		trigger = {  
			crown_land_share = 50
			NOT = { average_home_autonomy = 10 }
			if = {
				limit = {
					has_parliament = yes
				}
				OR = {
					full_idea_group = administrative_ideas
					ruler_has_personality = lawgiver_personality
					current_size_of_parliament = 10
				}
			}
			else = {
				OR = {
					full_idea_group = administrative_ideas
					ruler_has_personality = lawgiver_personality
				}
			}
		} 

		effect = {  
			custom_tooltip = NED_REDUCE_ESTATE_LOYALTY_FROM_SEIZING_CROWNLAND
			set_country_flag = ned_lands_generality_flag
			custom_tooltip = " "
			distribute_development = {
				type = tax
				amount = 10
			}
		} 
	}

	NED_northern_renaissance = {
		icon = florentine_renaissance
		position = 11

		trigger = {  
			has_adm_advisor = yes
			has_dip_advisor = yes
			has_mil_advisor = yes
			has_institution = renaissance
		} 

		effect = {  
			country_event_with_effect_insight = {
				id = dutch_mission_events.8
				effect = "
					add_country_modifier = {
						name = ned_seat_of_many_artists
						duration = 7300
					}
					define_advisor = {
						type = artist
						skill = 2
						cost_multiplier = 0.25
						name = \"Jheronimus Bosch\"
					}
				"
			}
		} 
	}

	NED_dutch_architecture = {
		icon = dutch_architecture
		position = 13
		required_missions = { NED_patronage_of_arts }
		
		provinces_to_highlight = {
			region = low_countries_region
			country_or_non_sovereign_subject_holds = ROOT
			NOT = { num_of_buildings_in_province = 5 }
		}
	
		trigger = {  
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				region = low_countries_region
				num_of_buildings_in_province = 5
				value = 10
			}
			development_in_provinces = {
				value = 200
				region = low_countries_region
			}
		} 
	
		effect = {  
			custom_tooltip = NED_BUFF_ARTIST_ADVISOR
			set_country_flag = ned_artist_is_architect_flag
			custom_tooltip = " "
			country_event_with_effect_insight = {
				id = dutch_mission_events.9
				effect = "
					define_advisor = {
						type = artist
						skill = 3
						cost_multiplier = 0.25
						name = \"Pieter Post\"
					}
				"
			}
		} 
	}

	NED_cape_of_good_hope = {
		icon = colonize_the_cape
		position = 17
		required_missions = { NED_founding_the_voc } 
		provinces_to_highlight = {  
			province_id = 1177
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		} 
	
		trigger = {  
			1177 = {
				OR = {
					country_or_non_sovereign_subject_holds = ROOT
					trade_share = {
						country = ROOT
						share = 25
					}
				}
			}
		} 
	
		effect = {  
			1177 = {
				add_base_production = 1
				add_base_manpower = 1
				add_base_tax = 1
			}
			add_country_modifier = {
				name = ned_a_stop_before_india
				duration = 3650
			}
		} 
	}

	NED_crossroad_between_two_worlds = {
		icon = renaissance_city
		position = 19
		required_missions = { NED_cape_of_good_hope } 
		provinces_to_highlight = {  
			province_id = 1177
			NOT = { development = 20 }
			NOT = { has_fort_building_trigger = yes }
			NOT = { has_trade_building_trigger = yes }
		} 

		trigger = {  
			1177 = {
				country_or_non_sovereign_subject_holds = ROOT
				development = 20
				has_fort_building_trigger = yes
				has_trade_building_trigger = yes
			}
		} 

		effect = {  
			1177 = {
				add_province_triggered_modifier = ned_cape_city
			}
		} 
	}
}
