Okay, I'm no noob when it comes to eventing, but this problem I'm having is definitely making me feel like one. So I created an item that adds a 'State' to the actor who uses it. The state is simple and is nothing more than a boost in the ATK Parameter for a few turns.
I have the item set to where it can't be consumed upon use, so that's not the problem. The problem is that I want the item to be used only one time each battle, but still stay in the player's inventory.
So any help would be greatly appreciated! 🙂
Make two versions of the same item, with one not being able to be used in combat. Make a common event that whenever the item is used during combat it replaces the item with the version unable to be used in combat. Then have another common event run after each battle ends, returning the version that can be used in combat to the player again.
I find this pretty difficult to pull off as there's no way I can make the comment event begin at the end of every battle if the item is used. At least, there isn't a way I know of. I tried using a 'conditional branch', the troops event slots, and enemy event slots as well, but I can't seem to get this right. I might be doing something wrong, but I don't think that I am. Thanks for your time though, here's to hoping I don't need a script.
Under Items > Effects > Other tab, you can link the use of an item to a Common Event. In this case you would link it to a Common Event that replaces the item with the unusable version of the item (don't forget to store and load item quantity in a variable) as well as flips on a Switch.
Then, you make another Common Event that auto-runs only when triggered by the Switch you turn on when you use the item. This Common Event replaces the unusable item back with the usable item and flips off the Switch.
You could also make the item consumable, then under the troops set up a conditional that checks if the item is in the player's inventory, if it is do nothing, if not add 1 item. Of course you would have to add this event to every troop you use in the game but that is just copy/pasting.
Give the player the item that can't be used. Then at the START of every battle, remove it and give them the item that CAN be used. After it's used, have the common event remove it and replace it with the item that CAN'T be used again.
Much easier to do something at the START of every battle than at the END, because when you win the battle, the troop events don't run after the last enemy is defeated.
How do you plan on addressing the issue that the player could choose that item for every actor, because it's not actually used until everyone has chosen their actions, and then have only the first one actually be able to use it? That would waste all other actor's turns, because they are attempting to use an item that's no longer in inventory.
I was under the impression that the engine would subtract out the consumable item as soon as it was selected by the first party member, obviously I was very, very wrong. :headshake:
Thanks! It worked, but the issue you brought up is still a bit of a problem. So I'll be surfing for a few scripts and if I can't find any, I'll try to make my own. I'm sure it'll be a great first script. I have enough time for the learning anyway.