Unlimited Shop Prices

Amazing @TheoAllen made a script for me here to enable me using unlimited numbers of Gold.

For example 1000 Gold is displayed as 1.0k, 10.500 Gold is displayed as 10.5k, 1.000.000 Gold is displayed as 1M. And so on.

Based on Theo's Script, I now need a way to display shop prices the same way. As shop prices have to be defined in the database, I'm limited to the input digits the engine gives me per default. I cannot go unlimited here.

I guess a solution would be to add items to the shop via scriptcall like...

Ruby:
$game_shop.add_item(100000)

... so it will show there in the shop as an item sold for 100.0k.

It would be so awesome if we can get this done.:LZSjoy:

Yours,
Tw0Face
Lemme perform a quick PUSH here :LZScheeze:

Any help for me?
Or just go multiply the item prices by 1000 and that's it.
Or just go multiply the item prices by 1000 and that's it.
Unfortunately, I think that's not how I'm going to be able to solve the general problem. For example, I want to offer items for 2,35M in the shop and they should also display as "2,5M", just like Theo's Script does it for me in the Gold Window display.
Ruby:
class Scene_Shop < Scene_MenuBase
  def money
    $game_party.gold
  end
end

class Window_ShopBuy < Window_Selectable
  def draw_item(index)
    item = @data[index]
    rect = item_rect(index)
    draw_item_name(item, rect.x, rect.y, enable?(item))
    rect.width -= 4
    cost = price(item)
    show = Theo::group_digit(cost, cost >= 1000 ? 2 : 0)
    draw_text(rect, show, 2)
  end
end

class Window_ShopNumber < Window_Selectable
  def draw_currency_value(value, unit, x, y, width)
    cx = text_size(unit).width
    change_color(normal_color)
    cost = Theo::group_digit(value, value >= 1000 ? 2 : 0)
    draw_text(x, y, contents.width - 26, line_height, cost, 2)
    draw_icon(Theo::IconGold, contents.width - 24, y)
  end
end
It would be so awesome if we can get this done
Just as I suspected, aliasing the Scene_Shop's update method is redundant because the script will refresh the Gold window by default. That method SHOULD be omitted.
@Roninator2 Thank you, I'll test it after work. Can you tell me how to actually add items to that shop having high prices?
Can you tell me how to actually add items to that shop having high prices?
I didn't make a shop, I just changed the display. Add items in whatever way you have to do that.

Original thread: https://forums.rpgmakerweb.com/threads/unlimited-shop-prices.158888/