# Copyright (c) 2014 by Michael Zahniser
#
# Endless Sky is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later version.
#
# Endless Sky is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.  See the GNU General Public License for more details.

mission "Escort (Tiny, Northern, Dangerous Destination)"
	name "Escort to <planet>"
	description "Despite your relative inexperience, the captain of the <npc> is willing to pay you <payment> for an escort into a dangerous region of space to reach <destination> by <date>."
	repeat
	job
	deadline 8
	to offer
		random < 40
		"combat rating" < 6
		or
			"combat rating" > 0
			has "ships: Interceptor"
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes deep paradise "near earth"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		attributes frontier north
		distance 2 4
	npc
		personality nemesis staying
		system destination
		government Pirate
		fleet
			names "pirate"
			variant
				"Sparrow"
			variant
				"Wasp"
			variant
				"Berserker"
	npc
		personality nemesis waiting
		system destination
		distance 1
		government Pirate
		fleet
			names "pirate"
			variant
				"Sparrow"
			variant
				"Wasp"
			variant
				"Berserker"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Shuttle"
			variant
				"Star Barge"
	on complete
		payment 15000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Tiny, Northern, Dangerous Origin)"
	name "Escort to <planet>"
	description "Despite your relative inexperience, the captain of the <npc> is willing to pay you <payment> for an escort out of this dangerous region of space to reach <destination> by <date>."
	repeat
	job
	deadline 8
	to offer
		random < 40
		"combat rating" < 6
		or
			"combat rating" > 0
			has "ships: Interceptor"
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes frontier north
	destination
		government Republic "Free Worlds" Syndicate Neutral
		attributes deep paradise "near earth" core
		distance 2 4
	npc
		personality nemesis waiting
		government Pirate
		fleet
			names "pirate"
			variant
				"Sparrow"
			variant
				"Wasp"
			variant
				"Berserker"
	npc
		personality nemesis waiting
		distance 1
		government Pirate
		fleet
			names "pirate"
			variant
				"Sparrow"
			variant
				"Wasp"
			variant
				"Berserker"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Shuttle"
			variant
				"Star Barge"
	on complete
		payment 15000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Small, Northern, Dangerous Destination)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely into a dangerous region of space to reach <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 70
		"combat rating" > 5
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes deep paradise "near earth"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		attributes frontier north
		distance 3 4
	npc
		personality nemesis waiting
		system destination
		distance 1
		government Pirate
		fleet "Small Northern Pirates"
	npc
		personality nemesis waiting
		system destination
		distance 1
		government Pirate
		fleet "Small Northern Pirates"
	npc
		system destination
		personality nemesis staying
		government Pirate
		fleet "Small Northern Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Freighter"
	on complete
		payment 60000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Small, Northern, Dangerous Origin)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely out of this dangerous region of space to reach <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 40
		"combat rating" > 5
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes frontier north
	destination
		government Republic "Free Worlds" Syndicate Neutral
		attributes deep paradise "near earth" core
		distance 3 4
	npc
		personality nemesis waiting
		government Pirate
		fleet "Small Northern Pirates"
	npc
		personality nemesis waiting
		distance 1
		government Pirate
		fleet "Small Northern Pirates"
	npc
		personality nemesis waiting
		distance 1
		government Pirate
		fleet "Small Northern Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Freighter"
	on complete
		payment 60000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Medium, Northern, Dangerous Destination)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely into a dangerous region of space to reach <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 40
		"combat rating" > 20
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes deep paradise "near earth"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		attributes frontier north
		distance 3 4
	npc
		personality nemesis waiting
		system destination
		distance 1
		government Pirate
		fleet "Small Northern Pirates"
	npc
		personality nemesis waiting
		system destination
		distance 1
		government Pirate
		fleet "Small Northern Pirates"
	npc
		personality nemesis waiting
		system destination
		distance 1
		government Pirate
		fleet "Small Northern Pirates"
	npc
		system destination
		personality nemesis staying
		government Pirate
		fleet "Small Northern Pirates"
	npc
		system destination
		personality nemesis staying
		government Pirate
		fleet "Small Northern Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Freighter"
	on complete
		payment 90000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Medium, Northern, Dangerous Origin)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely out of this dangerous region of space to reach <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 40
		"combat rating" > 20
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes frontier north
	destination
		government Republic "Free Worlds" Syndicate Neutral
		attributes deep paradise "near earth" core
		distance 3 4
	npc
		personality nemesis waiting
		government Pirate
		fleet "Small Northern Pirates"
	npc
		personality nemesis waiting
		government Pirate
		fleet "Small Northern Pirates"
	npc
		distance 1
		personality nemesis waiting
		government Pirate
		fleet "Small Northern Pirates"
	npc
		distance 1
		personality nemesis waiting
		government Pirate
		fleet "Small Northern Pirates"
	npc
		system destination
		distance 1
		personality nemesis waiting
		government Pirate
		fleet "Small Northern Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Freighter"
	on complete
		payment 90000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Large, Northern, Dangerous Destination)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely into a dangerous region of space to reach <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 30
		"combat rating" > 60
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes deep paradise "near earth"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		attributes frontier north
		distance 3 4
	npc
		personality nemesis waiting
		system destination
		distance 1
		government Pirate
		fleet "Large Northern Pirates"
	npc
		personality nemesis waiting
		system destination
		distance 1
		government Pirate
		fleet "Small Northern Pirates"
	npc
		system destination
		personality nemesis staying
		government Pirate
		fleet "Large Northern Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Behemoth"
	on complete
		payment 120000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Large, Northern, Dangerous Origin)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely out of this dangerous region of space to reach <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 30
		"combat rating" > 60
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes frontier north
	destination
		government Republic "Free Worlds" Syndicate Neutral
		attributes deep paradise "near earth" core
		distance 3 4
	npc
		personality nemesis waiting
		government Pirate
		fleet "Large Northern Pirates"
	npc
		personality nemesis waiting
		distance 1
		government Pirate
		fleet "Large Northern Pirates"
	npc
		personality nemesis waiting
		distance 1
		government Pirate
		fleet "Small Northern Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Behemoth"
	on complete
		payment 120000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Extra Large, Northern, Dangerous Destination)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely into a dangerous region of space to reach <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 15
		"combat rating" > 100
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes deep paradise "near earth"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		attributes frontier north
		distance 3 4
	npc
		personality nemesis waiting
		system destination
		distance 1
		government Pirate
		fleet "Small Northern Pirates"
	npc
		personality nemesis waiting
		system destination
		distance 1
		government Pirate
		fleet "Large Northern Pirates"
	npc
		personality nemesis waiting
		system destination
		distance 1
		government Pirate
		fleet "Large Northern Pirates"
	npc
		system destination
		personality nemesis staying
		government Pirate
		fleet "Small Northern Pirates"
	npc
		system destination
		personality nemesis staying
		government Pirate
		fleet "Large Northern Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Behemoth"
	on complete
		payment 150000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Extra Large, Northern, Dangerous Origin)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely out of this dangerous region of space to reach <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 15
		"combat rating" > 100
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes frontier north
	destination
		government Republic "Free Worlds" Syndicate Neutral
		attributes deep paradise "near earth" core
		distance 3 4
	npc
		personality nemesis waiting
		government Pirate
		fleet "Small Northern Pirates"
	npc
		personality nemesis waiting
		government Pirate
		fleet "Large Northern Pirates"
	npc
		personality nemesis waiting
		distance 1
		government Pirate
		fleet "Small Northern Pirates"
	npc
		personality nemesis waiting
		distance 1
		government Pirate
		fleet "Large Northern Pirates"
	npc
		system destination
		distance 1
		personality nemesis waiting
		government Pirate
		fleet "Large Northern Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Behemoth"
	on complete
		payment 150000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."


