- Joined
- Jan 3, 2015
- Messages
- 41
- Reaction score
- 6
- First Language
- English
- Primarily Uses
I want to create an item that can be used several times. Is there a script that does this?
Darn. I forgot to mention without a script, since I have so many. Testing this script out on a new project worked well, though.A short google search pointed me to this: https://grimoirecastle.wordpress.com/rgss3-scripts/gameplay-scripts/item-charges/
Ah, variables! I should of thought of that myself. Thanks!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.
I guess the OP wants item to be used more than once before it's gone.Can't you just set it to not consume?