Shop

Buy or sell items from a shop.

Syntax

talk-to NPC (can be any word)
untalk OR close-dialog
sell CONSTRAINED_ITEM_LIST
buy FINITE_ITEM_LIST
:same-dialog

Examples

talk-to beedle
sell all shroom all pepper
:same-dialog buy 5 arrows
close-dialog

Buying

In most shops in the game, you buy items by talking to the item in the overworld, which keeps you in the overworld screen after purchasing the item. The exceptions are Beedle and travelling merchant, where there is a dedicated screen for choosing items to buy.

The buy action defaults to buying in the Overworld. If it matters in the setup, you can force buying from a dialog by entering the Shop Buying screen manually with talk-to NPC, and untalk or close-dialog afterwards to return to the Overworld screen.

To buy after selling from the same NPC dialog, you can use the :same-dialog annotation just before the buy command. This will switch from Shop Selling screen to Shop Buying

Selling

Unlike buying, selling in this game only has one screen, where you select items to sell. The screen is very similar to the normal inventory screen, but:

  • Only Armor, Material, and Food tabs are displayed
  • Items are displayed even when mCount is 0

Items can only be selected to sell from those tabs that are displayed, and you cannot sell items with the CannotSell tag (for example, Zora Armor)

Detail

  • buy requires Overworld or Shop Buying screen
    • It will automatically switch to Overworld by default. The :same-dialog annotation can be used to switch to Shop Buying from Shop Selling
  • sell requires Shop Selling screen.
  • Buying and Selling screens can be automatically switched between by the simulator even if it’s manually switched from Overworld