mission "Escort (Tiny, Core, Dangerous Destination)"
	name "Escort to <planet>"
	description "Despite your relative inexperience, the captain of the <npc> is willing to pay you <payment> for an escort into a dangerous region of space to reach <destination> by <date>."
	repeat
	job
	deadline 8
	to offer
		random < 40
		"combat rating" < 6
		or
			"combat rating" > 0
			has "ships: Interceptor"
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes core "near earth"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		attributes core north frontier "dirt belt"
		distance 2 4
	npc
		personality nemesis waiting
		system destination
		distance 1
		government Pirate
		fleet
			names "pirate"
			variant
				"Sparrow"
			variant
				"Wasp"
			variant
				"Berserker"
	npc
		personality nemesis staying
		system destination
		government Pirate
		fleet
			names "pirate"
			variant
				"Sparrow"
			variant
				"Wasp"
			variant
				"Berserker"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Shuttle"
			variant
				"Star Barge"
	on complete
		payment 20000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Tiny, Core, Dangerous Origin)"
	name "Escort to <planet>"
	description "Despite your relative inexperience, the captain of the <npc> is willing to pay you <payment> for an escort out of this dangerous region of space to reach <destination> by <date>."
	repeat
	job
	deadline 8
	to offer
		random < 40
		"combat rating" < 6
		or
			"combat rating" > 0
			has "ships: Interceptor"
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes core north frontier
	destination
		government Republic "Free Worlds" Syndicate Neutral
		attributes paradise "near earth"
		distance 2 5
	npc
		personality nemesis waiting
		distance 1
		government Pirate
		fleet
			names "pirate"
			variant
				"Sparrow"
			variant
				"Wasp"
			variant
				"Berserker"
	npc
		personality nemesis waiting
		government Pirate
		fleet
			names "pirate"
			variant
				"Sparrow"
			variant
				"Wasp"
			variant
				"Berserker"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Shuttle"
			variant
				"Star Barge"
	on complete
		payment 20000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Small, Core, Dangerous Destination)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely into a dangerous region of space to reach <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 70
		"combat rating" > 5
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes paradise "near earth"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		attributes core north frontier "dirt belt"
		distance 3 4
	npc
		personality nemesis waiting
		system destination
		distance 1
		government Pirate
		fleet "Small Core Pirates"
	npc
		personality nemesis waiting
		system destination
		distance 1 2
		government Pirate
		fleet "Small Core Pirates"
	npc
		personality nemesis staying
		system destination
		government Pirate
		fleet "Small Core Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Freighter"
	on complete
		payment 60000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Small, Core, Dangerous Origin)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely out of this dangerous region of space to reach <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 70
		"combat rating" > 5
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes core north frontier
	destination
		government Republic "Free Worlds" Syndicate Neutral
		attributes paradise "near earth"
		distance 3 5
	npc
		personality nemesis waiting
		distance 1
		government Pirate
		fleet "Small Core Pirates"
	npc
		personality nemesis waiting
		distance 1 2
		government Pirate
		fleet "Small Core Pirates"
	npc
		personality nemesis waiting
		government Pirate
		fleet "Small Core Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Freighter"
	on complete
		payment 60000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Medium, Core, Dangerous Destination)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely into a dangerous region of space to reach <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 40
		"combat rating" > 20
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes paradise "near earth"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		attributes core north frontier "dirt belt"
		distance 3 4
	npc
		personality nemesis waiting
		system destination
		distance 1
		government Pirate
		fleet "Small Core Pirates"
	npc
		personality nemesis waiting
		system destination
		distance 1
		government Pirate
		fleet "Small Core Pirates"
	npc
		personality nemesis waiting
		system destination
		distance 1 2
		government Pirate
		fleet "Small Core Pirates"
	npc
		system destination
		personality nemesis staying
		government Pirate
		fleet "Small Core Pirates"
	npc
		system destination
		personality nemesis staying
		government Pirate
		fleet "Small Core Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Freighter"
	on complete
		payment 90000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Medium, Core, Dangerous Origin)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely out of this dangerous region of space to reach <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 40
		"combat rating" > 20
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes core north frontier
	destination
		government Republic "Free Worlds" Syndicate Neutral
		attributes paradise "near earth"
		distance 3 5
	npc
		personality nemesis waiting
		distance 1
		government Pirate
		fleet "Small Core Pirates"
	npc
		personality nemesis waiting
		distance 1
		government Pirate
		fleet "Small Core Pirates"
	npc
		personality nemesis waiting
		distance 1 2
		government Pirate
		fleet "Small Core Pirates"
	npc
		personality nemesis waiting
		government Pirate
		fleet "Small Core Pirates"
	npc
		personality nemesis waiting
		government Pirate
		fleet "Small Core Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Freighter"
	on complete
		payment 90000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Large, Core, Dangerous Destination)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely into a dangerous region of space to reach <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 50
		"combat rating" > 60
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes paradise "near earth"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		attributes core north frontier "dirt belt"
		distance 3 4
	npc
		personality nemesis waiting
		system destination
		distance 1
		government Pirate
		fleet "Large Core Pirates"
	npc
		personality nemesis waiting
		system destination
		distance 1 2
		government Pirate
		fleet "Small Core Pirates"
	npc
		personality nemesis staying
		system destination
		government Pirate
		fleet "Large Core Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Bulk Freighter"
	on complete
		payment 120000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Large, Core, Dangerous Origin)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely out of this dangerous region of space to reach <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 50
		"combat rating" > 60
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes core north frontier
	destination
		government Republic "Free Worlds" Syndicate Neutral
		attributes paradise "near earth"
		distance 3 5
	npc
		personality nemesis waiting
		distance 1
		government Pirate
		fleet "Large Core Pirates"
	npc
		personality nemesis waiting
		distance 1 2
		government Pirate
		fleet "Small Core Pirates"
	npc
		personality nemesis waiting
		government Pirate
		fleet "Large Core Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Bulk Freighter"
	on complete
		payment 120000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Extra Large, Core, Dangerous Destination)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely into a dangerous region of space to reach <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 20
		"combat rating" > 100
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes paradise "near earth"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		attributes core north frontier "dirt belt"
		distance 3 4
	npc
		personality nemesis waiting
		system destination
		distance 1
		government Pirate
		fleet "Large Core Pirates"
	npc
		personality nemesis waiting
		system destination
		distance 1
		government Pirate
		fleet "Small Core Pirates"
	npc
		personality nemesis waiting
		system destination
		distance 1 2
		government Pirate
		fleet "Small Core Pirates"
	npc
		personality nemesis staying
		system destination
		government Pirate
		fleet "Large Core Pirates"
	npc
		personality nemesis staying
		system destination
		government Pirate
		fleet "Small Core Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Bulk Freighter"
	on complete
		payment 150000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Extra Large, Core, Dangerous Origin)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely out of this dangerous region of space to reach <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 20
		"combat rating" > 100
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes core north frontier
	destination
		government Republic "Free Worlds" Syndicate Neutral
		attributes paradise "near earth"
		distance 3 5
	npc
		personality nemesis waiting
		distance 1
		government Pirate
		fleet "Large Core Pirates"
	npc
		personality nemesis waiting
		distance 1
		government Pirate
		fleet "Small Core Pirates"
	npc
		personality nemesis waiting
		distance 1 2
		government Pirate
		fleet "Small Core Pirates"
	npc
		personality nemesis waiting
		government Pirate
		fleet "Large Core Pirates"
	npc
		personality nemesis waiting
		government Pirate
		fleet "Small Core Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Bulk Freighter"
	on complete
		payment 150000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."


