1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
--[[
<?xml version='1.0' encoding='utf8'?>
<event name="start_event">
<trigger>none</trigger>
</event>
--]]
function name()
local names = {
_("Aluminum Mallard"), -- Because we might as well allude to an existing parody. Proper spelling would be "Aluminium", by the way.
_("Armchair Traveller"),
_("Attitude Adjuster"),
_("Commuter"),
_("Death Trap"),
_("Eclipse"),
_("Exitprise"),
_("Fire Hazard"),
_("Gunboat Diplomat"),
_("Heart of Lead"),
_("Icarus"),
_("Little Rascal"),
_("Myrmidon"),
_("Opportunity"),
_("Outward Bound"),
_("Pathfinder"),
_("Planet Jumper"),
_("Rustbucket"),
_("Serendipity"),
_("Shove Off"),
_("Sky Cutter"),
_("Terminal Velocity"),
_("Titanic MLXVII"),
_("Vagabond"),
_("Vindicator"),
_("Windjammer"),
}
return names[rnd.rnd(1,#names)]
end
function create()
player.pilot():rename( name() ) -- Assign a random name to the player's ship.
player.pilot():addOutfit( "Laser Cannon MK1", 2 )
jump.setKnown( "Hakoi", "Eneguoz" )
-- Give all GUIs
-- XXX: Would be better to remove these outfits and the association,
-- but they're so tightly integrated atm (with no other way to define
-- GUIs as usable) that I'm implementing it this way for now.
player.addOutfit( "GUI - Brushed" )
player.addOutfit( "GUI - Slim" )
player.addOutfit( "GUI - Slimv2" )
player.addOutfit( "GUI - Legacy" )
hook.timer(1000, "timer_tutorial")
end
function timer_tutorial()
naev.missionStart( "Tutorial" )
evt.finish( true )
end
|