Quantcast
Channel: RGSS3 Scripts (RMVX Ace) Latest Topics
Viewing all articles
Browse latest Browse all 416

Shop Stock

$
0
0

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.

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

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[id] = amount
Using the Shop Manager, the shop stocks are setup for each individual shop

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...

shopStock2.jpg

And once you buy up all the potions, that's it.

shopStock3.jpg

Notes

Visually, it is unappealing. You will likely have to customize how it looks to suit your game.


Viewing all articles
Browse latest Browse all 416

Latest Images

Trending Articles



Latest Images