mission "Escort (Tiny, Southern, Dangerous Origin or Destination)"
	name "Escort to <planet>"
	description "Despite your relative inexperience, the captain of the <npc> is willing to pay you <payment> for an escort through this dangerous region of space to reach <destination> by <date>."
	repeat
	job
	deadline 8
	to offer
		random < 50
		"combat rating" < 6
		or
			"combat rating" > 0
			has "ships: Interceptor"
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes frontier south rim "dirt belt"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		attributes frontier south rim "dirt belt"
		distance 2 4
	npc
		personality nemesis waiting
		government Pirate
		fleet
			names "pirate"
			variant
				"Sparrow"
			variant
				"Wasp"
			variant
				"Berserker"
	npc
		personality nemesis staying
		government Pirate
		fleet
			names "pirate"
			variant
				"Sparrow"
			variant
				"Wasp"
			variant
				"Berserker"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Shuttle"
			variant
				"Star Barge"
	on complete
		payment 15000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Small, Southern, Dangerous Origin or Destination)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely through this dangerous region of space to reach <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 70
		"combat rating" > 5
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes frontier south rim "dirt belt"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		attributes frontier south rim "dirt belt"
		distance 3 4
	npc
		personality nemesis waiting
		government Pirate
		fleet "Small Southern Pirates"
	npc
		system destination
		personality nemesis staying
		government Pirate
		fleet "Small Southern Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Freighter"
	on complete
		payment 60000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Medium, Southern, Dangerous Origin or Destination)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely through this dangerous region of space to reach <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 40
		"combat rating" > 20
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes frontier south rim "dirt belt"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		attributes frontier south rim "dirt belt"
		distance 3 4
	npc
		personality nemesis waiting
		government Pirate
		fleet "Small Southern Pirates"
	npc
		personality nemesis waiting
		government Pirate
		fleet "Small Southern Pirates"
	npc
		system destination
		personality nemesis staying
		government Pirate
		fleet "Small Southern Pirates"
	npc
		system destination
		personality nemesis staying
		government Pirate
		fleet "Small Southern Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Freighter"
	on complete
		payment 90000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Large, Southern, Dangerous Origin or Destination)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely through this dangerous region of space to reach <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 50
		"combat rating" > 60
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes frontier south rim "dirt belt"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		attributes frontier south rim "dirt belt"
		distance 3 4
	npc
		personality nemesis waiting
		government Pirate
		fleet "Large Southern Pirates"
	npc
		system destination
		personality nemesis staying
		government Pirate
		fleet "Large Southern Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Bulk Freighter"
	on complete
		payment 120000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Extra Large, Southern, Dangerous Origin or Destination)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely through this dangerous region of space to reach <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 20
		"combat rating" > 100
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes frontier south rim "dirt belt"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		attributes frontier south rim "dirt belt"
		distance 3 4
	npc
		personality nemesis waiting
		government Pirate
		fleet "Large Southern Pirates"
	npc
		personality nemesis waiting
		government Pirate
		fleet "Small Southern Pirates"
	npc
		system destination
		personality nemesis staying
		government Pirate
		fleet "Large Southern Pirates"
	npc
		system destination
		personality nemesis staying
		government Pirate
		fleet "Small Southern Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Behemoth"
	on complete
		payment 150000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."


