Log inGet started
World

Market Square: Currencies, Wallets and Shops Kit

README.md

currency (economyKit contract)

One currency a game's players can hold: gold, gems, a premium token, anything. Add a .data asset bound to economyKit.currency anywhere in a world and economyKit finds it by itself; no code changes.

FieldMeaning
idThe name code uses ("coins"). Letters, digits, _ and -.
nameKeyTranslation key for the name players read (economy.currency_coins, or one in the game's own locales/<lang>/<ns>.json).
nameFallback name when no nameKey is given or the key has no translation.
iconOne of the twelve icon styles: coins, gems, tokens, scrap, souls, energy, tickets, banknotes, stars, wood, stone, food.
colorAccent colour for counters and popups.
startWhat a new player's wallet starts with.
maxThe most one wallet can hold; anything above is refused.
persistKept between sessions (true) or reset each session (false, e.g. per-match cash).
orderSort order in wallet displays (lower first).