Change name of Gold midgame

Good day,


so here is this: I want to change the name of my gold coins (default 'G') from 'S' to 'C' as it is a part of the story line.


I can't find anything about it in the event tabs - is it possible to change that variable ingame through events?
Go to Database>System>Currency Unit


Look near the top middle right. It's a small box above Window color. Where it says G, select and delete it and put whatever you want.


Not sure as for changing the currency ingame, 
You can hardcode it this way:


in rpg_managers.js starting at line 1480


Object.defineProperty(TextManager, 'currencyUnit', {
get: function() { return $dataSystem.currencyUnit; },
configurable: true
});


determine a switch that you will turn on when you want the currency unit to change, and use that switch where I've put '15' below:


Object.defineProperty(TextManager, 'currencyUnit', {
get: function() { return $gameSwitches.value(15) ? 'C' : $dataSystem.currencyUnit; },
configurable: true
});






Post back (tagging me so I can see it) if you'd rather have this as a plugin instead of changing the source code.  The downside to changing the source code is that if there's an update to the engine and you take it, the hardcoded change would be undone, and you'd have to remember to do it again.  The upside to changing the source code is that it's nice and quick.
Thanks, I know that already. I am asking how to change the variable name of Gold ingame from S to C.


On a certain point in the story of the game, the character moves on to another continent and his S (Sovereign) gold is replaced by C (Crystals). So the next time the player looks at the gold window he'll see something like "1337 C" instead of "1337 S".
I remember some plugins about two currencies. Maybe they would fit you even better?
Sounds interesting. May I have the link to that plugin?
Yanfly's More Currencies


Keep in mind you need his plugin to change shops to use it... make sense though, you'd have to change the shop anyway to use them...
Ah, my bad. I believe these are the plugins he's referring to.


http://forums.rpgmakerweb.com/index.php?/topic/49744-flare-collection-currencies/


http://yanfly.moe/2016/01/22/yep-060-more-currencies/
You can hardcode it this way:


in rpg_managers.js starting at line 1480



Object.defineProperty(TextManager, 'currencyUnit', {
get: function() { return $dataSystem.currencyUnit; },
configurable: true
});


determine a switch that you will turn on when you want the currency unit to change, and use that switch where I've put '15' below:



Object.defineProperty(TextManager, 'currencyUnit', {
get: function() { return $gameSwitches.value(15) ? 'C' : $dataSystem.currencyUnit; },
configurable: true
});






Post back (tagging me so I can see it) if you'd rather have this as a plugin instead of changing the source code.  The downside to changing the source code is that if there's an update to the engine and you take it, the hardcoded change would be undone, and you'd have to remember to do it again.  The upside to changing the source code is that it's nice and quick.



So, when I trigger the Switch 15 naturally by event call, the script activates the currencyUnit variable change from S => C?


Sounds very interesting. I would use that instead of plugins to keep my plugin list clean and nice.


I will consider the plugins though, if something goes terribly wrong.


Yanfly's Plugin is amazing! I will definetly use it as a part of the game, but for now I'll go with the script.
Yes.  If switch 15 is on, the currency unit will be C.  If switch 15 is off, the currency unit will be S.
Great, since I don't want them to translate from S to C in value but rather in name, this is perfectly fine and does minimal change to the actual interface/game, which is neat!


I guess the thread can be closed again for it is solved perfectly.
Ah, I didn't see Shaz's message!


@Yappy Monoxide I didn't know of the first one. Thanks too!
I did not see it, too. It just plopped up in between our two posts. Magicz I guess.

Original thread: https://forums.rpgmakerweb.com/threads/change-name-of-gold-midgame.69179/