What this does is separates large numbers with a comma every three blocks of numbers. Thus, 100000 becomes 100,000. That’s way easier to read! (Incidentally, it took me ages to figure out how to successfully do this!)
To achieve this, we attach
.to_s.reverse.gsub(/(\d{3})(?=\d)/, ‘\\1,’).reverse
to the $game_party.gold. This is done differently in each RPG Maker.
Edit: The RMVXA error has been fixed.
Read more: RPG Maker Times & Companion
0 Comments So Far:
Post a Comment