Add a shopkeeper with goods
make_shopCreate a complete RPG Maker MZ shop event with keeper graphic, greeting, goods, and farewell; add a condition page for quest-gated shops.
Instructions
One call for a working shop: the keeper's graphic, a greeting, the goods, and a line for after the window closes. MZ stores a shop as command 302 carrying the first good in its own parameters plus one 605 line per further good, each [kind, id, priceType, price, purchaseOnly] with kind 0 item / 1 weapon / 2 armor and priceType 0 meaning the row's own price. MZ has no purchase branch, so the commands after the goods run when the window closes whatever the player did — this says so in the reply instead of inventing a hook that does not exist. Every good is checked first: the row must exist and must not be a blank slot, and a good with no price whose item price is 0 is reported, because that is a free item. when adds the page that replaces the locked one, which is how a shop that opens after a quest is built.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| name | No | ||
| when | No | The shop opens only once this holds; the keeper still greets you before that | |
| goods | Yes | What is on the counter | |
| image | No | Default Actor2 index 1 facing up, which is the merchant sheet MZ ships | |
| mapId | Yes | ||
| denied | No | What the keeper says while the shop is still closed | |
| replace | No | ||
| speaker | No | ||
| faceName | No | ||
| farewell | No | Said once the shop window closes | |
| greeting | No | A line, a list of lines, or {lines, speaker?, faceName?, faceIndex?, background?, positionType?} |