Item only able to use once per battle

Hey fellow game makers, so I'm trying to make an nonconsumable item that can only be used in the battle screen but I want it only to be used once per battle. So far I have been unable to think how to even begin to tackle this. I would be grateful for any suggestions.
in the item's effect list, add an invisible state to the user sealing the usage of that item.
set the state to be removed after battle.
I think its not the best solution. But you can do this:
Add only one item to your inventory.
So, in battle the player use it one time and then he is gone.
After the battle you can give to the player that item again.
Also, you can check if the player still have the item. If he have the item, means the player not use that in battle. If not, you gibe the item.
In short, make a common event that calls for the battle.
If player win - check of he has the item. If yes, do nothing.
If not has the item, give him the item.
add an invisible state to the user sealing the usage of that item.
Wouldn't that still allow someone else to use it?

@GreyWolfVino did you only want it usable once per battle, regardless of who uses it, or once per person per battle?
Wouldn't that still allow someone else to use it?

@GreyWolfVino did you only want it usable once per battle, regardless of who uses it, or once per person per battle?
I want it to be once per battle regardless of who is using it.
I feel the best way to do this is to create two versions of the item: one that is treated like a normal item in the player's inventory (but has its Occasion set to 'Never'), and a second that IS consumable and can be used in battle (Occasion set to 'Battle only'). I recommend putting them next to each other in the database (not necessary, but it will ensure that they appear in the same place on menus).

At the beginning of combat (or right before combat begins), if the player is holding the first item, set a reserved Switch (calling it Switch #1) to ON and give them a single instance of the second item, and also take the first item away. This can be done by having a single Common Event which handles the processing - simply add a Troop event to each troop which runs on Turn 0 and calls the common event. The player will then be able to use the item once during combat.

At the end of combat**, take away the second item if the player is still holding it (i.e. didn't use it during combat), and check Switch #1 to see whether it's ON (in other words, whether the player had the once-per-battle item before combat). If it is ON, give the player the first item. Otherwise, don't. Finally, if Switch #2 was used as a Switch Requirement (see below), turn it OFF at the end of this common event so that itwon't run again until after the next combat.

**(This is best done with plugins that allow a certain event to be run after every combat, but could also be set by setting a different Switch (calling it Switch #2) to ON in that first common event, and creating another Common Event whose Switch Requirement is Switch #2, which will cause this second common event to run as soon as combat ends.)

This sounds really complicated in writing, but it ends up being just a few switches and a pair of five-liner Common Events. Really not that bad.

The alternative is to create a plugin that restricts the number of uses of certain items to one per battle, probably using the methods that check whether an item (or skill) is usable. That wouldn't be too hard to do, but it requires you to find someone who's capable of it.

in the item's effect list, add an invisible state to the user sealing the usage of that item.
set the state to be removed after battle.

While I like this approach for Skills, I believe it's impossible to seal the usage of an Item using standard State behavior.
with action sequences you can have the block out item state get added to whole pty even if the item is single target or enemy target.
or you can make common events for each item to apply the block out state.

good example of this style can be seen in cosmic star heroin,
which can easily be copied.

edit
i remember seeing another plugin which had you select battle items to bring.
you have 99 potions but each person only has 6 item slots to bring into battle kinda thing. but i know it wasn't 1 of yanfly's

Original thread: https://forums.rpgmakerweb.com/threads/item-only-able-to-use-once-per-battle.102983/