Shields
%shields%
Hull
%hull%
Actions
%actions%
Charging
%cooldown%
Spent
%spent%
(P)
(E)
%flags%%name%

%desc%

%flavor%

Score
Fame
0
Fortune
0
Glory
0
Total
0
Ship Status
Hull
0
Cargo
0

Story stuff goes here

Hangar

Active Ship Card Totals
Shields
Lasers
Missiles
Repair
Cargo
Other
Total
Fortune
buy for %value%
sell for %value%

For Sale


Your Ship


Done

Pirates

You

Command

Log

VICTORY!

+1 Glory

Continue

FLEE!

You manage to escape.

Continue

DEFEAT :(

Oh no, you're space flotsam.

final score:


New Game
.card pirates
	You jump out of hyperspace right next to pirates!
	.choice Flee
		Run like the coward you are.
		.glory -1
		.continue
			You flee to hyperspace before the pirates are able to fire.
	.choice Fight
		Show 'em who's boss!
		.log
			While smugg, erm, transporting perfectly legal merchandise across the stars...
		.log
			You are attacked by Pirates!
		.combat defaultPirates 2

.card kaboom
	Ka-BOOM!! A huge explosion rocks your ship!
	.condition false
	.choice Uh oh
		Damage Report!
		.hull -1
		.continue

.card prize
	Inside you find a(n) %[prize.name]! Do you want to add it to your ship?
	.condition false
	.var prize
		randomCard()
	.choice	Yes
		We could totally use a(n) %[prize.name].
		.actions.push prize
		.continue
			You add the %[prize.name] to your ship.
	.choice	No
		What junk! We've no use for that. Let's continue on our way.
		.next

.card flotsam
	You come across a box, floating in space, labelled, "Danger! Do NOT open!"...
	.choice Open it
		That's exactly what I'd write on a box of treasure I left floating space.
		.chance 0.4
			.show prize
		.else
			.show kaboom
	.choice Leave it be
		That's exactly what I'd write on a box of dangerous stuff. Let's be on our way.
		.continue
			You leave the mysterious box behind.
	.choice Shoot it
		Target practice!
		.show kaboom

.card lonelyPlanet
	After an exhaustive search you find a barely livable planet.  The signal seems to originate from the surface.  Sensors detect fragments of a star ship and single life form nearby.
	.condition false
	.choice Bring it aboard
		Invite the creature aboard for tea.
		.chance 0.6
			.fame +1
			.continue
				You find an old man living among the wreckage.  He claims to have been there for over 30 years.  You give him a ride to the next starport so that he may try to find his family. Word of your kindness spreads with the story of his survival.
		.else
			.fame -1
			.continue
				Judging by the screams of your search party over the comms you assume the creature was hostile.  After the comms go silent only the original, single, life sign remains.  Word quickly spreads among the crew.
	.choice File a report
		File a "Unexpected Life Form Found" report and let the authorities handle it.
		.continue
			You file the report and receive an automated reply, "Thank you citizen.  Rescue drones will be dispatched for recovery as they become available.  Estimated wait time is 3.85 standard years.  Be proud; performing your civic duty may save the lives of fellow citizens."

.card distressAmbush
	You find the distress beacon drifting among the wrecks of more than a few ships.  Energy signatures indicate that some of the destruction is recent.  Just as begin to ponder the meaning of this pirates ambush you!
	.condition false
	.choice Battle stations!
		It's a trap!
		.log
			You are ambushed by Pirates!
		.combat defaultPirates 3
		
.card faintDistress
	You detect a faint distress signal, as if it had been running for a long, long time and its power source had run low.
	.choice Investigate
		Let's see if we can help.
		.chance 0.3
			.show lonelyPlanet
		.chance 0.3
			.show distressAmbush
		.else
			.continue
				After searching for hours you lose the signal, as if it too had finally given up hope.
	.choice	Ignore it
		We're in no position to help, and whoever it was is probably long dead anyway.
		.continue

.card contrabandDelivery
	You transmit the encrypted code and are directed to a "VIP" docking bay.  Once there, stevedores quickly unload the contraband and transfer payment.
	.condition false
	.choice Easy money
		Cha-ching!
		.fortune +5
		.flag.set contraband false
		.show tradePlanet

.card tradePlanet
	You arrive at a well known trading planet. Stop and trade?
	.choice	Yes
		Yes, let's offload our surplus and examine the wares.
		.flag.check contraband
			.show contrabandDelivery
		.hangar
	.choice No
		We've no need at this time.
		.continue

.card multivac
	The monks smile and tell you they are transporting "The Multivac". They claim one day it will be able to answer The Last Question.  Upon inspection it appears to be a ridiculously large computer; at least 3 Cargo Units in size.
	.condition false
	.choice	Continue
		How interesting.
		.next

.card multivacDelivered
	By the time you arrive at the pilgrimage site you and the crew have had about all the chanting you can take.  Grateful for the pay as much as the silence, you bid farewell to the monks.
	.condition false
	.choice Continue
		Ahh, peace and quiet.
		.fortune +3
		.flag.set multivac true
		.next

.card spaceMonks		
	While passing what appears to be a nearly abandoned station a group of monks contacts you looking for passage and transport as part of a pilgrimage.  They are also transporting a sacred artifact.  Most relevantly, they are paying well.
	.condition !ship.flags.multivac
	.choice Welcome Aboard!
		Easy money.
		.cargo.check 3
			.show multivacDelivered
		.else
			.continue
				When you see the size of their "artifact" you sadly realize you don't have enough Cargo capacity to transport it.  The monks are disappointed and resign to wait for another ship.  Mourning over the loss of a small fortune you continue on your way.
	.choice	Inquire about the artifact
		I need to know exactly what I'm taking on.
		.chance 0.6
			.continue
			The monks are deeply offended at your mistrust and lack of faith.  Not only do they choose not to travel with you, but they refuse to even speak with you further. You continue on your way.
		.else
			.show multivac
	.choice Decline their request
		We've no time for suspicious religious nonsense.
		.continue

.card particleStorm
	You come out of hyperspace into an uncharted region of a nebula and find yourself in the middle of a raging particle storm.
	.choice	Continue
		Uh oh.
		.hull -1
		.next

.card contrabandAcquisition
	You secure a box labelled "Cybernetic Banana Boosters" in your cargo hold and are given an encrypted code to signal the trading planet where the goods are to be delivered.  She waves goodbye as you undock, and it is only after several hours in hyperspace that your hangover finally eases up.
	.condition false
	.choice Oy!
		What've I got myself into?
		.flag.set contraband true
		.next
	
.card shadySquirrelelian
	After imbibing a bit too much at a deep space dive bar, you find yourself alone in a dark room with a rather shady looking space squirrelelian.  She wants you to transport some illicit cargo for her, and is offerring to pay quite well.
	.condition !ship.flags.contraband
	.choice Sure
		That's crazy money!
		.cargo.check 1
			.show contrabandAcquisition
		.else
			.continue
				She applauds your enthusiasm but when it comes time to secure the cargo you recall that you have no storage space whatsoever.  You part amicably and continue on your way.
	.choice	Nah
		Uh, thanks but I'll pass.
		.fame -2
		.continue
			She chatters with disappointment, "I'd heard you were the kind of being who could get things done.  I'll have to let my contacts know otherwise.

.card contrabandConfiscated
	As part of the docking procedure your ship is scanned and the contraband you are carrying is detected.  You are immediately detained, and both the contraband and the Cargo hold it was in are confiscated.  Once your permanent record has been appropriately marred you are escorted to the border and told not to return.
	.condition false
	.choice Aww shucks...
		That's, uh... not mine...
		.fame -1
		.flag.set contraband false
		.delete.item cargo
		.next
		
.card sectorCapital
	After an extended period you arrive at the sector capital.  They offer to retrofit your Hull for a nominal fee.
	.choice Dock
		What a deal!
			.flag.check contraband
				.show contrabandConfiscated
			.fortune.check 1
				.fortune -1
				.hull +5
				.continue
					With funds deducted the retrofitting proceeds quickly.  You are on your way again in no time.
			.else
				.continue
					You are informed, "We're sorry but your account has been declined."
	.choice Decline
		We're OK at this time.
		.next

.card strangeEnergy
	Long range scanners detect an unusual energy signature.  When you arrive to investigate the signature is gone and there is nothing else here.
	.choice	Continue
		Strange...
		.flag.check eddykenn
			.continue
				As you recalibrate the sensors you detect an unregistered lifeform onboard.  You quickly discover the pesky youth from before has stowed away on your ship!
		.next

.card asteroidWorm
	While searching a particularly deep cavern in an asteroid you realize you have flown inside the mouth of a Giant Asteroid Worm!  As you attempt to escape its teeth catch and crush off part of the ship! You're able to seal off the affected areas, and after a few days in the belly of beast you find you have enough hamsters to make the jump the hyperspace.
	.condition false
	.choice Continue
		Ouch!
		.hull -20
		.continue
			Limp on.

.card distressJollyRoger
	A short while later a ship arrives.  Unfortunately it is transmitting the Jolly Roger.
	.condition false
	.choice Battle stations!
		At least if win we can take their hamsters...
		.log
			You are attacked by Pirates!
		.combat defaultPirates 1

.card heisenbergHamsters
	Suddenly and unexpectdly you drop out of hyperspace.  Your engineer informs you that too many of the Heisenberg Hamsters have fluxed out of existence.  It may be days before they reappear in sufficient quantities.  Scanners detect an asteroid field in the distance that might assist in their recovery.
	.choice Investigate the asteroids
		We need those hamsters ASAP!
		.chance 0.2
			.show asteroidWorm
		.chance 0.2
			.fame +1
			.continue
				While basking in the dim radiation given off by the asteroids, you notice a strange metallic object floating among them.  Upon being scanned, it broadcasts the history of a long dead civilization.  By the time you recover enough hamster to jump to hyperspace, you have filled your logs with interesting archaeological data.  When you upload the info to the Galacti-Webs, you become an instant minor celebrity.
		.else
			.continue
				While basking in the dim radiation given off by the asteroids, you quickly recover enough hamster to make the jump to hyperspace.
	.choice Turn on the distress beacon
		and pray whoever arrives is friendly.
		.chance 0.6
			.show distressJollyRoger
		.else
			.continue
				Luckily, some passing squirrelians detect your signal and offer to share some of their hamsters out of pure goodwill.  After thanking them profusely you're on your way again.

.card invadersShot
	A few minutes later and you've mopped up the last of them.  It may be a while before you clean up all the mess...  There is a slight hiss though, as if a few stray shots might have weakened the hull.
	.condition false
	.choice We better fix that
		before it becomes a problem.
		.hull -1
		.glory +1
		.continue
			With the hull patched you continue on your way.

.card invaders
	As you release the hatch a swarm of intelligent bees flies into your ship!  Amid the stings you can make out a modulation in the buzz, "You can't stop us! This ship is ours!"  They seem to be heading for the bridge!
	.condition false
	.choice Fight them!
		Stingers are no match for lazers!
		.show invadersShot
	.choice Open the doorways to the bridge
		gather the crew in a sealed room, then vent the atmosphere.
		.chance 0.6
			.continue
				You hears the airlocks hiss but can see the bees clinging on tightly.  As the pressure drops they begin to pop in hundreds of tiny little bee-splosions!  Sadly, with no air to transmit sound, there is nothing to hear.
		.else
			.fortune -20
			.continue
				To your horror, the bees seem to be equipped with tiny life support systems!  They quickly pillage or destroy anything of value and leave back into their ship.  By the time you have repressurized the ship there is no trail.

.card aBoyAndHisDog
	You recover a small boy with some manner of dog-like being.  The dog claims to be a Leikonid, and says it was captured on the same primitive planet in the system that built this ship.  He claims they have no FTL capability and intentionally aimed the ship with him and boy on board to "appease the sun god".  The boy says nothing.  
	.condition false
	.choice Take them back to the planet.
		The dog is suspicious, better the boy be with his people.
		.fame +1
		.continue
			You return them home and wish them luck.
	.choice Take them to next nearest civilized planet.
		They're clearly victims of that barbaric planet.  It's the least we can do.
		.fame +2
		.fortune +1
		.continue
			At the next station the Leikonid is very grateful for his freedom.  He transfers a sum of money into your account in gratitude.  He also sings praises of your heroic rescue to all he meets.   A few days later on the Galacti-Webs you hear rumor of a holo-movie in the works...
		
.card savedTheSacrifice
	You are able to tow the ship safely away from the sun, but are unable to contact them over any comm channels.  They're engines haven't fired and they've taken no actions since you first saw them.  However, there do appear to be two distinct life-forms on board.
	.condition false
	.choice Attempt to dock and see if they are OK
		They may still be under the effects of whatever caused them to drift into the sun to begin with.
		.chance 0.4
			.show invaders
		.else
			.show aBoyAndHisDog
	.choice Leave them be
		We don't know if they're hostile.
		.fame +1
		.continue
			Word of your heroics and wisdom spreads among the crew.

.card burnedByTheSun
	Just as you get in range for tow cables the sun flares up and engulfs you both in plasma!
	.condition false
	.choice Shields up!
		Continue
		.hull -3
		.continue
			You weather the blast but there is no sign of the other ship.  Strangely, the sun is much calmer after the incident.

.card volcanoGod
	You land in a system with an unusual star prone to extended periods of flare activity.  Preliminary scans indicate the sun will soon enter an even more unstable phase than usual.  While scanning, you also detect a rather primitive ship travelling at sublight speeds directly toward the sun!  You suspect he may already be too deep in the gravity well to escape under his own power.
	.choice Swoop in and tow the ship to safety!
		Before it gets incinerated!
		.chance 0.4
			.show savedTheSacrifice
		.else
			.show burnedByTheSun
	.choice Shields up and back away
		This thing could blow any moment, and who knows what that fellow is doing about it.
		.continue
			Just as you give the order the sun begins bulge and distort, casting a huge coronal mass!  Your shields absorb most of the impact, but a few sensors are fried.  By the time you get them back online the other ship is gone.

.card unstableFluxonium
	At first, mining proceeds perfectly.  As you and your crew being to discuss what you're going to do with your newfound fortune a warning beep on the mining console sounds.  Before you have time to react, the lasers ignite a pocket of unstable fluxonium in a chain reaction!  When the dust has settled, there is no more fluxed left to mine and your hull looks a bit worse for the wear.
	.condition false
	.choice Uh oh
		Damage Report!
		.hull -2
		.fortune +1
		.continue

.card claimJumped
	Of course, the claim owners arrive just as you finish loading the last of the fluxonium.  They demand you jettison it immediately or they will open fire!
	.condition false
	.choice Surrender the goods
		Aww shucks
		.fortune -5
		.continue
			They warn you that they'll be filing a complaint to the Galactic Mining Association and will have your mining license revoked!  Too bad you don't actually have a mining license...
	.choice Open fire!
		You'll have to take it from my cold, dead hands.
		.combat defaultPirates 0

.card claimJump
	As you arrive onsite you discover much of fluxonium has already been mined.  As you begin to gather what is left, you detect a faint beacon.  It appears these mineral rights have already been claimed!
	.condition false
	.choice Who cares?
		If fluxonium is mined in space, and nobody is around to report it, who's to say I did it...
		.chance 0.6
			.fortune +5
			.show claimJumped
	.choice Awww
		Mineral rights are to be respected.
		.continue

.card allThatGlitters
	Scanners indicate a large deposit of fluxonium in a nearby asteroid field.  A single cargo unit would be worth +5 fortune!!
	.choice Fire up the mining lasers!
		We're going to be rich!
		.chance 0.6
			.show unstableFluxonium
		.chance 0.6
			.continue
				The bright and shiny rock that looks like polished fluxonium turns out to be worthless platinum.
		.chance 0.2
			.fortune +5
			.continue
				A few hours of mining later and you've filled your hold with fluxonium.  We're rich!
		.else
			.show claimJump
	.choice Keep on keeping on
		Unclaimed mineral resources are never, actually, unclaimed...

.card celebutantInDisguise
	As you stop at a fueling station to refresh your Hamsters, a young man asks of your travels and the life of a Star Captain.  As you regale him with your stories, a few of which are based in reality, you can tell he's smitten with space life.  A few drinks later and he asks if you'll take him onboard for a few stops.  He promises not to eat too much.
	.condition !ship.flags.eddykenn
	.choice Welcome Aboard
		Who wouldn't want to see that stars?
		.flag.set eddykenn true
		.continue
	.choice We don't take on freeloaders
		I've got enough of those on my crew as is.
		.chance 0.6
			.flag.set eddykenn true
			.continue
				With nothing to offer you decide its not worth whatever trouble this guy is.
		.else
			.continue
				With nothing to offer you decide its not worth whatever trouble this guy is.