Familiar territory. Scene_Shop keeps the RPG Maker MZ API, so existing MZ knowledge, tutorials and plugin code apply. Reactor's additions are marked with descriptions below.
Quick Reference
Setup & Creation 11
| initialize() | Sets up a new instance. |
| prepare() | Prepare. |
| create() | Create. |
| createGoldWindow() | Creates the gold window. |
| createCommandWindow() | Creates the command window. |
| createDummyWindow() | Creates the dummy window. |
| createNumberWindow() | Creates the number window. |
| createStatusWindow() | Creates the status window. |
| createBuyWindow() | Creates the buy window. |
| createCategoryWindow() | Creates the category window. |
| createSellWindow() | Creates the sell window. |
Actions 3
| activateBuyWindow() | Activate buy window. |
| activateSellWindow() | Activate sell window. |
| endNumberInput() | Ends the number input. |
Events, Commands & Input 11
| commandWindowRect() | Runs the window rect command. |
| commandBuy() | Runs the buy command. |
| commandSell() | Runs the sell command. |
| onBuyOk() | Called when buy ok happens. |
| onBuyCancel() | Called when buy cancel happens. |
| onCategoryOk() | Called when category ok happens. |
| onCategoryCancel() | Called when category cancel happens. |
| onSellOk() | Called when sell ok happens. |
| onSellCancel() | Called when sell cancel happens. |
| onNumberOk() | Called when number ok happens. |
| onNumberCancel() | Called when number cancel happens. |
Other 14
| goldWindowRect() | Gold window rect. |
| dummyWindowRect() | Dummy window rect. |
| numberWindowRect() | Number window rect. |
| statusWindowRect() | Status window rect. |
| buyWindowRect() | Buy window rect. |
| categoryWindowRect() | Category window rect. |
| sellWindowRect() | Sell window rect. |
| statusWidth() | Status width. |
| doBuy() | Do buy. |
| doSell() | Do sell. |
| money() | Money. |
| currencyUnit() | Currency unit. |
| buyingPrice() | Buying price. |
| sellingPrice() | Selling price. |
Setup & Creation
initialize
method sourceScene_Shop.prototype.initialize()
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
prepare
method sourceScene_Shop.prototype.prepare(goods, purchaseOnly)
Prepare. (Same as the RPG Maker MZ method of this name.)
create
method sourceScene_Shop.prototype.create()
Create. (Same as the RPG Maker MZ method of this name.)
createGoldWindow
method sourceScene_Shop.prototype.createGoldWindow()
Creates the gold window. (Same as the RPG Maker MZ method of this name.)
createCommandWindow
method sourceScene_Shop.prototype.createCommandWindow()
Creates the command window. (Same as the RPG Maker MZ method of this name.)
createDummyWindow
method sourceScene_Shop.prototype.createDummyWindow()
Creates the dummy window. (Same as the RPG Maker MZ method of this name.)
createNumberWindow
method sourceScene_Shop.prototype.createNumberWindow()
Creates the number window. (Same as the RPG Maker MZ method of this name.)
createStatusWindow
method sourceScene_Shop.prototype.createStatusWindow()
Creates the status window. (Same as the RPG Maker MZ method of this name.)
createBuyWindow
method sourceScene_Shop.prototype.createBuyWindow()
Creates the buy window. (Same as the RPG Maker MZ method of this name.)
createCategoryWindow
method sourceScene_Shop.prototype.createCategoryWindow()
Creates the category window. (Same as the RPG Maker MZ method of this name.)
createSellWindow
method sourceScene_Shop.prototype.createSellWindow()
Creates the sell window. (Same as the RPG Maker MZ method of this name.)
Getting Information
maxBuy
method sourceScene_Shop.prototype.maxBuy()
The maximum buy. (Same as the RPG Maker MZ method of this name.)
maxSell
method sourceScene_Shop.prototype.maxSell()
The maximum sell. (Same as the RPG Maker MZ method of this name.)
Actions
activateBuyWindow
method sourceScene_Shop.prototype.activateBuyWindow()
Activate buy window. (Same as the RPG Maker MZ method of this name.)
activateSellWindow
method sourceScene_Shop.prototype.activateSellWindow()
Activate sell window. (Same as the RPG Maker MZ method of this name.)
endNumberInput
method sourceScene_Shop.prototype.endNumberInput()
Ends the number input. (Same as the RPG Maker MZ method of this name.)
Events, Commands & Input
commandWindowRect
method sourceScene_Shop.prototype.commandWindowRect()
Runs the window rect command. (Same as the RPG Maker MZ method of this name.)
commandBuy
method sourceScene_Shop.prototype.commandBuy()
Runs the buy command. (Same as the RPG Maker MZ method of this name.)
commandSell
method sourceScene_Shop.prototype.commandSell()
Runs the sell command. (Same as the RPG Maker MZ method of this name.)
onBuyOk
method sourceScene_Shop.prototype.onBuyOk()
Called when buy ok happens. (Same as the RPG Maker MZ method of this name.)
onBuyCancel
method sourceScene_Shop.prototype.onBuyCancel()
Called when buy cancel happens. (Same as the RPG Maker MZ method of this name.)
onCategoryOk
method sourceScene_Shop.prototype.onCategoryOk()
Called when category ok happens. (Same as the RPG Maker MZ method of this name.)
onCategoryCancel
method sourceScene_Shop.prototype.onCategoryCancel()
Called when category cancel happens. (Same as the RPG Maker MZ method of this name.)
onSellOk
method sourceScene_Shop.prototype.onSellOk()
Called when sell ok happens. (Same as the RPG Maker MZ method of this name.)
onSellCancel
method sourceScene_Shop.prototype.onSellCancel()
Called when sell cancel happens. (Same as the RPG Maker MZ method of this name.)
onNumberOk
method sourceScene_Shop.prototype.onNumberOk()
Called when number ok happens. (Same as the RPG Maker MZ method of this name.)
onNumberCancel
method sourceScene_Shop.prototype.onNumberCancel()
Called when number cancel happens. (Same as the RPG Maker MZ method of this name.)
Other
goldWindowRect
method sourceScene_Shop.prototype.goldWindowRect()
Gold window rect. (Same as the RPG Maker MZ method of this name.)
dummyWindowRect
method sourceScene_Shop.prototype.dummyWindowRect()
Dummy window rect. (Same as the RPG Maker MZ method of this name.)
numberWindowRect
method sourceScene_Shop.prototype.numberWindowRect()
Number window rect. (Same as the RPG Maker MZ method of this name.)
statusWindowRect
method sourceScene_Shop.prototype.statusWindowRect()
Status window rect. (Same as the RPG Maker MZ method of this name.)
buyWindowRect
method sourceScene_Shop.prototype.buyWindowRect()
Buy window rect. (Same as the RPG Maker MZ method of this name.)
categoryWindowRect
method sourceScene_Shop.prototype.categoryWindowRect()
Category window rect. (Same as the RPG Maker MZ method of this name.)
sellWindowRect
method sourceScene_Shop.prototype.sellWindowRect()
Sell window rect. (Same as the RPG Maker MZ method of this name.)
statusWidth
method sourceScene_Shop.prototype.statusWidth()
Status width. (Same as the RPG Maker MZ method of this name.)
doBuy
method sourceScene_Shop.prototype.doBuy(number)
Do buy. (Same as the RPG Maker MZ method of this name.)
doSell
method sourceScene_Shop.prototype.doSell(number)
Do sell. (Same as the RPG Maker MZ method of this name.)
money
method sourceScene_Shop.prototype.money()
Money. (Same as the RPG Maker MZ method of this name.)
currencyUnit
method sourceScene_Shop.prototype.currencyUnit()
Currency unit. (Same as the RPG Maker MZ method of this name.)
buyingPrice
method sourceScene_Shop.prototype.buyingPrice()
Buying price. (Same as the RPG Maker MZ method of this name.)
sellingPrice
method sourceScene_Shop.prototype.sellingPrice()
Selling price. (Same as the RPG Maker MZ method of this name.)