Items with more than 1 use

I want to create an item that can be used several times. Is there a script that does this?
A short google search pointed me to this: https://grimoirecastle.wordpress.com/rgss3-scripts/gameplay-scripts/item-charges/
You probably don't need a script.  Depending on exactly what you want to do:

Set up your item so that all it does is call a common event.

In that common event, have a conditional with a variable switch set to e.g. 5 (if you want the item to be used 5 times).

When the common event is called, it checks what the variable is.  If it is greater than zero, it does whatever the action is that the item is meant to do and reduces the variable by one.

When the variable hits zero, you have some suitable message.
Darn. I forgot to mention without a script, since I have so many. Testing this script out on a new project worked well, though.

You probably don't need a script.  Depending on exactly what you want to do:

Set up your item so that all it does is call a common event.

In that common event, have a conditional with a variable switch set to e.g. 5 (if you want the item to be used 5 times).

When the common event is called, it checks what the variable is.  If it is greater than zero, it does whatever the action is that the item is meant to do and reduces the variable by one.

When the variable hits zero, you have some suitable message.
Ah, variables! I should of thought of that myself. Thanks!
Can't you just set it to not consume?
Can't you just set it to not consume?
I guess the OP wants item to be used more than once before it's gone.
Variables work best, because that will allow the player to also "recharge" their items, too!

Setting to not consume won't solve the problem, because he wants an eventual limit, I presume.
lol - setting it to "not consume" means it won't be consumed, so can be used again and again. You COULD just increment a variable in the common event, and if it reaches a certain number, reset the variable to 0 and remove 1 of the item from your inventory (assuming you could have several of them, so it would start counting again with the next item).

Original thread: https://forums.rpgmakerweb.com/threads/items-with-more-than-1-use.39273/