nor_colonialism_mission_slot = {
	slot = 1
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		OR = {
			tag = NOR
			AND = {
				was_tag = NOR
				tag = SCA
			}
		}
		has_dlc = "Lions of the North"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	nor_handle_the_burghers = {
		icon = hungarian_union
		position = 1
		required_missions = {  }
		provinces_to_highlight = {}
		trigger = {
			if = {
				limit = {
					has_estate = estate_burghers
				}
				num_of_estate_agendas_completed = {
					estate = estate_burghers
					value = 2
				}
			}
			else = {
				NOT = { has_estate = estate_burghers }
			}
		}
		effect = {
			if = {
				limit = {
					has_estate = estate_burghers
				}
				unlock_estate_privilege = {
					estate_privilege = estate_burghers_mountain_expansion
				}
				add_estate_loyalty = {
					estate = estate_burghers
					loyalty = 15
				}
			}
			else = {
				add_dip_power = 100
				hidden_effect = {
					unlock_estate_privilege = {
						estate_privilege = estate_burghers_mountain_expansion
					}
				}
			}
		}
	}
	
	nor_north_sea_markets = {
		icon = mission_fish_markets
		position = 2
		required_missions = { nor_handle_the_burghers }
		provinces_to_highlight = {
			OR = {
				province_id = 17
				province_id = 20
				province_id = 23
			}
			OR = {
				NOT = { owned_by = ROOT }
				NOT = { is_core = ROOT }
				NOT = { has_trade_building_trigger = yes }
				if = {
					limit = { has_dlc = "Dharma" }
					NOT = { province_has_center_of_trade_of_level = 2 }
				}
			}
		}
		trigger = {
			owns_core_province = 17
			owns_core_province = 20
			owns_core_province = 23
			17 = {
				if = {
					limit = { has_dlc = "Dharma" }
					province_has_center_of_trade_of_level = 2
				}
				has_trade_building_trigger = yes
			}
			20 = {
				if = {
					limit = { has_dlc = "Dharma" }
					province_has_center_of_trade_of_level = 2
				}
				has_trade_building_trigger = yes
			}
			23 = {
				if = {
					limit = { has_dlc = "Dharma" }
					province_has_center_of_trade_of_level = 2
				}
				has_trade_building_trigger = yes
			}
		}
		effect = {
			add_mercantilism = 5
			17 = {
				add_province_modifier = {
					name = nor_trade_posts_of_the_north
					duration = -1
				}
			}
			20 = {
				add_province_modifier = {
					name = nor_trade_posts_of_the_north
					duration = -1
				}
			}
			23 = {
				add_province_modifier = {
					name = nor_trade_posts_of_the_north
					duration = -1
				}
			}
		}
	}
	
	nor_dominate_trade = {
		icon = mission_rb_scottish_north_sea_trade
		position = 3
		required_missions = { nor_north_sea_markets }
		provinces_to_highlight = {
			OR = {
				AND = {
					province_id = 45
					NOT = { is_strongest_trade_power = ROOT }
					NOT = {
						trade_share = {
							country = ROOT
							share = 35
						}
					}
				}
				AND = {
					province_id = 1975
					NOT = {
						trade_share = {
							country = ROOT
							share = 75
						}
					}
				}
				AND = {
					province_id = 1926
					NOT = { is_strongest_trade_power = ROOT }
					NOT = {
						trade_share = {
							country = ROOT
							share = 15
						}
					}
				}
			}
		}
		trigger = {
			1975 = {
				trade_share = {
					country = ROOT
					share = 75
				}
			}
			45 = {
				OR = {
					is_strongest_trade_power = ROOT
					trade_share = {
						country = ROOT
						share = 35
					}
				}
			}
			1926 = {
				OR = {
					is_strongest_trade_power = ROOT
					trade_share = {
						country = ROOT
						share = 15
					}
				}
			}
		}
		effect = {
			add_years_of_trade_income = {
				years = 4
				custom_tooltip = zan_settle_trade_posts_ct
			}
			add_estate_loyalty_modifier = {
				estate = estate_burghers
				desc = nor_dominate_trade_tt
				loyalty = 20
				duration = -1
			}
		}
	}
	
	nor_the_great_disovery_fleet = {
		icon = mission_norwegian_ship
		position = 4
		required_missions = { nor_get_colonial }
		provinces_to_highlight = {}
		trigger = {
			if = {
				limit = { has_dlc = "Golden Century" }
				has_flagship = yes
			}
			num_of_explorers = 1
			num_of_light_ship = 10
		}
		effect = {
			define_advisor = {
				type = navigator
				skill = 2
				cost_multiplier = 0.25
			}
			if = {
				limit = { is_random_new_world = no }
				greenland_area = {
					limit = {
						NOT = { is_core = ROOT }
						NOT = { is_permanent_claim = ROOT }
					}
					add_permanent_claim = ROOT
				}
			}
		}
	}
	
	nor_discover_new_world = {
		icon = mission_invade_island
		position = 5
		required_missions = { nor_the_great_disovery_fleet }
		provinces_to_highlight = {
			OR = {
				continent = new_world
				continent = north_america
				continent = south_america
			}
			NOT = { area = greenland_area }
			NOT = { has_discovered = ROOT }
		}
		trigger = {
			if = {
				limit = { is_random_new_world = yes }
				new_world = {
					has_discovered = ROOT
				}
			}
			else = {
				custom_trigger_tooltip = {
					tooltip = nor_discover_new_world_ct
					any_province = {
						OR = {
							AND = {
								NOT = { area = greenland_area }
								continent = north_america
							}
							continent = south_america
						}
						has_discovered = ROOT
					}
				}
			}
		}
		effect = {
			add_navy_tradition = 20
			add_country_modifier = {
				name = nor_colonial_enthusiasm
				duration = 14600
			}
			if = {
				limit = {
					is_random_new_world = no
				}
				custom_tooltip = nor_discover_new_world_tt
				hidden_effect = {
					colonial_eastern_america = {
						limit = {
							NOT = { is_core = ROOT }
							NOT = { is_permanent_claim = ROOT }
							OR = {
								province_has_center_of_trade_of_level = 1
								has_river_estuary_trigger = yes
							}
						}
						add_permanent_claim = ROOT
					}
					colonial_canada = {
						limit = {
							NOT = { is_core = ROOT }
							NOT = { is_permanent_claim = ROOT }
							OR = {
								province_has_center_of_trade_of_level = 1
								has_river_estuary_trigger = yes
							}
						}
						add_permanent_claim = ROOT
					}
					colonial_the_carribean = {
						limit = {
							NOT = { is_core = ROOT }
							NOT = { is_permanent_claim = ROOT }
							OR = {
								province_has_center_of_trade_of_level = 1
								has_river_estuary_trigger = yes
							}
						}
						add_permanent_claim = ROOT
					}
					colonial_mexico = {
						limit = {
							NOT = { is_core = ROOT }
							NOT = { is_permanent_claim = ROOT }
							OR = {
								province_has_center_of_trade_of_level = 1
								has_river_estuary_trigger = yes
							}
						}
						add_permanent_claim = ROOT
					}
				}
			}
		}
	}
}

nor_colonize_north_america_slot = {
	slot = 1
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		OR = {
			tag = NOR
			AND = {
				was_tag = NOR
				tag = SCA
			}
		}
		has_dlc = "Lions of the North"
		NOT = { map_setup = map_setup_random }
		is_random_new_world = no
	}
	has_country_shield = yes
	
	nor_colonize_canada_and_na = {
		icon = mission_rb_colonise_canada
		position = 6
		required_missions = { nor_discover_new_world }
		provinces_to_highlight = {
			OR = {
				colonial_region = colonial_canada
				colonial_region = colonial_eastern_america
			}
			has_discovered = ROOT
			OR = {
				is_city = no
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					colonial_region = colonial_canada
					colonial_region = colonial_eastern_america
				}
				is_city = yes
				value = 20
			}
		}
		effect = {
			custom_tooltip = nor_colonize_canada_and_na_tt
			hidden_effect = {
				random_province = {
					limit = {
						country_or_non_sovereign_subject_holds = ROOT
						OR = {
							colonial_region = colonial_canada
							colonial_region = colonial_eastern_america
						}
						is_city = yes
						NOT = { has_province_flag = nor_colonize_canada_and_na_flag }
						NOT = { has_production_building_trigger = yes }
					}
					set_province_flag = nor_colonize_canada_and_na_flag
				}
				random_province = {
					limit = {
						country_or_non_sovereign_subject_holds = ROOT
						OR = {
							colonial_region = colonial_canada
							colonial_region = colonial_eastern_america
						}
						is_city = yes
						NOT = { has_province_flag = nor_colonize_canada_and_na_flag }
						NOT = { has_production_building_trigger = yes }
					}
					set_province_flag = nor_colonize_canada_and_na_flag
				}
				random_province = {
					limit = {
						country_or_non_sovereign_subject_holds = ROOT
						OR = {
							colonial_region = colonial_canada
							colonial_region = colonial_eastern_america
						}
						is_city = yes
						NOT = { has_province_flag = nor_colonize_canada_and_na_flag }
						NOT = { has_production_building_trigger = yes }
					}
					set_province_flag = nor_colonize_canada_and_na_flag
				}
				random_province = {
					limit = {
						country_or_non_sovereign_subject_holds = ROOT
						OR = {
							colonial_region = colonial_canada
							colonial_region = colonial_eastern_america
						}
						is_city = yes
						NOT = { has_province_flag = nor_colonize_canada_and_na_flag }
						NOT = { has_production_building_trigger = yes }
					}
					set_province_flag = nor_colonize_canada_and_na_flag
				}
				random_province = {
					limit = {
						country_or_non_sovereign_subject_holds = ROOT
						OR = {
							colonial_region = colonial_canada
							colonial_region = colonial_eastern_america
						}
						is_city = yes
						NOT = { has_province_flag = nor_colonize_canada_and_na_flag }
						NOT = { has_production_building_trigger = yes }
					}
					set_province_flag = nor_colonize_canada_and_na_flag
				}
				every_province = {
					limit = {
						has_province_flag = nor_colonize_canada_and_na_flag
					}
					add_building = counting_house
					clr_province_flag = nor_colonize_canada_and_na_flag
				}
			}
			1486 = {
				add_trade_modifier = {
					who = ROOT
					duration = 10950
					power = 15
					key = nor_colonize_canada_and_na_at
				}
			}
			1490 = {
				add_trade_modifier = {
					who = ROOT
					duration = 10950
					power = 15
					key = nor_colonize_canada_and_na_at
				}
			}
			1500 = {
				add_trade_modifier = {
					who = ROOT
					duration = 10950
					power = 15
					key = nor_colonize_canada_and_na_at
				}
			}
		}
	}
	
	nor_colonize_the_north = {
		icon = settle_north_america
		position = 7
		required_missions = { nor_colonize_canada_and_na }
		provinces_to_highlight = {
			OR = {
				colonial_region = colonial_alaska
				colonial_region = colonial_louisiana
			}
			has_discovered = ROOT
			OR = {
				is_city = no
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					colonial_region = colonial_alaska
					colonial_region = colonial_louisiana
				}
				is_city = yes
				value = 20
			}
		}
		effect = {
			add_adm_power = 100
			add_dip_power = 100
			add_mil_power = 100
			if = {
				limit = { tag = SCA }
				rio_grande_region = {
					limit = {
						NOT = { is_core = ROOT }
						NOT = { is_permanent_claim = ROOT }
						NOT = { owner = { is_subject_of = ROOT } }
					}
					add_permanent_claim = ROOT
				}
				california_region = {
					limit = {
						NOT = { is_core = ROOT }
						NOT = { is_permanent_claim = ROOT }
						NOT = { owner = { is_subject_of = ROOT } }
					}
					add_permanent_claim = ROOT
				}
			}
		}
	}
}

