֎ Currency Formatter Plugin

AVAILABLE The Currency Formatter plugin rewrites the currency into a much more readable format, especially with larger numbers.

It was originally inspired by the scriptlets I did for RMVX and RMVXA to split larger currency numbers with commas, thus 100000 is shown as 100,000. In MV, 1,000 becomes 1k and 1,000,000 becomes 1m.

And because I just like a cleaner, neater format.

Currency Formatter PluginMain FeaturesScreenshotsUpdate LogPersonal NotesPlugin RequirementsCompatibility IssuesDownloadFuture Updates
Version: 1.2
Author: Companion Wulf
Platform: RMMV
Script Type: Plugin/Enhancement
Required: None
Fileseze: 2.5 Kb
File Format: ZIP/JS
Release Date: v1.0 – 7 January 2016
Last Update: 7 January 2016
These are the main features in the Currency Formatter plugin:

  • Add commas to large numbers, i.e. 100000 becomes 100,000.
  • Replace trailing zeros with words, i.e. 100,000 becomes 100k.
Currency Formatter Screenshot 1 - Comma
Currency Formatter Screenshot 1 – Comma
Currency Formatter Screenshot 1 - Suffix
Currency Formatter Screenshot 1 – Suffix
Version.Update.Bug Fix/Tweak

  • v1.2.0.0 (07-Jan-2017)
       –RELEASE: Version 1.2 (Public)
  • v1.1.1.1 (04-Jan-2017)
       –TWEAK: Add support for "billion" in case gold max amount is increased
  • v1.1.1.0 (14-Aug-2016)
       –UPDATE: Cleaned/tidied code
  • v1.1.0.0 (26-Mar-2016)
       –RELEASE: Version 1.1 (Public)
  • v1.0.0.2 (26-Mar-2016)
       –BUG FIX: "shortValue not found" error (for some reason it was missing)
       –TWEAK: Truncate comma string with toLocaleString(). This is to address some international preferences for periods instead of commas
  • v1.0.0.0 (06-Jan-2015)
       –RELEASE: Version 1.0 (Public)

  • v0.0.3.2 (05-Jan-2016)
       –TWEAK: Add extra digit to large number suffix output
       –BUG FIX: Numbers not rendering correctly
  • v0.0.3.0 (04-Jan-2017)
       –ADD: Large number suffixes
       –ADD: Plugin options
       –ADD: Comma conversion
       –Create plugin
The Currency Formatter plugin for RMMV was inspired largely by the RMVX and RMVXA versions that "commify" (a coined word I like to use for this purpose) larger numbers. Plus, it’s only because I like the format.

I decided to see how – and if – it would work in a JGSS environment. Of course it wasn’t as simple or straightforward as I thought it would be, so it took me ages to figure out the correct Math formatting. When I did, this plugin resulted.

The plugin must be installed in RMMV’s Plugin Manager to run. All of the settings can be changed in the Parameters section.

There are no additional plugin settings to change.

There shouldn’t be compatibility issues.
Download the ZIP file and extract CW_CurrencyFormatter.js file directly into the JS folder in your RMMV project.
  • Currency position (left/right)
  • Custom icon instead of currency text
  • Message text options to change settings in-game
  • Option to specifically truncate currency in shops