| 1 |
--[[ |
| 2 |
<?xml version='1.0' encoding='utf8'?> |
| 3 |
<mission name="Za'lek 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>Dvaered 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 |
Third diplomatic mission to Za'lek 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 = _("Za'lek Long Distance Recruitment") |
| 34 |
misn_desc = _("Deliver a shipping diplomat for the Empire to Gerhart Station in the Ganth system") |
| 35 |
title = {} |
| 36 |
title[1] = _("Spaceport Bar") |
| 37 |
title[2] = _("Za'lek Long Distance Recruitment") |
| 38 |
title[3] = _("Mission Accomplished") |
| 39 |
text = {} |
| 40 |
text[1] = _([[Lieutenant Czesc sits at the bar. He really does seem to handle business all across the Empire. You take the seat next to him. "Thanks to your help, the Empire Armada Shipping Division will soon operate across the galaxy. Our next mission is to get House Za'lek on board. Interested in helping out again?"]]) |
| 41 |
text[2] = _([["I had a feeling you would!" says Lieutenant Czesc. "I've got another bureaucrat ready to establish trade ties. The Za'lek are rather mysterious, so keep your wits about you. The diplomat only needs to go to the Gerhart Station in the Ganth system. He will let me know when trade relations have been established. There is still more work to be done, so I expect to see you again soon."]]) |
| 42 |
text[3] = _([[You drop the diplomat off on Outbound Station, and she hands you a credit chip. Lieutenant Czesc mentioned more work, so you figure you'll run into him at a bar again soon.]]) |
| 43 |
|
| 44 |
log_text = _([[You delivered a shipping bureaucrat to Outbound Station for the Empire. Lieutenant Czesc mentioned more work, so you figure you'll run into him at a bar again soon.]]) |
| 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("Ganth") |
| 55 |
targetworld = planet.get("Gerhart Station") |
| 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 |