EmilyAnnCoons 7 Report post Posted January 14, 2007 This fixes the gold display so that, instead of showing as one big jumbled number, it adds commas! Just replace the ENTIRE refresh command in Window_Gold with the following: def refresh #Advanced Gold Display mini-script by Dubealex. self.contents.clear case $game_party.gold when 0..999 gold = $game_party.gold when 1000..9999 gold = $game_party.gold.to_s array = gold.split(//) gold = array[0].to_s+","+array[1].to_s+array[2].to_s+array[3].to_s when 10000..99999 gold = $game_party.gold.to_s array = gold.split(//) gold = array[0].to_s+array[1].to_s+","+array[2].to_s+array[3].to_s+array[4].to_s when 100000..999999 gold = $game_party.gold.to_s array = gold.split(//) gold = array[0].to_s+array[1].to_s+array[2].to_s+","+array[3].to_s+array[4].to_s+array[5].to_s when 1000000..9999999 gold = $game_party.gold.to_s array = gold.split(//) gold = array[0].to_s+","+array[1].to_s+array[2].to_s+array[3].to_s+","+array[4].to_s+array[5].to_s+array[6].to_s end self.contents.font.color = text_color(6) gold_word = $data_system.words.gold.to_s + ":" cx = contents.text_size(gold_word).width cx2=contents.text_size(gold.to_s).width self.contents.draw_text(4, 0, 120-cx-2, 32, gold_word) self.contents.font.color = text_color(0) self.contents.draw_text(124-cx2+2, 0, cx2, 32, gold.to_s, 2) end end You can even edit the text color by finding self.contents.font.color = text_color(6) and changing the number that is in the parentheses () Share this post Link to post Share on other sites
Marked 197 Report post Posted April 18, 2007 SCMike, do you know the author of this script? I need to know it. EDIT: Just found it looking through the old script index. It's Dubealex, must give him credit. Share this post Link to post Share on other sites
Ratty524 0 Report post Posted April 18, 2007 Give credit where credit is due, thats just common respect... Share this post Link to post Share on other sites
EmilyAnnCoons 7 Report post Posted April 18, 2007 err...whoops...I thought I had -goes and fixes it- Thanks for noticing. EDIT: Also...I just noticed, line 3 of the script says #Advanced Gold Display mini-script by Dubealex. Share this post Link to post Share on other sites