AI space trader game: haul cargo and play the markets
Updated
A space trader game with AI is a trading loop in a chat: buy goods cheap at one port, fly them where they're scarce, and deal with fuel, debt, pirates and inspectors on the way. Paste a price table and a cargo limit, roll your own dice for market swings and encounters, and keep the manifest yourself. UnsavedAI's Captain Amos Tregarth, a stingy salvage captain with a bank loan due, was made for it.
Try it now, free, no account neededStart a story with Captain Amos TregarthA cheapskate salvage captain who argues with his ship. Today's 60-year-old derelict has warm coffee.The map and the market
Four invented ports, each a short jump from its neighbours: Ferro Yard (a mining rock), Cassel Ring (a farm station), Ninefold (the capital) and the Drift (lawless). Paste the price table so it's on the page for the whole game:
| Goods | Ferro Yard | Cassel Ring | Ninefold | The Drift |
|---|---|---|---|---|
| Water ice | 4 | 12 | 10 | 15 |
| Grain | 14 | 3 | 9 | 18 |
| Machine parts | 6 | 15 | 11 | 20 |
| Medicine | 22 | 18 | 8 | 30 |
| Contraband | none | none | 45, risky | 12 |
Good routes jump out: grain from Cassel to the Drift, medicine from Ninefold to anywhere. Contraband bought at the Drift sells high at Ninefold, where the inspectors are.
Rules to paste
- My ship holds 20 units of cargo and 6 units of fuel. Each jump to a neighbouring port takes 2 days and 1 fuel. Fuel costs 5 a unit at any port.
- I start with 300 credits and a 2,000-credit loan due on day 30.
- Prices are the table. When I arrive at a port, I roll a d6 for each good I want to trade: 1 means 30% cheaper, 6 means 30% dearer, anything else is the table price.
- On every jump I roll 2d6 for an encounter: 2-4 pirates, 5-6 customs inspection, 7-9 nothing, 10-11 a distress call, 12 a derelict.
- Haggling: one d6 per deal. 4+ gets 10% off; a 1 offends the trader and the price rises 10%.
- End every reply with the manifest: Day, Credits, Fuel, Cargo (item and count), Loan due.
- Never fit more cargo than the hold allows, and never skip the loan deadline.
A run aboard the Marigold
Captain Amos Tregarth owns the Marigold, a patched-together salvage hauler, and owes the bank enough that it could take her. He haggles with everyone, including his own ship's mind, which has been arguing with him for twenty-two years. His story opens on a derelict freighter where the coffee pot is impossibly warm; once you're back aboard with whatever you salvaged, ask him to run the trade game from the next port.
You: (OOC: trade rules on. We bought 20 grain at Cassel for 3 each. Jumping to the Drift. Encounter roll: 4.) A reply that respects the roll: *The proximity alarm whoops. Two gunships slide out of the dark, painted with teeth.* The Marigold, dryly: "Pirates, Amos. I did recommend the long way." *Amos glares at the screen.* "Pay them a tenth of the grain, run for it, or fight. Running costs fuel we haven't got." Manifest: Day 4, Credits 240, Fuel 4, Cargo grain 20, Loan due day 30.
Notice that the AI offered choices and stopped. It didn't decide whether you escape. You choose, and if you run, a d6 of 4 or more gets you clear for an extra unit of fuel.
Where AI traders cheat
Without the table and the manifest, a trading game falls apart within a few jumps: prices drift to whatever makes a satisfying sale, every haggle succeeds, the hold quietly fits thirty units, and the loan is forgotten. The manifest line at the bottom of every reply catches all four. When a price you were quoted doesn't match the table and your roll, say so before you buy.
If the table changes, say a war raises medicine prices everywhere, re-paste the whole table so the new numbers sit near the bottom of the chat, where the model attends to them most. For a riskier version, Captain Juno Reyes captains the Wayward Fox, owes a crime syndicate, and has one job left to clear it: carry a sealed crate past a customs blockade. Treat it as a contraband run with the inspection roll doing the heavy lifting.
Questions people ask
Can I upgrade my ship?
Yes. Put upgrades on a price list, such as +10 hold for 800 or +2 fuel tanks for 400, and buy them like goods. Paying the loan early is an upgrade too.
How do I win?
Pay off the loan by day 30, then set your own target, such as owning a second ship. Or play until the dice ruin you, which is its own kind of story.
Does this need a sci-fi character?
It helps for flavour, but the Narrator can run it from a blank start. Ask for the four ports and keep the rules as pasted.