nor_colonize_random_new_world_slot = {
	slot = 1
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		OR = {
			tag = NOR
			AND = {
				was_tag = NOR
				tag = SCA
			}
		}
		has_dlc = "Lions of the North"
		NOT = { map_setup = map_setup_random }
		is_random_new_world = yes
	}
	has_country_shield = yes
	
	nor_colonize_new_world = {
		icon = mission_settlers_north_america
		position = 6
		required_missions = { nor_discover_new_world }
		provinces_to_highlight = {
			continent = new_world
			has_discovered = ROOT
			OR = {
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
				is_city = no
			}
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				continent = new_world
				is_city = yes
				value = 10
			}
		}
		effect = {
			add_country_modifier = {
				name = nor_new_world_administration
				duration = -1
			}
		}
	}
	
	nor_dominate_new_world = {
		icon = settle_north_america
		position = 7
		required_missions = { nor_colonize_new_world }
		provinces_to_highlight = {
			continent = new_world
			has_discovered = ROOT
			owner = {
				OR = {
					is_rival = ROOT
					is_enemy = ROOT
					overlord = {
						OR = {
							is_rival = ROOT
							is_enemy = ROOT
						}
					}
				}
			}
		}
		trigger = {
			NOT = { current_age = age_of_discovery }
			custom_trigger_tooltip = {
				tooltip = nor_dominate_new_world_tt
				NOT = {
					new_world = {
						owner = {
							OR = {
								is_rival = ROOT
								is_enemy = ROOT
								overlord = {
									OR = {
										is_rival = ROOT
										is_enemy = ROOT
									}
								}
							}
						}
					}
				}
			}
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				continent = new_world
				is_city = yes
				value = 20
			}
		}
		effect = {
			add_power_projection = {
				type = mission_rewards_power_projection
				amount = 100
			}
			add_prestige = 100
		}
	}
}

nor_conquest_mission_slot = {
	slot = 2
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		OR = {
			tag = NOR
			AND = {
				was_tag = NOR
				tag = SCA
			}
		}
		has_dlc = "Lions of the North"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	nor_find_allies = {
		icon = mission_alliances
		position = 1
		required_missions = {  }
		provinces_to_highlight = {
			is_capital = yes
			owner = {
				OR = {
					is_rival = DAN
					is_enemy = DAN
				}
				NOT = {
					has_opinion = {
						who = ROOT
						value = 100
					}
				}
			}
		}
		trigger = {
			if = {
				limit = {
					NOT = { is_subject_of_type = tributary_state }
					is_subject_of = DAN
				}
				OR = {
					is_free_or_tributary_trigger = yes
					calc_true_if = {
						desc = nor_find_allies_ct
						all_known_country = {
							OR = {
								is_rival = DAN
								is_enemy = DAN
							}
							has_opinion = {
								who = ROOT
								value = 100
							}
						}
						amount = 2
					}
				}
			}
			else = {
				is_free_or_tributary_trigger = yes
			}
		}
		effect = {
			if = {
				limit = { is_free_or_tributary_trigger = yes }
				add_dip_power = 100
			}
			else = {
				country_event = {
					id = flavor_nor.42
				}
			}
		}
	}
	
	nor_build_navy = {
		icon = imperial_navy
		position = 2
		required_missions = {  }
		provinces_to_highlight = {}
		trigger = {
			OR = {
				num_of_heavy_ship = 5
				num_of_light_ship = 8
			}
		}
		effect = {
			if = {
				limit = {
					is_random_new_world = no
				}
				country_event = {
					id = flavor_nor.32
				}
			}
			create_explorer = {
				tradition = 100
			}
			add_navy_tradition = 10
		}
	}
	
	nor_get_colonial = {
		icon = mission_colonial
		position = 3
		required_missions = { nor_build_navy }
		provinces_to_highlight = {}
		trigger = {
			OR = {
				has_idea = quest_for_the_new_world
				has_idea = call_of_our_forefathers
			}
			share_of_starting_income = 1.5
			is_in_deficit = no
			NOT = { num_of_loans = 1 }
		}
		effect = {
			capital_scope = {
				marine_infantry = ROOT
				marine_infantry = ROOT
				marine_infantry = ROOT
			}
			add_country_modifier = {
				name = nor_sailors_of_norway
				duration = 9125
			}
		}
	}
	
	nor_conquer_scotland = {
		icon = mission_rb_conquer_scotland
		position = 4
		required_missions = { nor_get_independent }
		provinces_to_highlight = {
			OR = {
				area = lowlands_area
				area = highlands_area
				area = kingdom_of_the_isles_area
			}
			NOT = { owned_by = ROOT }
		}
		trigger = {
			num_of_owned_provinces_with = {
				OR = {
					area = lowlands_area
					area = highlands_area
					area = kingdom_of_the_isles_area
				}
				value = 8
			}
		}
		effect = {
			if = {
				limit = {
					NOT = { exists = HSC }
				}
				country_event = {
					id = flavor_nor.46
				}
			}
			else_if = {
				limit = {
					num_of_owned_provinces_with = {
						OR = {
							area = lowlands_area
							area = highlands_area
							area = kingdom_of_the_isles_area
						}
						value = 8
					}
				}
				random_owned_province = {
					limit = {
						OR ={
							area = highlands_area
							area = lowlands_area
							area = kingdom_of_the_isles_area
						}
					}
					add_base_tax = 3
					add_base_production = 3
					add_base_manpower = 2
				}
				1975 = {
					add_trade_modifier = {
						who = ROOT
						duration = -1
						power = 10
						key = nor_control_over_scotland
					}
				}
			}
			else = {
				custom_tooltip = nor_conquer_scotland_tt
			}
			scottish_marches_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			ulster_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			leinster_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			connacht_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			munster_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
}

nor_colonize_middle_america_slot = {
	slot = 2
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		OR = {
			tag = NOR
			AND = {
				was_tag = NOR
				tag = SCA
			}
		}
		has_dlc = "Lions of the North"
		NOT = { map_setup = map_setup_random }
		is_random_new_world = no
	}
	has_country_shield = yes
	
	nor_colonize_greenland = {
		icon = mission_rb_settle_the_north
		position = 5
		required_missions = { nor_the_great_disovery_fleet }
		provinces_to_highlight = {
			area = greenland_area
		}
		trigger = {
			if = {
				limit = {
					OR = {
						1104 = { is_empty = yes }
						1105 = { is_empty = yes }
					}
				}
				OR = {
					1104 = {
						OR = {
							num_of_units_in_province = {
								who = ROOT
								type = infantry
								amount = 3
							}
							country_or_non_sovereign_subject_holds = ROOT
						}
					}
					1105 = {
						OR = {
							num_of_units_in_province = {
								who = ROOT
								type = infantry
								amount = 3
							}
							country_or_non_sovereign_subject_holds = ROOT
						}
					}
				}
			}
			else = {
				owns_or_non_sovereign_subject_of = 1104
				owns_or_non_sovereign_subject_of = 1105
			}
		}
		effect = {
			if = {
				limit = {
					OR = {
						1104 = {
							is_empty = yes
							num_of_units_in_province = {
								who = ROOT
								type = infantry
								amount = 3
							}
						}
						1105 = {
							is_empty = yes
							num_of_units_in_province = {
								who = ROOT
								type = infantry
								amount = 3
							}
						}
					}
				}
				country_event = {
					id = flavor_nor.33
				}
			}
			else_if = {
				limit = {
					OR = {
						owns_or_non_sovereign_subject_of = 1104
						owns_or_non_sovereign_subject_of = 1105
					}
				}
				if = {
					limit = {
						owns_or_non_sovereign_subject_of = 1104
					}
					1104 = {
						add_base_production = 3
						add_base_manpower = 3
					}
				}
				else = {
					custom_tooltip = nor_colonize_greenland_bt
				}
				if = {
					limit = {
						owns_or_non_sovereign_subject_of = 1105
					}
					1105 = {
						add_base_production = 2
						add_base_manpower = 2
					}
				}
				else = {
					custom_tooltip = nor_colonize_greenland_ct
				}
			}
			else = {
				custom_tooltip = nor_colonize_greenland_dt
			}
			if = {
				limit = { owns_or_non_sovereign_subject_of = 370 }
				370 = {
					center_of_trade = 2
				}
			}
		}
	}
	
	nor_colonize_mexico = {
		icon = mission_war_chest
		position = 6
		required_missions = { nor_discover_new_world }
		provinces_to_highlight = {
			OR = {
				colonial_region = colonial_mexico
				colonial_region = colonial_california
			}
			has_discovered = ROOT
			OR = {
				is_city = no
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
			}
			trade_goods = gold
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					colonial_region = colonial_mexico
					colonial_region = colonial_california
				}
				is_city = yes
				trade_goods = gold
				value = 5
			}
		}
		effect = {
			add_years_of_income = 3
		}
	}
}

