How to continuously have the Gold window opened?

Fridjah

Veteran
Veteran
Joined
Jan 13, 2015
Messages
155
Reaction score
7
First Language
French
Primarily Uses
RMVXA
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.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 

Fridjah

Veteran
Veteran
Joined
Jan 13, 2015
Messages
155
Reaction score
7
First Language
French
Primarily Uses
RMVXA
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.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 

Fridjah

Veteran
Veteran
Joined
Jan 13, 2015
Messages
155
Reaction score
7
First Language
French
Primarily Uses
RMVXA
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.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,960
First Language
English
Primarily Uses
RMMV
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
 

Fridjah

Veteran
Veteran
Joined
Jan 13, 2015
Messages
155
Reaction score
7
First Language
French
Primarily Uses
RMVXA
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.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,960
First Language
English
Primarily Uses
RMMV
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.
 

Fridjah

Veteran
Veteran
Joined
Jan 13, 2015
Messages
155
Reaction score
7
First Language
French
Primarily Uses
RMVXA
Thank you +1, Trihan!  Thanks to the others too ^^.

I got what I wished to have.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,081
Members
137,582
Latest member
Spartacraft
Top