How to continuously have the Gold window opened?

Hello!

I was wondering if it was possible to have the gold window continuously opened?

Still able to do everything else, move, speak NPCs, open menu, ...

I tried to "guess" some quick script typos, but failed. Like next:

$game_gold

$game_window_gold

$window_gold

...

...

So if someone know a way...

And of course, a way to desactivate it too.

EDIT: I tried message box with just:

\$

The gold window is opening, but impossible to move anymore as long the

gold window is open.

Thanks in advance.
Window_Gold is created by Window_Message, and it ALWAYS exists when you're on the game map. What happens is that it's hidden to start with, and it only becomes visible when you use \$ in a message window. Then it hides again.

The reason your \$ stopped you walking around is because it's part of the Show Text command, and Show Text prevents character movement.

All you need to do is tell Window_Message to NOT hide the gold window at all.

class Window_Message < Window_Base alias shaz_perma_gold_create_all_windows create_all_windows def create_all_windows shaz_perma_gold_create_all_windows @gold_window.openness = 255 end def fiber_main $game_message.visible = true update_background update_placement loop do process_all_text if $game_message.has_text? process_input $game_message.clear # @gold_window.close Fiber.yield break unless text_continue? end close_and_wait $game_message.visible = false @fiber = nil endendin a new slot in Materials.You might get some funny stuff happening if you do then try to use \$ in text. But if it's always going to be visible, you shouldn't have a need to do that at all.
Thank you Shaz!

May you add a switch control ON/OFF in the script?

EDIT: Your script not refreshing or something, if I change gold with variable it not live changing.

I have to open menu and close it to update the goldwindow.
sorry - I didn't test as thoroughly as I needed to, I guess.


I'll see if I can write something a bit better for you, but it might take me a day or two.
Dont worry if you dont have time for that.

I thought there is a quick/easy way to just show that window.

I know well how to do a counter just with variables and pictures.
I was led to this. You do have to save it into your Graphics folder as a specific named file like Gold_Hud_Back or something like that.

http://www.rpgmakervxace.net/topic/21807-melody-simple-gold-hud/
It only needs a small tweak to sort out the updating issue.

Code:
class Window_Message < Window_Base  alias shaz_perma_gold_create_all_windows create_all_windows  def create_all_windows    shaz_perma_gold_create_all_windows    @gold_window.openness = 255  end    def fiber_main    $game_message.visible = true    update_background    update_placement    loop do      process_all_text if $game_message.has_text?      process_input      $game_message.clear      # @gold_window.close      Fiber.yield      break unless text_continue?    end    close_and_wait    $game_message.visible = false    @fiber = nil  endendclass Window_Gold < Window_Base  def update    refresh  endend
Thank you guys, it's nice.

I dont need the gold window open all the time, only on a specific map, so if someone can add a switch

to "true"/"false" it, it will be fantastic.
class Window_Message < Window_Base

  alias shaz_perma_gold_create_all_windows create_all_windows

  def create_all_windows

    shaz_perma_gold_create_all_windows

    @gold_window.openness = 0

  end

  

  alias trihan_update update

  def update

    trihan_update

    if $game_switches[1] == true

      @gold_window.openness = 255

    else

      @gold_window.openness = 0

    end

  end

end

 

class Window_Gold < Window_Base

  def update

    refresh if $game_switches[1] == true

  end

end

 

Turn switch 1 on to show it, turn it off to hide it.
Thank you +1, Trihan!  Thanks to the others too ^^.

I got what I wished to have.
shot in the dark here on an old post but I tried the solution in the comments and keep getting syntaxerror unexpected token <. If someone could help me out i'd appreciate it. Here's how i put it in, maybe im doing somthing wrong?

gold counter.png
shot in the dark here on an old post but I tried the solution in the comments and keep getting syntaxerror unexpected token <. If someone could help me out i'd appreciate it. Here's how i put it in, maybe im doing somthing wrong?

View attachment 293104
You're using MV, This is RGSS script support. (XP, VX, VX ACE)
The code provided goes into the script editor not in an event script command.
Necro-post notice: @Tonedawg181

Original thread: https://forums.rpgmakerweb.com/threads/how-to-continuously-have-the-gold-window-opened.38769/