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
Nov 8, 2015
-------------------------------------------------------------------------
ライセンス表記
not shown depending on certain conditions? For example, if a weaponsmith
- Free for use in non-commercial projects with credits
- Contact me for commercial use