Shop Stock
Shop Stock-Tsukihime
This script adds a "stock" count to each shop good.
Once a shop good's stock reaches 0, it will no longer be available in the shop.
http://dl.dropbox.com/u/23043573/RPG%20Maker/Screenshot/shopStock4.jpg
The stock is set up for individual shops. One shop's stock does not affect another shop's stock.
The stock is only setup once: if you leave and come back, the stock remains the same
Download
Script: http://db.tt/Ka1gnmd0
Required: Shop Manager
Compatible with Yanfly's Ace Shop Options, as shown above
Usage
http://dl.dropbox.com/u/23043573/RPG%20Maker/Screenshot/shopStock0.jpg
In your event, before the Shop Processing command, use the following script call. If you don't set a stock count, then it is assumed to be unlimited.
@shop_stock = amountUsing the Shop Manager, the shop stocks are setup for each individual shop
http://dl.dropbox.com/u/23043573/RPG%20Maker/Screenshot/shopStock1.jpg
So let's say the player bought 6 potions. The picture doesn't show it, but the player actually left the shop, went to explore a dungeon, and then came back to buy more potions. Unfortunately, we have limited potions in stock...
http://dl.dropbox.com/u/23043573/RPG%20Maker/Screenshot/shopStock2.jpg
And once you buy up all the potions, that's it.
http://dl.dropbox.com/u/23043573/RPG%20Maker/Screenshot/shopStock3.jpg
Notes
Visually, it is unappealing. You will likely have to customize how it looks to suit your game.
本贴来自国际rpgmaker官方论坛作者:Tsukihime处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/shop-stock.9595/
页:
[1]