An open library of RPG Maker MV plugins, powered by the community.

PGMV - The Community-Driven Plugin Library for RPG Maker MV

MV plugins

HIME Hidden Shop Goods - HIME_HiddenShopGoods.js

Plugin desc : Easily hide shop goods when they shouldn't be seen!

License :
・Copyright: Retained
・Commercial Use: Allowed
・Modification: Allowed
・Redistribution: Allowed
・Details: See Download Page / In-plugin documentation

Author : Hime

Website : https://himeworks.com/

Desc page : https://raw.githubusercontent.com/munokura/HIME-MV-plugins-jp/master/HIME_HiddenShopGoods.js

Download Page : https://raw.githubusercontent.com/munokura/HIME-MV-plugins-jp/master/HIME_HiddenShopGoods.js

File name : HIME_HiddenShopGoods.js

Help of plugin :

@title Hidden Shop Goods
@author Hime
@date Nov 8, 2015
@plugindesc Easily hide shop goods when they shouldn't be seen!
@help 
== Description ==

In RPG Maker MV, when you create shops, you start by specifying a list
of items that will be sold, along with their prices. The engine then
handles the rest for you so that when the player talks to the shopkeeper,
the items you've set up will be displayed.

However, what happens if you want to make it so that certain items are
not shown depending on certain conditions? For example, if a weaponsmith
offers different types of weapons, you might want to hide certain weapon
types if no one in the party can use it. If your actor can only use
swords, you might want to hide all the bows and spears.

This plugin allows you to hide shop goods quickly and easily using
a simple command. Just create your event the way you normally do and
hide shop goods!

== Terms of Use ==

- Free for use in non-commercial projects with credits
- Contact me for commercial use

== Change Log ==

Nov 8, 2015 -  initial release

== Usage ==

Shop goods are numbered based on the order they appear in the list.
The first good is assigned number 1, the second is assigned number 2,
and so on.

There are two ways to hide goods

1. Using a plugin command

Create a plugin command and write

  hide_good shopGoodNumber
  
Where the `shopGoodNumber` is the number of the shop good that you would
like to hide.

For example, if you want to hide the third shop good on the list, you
can write

  hide_good 3

It is up to you to create conditional branches to determine when a shop
good will be hidden.

2. Using a script call

Create a script call and write

  hide_good(shopGoodNumber, condition)
  
Where the `shopGoodNumber` is the number of the shop good that you would
like to hide.

The condition is any valid javascript expression that evaluates to
true or false. If the condition is true, then the shop good will be
hidden.

For example, if you want to hide the fourth shop good if the party 
leader's level is less than 10, you can make the script call

  hide_good(4, "$gameParty.leader().level < 10")

@command hide_good
@desc Hides the specified product.

@arg goodsNumber
@desc Enter the serial number of the item you want to hide at the shop.
@default 1

スポンサードリンク

-MV plugins

Copyright© PGMV - The Community-Driven Plugin Library for RPG Maker MV , 2026 All Rights Reserved.