nor_circumnavigate_the_world_slot = {
	slot = 2
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		OR = {
			tag = NOR
			AND = {
				was_tag = NOR
				tag = SCA
			}
		}
		has_dlc = "Lions of the North"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	nor_circumnavigate_the_world = {
		icon = mission_explore_the_world
		position = 7
		required_missions = {  }
		provinces_to_highlight = {
			OR = {
				AND = {
					region = south_east_pacific_region
					south_east_pacific_region = { NOT = { has_discovered = ROOT } }
				}
				AND = {
					region = north_east_pacific_region
					north_east_pacific_region = { NOT = { has_discovered = ROOT } }
				}
				AND = {
					region = pacific_south_america_region
					pacific_south_america_region = { NOT = { has_discovered = ROOT } }
				}
				AND = {
					region = atlantic_south_america_region
					atlantic_south_america_region = { NOT = { has_discovered = ROOT } }
				}
				AND = {
					region = random_new_world_region
					random_new_world_region = { NOT = { has_discovered = ROOT } }
				}
				AND = {
					region = west_african_sea_region
					west_african_sea_region = { NOT = { has_discovered = ROOT } }
				}
				AND = {
					region = south_atlantic_region
					south_atlantic_region = { NOT = { has_discovered = ROOT } }
				}
				AND = {
					region = west_indian_ocean_region
					west_indian_ocean_region = { NOT = { has_discovered = ROOT } }
				}
				AND = {
					region = east_indian_ocean_region
					east_indian_ocean_region = { NOT = { has_discovered = ROOT } }
				}
				AND = {
					region = south_indian_ocean_region
					south_indian_ocean_region = { NOT = { has_discovered = ROOT } }
				}
				AND = {
					region = east_china_sea_region
					east_china_sea_region = { NOT = { has_discovered = ROOT } }
				}
				AND = {
					region = south_china_sea_region
					south_china_sea_region = { NOT = { has_discovered = ROOT } }
				}
				AND = {
					region = north_west_pacific_region
					north_west_pacific_region = { NOT = { has_discovered = ROOT } }
				}
				AND = {
					region = south_west_pacific_region
					south_west_pacific_region = { NOT = { has_discovered = ROOT } }
				}
			}
		}
		trigger = {
			if = {
				limit = { has_dlc = "El Dorado" }
				custom_trigger_tooltip = {
					tooltip = nor_circumnavigate_the_world_at
					OR = {
						has_country_flag = circumnavigation_done
						has_country_flag = circumnavigation_first
					}
				}
			}
			custom_trigger_tooltip = {
				tooltip = nor_circumnavigate_the_world_bt
				OR = {
					AND = {
						OR = {
							south_east_pacific_region = { has_discovered = ROOT }
							north_east_pacific_region = { has_discovered = ROOT }
						}
						pacific_south_america_region = { has_discovered = ROOT }
						atlantic_south_america_region = { has_discovered = ROOT }
					}
					random_new_world_region = { has_discovered = ROOT }
				}
				west_african_sea_region = { has_discovered = ROOT }
				south_atlantic_region = { has_discovered = ROOT }
				west_indian_ocean_region = { has_discovered = ROOT }
				OR = {
					east_indian_ocean_region = { has_discovered = ROOT }
					south_indian_ocean_region = { has_discovered = ROOT }
				}
				OR = {
					east_china_sea_region = { has_discovered = ROOT }
					south_china_sea_region = { has_discovered = ROOT }
					north_west_pacific_region = { has_discovered = ROOT }
					south_west_pacific_region = { has_discovered = ROOT }
				}
			}
		}
		effect = {
			if = {
				limit = {
					has_dlc = "El Dorado"
				}
				if = {
					limit = {
						has_country_flag = circumnavigation_first
					}
					add_adm_power = 100
					add_dip_power = 100
					add_mil_power = 100
				}
				else = {
					custom_tooltip = nor_circumnavigate_the_world_ct
				}
			}
			add_country_modifier = {
				name = nor_great_navigators
				duration = 36500
			}
		}
	}
}

nor_kalmar_union_mission_slot = {
	slot = 3
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		OR = {
			tag = NOR
			AND = {
				was_tag = NOR
				tag = SCA
			}
		}
		has_dlc = "Lions of the North"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	nor_declare_independence = {
		icon = mission_norwegian_independence
		position = 2
		required_missions = {
			nor_find_allies
			nor_build_troops
		}
		provinces_to_highlight = {}
		trigger = {
			is_free_or_tributary_trigger = yes
		}
		effect = {
			add_stability_or_adm_power = yes
			add_legitimacy = 30
			vastra_gotaland_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			svealand_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			skaneland_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	nor_get_independent = {
		icon = mission_norways_is_independent
		position = 3
		required_missions = {
			nor_declare_independence
		}
		provinces_to_highlight = {}
		trigger = {
			is_free_or_tributary_trigger = yes
			is_at_war = no
		}
		effect = {
			lowlands_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			highlands_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			kingdom_of_the_isles_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			scandinavia_region = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			if = {
				limit = {
					NOT = { legitimacy_equivalent = 80 }
				}
				add_legitimacy_equivalent = {
					amount = 20
					republican_tradition = 10
				}
			}
			else = {
				add_power_projection = {
					type = mission_rewards_power_projection
					amount = 25
				}
			}
			if = {
				limit = {
					DAN = {
						exists = yes
						government = monarchy
						religion_group = christian
					}
				}
				add_casus_belli = {
					type = cb_restore_personal_union
					target = DAN
					months = 240
				}
			}
		}
	}
	
	nor_norway_denmark = {
		icon = mission_crown_of_denmark
		position = 5
		required_missions = { 
			nor_get_independent
			nor_restore_norwegian_nobility
		}
		provinces_to_highlight = {
			OR = {
				area = skaneland_area
				area = denmark_area
				area = jutland_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			OR = {
				DAN = {
					is_subject_of = ROOT
					is_lesser_in_union = yes
				}
				num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
					OR = {
						area = skaneland_area
						area = denmark_area
						area = jutland_area
					}
					value = 8
				}
			}
		}
		effect = {
			if = {
				limit = {
					DAN = {
						is_subject_of = ROOT
						is_lesser_in_union = yes
					}
				}
				country_event = {
					id = flavor_nor.47
				}
			}
			else_if = {
				limit = {
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						OR = {
							area = skaneland_area
							area = denmark_area
							area = jutland_area
						}
						value = 8
					}
				}
				add_country_modifier = {
					name = nor_holder_of_the_kalmar_union
					duration = -1
				}
			}
			else = {
				custom_tooltip = nor_norway_denmark_tt
			}
			custom_tooltip = allow_earlier_scandinavia_formation_tt
			hidden_effect = { set_country_flag = can_form_scandinavia_earlier }
		}
	}
}

nor_dominate_colonialism_slot = {
	slot = 3
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		OR = {
			tag = NOR
			AND = {
				was_tag = NOR
				tag = SCA
			}
		}
		has_dlc = "Lions of the North"
		NOT = { map_setup = map_setup_random }
		is_random_new_world = no
	}
	has_country_shield = yes
	
	nor_colonize_caribbeans = {
		icon = explore_caribbean
		position = 6
		required_missions = { nor_discover_new_world }
		provinces_to_highlight = {
			colonial_region = colonial_the_carribean
			has_discovered = ROOT
			OR = {
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
				is_city = no
			}
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				colonial_region = colonial_the_carribean
				is_city = yes
				value = 15
			}
		}
		effect = {
			1516 = {
				add_trade_modifier = {
					who = ROOT
					duration = -1
					power = 25
					key = nor_colonize_caribbeans_tt
				}
			}
			1500 = {
				add_trade_modifier = {
					who = ROOT
					duration = 18250
					power = 20
					key = nor_colonize_caribbeans_tt
				}
			}
			2935 = {
				add_trade_modifier = {
					who = ROOT
					duration = 18250
					power = 20
					key = nor_colonize_caribbeans_tt
				}
			}
			1551 = {
				add_trade_modifier = {
					who = ROOT
					duration = 18250
					power = 20
					key = nor_colonize_caribbeans_tt
				}
			}
			835 = {
				add_trade_modifier = {
					who = ROOT
					duration = 18250
					power = 20
					key = nor_colonize_caribbeans_tt
				}
			}
		}
	}
}

