defend_the_lowlands = {
	
	type = country

	allow = {
		tag = NED
		neighbour = SPA
		exists = SPA
		war_with = SPA
		NOT = { year = 1649 }
		owns = 93	# Zeeland
		owns = 97	# Holland
		owns = 98	# Utrecht
		owns = 99	# Gelre
		owns = 100	# Frysland
	}
	abort = {
		not = { war_with = SPA }
	}
	success = {
		not = { war_with = SPA }
		owns = 93
		owns = 97
		owns = 98
		owns = 99
		owns = 100
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			mil = 7
		}
		modifier = {
			factor = 2
			mil = 8
		}
	}
	effect = {
		war_exhaustion = -5
		infamy = -5
	}
}

reconquer_breda = {
	
	type = country

	allow = {
		tag = NED
		exists = SPA
		is_subject = no
		is_lesser_in_union = no
		neighbour = SPA
		NOT = { year = 1591 }
		SPA = { owns = 95 }
	}
	abort = {
		or = {
			and = {
				SPA = { not = { owns = 95 } }
				not = { owns = 95 }
			}
			is_subject = yes
			is_lesser_in_union = yes
		}
	}
	success = {
		owns = 95
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			mil = 7
		}
		modifier = {
			factor = 2
			mil = 8
		}
	}
	immediate = {
		add_temp_claim = 95
	}
	abort_effect = {
		remove_temp_claim = 95
	}
	effect = {
		change_manpower = 1
	}
}

the_netherlands_discover_the_carribean = {
	
	type = country

	allow = {
		tag = NED
		idea = quest_for_the_new_world
		not = { the_carribean = { has_discovered = this } }
		the_carribean = { range = yes }
		num_of_ports = 1
	}
	abort = {
		or = {
			not = { idea = quest_for_the_new_world }
			not = { num_of_ports = 1 }
		}
	}
	success = {
		the_carribean = { has_discovered = this }
		or = {
			1522 = { units_in_province = this }
			1523 = { units_in_province = this }
			1524 = { units_in_province = this }
			1526 = { units_in_province = this }
			1504 = { units_in_province = this }
		}
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			idea = land_of_opportunity
		}
		modifier = {
			factor = 2
			idea = colonial_ventures
		}	
	}
	effect = {
		treasury = 50
		colonists = 2
	}
}

dutch_colony_in_the_carribean = {
	
	type = country

	allow = {
		tag = NED
		the_carribean = {
			has_discovered = this
			empty = yes
		}
		not = {
			the_carribean = {
				owned_by =  this
			}
		}
		num_of_ports = 1
		colonists = 1
	}
	abort = {
		or = {
			not = { num_of_ports = 1 }
			and = {
				not = { the_carribean = { owned_by = this } }	
				not = { the_carribean = { empty = yes } }
			}
		}
	}
	success = {
		the_carribean = { owned_by = this }
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			idea = land_of_opportunity
		}
		modifier = {
			factor = 2
			idea = colonial_ventures
		}
		modifier = {
			factor = 2
			colonists = 2
		}
		modifier = {
			factor = 2
			colonists = 3
		}
	}
	effect = {
		prestige = 0.1
	}
}

the_netherlands_discover_north_america = {
	
	type = country

	allow = {
		tag = NED
		idea = quest_for_the_new_world
		not = { eastern_north_america = { has_discovered = this } }
		eastern_north_america = { range = yes }
		num_of_ports = 1
	}
	abort = {
		or = {
			not = { idea = quest_for_the_new_world }
			not = { num_of_ports = 1 }
		}
	}
	success = {
		eastern_north_america = { has_discovered = this }
		or = {
			1492 = { units_in_province = this }
			1493 = { units_in_province = this }
			1494 = { units_in_province = this }
			1495 = { units_in_province = this }
			1499 = { units_in_province = this }
			1500 = { units_in_province = this }
			1501 = { units_in_province = this }
		}
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			idea = land_of_opportunity
		}
		modifier = {
			factor = 2
			idea = colonial_ventures
		}	
	}
	effect = {
		treasury = 50
		colonists = 4
	}
}

