[Solved] Is there a way to change the position of a Window from within an Event?

In my game, players can get access to a Bestiary after a brief tutorial area (I'm using modern algebra's Monster Catalogue script for the record). Once they receive it, the option on the party menu unlocks.

The problem I'm having revolves around the fact that I also moved the little gold window at the bottom using Seiryuki's Currency Symbol script.
When the bestiary option is there, the gold window is positioned right where I want it:
besty2.png


However, when I take away the Bestiary option, the gold window is just kind of hanging there, and it's bugging me:
besty1.png


If I could use a script call within an event, theoretically I could manually put the gold window where I want it at the start of the game, then reposition it later after the party gets the bestiary.

However, I'm unsure of any such thing. I did skim through this thread, but I didn't find anything. It's entirely possible I just missed it. There is a lot to go through there. In case I didn't, maybe someone here can help me?
My OCD and I would be extremely grateful if anyone knew how to fix this.
The gold window itself is drown (including its position) each time the menu is opened. So it's as simple as adding adding a check for lets, say a switch, to determine the default position or the altered position.
I don't think there is a way to do this by default, but I think I have a solution for your problem through a bit of script editing. I will assume this is the script used to change the gold window position.

Change line 110, that is:
Code:
@gold_window.y = Graphics.height - @gold_window.height
into
Code:
@gold_window.y = @command_window.height

This will make the gold window y position follows the command window if you set GOLD_WINDOW_Y_POS to nil. I hope this solves your problem. 😂
I don't think there is a way to do this by default, but I think I have a solution for your problem through a bit of script editing. I will assume this is the script used to change the gold window position.

Change line 110, that is:
Code:
@gold_window.y = Graphics.height - @gold_window.height
into
Code:
@gold_window.y = @command_window.height

This will make the gold window y position follows the command window if you set GOLD_WINDOW_Y_POS to nil. I hope this solves your problem. 😂
Works like a charm! Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-is-there-a-way-to-change-the-position-of-a-window-from-within-an-event.149901/