Currency Formatter Plugin (RMMV)

Currency Formatter Plugin

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 FeaturesUpdate LogPersonal NotesPlugin RequirementsCompatibility IssuesDownloadFuture Updates
Version: 1.1
Author: Companion Wulf
Platform: RMMV
Script Type: Plugin/Enhancement
Required: None
Fileseze: 4 Kb
File Format: 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.
Version.Update.Bug Fix/Tweak

  • v1.1 (26-Mar-2016)
       –Release: Version 1.1 (Public)
  • v1.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 (07-01-2015)
       –Release: Version 1.0 (Public)
  • v0.4.2 (05-01-2016)
       –Tweak: Add extra digit to large number suffix output
       –Fix: Numbers not rendering correctly
  • v0.4.0 (04-01-2016)
       –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 .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