I want to set up a system with gold, silver, and copper, where ten copper pieces are worth a silver piece, and ten silver pieces are worth a gold piece. So far my thinking is that the way to set this up with the Yanfly Multiple Currencies plugin is to set up a common event where, when the amount of copper reaches 10, I remove 10 pieces of copper and add a piece of silver. And then repeat for gold. Is there a better way to event or script this sort of multiple currency variable situation?
Need help with multiple currency variables
RPG Maker MZ SupportNot an answer but a comment... The way you describe it, it's just one currency with the unit "copper" and with different coinage. I get what you're trying to do (I grew up with TRPGs) but in that case I wouldn't want the auto-exchange that you describe. For example, a blacksmith specialized in plate mail might only accept gold for practical reasons and ease of fraud-detection. A fruit stand may only accept copper for risk hedging.
Thanks @werzque — didn't think of it that way!
And going off of what werzque said - if your system works like that, in the same multiples, there's really no need to store anything except the most basic currency.
Then you can simply use math on the windows that display the currency to represent it most efficiently, but there's likely not a reason to store them separately.
So you have, say, 5,429 copper, and you can pretty simply program the menu window to format that with silver and gold.
Then you can simply use math on the windows that display the currency to represent it most efficiently, but there's likely not a reason to store them separately.
So you have, say, 5,429 copper, and you can pretty simply program the menu window to format that with silver and gold.
Thank you for the input. I decided to use VisuStella’s Visual Gold Display plugin since I am new to Javascript and my attempts at window formatting so far have been pretty junky.
Continuing to derail but if I would implement it, I would go all the way and have something like:
1 silver coin = 24 bronze coins
1 gold coin = 12 silver coins
But yeah for your needs, VS Visual Gold sounds like a perfect fit.
1 silver coin = 24 bronze coins
1 gold coin = 12 silver coins
But yeah for your needs, VS Visual Gold sounds like a perfect fit.
VS Visual Gold doesn't work in anything besides base 10, but I see where you're going with this.
Was actually working on a similar idea to have a relastic gameplay-loop for my project. Thanks for this thread answers, very useful 😀
Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-multiple-currency-variables.158319/