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

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,706
Reaction score
15,831
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

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,706
Reaction score
15,831
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
4,947
Reaction score
4,517
First Language
English
Primarily Uses
RMMZ
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
4,947
Reaction score
4,517
First Language
English
Primarily Uses
RMMZ
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.
 

Latest Threads

Latest Posts

Latest Profile Posts

jeetje, you are told to read forums and learn about them before you post, cmon ppl, it is impossible?
plugin for this, plugin for that, i should probs just buy all the visustella plugins lol
Hey you know that problem I had with my old project file? I figured out what went wrong, so I fixed it there! Now I don't need this new file! *deletes*

......

*remembers I made good changes on it and did not write those changes down elsewhere*

.....Well ****.
Why won't you play above 10 fps game. you were working fine yesterday
pkJASCkjl;n

Forum statistics

Threads
121,516
Messages
1,142,234
Members
159,678
Latest member
Mic34588
Top