mission "Bounty Hunting (Big)"
	name "Hunt down <npc>"
	description "A pirate vessel named <npc> has been attacking merchants near the <system> system. Destroy it and return to <planet> for payment (<payment>)."
	repeat
	job
	to offer
		"combat rating" > 500
		random < 20
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes rim south north "dirt belt" core frontier
	npc kill
		personality heroic staying nemesis target
		government Bounty
		system
			distance 1 2
		fleet
			names "pirate"
			variant
				"Leviathan"
			variant
				"Leviathan (Heavy)"
			variant
				"Leviathan (Laser)"
			variant
				"Falcon"
			variant
				"Falcon (Heavy)"
			variant
				"Falcon (Laser)"
			variant
				"Vanguard"
			variant
				"Vanguard (Particle)"
		dialog "The <npc> has been eliminated. You can claim the bounty payment by returning to <destination>."
	on complete
		payment 250000
		dialog "The government of <planet> gratefully pays you <payment> for eliminating the <npc>."

mission "Bounty Hunting (Medium)"
	name "Hunt down <npc>"
	description "A pirate vessel named <npc> has been attacking merchants near the <system> system. Destroy it and return to <planet> for payment (<payment>)."
	repeat
	job
	to offer
		"combat rating" > 400
		random < 20
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes rim south north "dirt belt" core frontier
	npc kill
		personality heroic staying nemesis target
		government Bounty
		system
			distance 1 2
		fleet
			names "pirate"
			variant
				"Protector"
			variant
				"Protector (Laser)"
			variant
				"Osprey (Missile)"
			variant
				"Bastion (Heavy)"
			variant
				"Bastion (Laser)"
			variant
				"Firebird (Plasma)"
		dialog "The <npc> has been eliminated. You can claim the bounty payment by returning to <destination>."
	on complete
		payment 200000
		dialog "The government of <planet> gratefully pays you <payment> for eliminating the <npc>."

mission "Bounty Hunting (Small)"
	name "Hunt down <npc>"
	description "A pirate vessel named <npc> has been attacking merchants near the <system> system. Destroy it and return to <planet> for payment (<payment>)."
	repeat
	job
	to offer
		"combat rating" > 300
		random < 40
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes rim south north "dirt belt" core frontier
	npc kill
		personality heroic staying nemesis target
		government Bounty
		system
			distance 1 2
		fleet
			names "pirate"
			variant
				"Firebird"
			variant
				"Firebird (Missile)"
			variant
				"Splinter"
			variant
				"Splinter (Laser)"
			variant
				"Osprey"
			variant
				"Osprey (Laser)"
			variant
				"Bastion"
			variant
				"Manta"
			variant
				"Manta (Proton)"
		dialog "The <npc> has been eliminated. You can claim the bounty payment by returning to <destination>."
	on complete
		payment 150000
		dialog "The government of <planet> gratefully pays you <payment> for eliminating the <npc>."

mission "Southern Pirate Attack"
	name "Defend <planet>"
	description "Defeat a pirate raid on <destination>."
	minor
	repeat
	to offer
		"combat rating" > 100
		random < 10
	source
		attributes frontier
		attributes rim south "dirt belt"
	npc evade
		personality heroic staying
		government Pirate
		fleet "Small Southern Pirates"
		fleet "Large Southern Pirates"
		fleet "Large Southern Pirates"
	npc
		personality heroic staying
		government Militia
		fleet "Small Militia"
		fleet "Small Militia"
	on offer
		conversation
			`Suddenly you hear raised voices and shouting outside: "We are under attack! <planet> is under attack by pirates! We need every combat-worthy ship to join in the defenses!" The authorities will probably pay you quite well if you assist them, but this could also be an easy way to get yourself killed.`
			choice
				"	(Stay here until the fight is over.)"
					decline
				"	(Join the defense fleet.)"
			"A few militia pilots have gathered to help repel the pirate attack. You join them, and take off together..."
				launch
	on complete
		payment 150000
		dialog "The government of <planet> pays you <payment> for helping to drive off the pirates."

mission "Northern Pirate Attack"
	name "Defend <planet>"
	description "Defeat a pirate raid on <destination>."
	minor
	repeat
	to offer
		"combat rating" > 100
		random < 10
	source
		attributes frontier
		attributes north paradise deep
	npc evade
		personality heroic staying
		government Pirate
		fleet "Small Northern Pirates"
		fleet "Large Northern Pirates"
		fleet "Large Northern Pirates"
	npc
		personality heroic staying
		government Republic
		fleet "Small Republic"
		fleet "Small Republic"
	on offer
		conversation
			`Suddenly you hear raised voices and shouting outside: "We are under attack! <planet> is under attack by pirates! We need every combat-worthy ship to join in the defenses!" The authorities will probably pay you quite well if you assist them, but this could also be an easy way to get yourself killed.`
			choice
				"	(Stay here until the fight is over.)"
					decline
				"	(Join the defense fleet.)"
			"The local Navy garrison is preparing to repel the pirate attack. You join them, and take off together..."
				launch
	on complete
		payment 250000
		dialog "The government of <planet> pays you <payment> for helping to drive off the pirates."

