Request: Customized currency display

Darthneko

Villager
Member
Joined
Dec 16, 2014
Messages
6
Reaction score
0
First Language
English
I'm looking for a way to customize how the default currency is displayed.

I'd love to be able to break it at the hundred and ten thousand marks so that it's stored all as one variable (for example: 654321) but displays with spaces/text/icons inbetween (example: 65g 43s 21c) for a currency system based on 100's. (Attached image is WoW's system, with icons displayed between.)

It's purely cosmetic and could work for either a fantasy gold/silver/copper system or a modern dollar/dime/penny system or anything else you could think of - it's just to spice it up a little and not make it look like your character is filthy rich carrying around 999999999 gold (or, conversely, that the carrot you're buying from the shop is worth a whole gold piece - must be some carrot! :p  ). 

currency.jpg
 

Jeremy Cannady

Coldfire
Veteran
Joined
Oct 25, 2015
Messages
449
Reaction score
268
First Language
English
Easy to do but do you want icons? The default icons for MV are bad so it looks wired. 

But splitting it into base 100 was easy. Right now it just displays: 1 g 50 s 6 c
 

Darthneko

Villager
Member
Joined
Dec 16, 2014
Messages
6
Reaction score
0
First Language
English
Icons would be wonderful (though yes, the default icons are terrible, I'd make something custom and probably smaller). Breaking it by text is totally workable, though! Icons would just be great extras. :)
 

Jeremy Cannady

Coldfire
Veteran
Joined
Oct 25, 2015
Messages
449
Reaction score
268
First Language
English
Window_Base.prototype.drawCurrencyValue = function(value, unit, x, y, width) { this.resetTextColor(); var gold = Math.floor(value / 10000); var silver = Math.floor((value % 10000)/100) ; var copper = (value% 100); var text = gold + ' g ' + silver + ' s ' + copper + ' c '; this.drawText(text, x, y, width - 6, 'right');};Theres the code.
 

whitemage935

Warper
Member
Joined
Jul 23, 2016
Messages
3
Reaction score
0
First Language
English
Primarily Uses
Where do we post this code in RPG Maker MV and am I able to change the lettering on the currency?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,546
Members
137,835
Latest member
yetisteven
Top