Gold = Ammo?

Okay, so for a game I'm working on, I had an idea of a mechanic where the 'gold' can be used as ammo for your weapon, so for each attack you make with said weapon, you lose x amount of 'gold'. In the case of my game, it's a zombie shooter, the 'gold' is an arrow, and the weapon is a crossbow, aka your only weapon in the game. Does anyone know of any ways I can do this? If not with gold, maybe with items in your inventory? I'm assuming I'll need a plugin, so any links/references to that would be appreciated! Thanks in advance!
I'm not a 100% sure how you'd do this myself, but maybe go for some sort of variable system, where every time they fire, subtract some gold. I'm pretty bad with how variables work so I can't help much more than that unfortunately. If you can find a script though, totally go for it, as that'd be way easier.
Are you using MV then? I know for Ace, Yanfly has one of the scripts that allows the use of gold and items as ammo. Perhaps the same plugin exists for MV too, if that's what you're using?
This exact mechanic was used in a Java RPG called Stick Ranger.  In that game, one of the classes was a Gunner, and every shot he took subtracted gold from the party's gold count.  A couple things made this interesting.  First off, different guns subtracted different amounts of gold per shot.  Generally, more powerful guns had a higher cost.  Secondly, depending on your magic stat, the amount of gold that was subtracted per shot actually went down.
@Yanfly's Skill Costs plugin allows you to do this.  It's available in both Ace and MV versions.  You can Google them, but here's a quick link to the MV verison.


From now on it's better to post questions like this in the appropriate Maker's "Support" (Help) subforum, or in the appropriate Script Requests subforum if you have a reason to suspect it will require a Script/Plugin to pull off.  Game Mechanics Design is for advice about how to design and balance your ammo system so it's enjoyable; Support is for advice about how to create your ammo system in RPG Maker.

Original thread: https://forums.rpgmakerweb.com/threads/gold-ammo.62887/