mission "Core Pirate Attack"
	name "Defend <planet>"
	description "Defeat a pirate raid on <destination>."
	minor
	repeat
	to offer
		"combat rating" > 100
		random < 10
	source
		attributes frontier
		attributes core "near earth"
	npc evade
		personality heroic staying
		government Pirate
		fleet "Small Core Pirates"
		fleet "Large Core Pirates"
		fleet "Large Core Pirates"
	npc
		personality heroic staying
		government Syndicate
		fleet "Small Syndicate"
		fleet "Small Syndicate"
	on offer
		conversation
			`Suddenly you hear raised voices and shouting outside: "We are under attack! <planet> is under attack by pirates! We need every combat-worthy ship to join in the defenses!" The authorities will probably pay you quite well if you assist them, but this could also be an easy way to get yourself killed.`
			choice
				"	(Stay here until the fight is over.)"
					decline
				"	(Join the defense fleet.)"
			"The local Syndicate defense forces are preparing to repel the pirate attack. You join them, and take off together..."
				launch
	on complete
		payment 200000
		dialog "The government of <planet> pays you <payment> for helping to drive off the pirates."

mission "Cargo [0]"
	name "Delivery to <planet>"
	job
	repeat
	description "Deliver <cargo> to <destination>. Payment is <payment>."
	cargo random 5 2 .1
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 2 8
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Cargo [1]"
	name "Delivery to <planet>"
	job
	repeat
	description "Deliver <cargo> to <destination>. Payment is <payment>."
	cargo random 5 2 .1
	to offer
		random < 90
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 2 10
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Cargo [2]"
	name "Delivery to <planet>"
	job
	repeat
	description "Deliver <cargo> to <destination>. Payment is <payment>."
	cargo random 5 2 .1
	to offer
		random < 80
	source
		attributes mining textiles factory farming fishing oil
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 2 12
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Cargo [3]"
	name "Delivery to <planet>"
	job
	repeat
	description "Deliver <cargo> to <destination>. Payment is <payment>."
	cargo random 5 2 .1
	to offer
		random < 70
	source
		attributes mining textiles factory farming fishing oil
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 3 14
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 2000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Cargo [4]"
	name "Delivery to <planet>"
	job
	repeat
	description "Deliver <cargo> to <destination>. Payment is <payment>."
	cargo random 5 2 .1
	to offer
		random < 60
	source
		attributes mining textiles factory farming fishing oil
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 4 16
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 4000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Bulk Delivery [0]"
	name "Bulk delivery to <planet>"
	job
	repeat
	description "Deliver <cargo> to <destination>. Payment is <payment>."
	cargo random 25 2 .05
	to offer
		random < 70
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 2 8
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Bulk Delivery [1]"
	name "Bulk delivery to <planet>"
	job
	repeat
	description "Deliver <cargo> to <destination>. Payment is <payment>."
	cargo random 25 2 .05
	to offer
		random < 60
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 3 12
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 2000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Bulk Delivery [2]"
	name "Bulk delivery to <planet>"
	job
	repeat
	description "Deliver <cargo> to <destination>. Payment is <payment>."
	cargo random 25 2 .05
	to offer
		random < 50
	source
		attributes mining textiles factory farming fishing oil
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 4 16
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 4000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Rush Delivery [0]"
	name "Rush delivery to <planet>"
	job
	repeat
	deadline
	description "Deliver <cargo> to <destination> by <date>. Payment is <payment>."
	cargo random 5 2 .1
	to offer
		random < 90
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 4 10
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 16000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Rush Delivery [1]"
	name "Rush delivery to <planet>"
	job
	repeat
	deadline
	description "Deliver <cargo> to <destination> by <date>. Payment is <payment>."
	cargo random 5 2 .1
	to offer
		random < 80
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 5 12
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 18000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Rush Delivery [2]"
	name "Rush delivery to <planet>"
	job
	repeat
	deadline
	description "Deliver <cargo> to <destination> by <date>. Payment is <payment>."
	cargo random 5 2 .1
	to offer
		random < 70
	source
		attributes mining textiles factory farming fishing oil
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 6 14
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 20000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Rush Delivery [3]"
	name "Rush delivery to <planet>"
	job
	repeat
	deadline
	description "Deliver <cargo> to <destination> by <date>. Payment is <payment>."
	cargo random 5 2 .1
	to offer
		random < 60
	source
		attributes mining textiles factory farming fishing oil
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 7 16
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 22000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."



mission "Passengers [0]"
	name "Passenger transport to <planet>"
	job
	repeat
	description "Bring <fare> to <destination>. Payment is <payment>."
	passengers 1 10 .9
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 2 10
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 2000
		dialog "You wish your <passengers> the best of luck on <planet>, and collect your payment of <payment>."

mission "Passengers [1]"
	name "Passenger transport to <planet>"
	job
	repeat
	description "Bring <fare> to <destination>. Payment is <payment>."
	passengers 1 10 .9
	to offer
		random < 75
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 2 10
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		dialog "You wish your <passengers> the best of luck on <planet>, and collect your payment of <payment>."

mission "Passengers [2]"
	name "Passenger transport to <planet>"
	job
	repeat
	description "Bring <fare> to <destination>. Payment is <payment>."
	passengers 1 10 .9
	to offer
		random < 50
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 2 10
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		dialog "You wish your <passengers> the best of luck on <planet>, and collect your payment of <payment>."

mission "Passengers [3]"
	name "Passenger transport to <planet>"
	job
	repeat
	description "Bring <fare> to <destination>. Payment is <payment>."
	passengers 1 10 .9
	to offer
		random < 25
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 2 10
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		dialog "You wish your <passengers> the best of luck on <planet>, and collect your payment of <payment>."

mission "Passengers [4]"
	name "Passenger transport to <planet>"
	job
	repeat
	description "These <bunks> passengers want to escape the pollution and crime on <origin> and settle on <destination>. Payment is <payment>."
	passengers 2 10 .9
	to offer
		random < 50
	source
		attributes "urban"
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 2 10
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 2000
		dialog "You wish your <passengers> the best of luck on <planet>, and collect your payment of <payment>."

mission "Transport miners to <planet>"
	job
	repeat
	description "This family of <bunks> miners is hoping to find work on <destination>, and they will pay you <payment> to take them there."
	passengers 2 2 .8
	to offer
		random < 50
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		attributes "mining"
		distance 3 12
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 2000
		dialog "You wish the mining family the best of luck on <planet>, and collect your payment of <payment>."