nor_development_mission_slot = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		OR = {
			tag = NOR
			AND = {
				was_tag = NOR
				tag = SCA
			}
		}
		has_dlc = "Lions of the North"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	nor_build_troops = {
		icon = mission_norwegian_royal_army
		position = 1
		required_missions = {  }
		provinces_to_highlight = {}
		trigger = {
			army_size_percentage = 1
			num_of_generals = 1
		}
		effect = {
			add_mil_power = 50
			add_country_modifier = {
				name = nor_fight_for_liberty
				duration = 9125
			}
		}
	}
	
	nor_restore_the_leidang = {
		icon = mission_marines
		position = 2
		required_missions = { nor_fortify_norway }
		provinces_to_highlight = {
			OR = {
				NOT = { has_manpower_building_trigger = yes }
				NOT = { has_dock_building_trigger = yes }
			}
			has_port = yes
			owned_by = ROOT
		}
		trigger = {
			land_forcelimit = 20
			if = {
				limit = {
					has_dlc = "Cradle of Civilization"
				}
				army_professionalism = 25
				army_tradition = 10
			}
			else = {
				army_tradition = 25
			}
			num_of_owned_provinces_with = {
				has_manpower_building_trigger = yes
				has_dock_building_trigger = yes
				has_port = yes
				value = 6
			}
		}
		effect = {
			add_yearly_sailors = 2
			add_yearly_manpower = 1
			unlock_estate_privilege = {
				estate_privilege = estate_nobles_leidang_conscription
			}
		}
	}
	
	nor_the_grand_norwegian_fleet = {
		icon = mission_rb_a_mighty_fleet
		position = 3
		required_missions = { nor_restore_the_leidang }
		provinces_to_highlight = {}
		trigger = {
			naval_forcelimit = 40
			num_of_marines = 20
			navy_size_percentage = 0.9
			max_sailors = 20000
			navy_tradition = 40
		}
		effect = {
			if = {
				limit = {
					has_dlc = "Rule Britannia"
				}
				custom_tooltip = upgrade_norwegian_doctrine
			}
			add_country_modifier = {
				name = nor_competent_marines
				duration = -1
			}
			add_mil_power = 150
			hidden_effect = {
				set_country_flag = nor_upgraded_norwegian_sailors_doctrine
			}
		}
	}
	
	nor_restore_norwegian_nobility = {
		icon = mission_noble_council
		position = 4
		required_missions = { }
		provinces_to_highlight = {}
		trigger = {
			government = monarchy
			NOT = { has_estate_privilege = estate_nobles_danish_nobility }
			NOT = { has_estate_privilege = estate_nobles_nobles_instead_of_royal_court }
			is_free_or_tributary_trigger = yes
		}
		effect = {
			change_estate_land_share = {
				estate = estate_nobles
				share = -10
			}
			add_legitimacy = 10
			add_country_modifier = {
				name = nor_norwegian_nobility_established
				duration = 9125
			}
			add_government_reform = norwegian_parliamentary_monarchy
		}
	}
	
	nor_an_absolute_kingdom = {
		icon = mission_monarch_in_throne_room
		position = 6
		required_missions = { nor_restore_norwegian_nobility }
		provinces_to_highlight = {}
		trigger = {
			crown_land_share = 50
			legitimacy_equivalent = 85
			stability = 2
			if = {
				limit = {
					has_dlc = "Common Sense"
				}
				has_parliament = yes
				current_size_of_parliament = 25
			}
			else = {
				if = {
					limit = {
						has_estate = estate_church
					}
					estate_loyalty = {
						estate = estate_church
						loyalty = 80
					}
				}
				else = {
					NOT = { has_estate = estate_church }
				}
				if = {
					limit = {
						has_estate = estate_burghers
					}
					estate_loyalty = {
						estate = estate_burghers
						loyalty = 80
					}
				}
				else = {
					NOT = { has_estate = estate_burghers }
				}
				if = {
					limit = {
						has_estate = estate_nobles
					}
					estate_loyalty = {
						estate = estate_nobles
						loyalty = 80
					}
				}
				else = {
					NOT = { has_estate = estate_nobles }
				}
			}
		}
		effect = {
			custom_tooltip = nor_an_absolute_kingdom_tt
			hidden_effect = {
				scandinavia_region = {
					limit = {
						is_state = yes
						owned_by = ROOT
					}
					add_local_autonomy = -100
				}
			}
			if = {
				limit = { has_parliament = yes }
				halves_parliament_bribe_costs = yes
			}
			else = {
				add_adm_power = 100
			}
		}
	}
}

nor_west_africa_slot = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		OR = {
			tag = NOR
			AND = {
				was_tag = NOR
				tag = SCA
			}
		}
		has_dlc = "Lions of the North"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	nor_colonize_west_africa = {
		icon = mission_west_african_ports
		position = 7
		required_missions = {  }
		provinces_to_highlight = {
			region = guinea_region
			OR = {
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
				is_city = no
			}
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				region = guinea_region
				is_city = yes
				value = 5
			}
		}
		effect = {
			add_country_modifier = {
				name = nor_control_over_west_africa
				duration = 9125
			}
			guinea_region = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			if = {
				limit = {
					tag = SCA
				}
				niger_region = {
					limit = {
						NOT = { is_core = ROOT }
						NOT = { is_permanent_claim = ROOT }
					}
					add_permanent_claim = ROOT
				}
			}
		}
	}
}

nor_army_and_religion_mission_slot = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		OR = {
			tag = NOR
			AND = {
				was_tag = NOR
				tag = SCA
			}
		}
		has_dlc = "Lions of the North"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	nor_fortify_norway = {
		icon = alpine_fortifications
		position = 1
		required_missions = { }
		provinces_to_highlight = {
			region = scandinavia_region
			owned_by = ROOT
			NOT = { province_has_current_tech_fort_trigger = yes }
		}
		trigger = {
			num_of_owned_provinces_with = {
				region = scandinavia_region
				province_has_current_tech_fort_trigger = yes
				value = 2
			}
		}
		effect = {
			add_country_modifier = {
				name = nor_scandes_fortresses
				duration = 9125
			}
			define_advisor = {
				type = fortification_expert
				skill = 1
				discount = yes
			}
		}
	}
	
	nor_restore_infrastructure = {
		icon = mission_have_manufactories
		position = 2
		required_missions = { nor_fortify_norway }
		provinces_to_highlight = {
			OR = {
				area = northern_norway
				area = western_norway
				area = eastern_norway
			}
			OR = {
				NOT = { is_core = ROOT }
				NOT = { owned_by = ROOT }
				NOT = { development = 8 }
			}
		}
		trigger = {
			has_institution = renaissance
			northern_norway = {
				is_core = ROOT
				owned_by = ROOT
				development = 8
				type = all
			}
			western_norway = {
				is_core = ROOT
				owned_by = ROOT
				development = 8
				type = all
			}
			eastern_norway = {
				is_core = ROOT
				owned_by = ROOT
				development = 8
				type = all
			}
		}
		effect = {
			country_event = {
				id = flavor_nor.37
			}
		}
	}
	
	nor_industrialize_norway = {
		icon = mission_state_manufactories
		position = 3
		required_missions = { nor_restore_infrastructure }
		provinces_to_highlight = {
			OR = {
				trade_goods = copper
				trade_goods = iron
			}
			OR = {
				NOT = { owned_by = ROOT }
				NOT = { is_core = ROOT }
				NOT = { has_production_building_trigger = yes }
				NOT = { has_building = weapons }
			}
		}
		trigger = {
			num_of_owned_provinces_with = {
				is_core = ROOT
				OR = {
					trade_goods = copper
					trade_goods = iron
				}
				has_building = weapons
				has_production_building_trigger = yes
				value = 5
			}
		}
		effect = {
			country_event = {
				id = flavor_nor.48
			}
		}
	}
	
	nor_powerhouse_of_the_north = {
		icon = mission_norwegian_great_power
		position = 4
		required_missions = { 
			nor_industrialize_norway
			nor_the_grand_norwegian_fleet
		}
		provinces_to_highlight = {}
		trigger = {
			if = {
				limit = {
					OR = {
						has_dlc = "Emperor"
						has_dlc = "Rights of Man"
					}
					NOT = { great_power_rank = 4 }
				}
			}
			is_in_deficit = no
			NOT = { num_of_loans = 1 }
			NOT = { corruption = 1 }
			stability = 3
			prestige = 50
			total_own_and_non_tributary_subject_development = 600
		}
		effect = {
			if = {
				limit = { NOT = { government_rank = 3 } }
				set_government_rank = 3
			}
			add_country_modifier = {
				name = nor_scandinavian_empire
				duration = -1
			}
			custom_tooltip = nor_powerhouse_of_the_north_tt
			hidden_effect = {
				every_owned_province = {
					limit = {
						culture_group = scandinavian
					}
					add_province_modifier = {
						name = nor_scandinavian_empire_local
						duration = -1
					}
				}
			}
		}
	}
}
nor_religion_start_mission_slot = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		OR = {
			tag = NOR
			AND = {
				was_tag = NOR
				tag = SCA
			}
		}
		has_dlc = "Lions of the North"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	nor_religious_path_mission = {
		icon = catholic_confraternity
		position = 5
		required_missions = {  }
		provinces_to_highlight = {
			is_capital_of = ROOT
			NOT = { has_tax_building_trigger = yes }
		}
		trigger = {
			if = {
				limit = { 
					religion = norse_pagan_reformed
				}
				OR = {
					religion = norse_pagan_reformed
					AND = {
						religion = catholic
						has_country_modifier = counter_reformation
					}
					AND = {
						religion_group = christian
						NOT = { religion = catholic }
						NOT = { current_age = age_of_discovery }
					}
					AND = {
						has_idea_group = humanist_ideas
						NOT = { current_age = age_of_discovery }
					}
				}
			}
			else_if = {
				limit = {
					has_ruler_modifier = rethinking_catholic_life
				}
				NOT = { has_ruler_modifier = rethinking_catholic_life }
				OR = {
					AND = {
						religion = catholic
						has_country_modifier = counter_reformation
					}
					AND = {
						religion_group = christian
						NOT = { religion = catholic }
						NOT = { current_age = age_of_discovery }
					}
					AND = {
						has_idea_group = humanist_ideas
						NOT = { current_age = age_of_discovery }
					}
				}
			}
			else = {
				OR = {
					AND = {
						religion = catholic
						has_country_modifier = counter_reformation
					}
					AND = {
						religion_group = christian
						NOT = { religion = catholic }
						NOT = { current_age = age_of_discovery }
					}
					AND = {
						has_idea_group = humanist_ideas
						NOT = { current_age = age_of_discovery }
					}
				}
			}
			capital_scope = {
				has_tax_building_trigger = yes
			}
		}
		effect = {
			enable_branching_mission_review = {
				key = NOR
				ai_event_id = flavor_sca.1
			}
		}
	}
}

