Hi everyone
I want to make an item that used only once. For example, a potion X, when Eric used the first time, Eric will get 5000 exp, when used 2nd time, there's a message saying that "You can't drink this potion anymore". I've tried to use variable but it seems no success. Plz teach me more, thank you so much
Normally you would just set the item to Consumable in the item tab, so it would disappear after it was used.
If you want to keep it in inventory, you would have to attach a common event to the item (through its effects), and make the common event check to see if a switch is on. If it's not, give Eric 5000 EXP and turn the switch on. If it's on, show the message. This causes a problem in that if you have more than one party member, you would need to figure out a way to tell who it was used on, so you can give EXP to the right person. Also, if one actor uses it, do you want another actor to be able to use it, but not the first one? If you do, you would have to have a switch for each actor, figure out who it was used on, and then check if the switch for that actor is on or off.
Another way is to have two duplicate items, both attached to different common events. They can only obtain the first item (the 'real' one). In its common event, you would give the 5000 EXP, remove the item from inventory, and add the duplicate item. On the duplicate item's common event, you would just show the message that it's been used.
Ah~ thank you so much Shaz, I got it. I didn't think of switch, ha ha ha