mission "Transport farmers to <planet>"
	job
	repeat
	description "This family of <bunks> farmers is hoping to find work on <destination>, and they will pay you <payment> to take them there."
	passengers 2 2 .8
	to offer
		random < 50
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		attributes "farming"
		distance 3 12
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 2000
		dialog "You wish the farm family the best of luck on <planet>, and collect your payment of <payment>."

mission "Transport mill workers to <planet>"
	job
	repeat
	description "This family of <bunks> mill workers is hoping to find work on <destination>, and they will pay you <payment> to take them there."
	passengers 2 2 .8
	to offer
		random < 50
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		attributes "textiles"
		distance 3 12
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 2000
		dialog "You wish the workers the best of luck on <planet>, and collect your payment of <payment>."

mission "Transport workers to <planet>"
	job
	repeat
	description "This family of <bunks> factory workers is hoping to find work on <destination>, and they will pay you <payment> to take them there."
	passengers 2 2 .8
	to offer
		random < 80
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		attributes "factory"
		distance 3 12
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 2000
		dialog "You wish the workers the best of luck on <planet>, and collect your payment of <payment>."

mission "Tourists out [0]"
	name "Bring a tourist to <planet>"
	job
	repeat
	description "This tourist wants to see <destination>, and will pay you <payment>."
	passengers 1
	to offer
		random < 20
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		attributes "tourism"
		distance 6 35
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 6000
		dialog "You wish your <passengers> the best of luck on <planet>, and collect your payment of <payment>."

mission "Tourists out [1]"
	name "Bring tourists to <planet>"
	job
	repeat
	description "These <bunks> tourists want to see <destination>. They are willing to pay you <payment>."
	passengers 2 10 .9
	to offer
		random < 50
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		attributes "tourism"
		distance 2 25
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 4000
		dialog "You wish your <passengers> the best of luck on <planet>, and collect your payment of <payment>."

mission "Tourists out [2]"
	name "Bring tourists to <planet>"
	job
	repeat
	description "These <bunks> tourists want to see <destination>. They are willing to pay you <payment>."
	passengers 2 10 .9
	to offer
		random < 75
	source
		attributes "rich" "urban"
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		attributes "tourism"
		distance 4 30
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 8000
		dialog "You wish your <passengers> the best of luck on <planet>, and collect your payment of <payment>."

mission "Tourists back [0]"
	name "Bring a tourist home to <planet>"
	job
	repeat
	description "This tourist is headed home to <destination>, and will pay you <payment>."
	passengers 1
	to offer
		random < 20
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
		attributes "tourism"
	destination
		distance 6 35
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 6000
		dialog "You wish your <passengers> the best of luck on <planet>, and collect your payment of <payment>."

mission "Tourists back [1]"
	name "Bring tourists home to <planet>"
	job
	repeat
	description "These <bunks> tourists are headed home to <destination>. They are willing to pay you <payment>."
	passengers 2 10 .9
	to offer
		random < 50
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
		attributes "tourism"
	destination
		distance 2 25
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 4000
		dialog "You wish your <passengers> the best of luck on <planet>, and collect your payment of <payment>."

mission "Tourists back [2]"
	name "Bring tourists home to <planet>"
	job
	repeat
	description "These <bunks> tourists are headed home to <destination>. They are willing to pay you <payment>."
	passengers 2 10 .9
	to offer
		random < 75
	source
		attributes "tourism"
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		attributes "rich" "urban"
		distance 4 30
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 8000
		dialog "You wish your <passengers> the best of luck on <planet>, and collect your payment of <payment>."

mission "Family [0]"
	name "Transport family to <planet>"
	job
	repeat
	description "This family of <bunks> is relocating to <destination>. They will pay you <payment> to take them there."
	passengers 2 4 .5
	to offer
		random < 60
		"passenger space" > 10
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 4 16
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 4000
		dialog "The family you have been transporting departs your ship after paying you <payment>."

mission "Family [1]"
	name "Transport family to <planet>"
	job
	repeat
	description "This family of <bunks> is relocating to <destination>. They will pay you <payment> to take them there."
	passengers 2 4 .5
	to offer
		random < 50
		"passenger space" > 10
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 5 20
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 6000
		dialog "The family you have been transporting departs your ship after paying you <payment>."

mission "Family [2]"
	name "Transport family to <planet>"
	job
	repeat
	description "This family of <bunks> is relocating to <destination>. They will pay you <payment> to take them there."
	passengers 2 4 .5
	to offer
		random < 40
		"passenger space" > 10
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 6 24
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 8000
		dialog "The family you have been transporting departs your ship after paying you <payment>."

mission "Family [3]"
	name "Transport family to <planet>"
	job
	repeat
	description "This family of <bunks> is relocating to <destination>. They will pay you <payment> to take them there."
	passengers 2 4 .5
	to offer
		random < 30
		"passenger space" > 10
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 8 32
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 10000
		dialog "The family you have been transporting departs your ship after paying you <payment>."

mission "Strike Breakers [mining]"
	name "Strike breakers to <planet>"
	job
	repeat
	description "Bring <bunks> strike breakers to <destination>, to take the place of mine workers who are on strike. The company will pay you <payment>."
	passengers 5 5 .2
	to offer
		random < 10
		"passenger space" > 20
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		attributes "mining"
		distance 2 20
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 10000
		dialog "You unload the strike breakers amid an angry crowd of protesters held back by police. When you return to your ship, you find that the company has transferred the agreed-upon payment of <payment> into your account."

mission "Strike Breakers [textile]"
	name "Strike breakers to <planet>"
	job
	repeat
	description "Bring <bunks> strike breakers to <destination>, to take the place of textile workers who are on strike. The company will pay you <payment>."
	passengers 5 5 .2
	to offer
		random < 10
		"passenger space" > 20
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		attributes "textiles"
		distance 2 20
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 10000
		dialog "You unload the strike breakers amid an angry crowd of protesters held back by police. When you return to your ship, you find that the company has transferred the agreed-upon payment of <payment> into your account."