dutch_colony_in_north_america = {
	
	type = country

	allow = {
		tag = NED
		num_of_ports = 1
		eastern_north_america = {
			has_discovered = this
			empty = yes
		}
		not = {
			eastern_north_america = {
				owned_by =  this
			}
		}
		colonists = 1
	}
	abort = {
		or = {
			not = { num_of_ports = 1 }
			and = {
				not = { eastern_north_america = { owned_by = this } }	
				not = { eastern_north_america = { empty = yes } }
			}
		}
	}
	success = {
		eastern_north_america = { owned_by = this }
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			idea = land_of_opportunity
		}
		modifier = {
			factor = 2
			idea = colonial_ventures
		}
		modifier = {
			factor = 2
			colonists = 2
		}
		modifier = {
			factor = 2
			colonists = 3
		}
	}
	effect = {
		prestige = 0.1
	}
}

dutch_colony_in_south_africa = {
	
	type = country

	allow = {
		tag = NED
		not = { 1175 = { has_discovered =  this } }
		not = { 1177 = { has_discovered =  this } }
		not = { 1179 = { has_discovered =  this } }
		not = { owns = 1175 }
		not = { owns = 1177 }
		not = { owns = 1179 }
		colonists = 1
		num_of_ports = 1
	}
	abort = {
		or = {
			not = { num_of_ports = 1 }
			and = {
				not = { owns = 1175 }
				not = { owns = 1177 }
				not = { owns = 1179 }
				1175 = { empty = no }
				1177 = { empty = no }
				1179 = { empty = no }
			}
		}
	}
	success = {
		or = {
			owns = 1175
			owns = 1177
			owns = 1179
		}
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			idea = land_of_opportunity
		}
		modifier = {
			factor = 2
			idea = colonial_ventures
		}
		modifier = {
			factor = 2
			colonists = 2
		}
		modifier = {
			factor = 2
			colonists = 3
		}
	}
	effect = {
		prestige = 0.1
	}
}

dutch_colony_in_indonesia = {
	
	type = country

	allow = {
		tag = NED
		indonesian_region = {
			has_discovered = this
			empty = yes
		}
		not = {
			indonesian_region = {
				owned_by =  this
			}
		}
		colonists = 1
		num_of_ports = 1
	}
	abort = {
		or = {
			not = { num_of_ports = 1 }
			and = {
				not = { indonesian_region = { owned_by = this } }	
				not = { indonesian_region = { empty = yes } }
			}
		}
	}
	success = {
		indonesian_region = { owned_by =  this }
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			idea = land_of_opportunity
		}
		modifier = {
			factor = 2
			idea = colonial_ventures
		}
		modifier = {
			factor = 2
			colonists = 2
		}
		modifier = {
			factor = 2
			colonists = 3
		}
	}
	effect = {
		prestige = 0.1
	}
}

dutch_colony_in_brazil = {
	
	type = country

	allow = {
		tag = NED
		has_discovered = south_america
		not = { owns = 743 }
		not = { owns = 744 }
		not = { owns = 745 }
		colonists = 1
		num_of_ports = 1
	}
	abort = {
		or = {
			not = { num_of_ports = 1 }
			and = {
				not = { owns = 743 }
				not = { owns = 744 }
				not = { owns = 745 }
				743 = { empty = no }
				744 = { empty = no }
				745 = { empty = no }
			}
		}	
	}
	success = {
		or = {
			owns = 743
			owns = 744
			owns = 745	
		}
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			idea = land_of_opportunity
		}
		modifier = {
			factor = 2
			idea = colonial_ventures
		}
		modifier = {
			factor = 2
			colonists = 2
		}
		modifier = {
			factor = 2
			colonists = 3
		}
	}
	effect = {
		prestige = 0.1
	}
}

