Player-Facing RPG Systems · Version 0.5
Shops
Author Shop definitions, open them through gameplay Actions, and test bounded buying and selling.
Shops are versioned definitions in the RPG Database. They reference authored Items and Currencies rather than storing unrelated copies of their data.
Authoring a Shop
- Create the Items and Currency used by the Shop.
- Open the Shops panel in RPG Database.
- Create a Shop with a stable ID and display name.
- Add its stock and pricing entries.
- Save the definition.
- Use the supported Shop-opening Action from a Dialogue or Interaction Action sequence.
Runtime transactions
The player-facing Shop screen supports buying and selling while respecting:
- Current Currency balance
- Currency minimum and maximum
- Item stack limits
- Item ownership
- Accepted Shop definitions and references
Buying and selling are atomic. A failed transaction does not remove Currency without adding the Item, or remove an Item without granting the sale value.
Use Conditions around the Shop-opening Action when a merchant should only be available at a certain point in the project.