mission "Strike Breakers [factory]"
	name "Strike breakers to <planet>"
	job
	repeat
	description "Bring <bunks> strike breakers to <destination>, to take the place of factory workers who are on strike. The company will pay you <payment>."
	passengers 5 5 .2
	to offer
		random < 10
		"passenger space" > 20
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		attributes "factory"
		distance 2 20
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 10000
		dialog "You unload the strike breakers amid an angry crowd of protesters held back by police. When you return to your ship, you find that the company has transferred the agreed-upon payment of <payment> into your account."

mission "Colonists [0]"
	name "Colonists to <planet>"
	job
	repeat
	description "These <bunks> people are hoping to join a colony on <destination>. They will pay you <payment> to take them there."
	passengers 10 4 .1
	to offer
		random < 30
		"passenger space" > 30
	source
		attributes "urban" "near earth" "core" "factory"
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		attributes "frontier" "dirt belt" "south" "farming" "mining" "rim" "forest"
		distance 2 20
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 8000
		dialog "The colonists depart your ship after paying you <payment>."

mission "Colonists [1]"
	name "Colonists to <planet>"
	job
	repeat
	description "These <bunks> people are hoping to join a colony on <destination>. They will pay you <payment> to take them there."
	passengers 10 4 .1
	to offer
		random < 20
		"passenger space" > 30
	source
		attributes "urban" "near earth" "core" "factory"
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		attributes "frontier" "dirt belt" "south" "farming" "mining" "rim" "forest"
		distance 4 30
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 10000
		dialog "The colonists depart your ship after paying you <payment>."

mission "Large Bulk Delivery [0]"
	name "Large bulk delivery to <planet>"
	job
	repeat
	description "Deliver <cargo> to <destination>. Payment is <payment>."
	cargo random 40 2 .02
	to offer
		random < 70
		"cargo space" > 160
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 2 8
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 4000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Large Bulk Delivery [1]"
	name "Large bulk delivery to <planet>"
	job
	repeat
	description "Deliver <cargo> to <destination>. Payment is <payment>."
	cargo random 40 2 .02
	to offer
		random < 60
		"cargo space" > 160
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 3 12
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 6000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Large Bulk Delivery [2]"
	name "Large bulk delivery to <planet>"
	job
	repeat
	description "Deliver <cargo> to <destination>. Payment is <payment>."
	cargo random 40 2 .02
	to offer
		random < 50
		"cargo space" > 160
	source
		attributes mining textiles factory farming fishing oil
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 4 16
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 8000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Large Rush Delivery [0]"
	name "Large rush delivery to <planet>"
	job
	repeat
	deadline
	description "Deliver <cargo> to <destination> by <date>. Payment is <payment>."
	cargo random 20 6 .1
	to offer
		random < 90
		"cargo space" > 80
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 4 10
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 36000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Large Rush Delivery [1]"
	name "Large rush delivery to <planet>"
	job
	repeat
	deadline
	description "Deliver <cargo> to <destination> by <date>. Payment is <payment>."
	cargo random 20 6 .1
	to offer
		random < 80
		"cargo space" > 80
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 5 12
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 38000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Large Rush Delivery [2]"
	name "Large rush delivery to <planet>"
	job
	repeat
	deadline
	description "Deliver <cargo> to <destination> by <date>. Payment is <payment>."
	cargo random 20 6 .1
	to offer
		random < 70
		"cargo space" > 80
	source
		attributes mining textiles factory farming fishing oil
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 6 14
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 40000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Large Rush Delivery [3]"
	name "Large rush delivery to <planet>"
	job
	repeat
	deadline
	description "Deliver <cargo> to <destination> by <date>. Payment is <payment>."
	cargo random 20 6 .1
	to offer
		random < 60
		"cargo space" > 80
	source
		attributes mining textiles factory farming fishing oil
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 7 16
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 42000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Recycle garbage"
	name "Recycle garbage"
	description "<origin> produces a lot of garbage that needs to be disposed of off-station. Transport <cargo> to the industrial solid waste recycler on <destination>. Payment is <payment>."
	job
	repeat
	to offer
		random < 70
	cargo "Garbage" 15 100
	source
		attributes station
	destination
		attributes factory mining "dirt belt"
		distance 9 12
	on complete
		dialog "You drop off the <commodity> at an especially smelly solid waste recycler and collect your payment of <payment>."
		payment
		payment 20000

mission "Bounty Hunting (Marauder I)"
	name "Hunt down <npc>"
	description "A Marauder vessel named <npc>, leading a small fleet, has been attacking merchants near the <system> system. Destroy the whole fleet and return to <planet> for payment (<payment>)."
	repeat
	job
	to offer
		"combat rating" > 600
		or
			random < 5
			and
				"combat rating" < 1200
				random < 35
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes rim south north "dirt belt" core frontier
	npc kill
		fleet "Marauder fleet I"
		personality heroic staying nemesis target
		government Bounty
		system
			distance 1 3
		dialog "The <npc> and their fleet have been eliminated. You can claim the bounty payment by returning to <destination>."
	on complete
		payment 300000
		dialog "The government of <planet> gratefully pays you <payment> for eliminating the <npc> and their fleet."

mission "Bounty Hunting (Marauder II)"
	name "Hunt down <npc>"
	description "A Marauder vessel named <npc>, leading a small fleet, has been attacking merchants near the <system> system. Destroy the whole fleet and return to <planet> for payment (<payment>)."
	repeat
	job
	to offer
		"combat rating" > 750
		or
			random < 5
			and
				"combat rating" < 1800
				random < 30
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes rim south north "dirt belt" core frontier
	npc kill
		fleet "Marauder fleet II"
		personality heroic staying nemesis target
		government Bounty
		system
			distance 1 3

		dialog "The <npc> and their fleet have been eliminated. You can claim the bounty payment by returning to <destination>."
	on complete
		payment 350000
		dialog "The government of <planet> gratefully pays you <payment> for eliminating the <npc> and their fleet."

