MV Item Requirements Sealing?

Yanfly's Item Requirements plugin will hide an item from your item list if you do not meet the requirement of using it, however I think it'd be a lot more useful if the item simply got sealed instead so you could still see it and read it's requirements in battle.
In this case I'm specifically trying to use the State requirements for my items.

Is there a simple way to change this somewhere in the the plugin code? I can't seem to find the lines that specifically hides the item if unusable. If not, does anyone know if there are other ways/plugins to give items requirements?
I can't seem to find the lines that specifically hides the item if unusable.
There aren't. That's how RPG Maker works by default - if for some reason an item isn't usable by the current actor, it's not included in the list.

By default, that's the Occasion the item's set to - is it visible in battle, the menu, both, or neither. These requirements add onto that.

So, what you could do is this...go into the Item Requirements plugin, go to line 362 and put /* at the beginning. Then go to line 369 and put */ at the end. Now that code is commented out, it won't run, and you will see all items so long as the Occasion is set correctly.

Then make a new line and put this:

Code:
Window_BattleItem.prototype.isEnabled = function(item) {
    return $gameParty.canUse(item) && ItemManager.meetsUsableItemRequirements(item, BattleManager.actor());
};

That should cause items listed in battle to be greyed out if they don't meet the requirements from Yanfly's plugin.
There aren't. That's how RPG Maker works by default - if for some reason an item isn't usable by the current actor, it's not included in the list.

By default, that's the Occasion the item's set to - is it visible in battle, the menu, both, or neither. These requirements add onto that.

So, what you could do is this...go into the Item Requirements plugin, go to line 362 and put /* at the beginning. Then go to line 369 and put */ at the end. Now that code is commented out, it won't run, and you will see all items so long as the Occasion is set correctly.

Then make a new line and put this:

Code:
Window_BattleItem.prototype.isEnabled = function(item) {
    return $gameParty.canUse(item) && ItemManager.meetsUsableItemRequirements(item, BattleManager.actor());
};

That should cause items listed in battle to be greyed out if they don't meet the requirements from Yanfly's plugin.

That works beautifully it would seem! Thanks a bunch! 👍
To think it was that simple, almost makes me wonder why it wasn't an option in the plugin to begin with.

Original thread: https://forums.rpgmakerweb.com/threads/item-requirements-sealing.165225/