[MZ] Bazaar Core: finite stock and derived prices under your existing shop

every shop plugin i’ve tried for mz just decides how the shop looks or when it opens. it’s so annoying because none of them make a price or a stock level respond to anything the player did. the merchant has infinite iron at a fixed price forever and the world never notices.

bazaar core is the layer underneath. keep whatever shop ui you already use. this decides what things are worth and how many exist.

stock is finite. buy twenty iron ore and there are twenty fewer. buy the lot and the shelf is empty and it stays empty until an authored restock curve brings it back over days. clearing out a small village has a consequence the player can feel.

prices are derived from what’s on the shelf against what the market wants. nothing writes a number into a variable and hopes it stays true. a stored price drifts the moment two systems touch it. a derived price has nothing to drift.

the same good costs different money in different places. salt fish is cheap in the fishing town and dear inland. that falls out of local stock and local demand rather than being hand authored per town. trade routes then become a real mechanic instead of flavour text.

on compatibility because that’s the question i’d ask first. it extends fourteen core methods by saved original prototype extension and replaces none of them so it coexists with the large suites that patch the same seams. tested in the real engine with the stock scripts unmodified.

it’s pay what you want with a zero minimum.

for the record the code and the store art are ai generated. ask me anything about how the pricing model works and i’ll give you a straight answer.