nor_religion_mission_slot = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		OR = {
			tag = NOR
			AND = {
				was_tag = NOR
				tag = SCA
			}
		}
		NOT = { has_country_flag = sca_unlock_catholic_missions }
		NOT = { has_country_flag = sca_unlock_protestant_missions }
		NOT = { has_country_flag = sca_unlock_norse_missions }
		NOT = { has_country_flag = sca_unlock_humanist_missions }
		has_dlc = "Lions of the North"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	nor_second_religion_mission = {
		icon = mission_unknown_mission
		position = 6
		required_missions = { nor_religious_path_mission }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = swe_catholic_triggers_tt
						always = no
					}
					religion = catholic
					OR = {
						is_papal_controller = yes
						AND = {
							is_defender_of_faith = yes
							calc_true_if = {
								all_ally = {
									religion = ROOT
								}
								amount = 4
							}
						}
					}
					army_size = 30
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = swe_reformation_triggers_tt
						always = no
					}
					religion_group = christian
					NOT = { religion = catholic }
					OR = {
						calc_true_if = {
							custom_trigger_tooltip = {
								tooltip = swe_catholic_defender_of_faith_ct
								all_known_country = {
									force_converted_by = ROOT
									religion = ROOT
								}
							}
							amount = 5
						}
						custom_trigger_tooltip = {
							tooltip = nor_spread_the_reformation_tt
							check_variable = { which = num_converted_religion value = 15 }
						}
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = swe_humanist_triggers_tt
						always = no
					}
					has_idea_group = humanist_ideas
					if = {
						limit = { has_estate = estate_church }
						NOT = {
							estate_influence = {
								estate = estate_church
								influence = 40
							}
						}
						crown_land_share = 30
						NOT = {
							num_of_estate_privileges = {
								estate = estate_church
								value = 2
							}
						}
					}
					else = {
						NOT = { has_estate = estate_church }
					}
				}
			}
		}
		effect = {
			custom_tooltip = swe_catholic_effects_tt
			add_papal_influence = 25
			add_country_modifier = {
				name = nor_defender_of_the_catholic_faith
				duration = 9125
			}
			custom_tooltip = swe_reformation_effects_tt
			add_church_power = 50
			add_fervor = 25
			add_country_modifier = {
				name = nor_sword_of_the_reformation
				duration = 9125
			}
			custom_tooltip = swe_humanist_effects_tt
			disable_rebels_from_seize_land_for_estate = {
				estate = estate_church
			}
			add_years_of_income = 0.5
		}
	}
	
	nor_third_religion_mission = {
		icon = mission_unknown_mission
		position = 7
		required_missions = { nor_second_religion_mission }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = swe_catholic_triggers_tt
						always = no
					}
					religion = catholic
					owns_core_province = 4144
					4144 = {
						if = {
							limit = { has_dlc = "Leviathan" }
							OR = {
								has_great_project = {
									type = heddal_stave_church
									tier = 2
								}
								has_great_project = {
									type = heddal_stave_church
									tier = 3
								}
							}
						}
						else = {
							has_tax_building_trigger = yes
						}
						base_tax = 10
						religion = catholic
					}
					has_country_modifier = papal_sanction_for_church_taxes
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = swe_reformation_triggers_tt
						always = no
					}
					religion_group = christian
					NOT = { religion = catholic }
					owns_core_province = 4144
					4144 = {
						if = {
							limit = { has_dlc = "Leviathan" }
							OR = {
								has_great_project = {
									type = heddal_stave_church
									tier = 2
								}
								has_great_project = {
									type = heddal_stave_church
									tier = 3
								}
							}
						}
						else = {
							has_tax_building_trigger = yes
						}
						base_tax = 10
						has_owner_religion = yes
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = swe_humanist_triggers_tt
						always = no
					}
					has_idea_group = humanist_ideas
					full_idea_group = humanist_ideas
					num_accepted_cultures = 5
					stability = 3
					has_any_disaster = no
					NOT = { num_of_rebel_armies = 1 }
					NOT = { num_of_rebel_controlled_provinces = 1 }
				}
			}
		}
		effect = {
			custom_tooltip = swe_catholic_effects_tt
			if = {
				limit = { has_dlc = "Leviathan" }
				4144 = {
					add_province_triggered_modifier = heddal_stave_church_modifier_leviathan_catholic
				}
			}
			else = {
				4144 = {
					add_province_triggered_modifier = heddal_stave_church_modifier_non_leviathan_catholic
				}
			}
			custom_tooltip = swe_reformation_effects_tt
			if = {
				limit = { has_dlc = "Leviathan" }
				4144 = {
					add_province_triggered_modifier = heddal_stave_church_modifier_leviathan_reformation
				}
			}
			else = {
				4144 = {
					add_province_triggered_modifier = heddal_stave_church_modifier_non_leviathan_reformation
				}
			}
			custom_tooltip = swe_humanist_effects_tt
			change_ruler_stat = {
				type = dip
				amount = 3
			}
		}
	}
}

nor_catholic_mission_slot = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		OR = {
			tag = NOR
			AND = {
				was_tag = NOR
				tag = SCA
			}
		}
		has_country_flag = sca_unlock_catholic_missions
		has_dlc = "Lions of the North"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes

	nor_protect_the_catholic_faith = {
		icon = mission_european_church
		position = 6
		required_missions = { nor_religious_path_mission }
		provinces_to_highlight = {
			is_capital = yes
			owner = {
				religion = catholic
				NOT = { alliance_with = ROOT }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = NOR }
			religion = catholic
			OR = {
				is_papal_controller = yes
				AND = {
					is_defender_of_faith = yes
					calc_true_if = {
						all_ally = {
							religion = ROOT
						}
						amount = 4
					}
				}
			}
			army_size = 30
		}
		effect = {
			add_papal_influence = 25
			add_country_modifier = {
				name = nor_defender_of_the_catholic_faith
				duration = 9125
			}
		}
	}

	nor_expand_the_heddal_stave_church_catholic = {
		icon = mission_catholic_heddal_church
		position = 7
		required_missions = { nor_protect_the_catholic_faith }
		provinces_to_highlight = {
			province_id = 4144
			OR = {
				NOT = { owned_by = ROOT }
				NOT = { is_core = ROOT }
				if = {
					limit = {
						has_dlc = "Leviathan"
					}
					NOT = {
						has_great_project = {
							type = heddal_stave_church
							tier = 2
						}
					}
					NOT = {
						has_great_project = {
							type = heddal_stave_church
							tier = 3
						}
					}
				}
				else = {
					NOT = { has_tax_building_trigger = yes }
				}
				NOT = { base_tax = 10 }
				NOT = { religion = catholic }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = NOR }
			religion = catholic
			owns_core_province = 4144
			4144 = {
				if = {
					limit = { has_dlc = "Leviathan" }
					OR = {
						has_great_project = {
							type = heddal_stave_church
							tier = 2
						}
						has_great_project = {
							type = heddal_stave_church
							tier = 3
						}
					}
				}
				else = {
					has_tax_building_trigger = yes
				}
				base_tax = 10
				religion = catholic
			}
			has_country_modifier = papal_sanction_for_church_taxes
		}
		effect = {
			if = {
				limit = { has_dlc = "Leviathan" }
				4144 = {
					add_province_triggered_modifier = heddal_stave_church_modifier_leviathan_catholic
				}
			}
			else = {
				4144 = {
					add_province_triggered_modifier = heddal_stave_church_modifier_non_leviathan_catholic
				}
			}
		}
	}
}

nor_protestant_mission_slot = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		OR = {
			tag = NOR
			AND = {
				was_tag = NOR
				tag = SCA
			}
		}
		has_country_flag = sca_unlock_protestant_missions
		has_dlc = "Lions of the North"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes

	nor_spread_the_reformation = {
		icon = mission_luther_theses
		position = 6
		required_missions = { nor_religious_path_mission }
		provinces_to_highlight = {
			owned_by = ROOT
			NOT = { religion = ROOT }
		}
		trigger = {
			not_in_mission_preview_mode = { key = NOR }
			religion_group = christian
			NOT = { religion = catholic }
			OR = {
				calc_true_if = {
					custom_trigger_tooltip = {
						tooltip = swe_catholic_defender_of_faith_ct
						all_known_country = {
							force_converted_by = ROOT
							religion = ROOT
						}
					}
					amount = 5
				}
				custom_trigger_tooltip = {
					tooltip = nor_spread_the_reformation_tt
					check_variable = { which = num_converted_religion value = 15 }
				}
			}
		}
		effect = {
			add_church_power = 50
			add_fervor = 25
			add_country_modifier = {
				name = nor_sword_of_the_reformation
				duration = 9125
			}
		}
	}

	nor_restore_the_heddal_church = {
		icon = mission_protestant_heddal_church
		position = 7
		required_missions = { nor_spread_the_reformation }
		provinces_to_highlight = {
			province_id = 4144
			OR = {
				NOT = { owned_by = ROOT }
				NOT = { is_core = ROOT }
				if = {
					limit = {
						has_dlc = "Leviathan"
					}
					NOT = {
						has_great_project = {
							type = heddal_stave_church
							tier = 2
						}
					}
					NOT = {
						has_great_project = {
							type = heddal_stave_church
							tier = 3
						}
					}
				}
				else = {
					NOT = { has_tax_building_trigger = yes }
				}
				NOT = { base_tax = 10 }
				OR = {
					NOT = { religion_group = christian }
					religion = catholic
				}
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = NOR }
			religion_group = christian
			NOT = { religion = catholic }
			owns_core_province = 4144
			4144 = {
				if = {
					limit = { has_dlc = "Leviathan" }
					OR = {
						has_great_project = {
							type = heddal_stave_church
							tier = 2
						}
						has_great_project = {
							type = heddal_stave_church
							tier = 3
						}
					}
				}
				else = {
					has_tax_building_trigger = yes
				}
				base_tax = 10
				has_owner_religion = yes
			}
		}
		effect = {
			if = {
				limit = { has_dlc = "Leviathan" }
				4144 = {
					add_province_triggered_modifier = heddal_stave_church_modifier_leviathan_reformation
				}
			}
			else = {
				4144 = {
					add_province_triggered_modifier = heddal_stave_church_modifier_non_leviathan_reformation
				}
			}
		}
	}
}