the_netherlands_discover_australia = {
	
	type = country

	allow = {
		tag = NED
		idea = quest_for_the_new_world
		eastern_north_america = {
			has_discovered = this
			owned_by = this
		}
		indonesian_region = {
			has_discovered = this
			owned_by = this
		}
		NOT = { australian_coast = { has_discovered = this } }
		australian_coast = { range = yes }
		num_of_ports = 1
	}
	abort = {
		or = {
			not = { idea = quest_for_the_new_world }
			not = { num_of_ports = 1 }
		}
	}
	success = {
		australian_coast = { has_discovered = this }
		or = {
			1411 = { units_in_province = this }
			1412 = { units_in_province = this }
			1413 = { units_in_province = this }
			1414 = { units_in_province = this }
			1415 = { units_in_province = this }
			1417 = { units_in_province = this }
			1418 = { units_in_province = this }
		}
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			idea = land_of_opportunity
		}
		modifier = {
			factor = 2
			idea = colonial_ventures
		}	
	}
	effect = {
		prestige = 0.1
	}
}

dutch_control_of_taiwan = {
	
	type = country

	allow = {
		tag = NED
		is_lesser_in_union = no
		indonesian_region = { owned_by = this }
		not = { 738 = { has_discovered =  this } }
		not = { owns = 738 }
		738 = { range = yes }
	}
	abort = {}
	success = {
		owns = 738
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			year = 1650
		}
		modifier = {
			factor = 2
			year = 1700
		}
	}
	immediate = {
		add_temp_claim = 738
	}
	abort_effect = {
		remove_temp_claim = 738
	}
	effect = {
		treasury = 50
	}
}

embrace_the_reformation = {
	
	type = country

	allow = {
		tag = NED
		religion = catholic
		lowlands_region = { religion = reformed }
		missionaries = 1
		owns = 97
	}
	abort = {}
	success = {
		religion = reformed
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			year = 1650
		}
		modifier = {
			factor = 2
			idea = humanist_tolerance
		}
	}
	effect = {
		innovative_narrowminded = -1
		infamy = -5
	}
}

take_malacca_from_portugal = {
	
	type = country

	allow = {
		tag = NED
		exists = POR
		war_with = POR
		not = { year = 1654 }
		indonesian_region = { has_discovered = this }
		POR = { owns = 596 }
	}
	abort = {
		not = { war_with = POR }
	}
	success = {
		owns = 596
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			indonesian_region = { owned_by = this }
		}
	}
	immediate = {
		add_temp_claim = 596
	}
	abort_effect = {
		remove_temp_claim = 596
	}
	effect = {
		war_exhaustion = -5
		army_tradition = 0.5
	}
}

take_ceylon_from_portugal = {
	
	type = country

	allow = {
		tag = NED
		exists = POR
		war_with = POR
		not = { year = 1654 }
		indian_coast = { has_discovered = this }
		POR = {
			owns = 596
			owns = 573
		}
	}
	abort = {
		not = { war_with = POR }
	}
	success = {
		owns = 572
		owns = 573
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			indian_coast = { owned_by = this }
		}
	}
	immediate = {
		add_temp_claim = 572
		add_temp_claim = 573
	}
	abort_effect = {
		remove_temp_claim = 572
		remove_temp_claim = 573
	}
	effect = {
		war_exhaustion = -5
		army_tradition = 0.5
	}
}

establish_trade_in_indonesian_cot = {
	
	type = country

	allow = {
		tag = NED
		indonesian_region = {
			has_discovered = this
			owned_by = this
			cot = yes
			not = { placed_merchants = 1 }
		}
		not = { last_mission = establish_trade_in_indonesian_cot }
	}
	abort = {
		not = { indonesian_region = { cot = yes } }
	}
	success = {
		indonesian_region = {
			owned_by = this
			cot = yes
			placed_merchants = 5
		}	
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			idea = land_of_opportunity
		}
		modifier = {
			factor = 2
			idea = shrewd_commerce_practise
		}
	}
	effect = {
		treasury = 40
		merchants = 4
	}
}
