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?
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.
I did not see it, too. It just plopped up in between our two posts. Magicz I guess.