nor_humanist_mission_slot = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		OR = {
			tag = NOR
			AND = {
				was_tag = NOR
				tag = SCA
			}
		}
		has_country_flag = sca_unlock_humanist_missions
		has_dlc = "Lions of the North"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes

	nor_remove_power_from_the_clergy = {
		icon = mission_rb_control_state_religion
		position = 6
		required_missions = { nor_religious_path_mission }
		provinces_to_highlight = {}
		trigger = {
			not_in_mission_preview_mode = { key = NOR }
			has_idea_group = humanist_ideas
			if = {
				limit = { has_estate = estate_church }
				NOT = {
					estate_influence = {
						estate = estate_church
						influence = 40
					}
				}
				crown_land_share = 30
				NOT = {
					num_of_estate_privileges = {
						estate = estate_church
						value = 2
					}
				}
			}
			else = {
				NOT = { has_estate = estate_church }
			}
		}
		effect = {
			disable_rebels_from_seize_land_for_estate = {
				estate = estate_church
			}
			add_years_of_income = 0.5
		}
	}

	nor_a_multicultural_kingdom = {
		icon = mission_eastern_european_city
		position = 7
		required_missions = { nor_remove_power_from_the_clergy }
		provinces_to_highlight = {}
		trigger = {
			not_in_mission_preview_mode = { key = NOR }
			has_idea_group = humanist_ideas
			full_idea_group = humanist_ideas
			num_accepted_cultures = 5
			stability = 3
			has_any_disaster = no
			NOT = { num_of_rebel_armies = 1 }
			NOT = { num_of_rebel_controlled_provinces = 1 }
		}
		effect = {
			change_ruler_stat = {
				type = dip
				amount = 3
			}
		}
	}
}

nor_norse_mission_slot = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		OR = {
			tag = NOR
			AND = {
				was_tag = NOR
				tag = SCA
			}
		}
		has_country_flag = sca_unlock_norse_missions
		has_dlc = "Lions of the North"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes

	nor_restore_the_norse_faith = {
		icon = mission_norse_faith
		position = 6
		required_missions = { nor_religious_path_mission }
		provinces_to_highlight = {
			country_or_non_sovereign_subject_holds = ROOT
			OR = {
				NOT = { religion = ROOT }
				NOT = { has_tax_building_trigger = yes }
				NOT = { has_manpower_building_trigger = yes }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = NOR }
			religion = norse_pagan_reformed
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				religion = ROOT
				has_tax_building_trigger = yes
				has_manpower_building_trigger = yes
				value = 10
			}
			1 = { 
				country_or_non_sovereign_subject_holds = ROOT
				religion = ROOT
			}
		}
		effect = {
			if = {
				limit = {
					1 = { NOT = { has_province_flag = has_uppsala_temple_flag } }
				}
				country_event = {
					id = norse_events.6
				}
			}
			else = {
				if = {
					limit = {
						has_country_flag = has_norse_flexible_deities_permanent
					}
					if = {
						limit = { has_dlc = "Wealth of Nations" }
						custom_tooltip = unlock_norse_free_deity_decision_tt
					}
					hidden_effect = {
						set_country_flag = has_norse_flexible_deities_permanent
					}
				}
				else = {
					add_power_projection = {
						type = mission_rewards_power_projection
						amount = 25
					}
				}
			}
			british_isles_region = {
				limit = {
					NOT = { is_core = ROOT } 
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}

	nor_return_of_the_north_sea_empire = {
		icon = mission_modernized_vikings
		position = 7
		required_missions = { nor_restore_the_norse_faith }
		provinces_to_highlight = {
			region = british_isles_region
			OR = {
				NOT = { owned_by = ROOT }
				NOT = { religion = norse_pagan_reformed }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = NOR }
			religion = norse_pagan_reformed
			num_of_owned_provinces_with = {
				region = british_isles_region
				religion = norse_pagan_reformed
				value = 40
			}
		}
		effect = {
			country_event = {
				id = norse_events.9
			}
			add_country_modifier = {
				name = swe_norse_great_power
				duration = -1
			}
		}
	}
}

#Scandinavian-Norway missions
#Missions are ordered in certain "Packs" you unlock for forming Scandinvaia as Norway
#These packs are designed around the Danish mission tree in order to avoid missions with repeating conditions or stacking rewards

#Norwegian Mission Pack - more colonialization
nor_sca_colonize_more_na_slot = {
	slot = 1
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		was_tag = NOR
		tag = SCA
		has_dlc = "Lions of the North"
		NOT = { map_setup = map_setup_random }
		is_random_new_world = no
	}
	has_country_shield = yes
	
	nor_sca_rio_grande_and_california = {
		icon = mission_southern_frontier_lotn
		position = 8
		required_missions = { nor_colonize_the_north }
		provinces_to_highlight = {
			OR = {
				region = rio_grande_region
				region = california_region
			}
			has_discovered = ROOT
			OR = {
				is_city = no
				country_or_non_sovereign_subject_holds = ROOT
			}			
			NOT = { has_manufactory_trigger = yes }
			NOT = { has_production_building_trigger = yes }
			NOT = { has_trade_building_trigger = yes }
			OR = {
				NOT = { trade_goods = gold }
				NOT = { development = 10 }
			}
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					region = rio_grande_region
					region = california_region
				}
				is_city = yes
				OR = {
					has_manufactory_trigger = yes
					has_production_building_trigger = yes
					has_trade_building_trigger = yes
					AND = {
						trade_goods = gold
						development = 10
					}
				}
				value = 20
			}
		}
		effect = {
			custom_tooltip = nor_sca_rio_grande_and_california_tt
			hidden_effect = {
				rio_grande_region = {
					limit = {
						is_city = yes
						country_or_non_sovereign_subject_holds = ROOT
						trade_goods = gold
					}
					add_province_modifier = {
						name = sca_nor_search_for_gold
						duration = 9125
					}
				}
				california_region = {
					limit = {
						is_city = yes
						country_or_non_sovereign_subject_holds = ROOT
						trade_goods = gold
					}
					add_province_modifier = {
						name = sca_nor_search_for_gold
						duration = 9125
					}
				}
			}
			add_country_modifier = {
				name = sca_nor_treasure_fleet
				duration = -1
			}
			custom_tooltip = nor_sca_rio_grande_and_california_ct
			hidden_effect = {
				north_america = {
					limit = {
						owner = {
							OR = {
								is_rival = ROOT
								is_enemy = ROOT
								overlord = {
									OR = {
										is_rival = ROOT
										is_enemy = ROOT
									}
								}
							}
						}
						NOT = { is_permanent_claim = ROOT }
						NOT = { is_core = ROOT }
					}
					add_permanent_claim = ROOT
				}
			}
		}
	}
	
	nor_dominate_north_america = {
		icon = mission_ruler_of_north_america
		position = 9
		required_missions = { nor_sca_rio_grande_and_california }
		provinces_to_highlight = {
			continent = north_america
			has_discovered = ROOT
			OR = {
				AND = {
					ROOT = {
						NOT = {
							num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
								continent = north_america
								is_city = yes
								value = 80
							}
						}
					}
					NOT = { country_or_non_sovereign_subject_holds = ROOT }
				}
				owner = {
					OR = {
						is_rival = ROOT
						is_enemy = ROOT
						overlord = {
							OR = {
								is_rival = ROOT
								is_enemy = ROOT
							}
						}
					}
				}
			}
		}
		trigger = {
			NOT = { current_age = age_of_discovery }
			custom_trigger_tooltip = {
				tooltip = nor_dominate_north_america_tt
				NOT = {
					north_america = {
						owner = {
							OR = {
								is_rival = ROOT
								is_enemy = ROOT
								overlord = {
									OR = {
										is_rival = ROOT
										is_enemy = ROOT
									}
								}
							}
						}
					}
				}
			}
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				continent = north_america
				is_city = yes
				value = 80
			}
			NOT = {
				any_subject_country = {
					liberty_desire = 50
				}
			}
		}
		effect = {
			add_country_modifier = {
				name = nor_new_world_administration
				duration = -1
			}
		}
	}
}
nor_sca_colonize_sa_slot = {
	slot = 3
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		was_tag = NOR
		tag = SCA
		has_dlc = "Lions of the North"
		NOT = { map_setup = map_setup_random }
		is_random_new_world = no
	}
	has_country_shield = yes
	
	nor_sca_control_the_panama = {
		icon = mission_colonize_panama
		position = 7
		required_missions = { nor_colonize_caribbeans }
		provinces_to_highlight = {
			province_id = 835
			OR = {
				is_city = no
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
				NOT = { development = 10 }
				NOT = { has_trade_building_trigger = yes }
			}
		}
		trigger = {
			owns_or_non_sovereign_subject_of = 835
			835 = {
				is_city = yes
				development = 10
				has_trade_building_trigger = yes
			}
		}
		effect = {
			835 = {
				add_permanent_province_modifier = {
					name = sca_nor_panama_sound_toll
					duration = -1
				}
				add_trade_modifier = {
					who = ROOT
					duration = -1
					power = 15
					key = nor_sca_control_the_panama_tt
				}
			}
			colonial_colombia = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
					NOT = { owner = { is_subject_of = ROOT } }
				}
				add_permanent_claim = ROOT
			}
			colonial_peru = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
					NOT = { owner = { is_subject_of = ROOT } }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	nor_sca_norwegian_colombia = {
		icon = mission_new_kingdom_of_granada
		position = 8
		required_missions = { nor_sca_control_the_panama }
		provinces_to_highlight = {
			colonial_region = colonial_colombia
			has_discovered = ROOT
			OR = {
				is_city = no
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
			}
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				colonial_region = colonial_colombia
				is_city = yes
				value = 35
			}
		}
		effect = {
			add_country_modifier = {
				name = sca_nor_curiosity_of_the_forefathers
				duration = 9125
			}
			create_conquistador = {
				tradition = 100
			}
			custom_tooltip = nor_sca_norwegian_colombia_ct
			hidden_effect = {
				south_america = {
					limit = {
						owner = {
							OR = {
								is_rival = ROOT
								is_enemy = ROOT
								overlord = {
									OR = {
										is_rival = ROOT
										is_enemy = ROOT
									}
								}
							}
						}
						NOT = { is_permanent_claim = ROOT }
						NOT = { is_core = ROOT }
					}
					add_permanent_claim = ROOT
				}
			}
		}
	}
}
nor_sca_colonize_peru_slot = {
	slot = 2
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		was_tag = NOR
		tag = SCA
		has_dlc = "Lions of the North"
		NOT = { map_setup = map_setup_random }
		is_random_new_world = no
	}
	has_country_shield = yes
	
	nor_sca_norwegian_peru = {
		icon = mission_potosi_silver
		position = 8
		required_missions = { nor_sca_control_the_panama }
		provinces_to_highlight = {
			colonial_region = colonial_peru
			has_discovered = ROOT
			OR = {
				is_city = no
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
			}
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				colonial_region = colonial_peru
				is_city = yes
				value = 25
			}
		}
		effect = {
			add_treasury = 1000
		}
	}
	
	nor_sca_colonial_empire = {
		icon = mission_norwegian_south_america
		position = 9
		required_missions = {
			nor_sca_norwegian_colombia
			nor_sca_norwegian_peru
		}
		provinces_to_highlight = {
			continent = south_america
			has_discovered = ROOT
			OR = {
				AND = {
					ROOT = {
						NOT = {
							num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
								continent = south_america
								is_city = yes
								value = 80
							}
						}
					}
					NOT = { country_or_non_sovereign_subject_holds = ROOT }
				}
				owner = {
					OR = {
						is_rival = ROOT
						is_enemy = ROOT
						overlord = {
							OR = {
								is_rival = ROOT
								is_enemy = ROOT
							}
						}
					}
				}
			}
		}
		trigger = {
			NOT = { current_age = age_of_discovery }
			custom_trigger_tooltip = {
				tooltip = nor_sca_colonial_empire_tt
				NOT = {
					south_america = {
						owner = {
							OR = {
								is_rival = ROOT
								is_enemy = ROOT
								overlord = {
									OR = {
										is_rival = ROOT
										is_enemy = ROOT
									}
								}
							}
						}
					}
				}
			}
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				continent = south_america
				is_city = yes
				value = 80
			}
			NOT = {
				any_subject_country = {
					liberty_desire = 50
				}
			}
		}
		effect = {
			add_country_modifier = {
				name = nor_domination_of_the_new_world
				duration = -1
			}
		}
	}
}

