JavaScript must be enabled to play.
Browser lacks capabilities required to play.
Upgrade or switch to another browser.
Loading…
<<silently>> <<set $hull = 7>> <<set $fuel = 3>> <<set $jumps = 11>> <</silently>>
<<silently>> <<include "StoryInit">> <</silently>>\ ! Space Quest! In the midst of an intense battle with pirates, your hyperdrive was damaged. You emerged victorious, but are stranded in the middle of a dangerous sector of space where all communications are blocked. Your engineer has rigged the hyperdrive to make short hyperjumps. Unfortunately, it's going to take ten jumps to get out of this sector so that you can call for help. Good luck, captain! [[Begin Journey|Space 1]] !!!!!!© 2022 Byron Pendason. All rights reserved.
<<silently>> <<if $fuel > 5>> <<set $fuel = 5>> <</if>> <<if $hull > 10>> <<set $hull = 10>> <</if>> <</silently>> <hr> Hull: <<print $hull>>/10 Fuel: <<print $fuel>>/5 Jumps Left: $jumps <hr>
<<silently>> <<set $blips = []>> <<if $jumps == 10>> <<set $blips = ["Derelict", "Rocky planet", "Derelict", "Gas giant", "Gas giant", "Rocky planet"]>> <<elseif random(1,10) == 1>> <<set $blips.push("empty")>> <<else>> <<for _i=0; _i<random(1,6); _i++>> <<set $blips.push(either("Gas giant", "Gas giant", "Derelict", "Rocky planet"))>> <</for>> <</if>> <</silently>>
<<nobr>> <<for _i=0; _i<$blips.length; _i++>> <<if $blips[_i] == "empty">> //This system is empty.// <<elseif $blips[_i] == "Gas giant">> <<include "Gas Giant">> <<elseif $blips[_i] == "Derelict">> <<include "Derelict">> <<elseif $blips[_i] == "Rocky planet">> <<include "Rocky Planet">> <</if>> <</for>> <</nobr>>
<<nobr>> <<set $fuel -= 1>> <<set $jumps -= 1>> <<include "Generate System">> <</nobr>> <div id="HUD"> <<include "HUD">> </div> \ <<include "Check Status">>\ \ !! Scans: <<include "Display System">> [[Jump to the next system|Space 2]]
<<nobr>> <<set $fuel -= 1>> <<set $jumps -= 1>> <<include "Generate System">> <</nobr>> <div id="HUD"> <<include "HUD">> </div> \ <<include "Check Status">>\ \ !! Scans: <<include "Display System">> [[Jump to the next system|Space 1]]
<<nobr>> * <<linkreplace "Gas giant">> Gas giant- <<set _r = random(1,6)>> <<if _r < 4>> The gas of this gas giant proves to be highly corrosive and damages your hull. <<set $hull -= 1>> <<elseif _r < 6>> You harvest 1 ton of fuel from the gas giant. <<set $fuel += 1>> <<else>> You find 2 tons of fuel! <<set $fuel += 2>> <</if>> <<include "Update Hull">> <</linkreplace>> <</nobr>>
<<nobr>> * <<linkreplace "Derelict">> Derelict- <<set _r = random(1,6)>> <<if _r < 4>> This derelict was nothing but a debris field, and your hull got banged up pretty badly. <<set $hull -= Math.floor(_r/2+1)>> <<elseif _r < 5>> You find 1 ton of fuel in this derelict. <<set $fuel += 1>> <<elseif _r < 6>> You find 1 ton of materials to patch your hull with in this derelict. <<else>> You find 1 ton of fuel and 1 ton of materials to patch up your hull with in this derelict. <<set $fuel += 1>> <<set $hull += 1>> <</if>> <<include "Update Hull">> <</linkreplace>> <</nobr>>
<<nobr>> * <<linkreplace "Rocky planet">> Rocky planet- <<set _r = random(1,6)>> <<if _r < 4>> A meteor shower bangs up your hull pretty badly. <<set $hull -= 1>> <<elseif _r < 6>> You harvest 1 ton of metals to patch up your hull. <<set $hull += 1>> <<else>> You harvest 2 tons of metals to patch up your hull. <<set $hull += 2>> <</if>> <<include "Update Hull">> <</linkreplace>> <</nobr>>
<<include "Check Status">> <<replace "#HUD">> <<include "HUD">> <</replace>>
<<silently>> <<if $fuel < 0>> <<goto "Lost in Space">> <</if>> <<if $hull <= 0>> <<goto "Destroyed">> <</if>> <<if $jumps <= 0>> <<goto "Escaped">> <</if>> <</silently>>
Without fuel, your ship jumps into the vast space between stars and drifts in space endlessly. !!!Game over! [[Restart|Start][state.restart()]]
Your hull has been breached. The resulting explosion kills all hands on deck. !!!Game over! [[Restart|Start][state.restart()]]
As soon as you are clear of this dangerous sector of space, you send out a distress signal, and are rescued within hours. !!! You win! [[Restart|Start][state.restart()]]