| 1 |
--[[ |
| 2 |
<?xml version='1.0' encoding='utf8'?> |
| 3 |
<mission name="Frontier Long Distance Recruitment"> |
| 4 |
<flags> |
| 5 |
<unique /> |
| 6 |
</flags> |
| 7 |
<avail> |
| 8 |
<priority>4</priority> |
| 9 |
<cond>faction.playerStanding("Empire") >= 0</cond> |
| 10 |
<chance>75</chance> |
| 11 |
<done>Za'lek Long Distance Recruitment</done> |
| 12 |
<location>Bar</location> |
| 13 |
<faction>Empire</faction> |
| 14 |
</avail> |
| 15 |
<notes> |
| 16 |
<campaign>Long Distance Shipping</campaign> |
| 17 |
</notes> |
| 18 |
</mission> |
| 19 |
--]] |
| 20 |
--[[ |
| 21 |
|
| 22 |
Fourth diplomatic mission to Frontier space that opens up the Empire long-distance cargo missions. |
| 23 |
|
| 24 |
Author: micahmumper |
| 25 |
|
| 26 |
]]-- |
| 27 |
|
| 28 |
require "numstring.lua" |
| 29 |
require "jumpdist.lua" |
| 30 |
require "missions/empire/common.lua" |
| 31 |
|
| 32 |
bar_desc = _("Lieutenant Czesc from the Empire Armada Shipping Division is sitting at the bar.") |
| 33 |
misn_title = _("Frontier Long Distance Recruitment") |
| 34 |
misn_desc = _("Deliver a shipping diplomat for the Empire to The Frontier Council in Gilligan's Light system") |
| 35 |
title = {} |
| 36 |
title[1] = _("Spaceport Bar") |
| 37 |
title[2] = _("Frontier Alliance Long Distance Recruitment") |
| 38 |
title[3] = _("Mission Accomplished") |
| 39 |
text = {} |
| 40 |
text[1] = _([["We have to stop running into each other like this." Lieutenant Czesc laughs at his joke. "Just kidding, you know I owe you for helping set up these contracts. So far, everything has been moving smoothly on our end. We're hoping to extend our relations to the Frontier Alliance. You know the drill by this point. Ready to help?"]]) |
| 41 |
text[2] = _([["I applaud your commitment," Lieutenant Czesc says, "and I know these aren't the most exciting missions, but they're most useful. The frontier can be a bit dangerous, so make sure you're prepared. You need to drop the bureaucrat off at The Frontier Council in Gilligan's Light system. After this, there should only be one more faction to bring into the fold. I expect to see you again soon."]]) |
| 42 |
text[3] = _([[You deliver the diplomat to The Frontier Council, and she hands you a credit chip. Thankfully, Lieutenant Czesc mentioned only needing your assistance again for one more mission. This last bureaucrat refused to stay in her quarters, preferring to hang out on the bridge and give you the ins and outs of Empire bureaucracy. Only your loyalty to the Empire stopped you from sending her out into the vacuum of space.]]) |
| 43 |
|
| 44 |
log_text = _([[You delivered a shipping bureaucrat to The Frontier Council for the Empire. Thankfully, Lieutenant Czesc mentioned only needing your assistance again for one more mission. This last bureaucrat refused to stay in her quarters, preferring to hang out on the bridge and give you the ins and outs of Empire bureaucracy. Only your loyalty to the Empire stopped you from sending her out into the vacuum of space.]]) |
| 45 |
|
| 46 |
|
| 47 |
function create () |
| 48 |
-- Note: this mission does not make any system claims. |
| 49 |
|
| 50 |
-- Get the planet and system at which we currently are. |
| 51 |
startworld, startworld_sys = planet.cur() |
| 52 |
|
| 53 |
-- Set our target system and planet. |
| 54 |
targetworld_sys = system.get("Gilligan's Light") |
| 55 |
targetworld = planet.get("The Frontier Council") |
| 56 |
|
| 57 |
|
| 58 |
misn.setNPC( _("Lieutenant"), "empire/unique/czesc" ) |
| 59 |
misn.setDesc( bar_desc ) |
| 60 |
end |
| 61 |
|
| 62 |
|
| 63 |
function accept () |
| 64 |
-- Set marker to a system, visible in any mission computer and the onboard computer. |
| 65 |
misn.markerAdd( targetworld_sys, "low") |
| 66 |
---Intro Text |
| 67 |
if not tk.yesno( title[1], text[1] ) then |
| 68 |
misn.finish() |
| 69 |
end |
| 70 |
-- Flavour text and mini-briefing |
| 71 |
tk.msg( title[2], text[2] ) |
| 72 |
---Accept the mission |
| 73 |
misn.accept() |
| 74 |
|
| 75 |
-- Description is visible in OSD and the onboard computer, it shouldn't be too long either. |
| 76 |
reward = 500000 -- 500K |
| 77 |
misn.setTitle(misn_title) |
| 78 |
misn.setReward(creditstring(reward)) |
| 79 |
misn.setDesc( string.format( misn_desc, targetworld:name(), targetworld_sys:name() ) ) |
| 80 |
misn.osdCreate(title[2], {misn_desc}) |
| 81 |
-- Set up the goal |
| 82 |
hook.land("land") |
| 83 |
person = misn.cargoAdd( "Person" , 0 ) |
| 84 |
end |
| 85 |
|
| 86 |
|
| 87 |
function land() |
| 88 |
|
| 89 |
if planet.cur() == targetworld then |
| 90 |
misn.cargoRm( person ) |
| 91 |
player.pay( reward ) |
| 92 |
-- More flavour text |
| 93 |
tk.msg( title[3], text[3] ) |
| 94 |
faction.modPlayerSingle( "Empire",3 ) |
| 95 |
emp_addShippingLog( log_text ) |
| 96 |
misn.finish(true) |
| 97 |
end |
| 98 |
end |
| 99 |
|
| 100 |
function abort() |
| 101 |
misn.finish(false) |
| 102 |
end |