#Danish Mission Pack - Old World Colonialization
nor_sca_charter_west_africa_slot = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		was_tag = NOR
		tag = SCA
		has_dlc = "Lions of the North"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	nor_sca_landgrab_of_west_africa = {
		icon = mission_the_songhai_campaign
		position = 8
		required_missions = { nor_colonize_west_africa }
		provinces_to_highlight = {
			OR = {
				region = guinea_region
				region = niger_region
			}
			OR = {
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
				is_city = no
			}
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					region = guinea_region
					region = niger_region
				}
				is_city = yes
				value = 35
			}
		}
		effect = {
			unlock_estate_privilege = {
				estate_privilege = estate_burghers_control_over_the_mint
			}
			sahel_region = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	nor_sca_consolidate_west_africa = {
		icon = mission_african_gold
		position = 9
		required_missions = { nor_sca_landgrab_of_west_africa }
		provinces_to_highlight = {
			OR = {
				region = guinea_region
				region = niger_region
				region = sahel_region
			}
			OR = {
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
				is_city = no
			}
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					region = guinea_region
					region = niger_region
					region = sahel_region
				}
				is_city = yes
				value = 75
			}
		}
		effect = {
			add_mercantilism = 15
		}
	}
}
nor_sca_south_africa_slot = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		was_tag = NOR
		tag = SCA
		has_dlc = "Lions of the North"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	nor_sca_land_fall_in_congo = {
		icon = mission_invade_kanem
		position = 8
		required_missions = { nor_colonize_west_africa }
		
		provinces_to_highlight = {
			region = kongo_region
			NOT = { owned_by = ROOT }
			has_discovered = ROOT
		}
		
		trigger = { 
			custom_trigger_tooltip = {
				tooltip = miss_discover_kongo
				kongo_region = {
					has_discovered = ROOT
				}
			}
			custom_trigger_tooltip = {	
				tooltip = miss_colonize_kongo
				kongo_region = {
					owned_by = ROOT
					is_city = yes
				}
			}
		}
	
		effect = {
			hidden_effect = {
				4097 = {
					discover_country = ROOT
				}
			}
			4097 = {
				add_trade_modifier = {
					who = root
					duration = 5475
					power = 20
					key = ivory_coast_ambition
				}
			}
			cape_of_good_hope_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	nor_sca_the_cape = {
		icon = colonize_the_cape
		position = 9
		required_missions = { nor_sca_land_fall_in_congo }
		provinces_to_highlight = {
			area = cape_of_good_hope_area
			OR = {
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
				is_city = no
			}
		}
		trigger = {
			cape_of_good_hope_area = {
				country_or_non_sovereign_subject_holds = ROOT
				type = all
			}
		}
		effect = {
			1177 = {
				add_building = stock_exchange
				set_center_level_3_center_of_trade = yes
			}
		}
	}
}

#Norwegian Mission Pack - "Navalization" and Expanding of Marines
nor_sca_navy_slot = {
	slot = 3
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		was_tag = NOR
		tag = SCA
		has_dlc = "Lions of the North"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	nor_sca_a_high_income = {
		icon = mission_high_income
		position = 9
		required_missions = {  }
		provinces_to_highlight = {
		}
		trigger = {
			is_in_deficit = no
			monthly_income = 50
			NOT = { num_of_loans = 1 }
			num_of_ports = 20
			is_bankrupt = no
		}
		effect = {
			add_country_modifier = {
				name = sca_nor_naval_investment
				duration = 9125
			}
		}
	}
	
	nor_sca_kingdom_on_sea = {
		icon = mission_naval_kingdom
		position = 11
		required_missions = {
			nor_sca_expand_marines
			nor_sca_a_mighty_fleet
		}
		provinces_to_highlight = {
			has_discovered = ROOT
			NOT = { owned_by = ROOT }
			has_port = yes
		}
		trigger = {
			navy_size = 150
			if = {
				limit = {
					OR = {
						has_estate_privilege = estate_nobles_leidang_elite_conscription
						has_estate_privilege = estate_nobles_leidang_mass_conscription
						NOT = { has_estate = estate_nobles }
					}
				}
			}
			else = {
				OR = {
					has_estate_privilege = estate_nobles_leidang_conscription
					NOT = { has_estate = estate_nobles }
				}
			}
			navy_tradition = 80
			num_of_owned_provinces_with = {
				has_port = yes
				value = 50
			}
			if = {
				limit = {
					has_dlc = "Rights of Man"
				}
				OR = {
					num_of_admirals_with_traits = 1
					num_of_admirals = 2
				}
			}
			else = {
				num_of_admirals = 2
			}
			government_rank = 2
		}
		effect = {
			add_country_modifier = {
				name = sca_nor_goods_tranportation
				duration = -1
			}
			enable_admirals_army_professionalism = yes
		}
	}
}
nor_sca_marine_slot = {
	slot = 2
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		was_tag = NOR
		tag = SCA
		has_dlc = "Lions of the North"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	nor_sca_expand_marines = {
		icon = mission_expanded_leidang
		position = 10
		required_missions = { nor_sca_a_high_income }
		provinces_to_highlight = {
		}
		trigger = {
			OR = {
				NOT = { has_estate = estate_nobles }
				has_estate_privilege = estate_nobles_leidang_conscription
			}
			if = {
				limit = {
					has_dlc = "Cradle of Civilization"
				}
				army_professionalism = 50
			}
			else = {
				army_tradition = 40
			}
			navy_tradition = 30
			num_of_marines = 30
			OR = {
				army_organiser = 3
				army_reformer = 3
				commandant = 3
				naval_reformer = 3
			}
		}
		effect = {
			unlock_estate_privilege = {
				estate_privilege = estate_nobles_leidang_mass_conscription
			}
			unlock_estate_privilege = {
				estate_privilege = estate_nobles_leidang_elite_conscription
			}
			add_country_modifier = {
				name = sca_nor_reformed_leidang_conscription
				duration = -1
			}
		}
	}
}
nor_sca_mighty_fleet_slot = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		was_tag = NOR
		tag = SCA
		has_dlc = "Lions of the North"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	nor_sca_a_mighty_fleet = {
		icon = mission_launch_a_flagship
		position = 10
		required_missions = { nor_sca_a_high_income }
		provinces_to_highlight = {
			is_capital = yes
			has_discovered = ROOT
			owner = {
				NOT = { tag = ROOT }
				NOT = { is_subject_of = ROOT }
				navy_size = ROOT
			}
		}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = nor_sca_a_mighty_fleet_tt
				NOT = {
					any_known_country = {
						NOT = { tag = ROOT }
						NOT = { is_subject_of = ROOT }
						navy_size = ROOT
					}
				}
			}
			navy_tradition = 50
			OR = {
				num_of_galley = 100
				num_of_light_ship = 75
				num_of_heavy_ship = 50
			}
		}
		effect = {
			add_yearly_sailors = 10
			add_country_modifier = {
				name = sca_nor_enhanced_naval_doctrines
				duration = -1
			}
		}
	}
}

