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.
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.