Ideas & systems
Shops
A shop is a shelf and two promises. You choose what stands on the shelf, what it costs, and what the keeper pays for what is brought.
What it is
A shop is a place's shelf of things the player can buy, plus the chance to sell things back. It has three parts.
- The shelf. The components the shop offers. Each has a count, or unlimited stock.
- Buy. Each item on the shelf has a Buy action with a price. See Buy.
- Sell. A Material, Gear or Powerup can have a Sell action that pays the player. See Sell.
Currency is never merchandise. It is what prices and payments are made of.
How it works
- The player opens the shop. In Vespera the shop is a menu button in the scene. Tapping it shows tabs Build, Buy and Sell.
- Buy lists the shelf. An entry with a count goes down with each sale and drops out at 0. An entry with unlimited stock never runs out and shows no count. The price shows when the player taps the entry.
- Sell lists what the player carries that can be sold. Selling takes the item from the player and pays the proceeds you set.
- Sold items join the shelf. A sold item is added to the place's shelf, unless the shelf already holds it with unlimited stock.
- Prices and payouts are separate. What an item costs to buy and what it pays to sell are set on two different actions, so a shop can charge more than it pays.
A shop can belong to one place, or to every place at once as the Global Shop. You stock it in Edit Mode, by dragging a component onto its panel in the dock. Make a shop walks through it.
In Vespera
In Vespera: Maren's Stall Play it
Maren's Stall in the Last Outpost is a shop of the place. Its shelf has six rows, all with unlimited stock: Recipe: Hearth Loaf, Wheat Sheaf, Timber, Scrap Iron, Ember Tonic and Seed Packets. They cost 5, 3, 3, 4, 6 and 8 Vesper Marks.
The Stall also takes things back. A Wheat Sheaf pays 1 Vesper Mark and a Hearth Loaf pays 2. Wheat costs 3 to buy and pays 1 to sell, so the Stall makes its living.
The Trader is a calling that adds 25 percent to Marks. A player who sold 3 Wheat Sheaf was paid 1 Mark each, because 1.25 rounds back to 1. A quest reward of 15 Marks paid 19. See Buffs and modifiers.
Good to know
- Unlimited stock is a safety valve. Basics such as wheat and timber never run out, so a player is never stuck.
- A sold-out entry stays in the dock. In Edit Mode it shows dimmed with "x0" so you can restock it. Players do not see it.
- No shelf, no sale. An item with a Buy that no shop stocks cannot be bought.
- Shelf stock is not carried stock. A player cannot craft with what a shop holds until they buy it.
Under the hood
- A shelf item is a starting item with a shop mark. It belongs to a place, or to the Global Shop.
- When a player sells an item, it goes onto the shelf. The Global Shop wins over a place's shelf if both stock that item. If the shelf entry has unlimited stock, nothing is added, but the player is still paid.
- Items on a shelf are not the player's. They cannot be used as ingredients or inputs until bought.
- Only a Material, Gear, Powerup or Recipe can stand on a shelf. This is checked by the builder, not by the game engine.
- A shelf row is never reused as ground stock, and ground stock is never turned into a shelf row.