Hide/Show Shop Items (YEP)

From Yanfly.moe Wiki
Jump to navigation Jump to search


System

This is a plugin created for RPG Maker MV.

For help on how to install plugins, click here.

For help on how to update plugins, click here.

Got errors with your RPG Maker MV plugin? Click here.

Download

Required Plugins

The following plugins are required in order to use this plugin.

Place the following plugins above this plugin located in the Plugin Manager.

Yanfly Engine Plugins

This plugin is a part of the Yanfly Engine Plugins library.

Click here if you want to help support Team Yanfly on Patreon.

Introduction

This plugin requires YEP_ShopMenuCore. Make sure this plugin is located
under YEP_ShopMenuCore in the plugin list.

Making nested Conditional Branches of entire shop events to determine if an
item will appear or not appear in a shop can be messy in RPG Maker MV. This
plugin will let you determine if shop items will appear or not through the
usage of switches in a variety of ways, from a single switching being either
on or off to a plethora of switches needing to be on or off. Advanced users
can also use JavaScript to control whether or not certain items appear, too.

Notetags

NotetagsMV.png

RPG Maker MV's editor is unable to allow for custom traits/properties that a game dev may wish to associate with a database object, event, map, etc. Notetags are used to work around such limitations by allowing the game dev to tag certain traits/properties using specific Notetags declared by the related plugin.

Here is a list of Notetag(s) that you may use.

Place the following notetags to make their visibility as a shop item appear
or not when the shop scene opens up.

Item, Weapon, and Armor Notetags

  <Shop Hide if Switch On: x>
  <Shop Hide if Switch Off: x>
  - This will determine if a shop will be hidden if the specific switch 'x'
  is either on/off (depending on the notetag you're using). Insert multiples
  of these notetags if you want to use multiple switches to determine the
  item's visibility.

  <Shop Hide if Any Switch On: x>
  <Shop Hide if Any Switch On: x, x, x>
  <Shop Hide if Any Switch Off: x>
  <Shop Hide if Any Switch Off: x, x, x>
  - If any of the switches 'x' are on/off (depending on the notetag you're
  using), then the shop will hide the item. Insert multiples of these
  notetags if you want to use multiple switch batches to determine the
  item's visibility.

  <Shop Hide if All Switches On: x>
  <Shop Hide if All Switches On: x, x, x>
  <Shop Hide if All Switches Off: x>
  <Shop Hide if All Switches Off: x, x, x>
  - If all of the switches 'x' are on/off (depending on the notetag you're
  using), then the shop will hide the item. Insert multiples of these
  notetags if you want to use multiple switch batches to determine the
  item's visibility.

Changelog

Version 1.00:
- Finished Plugin!