How to make an item only usable by certain commands other than "items"?

Hi everyone!

So for a little project I wanted to work on for fun, I wanted to have a character specialize in items such as explosives. But I don't want the other characters to have access to those items, so I made a command called "Stash" for the unique character. But I do not know how to make items only usuable by "Stash". Any suggestions?
You would need to:

1) Customize the code for the Item command list to not include the bombs
2) Make the custom command for the bombs, and make it's command list only show the bombs

Or using I think Yanfly's custom cost plugin, you can make skills that actually need and consume the items, then just make the items unusable so no one can "use" them aside from the character that has the skill.
Well, there are many ways to handle this but the simplest would be to make the bombs and such do nothing on their own (target none, use never) and to give that character skills that consume said items.

Like bomb toss: consumes a bomb to deal some arbitrary damage to all enemies.
Well, there are many ways to handle this but the simplest would be to make the bombs and such do nothing on their own (target none, use never) and to give that character skills that consume said items.

Like bomb toss: consumes a bomb to deal some arbitrary damage to all enemies.
I tried the method that you said, and it worked! It really worked! The only thing that concerns me is that it doesn't display how many bombs are displayed in the inventory in battle, but everything checks out. They get consumed and only consumed by the skill I made with it. Thank you so much! Now I can make interesting character classes with this!
I tried the method that you said, and it worked! It really worked! The only thing that concerns me is that it doesn't display how many bombs are displayed in the inventory in battle, but everything checks out. They get consumed and only consumed by the skill I made with it. Thank you so much! Now I can make interesting character classes with this!
Shoot. After I was testing it more, it seems the attack will still work without bombs in the inventory. Is there a way to change this in things like the common events?
Well, I don't know if you want to use plugins, but if you do this one will do exactly what you need:

http://www.yanfly.moe/wiki/Skill_Cost_Items_(YEP)

If you don't want to use plugins, I can't really think of a way to grey out the skill when you don't have bombs... all I can think of is the skill dealing way less damage or something like that. Also in the subject of not using skills, you could make a variable equal to your bomb count on the beginning of battle, then every time you use the skill substract one. This way you could write something along the way of "You have \v[x] Bombs in your inventory" in the skill description.
If all you did is to make the skill reduce the bombs via common events, it will indeed still work without the bombs, the common event runs only after the skill has been succesfully used..

If you want the effects to only happen if there are bombs, you need to make the effects inside the common event too, or in the damage formula box if you know a bit of coding. That way you can check first if the bombs exist. If there are no bombs, make it do nothing.

Or if you want the skill to not even be selectable without bombs, try the plugin above.
Thank you guys! With the plugin, everything is good. You guys are awesome!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-an-item-only-usable-by-certain-commands-other-than-items.114491/