#Swedish Mission Pack - Development stuff + Balticum Nostrum
nor_sca_internal_development = {
	slot = 1
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		was_tag = NOR
		tag = SCA
		has_dlc = "Lions of the North"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	nor_sca_handle_the_sami = {
		icon = mission_the_sami
		position = 10
		required_missions = {}
		provinces_to_highlight = {
			OR = {
				area = laponia_area
				area = norrland_area
				area = bothnia_area
			}
			OR = {
				NOT = { religion = ROOT }
				NOT = { owned_by = ROOT }
				has_owner_accepted_culture = no
			}
		}
		trigger = {
			laponia_area = { 
				owned_by = ROOT
				religion = ROOT
				has_owner_accepted_culture = yes
				type = all
			}
			norrland_area = { 
				owned_by = ROOT
				religion = ROOT
				has_owner_accepted_culture = yes
				type = all
			}
			bothnia_area = { 
				owned_by = ROOT
				religion = ROOT
				has_owner_accepted_culture = yes
				type = all
			}
		}
		effect = {
			unlock_estate_privilege = {
				estate_privilege = estate_burghers_forest_expansion
			}
			laponia_area = {
				add_local_autonomy = -100
				add_base_manpower = 2
			}
			norrland_area = {
				add_local_autonomy = -100
				add_base_manpower = 2
			}
			bothnia_area = {
				add_local_autonomy = -100
				add_base_manpower = 2
			}
		}
	}
	
	nor_sca_forest_expansion = {
		icon = mission_expand_into_the_forest
		position = 11
		required_missions = { nor_sca_handle_the_sami }
		provinces_to_highlight = {
			OR = {
				has_terrain = woods
				has_terrain = forest
			}
			region = scandinavia_region
			OR = {
				NOT = { owned_by = ROOT }
				NOT = { development = 6 }
			}
		}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = swe_forest_expansion_tt
				scandinavia_region = {
					OR = {
						AND = {
							NOT = { has_terrain = woods }
							NOT = { has_terrain = forest }
						}
						AND = {
							OR = {
								has_terrain = woods
								has_terrain = forest
							}
							owned_by = ROOT
							development = 6
						}
					}
					type = all
				}
			}
		}
		effect = {
			custom_tooltip = swe_forest_expansion_ct
			hidden_effect = {
				every_owned_province = {
					limit = {
						region = scandinavia_region
						has_climate = arctic
					}
					add_province_modifier = {
						name = swe_arctic_expansion
						duration = -1
					}
				}
				scandinavia_region = {
					limit = { owned_by = ROOT }
					add_prosperity = 10
				}
			}
		}
	}
}

nor_sca_conquest = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		was_tag = NOR
		tag = SCA
		has_dlc = "Lions of the North"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	nor_sca_conquer_the_enterpots = {
		icon = mission_hanseatic_city
		position = 10
		required_missions = {}
		provinces_to_highlight = {
			OR = {
				region = baltic_region
				area = karelia_area
				area = hinter_pommern_area
				area = vorpommern_area
				area = mecklenburg_area
				area = holstein_area
				area = jutland_area
				area = denmark_area
				area = skaneland_area
				area = ostra_svealand_area
				area = gotaland_area
				area = norrland_area
				area = bothnia_area
				area = finland_area
				area = eastern_norway
			}
			OR = {
				province_has_center_of_trade_of_level = 1
				has_river_estuary_trigger = yes
				has_province_modifier = sound_toll
			}
			has_port = yes
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				custom_trigger_tooltip = {
					tooltip = nor_sca_conquer_the_enterpots_tt
					OR = {
						region = baltic_region
						area = karelia_area
						area = hinter_pommern_area
						area = vorpommern_area
						area = mecklenburg_area
						area = holstein_area
						area = jutland_area
						area = denmark_area
						area = skaneland_area
						area = ostra_svealand_area
						area = gotaland_area
						area = norrland_area
						area = bothnia_area
						area = finland_area
						area = eastern_norway
					}
					OR = {
						province_has_center_of_trade_of_level = 1
						has_river_estuary_trigger = yes
						has_province_modifier = sound_toll
					}
					has_port = yes
				}
				value = 10
			}
		}
		effect = {
			custom_tooltip = nor_sca_conquer_the_enterpots_ct
			hidden_effect = {
				baltic_region = {
					limit = { NOT = { is_core = ROOT } NOT = { is_permanent_claim = ROOT } has_port = yes }
					add_permanent_claim = ROOT
				}
				karelia_area = {
					limit = { NOT = { is_core = ROOT } NOT = { is_permanent_claim = ROOT } has_port = yes }
					add_permanent_claim = ROOT
				}
				finland_area = {
					limit = { NOT = { is_core = ROOT } NOT = { is_permanent_claim = ROOT } has_port = yes }
					add_permanent_claim = ROOT
				}
				ostra_svealand_area = {
					limit = { NOT = { is_core = ROOT } NOT = { is_permanent_claim = ROOT } has_port = yes }
					add_permanent_claim = ROOT
				}
				norrland_area = {
					limit = { NOT = { is_core = ROOT } NOT = { is_permanent_claim = ROOT } has_port = yes }
					add_permanent_claim = ROOT
				}
				bothnia_area = {
					limit = { NOT = { is_core = ROOT } NOT = { is_permanent_claim = ROOT } has_port = yes }
					add_permanent_claim = ROOT
				}
				gotaland_area = {
					limit = { NOT = { is_core = ROOT } NOT = { is_permanent_claim = ROOT } has_port = yes }
					add_permanent_claim = ROOT
				}
				skaneland_area = {
					limit = { NOT = { is_core = ROOT } NOT = { is_permanent_claim = ROOT } has_port = yes }
					add_permanent_claim = ROOT
				}
				denmark_area = {
					limit = { NOT = { is_core = ROOT } NOT = { is_permanent_claim = ROOT } has_port = yes }
					add_permanent_claim = ROOT
				}
				jutland_area = {
					limit = { NOT = { is_core = ROOT } NOT = { is_permanent_claim = ROOT } has_port = yes }
					add_permanent_claim = ROOT
				}
				holstein_area = {
					limit = { NOT = { is_core = ROOT } NOT = { is_permanent_claim = ROOT } has_port = yes }
					add_permanent_claim = ROOT
				}
				mecklenburg_area = {
					limit = { NOT = { is_core = ROOT } NOT = { is_permanent_claim = ROOT } has_port = yes }
					add_permanent_claim = ROOT
				}
				vorpommern_area = {
					limit = { NOT = { is_core = ROOT } NOT = { is_permanent_claim = ROOT } has_port = yes }
					add_permanent_claim = ROOT
				}
				hinter_pommern_area = {
					limit = { NOT = { is_core = ROOT } NOT = { is_permanent_claim = ROOT } has_port = yes }
					add_permanent_claim = ROOT
				}
				eastern_norway = {
					limit = { NOT = { is_core = ROOT } NOT = { is_permanent_claim = ROOT } has_port = yes }
					add_permanent_claim = ROOT
				}
			}
			define_advisor = {
				type = trader
				skill = 3
				cost_multiplier = 0.25
			}
			add_years_of_trade_income = {
				years = 4
				custom_tooltip = zan_settle_trade_posts_ct
			}
		}
	}
	
	nor_sca_dominate_the_baltic_sea = {
		icon = mission_baltic_empire
		position = 11
		required_missions = { nor_sca_conquer_the_enterpots }
		provinces_to_highlight = {
			OR = {
				region = baltic_region
				area = karelia_area
				area = finland_area
				area = ostra_svealand_area
				area = norrland_area
				area = bothnia_area
				area = gotaland_area
				area = skaneland_area
				area = denmark_area
				area = jutland_area
				area = holstein_area
				area = mecklenburg_area
				area = vorpommern_area
				area = hinter_pommern_area
				area = eastern_norway
			}
			has_port = yes
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = dan_sca_balticum_dominance_tt
				baltic_region = { OR = { country_or_non_sovereign_subject_holds = ROOT has_port = no } type = all }
				karelia_area = { OR = { country_or_non_sovereign_subject_holds = ROOT has_port = no } type = all }
				finland_area = { OR = { country_or_non_sovereign_subject_holds = ROOT has_port = no } type = all }
				ostra_svealand_area = { OR = { country_or_non_sovereign_subject_holds = ROOT has_port = no } type = all }
				norrland_area = { OR = { country_or_non_sovereign_subject_holds = ROOT has_port = no } type = all }
				bothnia_area = { OR = { country_or_non_sovereign_subject_holds = ROOT has_port = no } type = all }
				gotaland_area = { OR = { country_or_non_sovereign_subject_holds = ROOT has_port = no } type = all }
				skaneland_area = { OR = { country_or_non_sovereign_subject_holds = ROOT has_port = no } type = all }
				denmark_area = { OR = { country_or_non_sovereign_subject_holds = ROOT has_port = no } type = all }
				jutland_area = { OR = { country_or_non_sovereign_subject_holds = ROOT has_port = no } type = all }
				holstein_area = { OR = { country_or_non_sovereign_subject_holds = ROOT has_port = no } type = all }
				mecklenburg_area = { OR = { country_or_non_sovereign_subject_holds = ROOT has_port = no } type = all }
				vorpommern_area = { OR = { country_or_non_sovereign_subject_holds = ROOT has_port = no } type = all }
				hinter_pommern_area = { OR = { country_or_non_sovereign_subject_holds = ROOT has_port = no } type = all }
				eastern_norway = { OR = { country_or_non_sovereign_subject_holds = ROOT has_port = no } type = all }
			}
		}
		effect = {
			add_country_modifier = {
				name = dan_sca_balticum_dominance_mod
				duration = -1
			}
		}
	}
}