Rechargeable wand type item?

Hi, I've got an item I'm having a great deal of trouble implementing. The idea is a magic wand; it can be used once, but that use doesn't consume the item. Rather, it is to be disabled for a certain period of time, ie a number of steps per a variable. Does anybody have an idea of how to execute this? I'm seriously stumped.

   Thanks!
Instead of having the item do anything during it's effect page have it only call a common event, this event should check to see whether or not a switch is on, and if it

is not on have it perform its action and at the end of said action turn the switch on, and when it finds it already on have it do nothing. Then, on a separate common event set it to run via a 'parallel process' and set the condition switch to whatever switch you turned on in the last event. Use a variable and set it to however many steps the player has taken, and use another variable after that that is set to the number of steps the player has taken on a loop every 5-10 frames or so, with a conditional script that if variable 1 = variable 2 + 30 (or however many steps you want it to be) that it turns off the switch you've been using, effectively turning off the common event and allowing you to use the item once more.

The only problem with this is that if the item is not 'charged' then the actor trying to use the item loses his turn, you could solve this by having the item, in addition to the common event have the item place a dummy state on the actor using it and having the common event comment on how the item isn't ready to be used and force action for the one that used it to perform a basic attack instead.
like the previous poster said, use a common event called by the item and place the conditions for use there.


However, this requires different forms of eventing depending on wether the item is usable outside combat (like your comment about number of steps indicate) or in combat (where you would count the number of turns, not steps) or both (which would need a check for combat or not and then both code forms).
Thank you both so much. Very glad I came here; I'll be around often!

Original thread: https://forums.rpgmakerweb.com/threads/rechargeable-wand-type-item.21196/