Skip to content

Vendors ​

The Vendors editor (Items > Vendors).
The Vendors editor (Items > Vendors).

A vendor is a shop. It has a list of items it stocks, a purse of its own, and rules for what it pays for the items of the player and what it charges for its own. A vendor interactable (or an NPC that has one) opens the shop window.

Fields ​

FieldWhat it doesDefault
Vendor nameThe name in the shop window
FactionThe faction of the vendor. Kept for later (reputation prices); nothing reads it yetnone
Restock intervalHours between restocks, on the clock below. 0 = the vendor never restocks24
Restock clockWhich clock counts the wait: Game time, Play time or Real time (UTC)Game time

Buying from the player ​

FieldWhat it doesDefault
Vendor buys itemsOff: the vendor sells onlyon
Buy value multiplierThe share of an item's vendor value the vendor pays. 0.5 = half0.5

Selling to the player ​

FieldWhat it doesDefault
Sell value multiplierA multiplier on the price of everything the vendor sells. 1.5 = 50 % dearer1

Repairs ​

A vendor can repair the equipment the player wears (only when the project uses durability). The vendor window shows a Repair all button with the price.

FieldWhat it doesDefault
Repairs equipmentOff: this vendor does not repairon
Repair cost multiplierWhat this vendor charges compared with the standard price (the vendor value of the item × the share that is missing × the project's repair cost multiplier). 0.5 = half, 2 = double1

Currency ​

FieldWhat it does
Preferred currencyThe currency the vendor pays in, and charges in unless an item says otherwise
Vendor start amountHow much of it the vendor starts with. -1 = unlimited. A vendor that runs out of money stops buying (it pays nothing for an item it cannot afford)
Accepts multiple currencies, Add CurrencyMore currencies the vendor holds, each with a starting amount

Stock items ​

Add Stock Item adds a line to the shop. Each line is one item:

FieldWhat it doesDefault
ItemWhat is for sale
Start quantityHow many the shop has at first. -1 = unlimited: the shop never runs out and never restocks it1
Max quantityThe most the shop will hold when it restocks. 0 = no limit10
Can restockWhether this item comes back over timeon
Restock quantityHow many come back at every restock1
Custom restock hoursA restock interval for this item. 0 = the vendor's0
Currency overrideAnother currency for this itemthe vendor's
Value overrideA price base for this item instead of its vendor value. 0 = the item's own0
Item levelFor an item that is generated (it rolls or scales): the item level of what is bought. 0 = the level of the buyer. See Generated items0
Override vendor value weight, Value weightA further multiplier for this item, on top of the vendor's sell value multiplier (2 doubles it)off, 1
Item price modifierA last markup or discount for this item only: 1.5 = 50 % dearer1

Generated items ​

A stock line can be an item that rolls or scales with its item level. It is made when it is bought, at the Item level of the line (the buyer's level when it says 0), each one with its own roll. The shop shows the item as it is written; the player sees what they got in the bag. The price comes from the item's value (a generated item's value is multiplied by its quality's vendor value multiplier and by how much it scales).

Prices ​

What the player pays for a stocked item:

text
price = value x sell value multiplier x value weight x item price modifier

where value is the Value override of the line, else the Vendor value of the item. The price is rounded down, and an item with a value always costs at least 1.

What the vendor pays for an item of the player:

text
payment = vendor value of the item x buy value multiplier

also rounded down and at least 1. The vendor pays nothing for an item with no value, for a key item, when it does not buy, or when it cannot afford it.

Buying and selling ​

  • Buying is all or nothing. The stock, the price and the room for the whole quantity (more than one stack takes several slots) are checked first. A purchase that does not work takes no money and gives nothing.
  • What the player sells is taken by the vendor, which pays from its purse, but it does not go into its stock: the shop sells what its lines say. A sale that would take the player over the maximum of the currency is refused.
  • Stock and the vendor's purse are saved.

Restocking ​

Every stocked item waits its own interval (its Custom restock hours, else the vendor's). When the time is due, the line gets Restock quantity more, up to its Max quantity; the wait starts again whether or not there was room for more. The clock is the one you chose (by default the total game time), so it does not wrap with the day. Items with unlimited stock never restock.

See also ​