mission "Bounty Hunting (Marauder III)"
	name "Hunt down <npc>"
	description "A Marauder vessel named <npc>, leading a small fleet, has been attacking merchants near the <system> system. Destroy the whole fleet and return to <planet> for payment (<payment>)."
	repeat
	job
	to offer
		"combat rating" > 1097
		or
			random < 5
			and
				"combat rating" < 2200
				random < 25
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes rim south north "dirt belt" core frontier
	npc kill
		fleet "Marauder fleet III"
		personality heroic staying nemesis target
		government Bounty
		system
			distance 1 3
		dialog "The <npc> and their fleet have been eliminated. You can claim the bounty payment by returning to <destination>."
	on complete
		payment 400000
		dialog "The government of <planet> gratefully pays you <payment> for eliminating the <npc> and their fleet."

mission "Bounty Hunting (Marauder IV)"
	name "Hunt down <npc>"
	description "A Marauder vessel named <npc>, leading a small fleet, has been attacking merchants near the <system> system. Destroy the whole fleet and return to <planet> for payment (<payment>)."
	repeat
	job
	to offer
		"combat rating" > 1550
		or
			random < 5
			and
				"combat rating" < 2700
				random < 30
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes rim south north "dirt belt" core frontier
	npc kill
		fleet "Marauder fleet IV"
		personality heroic staying nemesis target
		government Bounty
		system
			distance 1 3
		dialog "The <npc> and their fleet have been eliminated. You can claim the bounty payment by returning to <destination>."
	on complete
		payment 425000
		dialog "The government of <planet> gratefully pays you <payment> for eliminating the <npc> and their fleet."

mission "Bounty Hunting (Marauder V)"
	name "Hunt down <npc>"
	description "A Marauder vessel named <npc>, leading a small fleet, has been attacking merchants near the <system> system. Destroy the whole fleet and return to <planet> for payment (<payment>)."
	repeat
	job
	to offer
		"combat rating" > 2000
		or
			random < 5
			and
				"combat rating" < 3500
				random < 25
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes rim south north "dirt belt" core frontier
	npc kill
		fleet "Marauder fleet V"
		personality heroic staying nemesis target
		government Bounty
		system
			distance 1 3
		dialog "The <npc> and their fleet have been eliminated. You can claim the bounty payment by returning to <destination>."
	on complete
		payment 450000
		dialog "The government of <planet> gratefully pays you <payment> for eliminating the <npc> and their fleet."


mission "Bounty Hunting (Marauder VI)"
	name "Hunt down <npc>"
	description "A Marauder vessel named <npc>, leading a small fleet, has been attacking merchants near the <system> system. Destroy the whole fleet and return to <planet> for payment (<payment>)."
	repeat
	job
	to offer
		"combat rating" > 2500
		or
			random < 5
			and
				"combat rating" < 5000
				random < 20
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes rim south north "dirt belt" core frontier
	npc kill
		fleet "Marauder fleet VI"
		personality heroic staying nemesis target
		government Bounty
		system
			distance 1 3
		dialog "The <npc> and their fleet have been eliminated. You can claim the bounty payment by returning to <destination>."
	on complete
		payment 475000
		dialog "The government of <planet> gratefully pays you <payment> for eliminating the <npc> and their fleet."

mission "Bounty Hunting (Marauder VII)"
	name "Hunt down <npc>"
	description "A Marauder vessel named <npc>, leading a small fleet, has been attacking merchants near the <system> system. Destroy the whole fleet and return to <planet> for payment (<payment>)."
	repeat
	job
	to offer
		"combat rating" > 2980
		random < 20
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes rim south north "dirt belt" core frontier
	npc kill
		fleet "Marauder fleet VII"
		personality heroic staying nemesis target
		government Bounty
		system
			distance 1 3
		dialog "The <npc> and their fleet have been eliminated. You can claim the bounty payment by returning to <destination>."
	on complete
		payment 500000
		dialog "The government of <planet> gratefully pays you <payment> for eliminating the <npc> and their fleet."

mission "Bounty Hunting (Marauder VIII)"
	name "Hunt down <npc>"
	description "A Marauder vessel named <npc>, leading a small fleet, has been attacking merchants near the <system> system. Destroy the whole fleet and return to <planet> for payment (<payment>)."
	repeat
	job
	to offer
		"combat rating" > 4000
		random < 15
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes rim south north "dirt belt" core frontier
	npc kill
		fleet "Marauder fleet VIII"
		personality heroic staying nemesis target
		government Bounty
		system
			distance 1 3
		dialog "The <npc> and their fleet have been eliminated. You can claim the bounty payment by returning to <destination>."
	on complete
		payment 550000
		dialog "The government of <planet> gratefully pays you <payment> for eliminating the <npc> and their fleet."

mission "Bounty Hunting (Marauder IX)"
	name "Hunt down <npc>"
	description "A Marauder vessel named <npc>, leading a small fleet, has been attacking merchants near the <system> system. Destroy the whole fleet and return to <planet> for payment (<payment>)."
	repeat
	job
	to offer
		"combat rating" > 6000
		random < 10
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes rim south north "dirt belt" core frontier
	npc kill
		fleet "Marauder fleet IX"
		personality heroic staying nemesis target
		government Bounty
		system
			distance 1 3
		dialog "The <npc> and their fleet have been eliminated. You can claim the bounty payment by returning to <destination>."
	on complete
		payment 600000
		dialog "The government of <planet> gratefully pays you <payment> for eliminating the <npc> and their fleet."

#must destroy hunters and land to fail
mission "Marauder Hunted"
	invisible
	landing
	repeat
	destination Earth
	source
		government "Republic" "Syndicate" "Free Worlds" "Neutral"
	to offer
		"combat rating" > 8103
		random > 96
	to complete
		never
	npc save
		fleet "Marauder fleet X"
		personality heroic nemesis plunders
		government "Bounty Hunter"
		system
			distance 5 5

