[Fix] Mission stuff.
This commit is contained in:
parent
fc41a1789e
commit
badce25b9b
@ -20,13 +20,23 @@ You aren't too sure of what to make of your encounter with the Empire, only time
|
||||
end
|
||||
|
||||
function create()
|
||||
-- Target destination.
|
||||
local i = 0
|
||||
repeat
|
||||
dest = space.getPlanet(misn.factions())
|
||||
i = i+1
|
||||
until dest ~= space.landName() or i > 10
|
||||
-- Infinate loop protection.
|
||||
if i > 10 then
|
||||
misn.finish(false)
|
||||
end
|
||||
|
||||
-- Intro text.
|
||||
tk.msg(title[1], text[1])
|
||||
if tk.yesno(title[1], text[2])
|
||||
then
|
||||
misn.accept()
|
||||
|
||||
dest = space.getPlanet("Empire");
|
||||
-- Mission details.
|
||||
reward = 3000
|
||||
misn.setTitle(misn_title)
|
||||
|
@ -23,6 +23,11 @@ else -- Default english.
|
||||
end
|
||||
|
||||
function create()
|
||||
-- Requirements.
|
||||
if var.peek("es_cargo") ~= true then
|
||||
misn.finish(false)
|
||||
end
|
||||
|
||||
-- Intro text.
|
||||
if tk.yesno(title[1], string.format(text[1], player.name()))
|
||||
then
|
||||
|
Loading…
Reference in New Issue
Block a user