Consume Weapon On Use (Ninja Star)

Hello.

So I was wondering if there was a way to have a weapon be consumed upon use.

As an example: A ninja star.

I have it currently set as an item, but that doesn't allow for use with other parts of the system (example: class restricted weaponry).

Does anyone know a way to do this? I did some searching on the boards and I came up with nothing.

Thanks!
Could you just add a $game_party.change_weapons script call as part of the damage formula?


If not, you'll have to have a script mod done.
I was thinking about having it call a common event and be like: "Reduce weapon by 1 (include equips)".

I am a n00b when it comes to strip calls. How would that look?
You can't attach common events to weapons, only to items/skills.


You could make the damage formula either set up the call to a common event, or turn on a switch that would activate a common event, but both of those would only trigger when you return to the map, so if you used it 5 times in one battle, only 1 would be removed. And if you were going to trigger it from the damage formula, why not just remove it via the damage formula and ditch the common event altogether?
http://grimoirecastle.wordpress.com/rgss3-scripts/gameplay-scripts/asagis-gun-license/

Try this script.

Original thread: https://forums.rpgmakerweb.com/threads/consume-weapon-on-use-ninja-star.31628/