Script call to show gold window, without text window?

Hi, so i have MZ, and the visustella base plugin pack ( idk if that matters ) and i have an event where i would like to show the gold window during the entire time the event is running, but currently i can only seem to find a way to do it through text window.
This event runs through an autorun common event, that's triggered by a player touch event and a switch. Essentially, its a shop that looks like a book, a sort of ' catalogue ' if you will- each page is something you can buy. i have it functional, you can scroll through each page, pop up a text asking if you want to buy and all that, but i want the gold window to be visible while you're looking at the stuff, not JUST when it asks if you want to buy it or not.
I tried the plugin that comes with MZ to show picture and it counts the gold, tho it doesn't update it instantly when you buy something, it updates after the event auto ends from the purchase.. and to be frank, its ugly lol i want it to match the actual gold window i've already got in the normal menu, and be live updating. I know literally nothing about script so i'd like to know if there's a quick and easy way to pop that gold window into my event.
In addition, is there a way to shift the placement/size of said gold window during this event? i have my game set to be 1920 x 1080, its smack in the very top right corner and its pretty small. i was able to adjust the size of the text with the show text picture plugin ( granted its black outline didn't get thicker with the size up so it looks a bit funky. ) and i was able to get its placement perfect, wondering if i can do the same with the Gold window exclusively during this event.
TIA!
No one has any ideas? ;3;
You sometimes not responding or reacting to input in previous requests at all might impact the motivation to try to help you.
JavaScript:
SceneManager._scene._goldWindow.open(); // To open the window
SceneManager._scene._goldWindow.close(); // To close the window
SceneManager._scene._goldWindow.x = 999; // Your X coordinate here
SceneManager._scene._goldWindow.y = 999; // Your Y coordinate here

// It might be wise storing the original X and Y coordinates in variables,
// if you want the window to return to its original position.

// Do this before modifying the X and Y coordinates
$gameVariables.setValue(1, SceneManager._scene._goldWindow.x);
$gameVariables.setValue(2, SceneManager._scene._goldWindow.y);

// Then to restore them
SceneManager._scene._goldWindow.x = $gameVariables.value(1);
SceneManager._scene._goldWindow.y = $gameVariables.value(2);
JavaScript:
SceneManager._scene._goldWindow.open(); // To open the window
SceneManager._scene._goldWindow.close(); // To close the window
SceneManager._scene._goldWindow.x = 999; // Your X coordinate here
SceneManager._scene._goldWindow.y = 999; // Your Y coordinate here

// It might be wise storing the original X and Y coordinates in variables,
// if you want the window to return to its original position.

// Do this before modifying the X and Y coordinates
$gameVariables.setValue(1, SceneManager._scene._goldWindow.x);
$gameVariables.setValue(2, SceneManager._scene._goldWindow.y);

// Then to restore them
SceneManager._scene._goldWindow.x = $gameVariables.value(1);
SceneManager._scene._goldWindow.y = $gameVariables.value(2);
Thank you very much, i will test this out when i have a chance! Is there a way to edit the size of the window/text in it for just this menu? If not that's fine, i'll make due. thanks again!
JavaScript:
SceneManager._scene._goldWindow.contents.fontSize = 36; // To change the font size

// As for the window resizing this is gonna be a little trickier
SceneManager._scene._goldWindow.width = 999; // Your width here
SceneManager._scene._goldWindow.height = 999; // Your height here
SceneManager._scene._goldWindow.contents.resize(999, 999); // Apply width and height here too

// If you only plan on changing the width for example then just paste the original height like so:
const originalHeight = SceneManager._scene._goldWindow.contents.height;
SceneManager._scene._goldWindow.contents.resize(999, originalHeight);

// And like i suggested previously, if you want to restore
// the window back to normal, save its original values before modifying them.

$gameVariables.setValue(3, SceneManager._scene._goldWindow.width);
$gameVariables.setValue(4, SceneManager._scene._goldWindow.height);
$gameVariables.setValue(5, SceneManager._scene._goldWindow.contents.width);
$gameVariables.setValue(6, SceneManager._scene._goldWindow.contents.height);
$gameVariables.setValue(7, SceneManager._scene._goldWindow.contents.fontSize);

// then restore them

SceneManager._scene._goldWindow.width = $gameVariables.value(3);
SceneManager._scene._goldWindow.height = $gameVariables.value(4);
SceneManager._scene._goldWindow.contents.resize($gameVariables.value(5), $gameVariables.value(6));
SceneManager._scene._goldWindow.contents.fontSize = $gameVariables.value(7);
JavaScript:
SceneManager._scene._goldWindow.contents.fontSize = 36; // To change the font size

// As for the window resizing this is gonna be a little trickier
SceneManager._scene._goldWindow.width = 999; // Your width here
SceneManager._scene._goldWindow.height = 999; // Your height here
SceneManager._scene._goldWindow.contents.resize(999, 999); // Apply width and height here too

// If you only plan on changing the width for example then just paste the original height like so:
const originalHeight = SceneManager._scene._goldWindow.contents.height;
SceneManager._scene._goldWindow.contents.resize(999, originalHeight);

// And like i suggested previously, if you want to restore
// the window back to normal, save its original values before modifying them.

$gameVariables.setValue(3, SceneManager._scene._goldWindow.width);
$gameVariables.setValue(4, SceneManager._scene._goldWindow.height);
$gameVariables.setValue(5, SceneManager._scene._goldWindow.contents.width);
$gameVariables.setValue(6, SceneManager._scene._goldWindow.contents.height);
$gameVariables.setValue(7, SceneManager._scene._goldWindow.contents.fontSize);

// then restore them

SceneManager._scene._goldWindow.width = $gameVariables.value(3);
SceneManager._scene._goldWindow.height = $gameVariables.value(4);
SceneManager._scene._goldWindow.contents.resize($gameVariables.value(5), $gameVariables.value(6));
SceneManager._scene._goldWindow.contents.fontSize = $gameVariables.value(7);
i finally got around to looking at this, and for some reason i can't make it work right -3- the gold window pops upright away, but now as soon as you click a button and you're given a choice and a text box appears, the gold window then disappears ( visible when the choice appears, but disappears when you choose a choice ) and i have no idea what to do to fix it. literally the exact opposite of what i had going on before. i know next to nothing about script calls and how to set them up properly or where to put them. i feel like i did it right with what info i DO know but i must not have. i had it set as something that appears immediately, so its near the top of the event. what am i doing wrong? lol font size also won't change no matter what i set it to.
It also appears to be bigger than what it was with the way i did it originally so i probably don't need to size it up much if at all, mostly just the text within the gold window.

Also when the text/choices first pops up, the gold window darts up to the very top of the screen as if its moving out of the way? so i was forced to move it higher than i wanted to avoid that. it shouldn't do that i imagine its something to do with one of the visustella plugins i have, probably the message core or options core?? i don't know why else it would move like that without it being due to coordination settings or something
You could use HUD Maker to create onscreen window that shows your gold.
I think it would be better if you showed some screenshots or a video so that it is easier to grasp what's going on.
For the screenshots/video it would be helpful to know how you set up your events.
Alternatively it might be easier going with Fizzly's idea.
but now as soon as you click a button and you're given a choice and a text box appears, the gold window then disappears
I don't think you've done anything wrong, this is normal engine behaviour - the gold window is automatically closed whenever a message window closes. Here's a simple plugin that will stop that from happening while switch 42 is on:
JavaScript:
Window_Message.prototype.terminateMessage = function () {
    this.close();
    if(!$gameSwitches.value(42)) this._goldWindow.close();
    $gameMessage.clear();
};
This thread might potentially be helpful too, since it includes a somewhat similar problem.
I don't think you've done anything wrong, this is normal engine behaviour - the gold window is automatically closed whenever a message window closes. Here's a simple plugin that will stop that from happening while switch 42 is on:
JavaScript:
Window_Message.prototype.terminateMessage = function () {
    this.close();
    if(!$gameSwitches.value(42)) this._goldWindow.close();
    $gameMessage.clear();
};
This thread might potentially be helpful too, since it includes a somewhat similar problem.

Edit: If you saw my reply before, ignore it, i figured it out! I got it working and it doesn't disappear when choices are picked. just gonna mess around with the sizing and see if i can't keep it in the same place, it still jumps to the highest point of the page when a text window pops up instead of staying in its exact Y location. its X location doesn't change just Y, like i said before its like its moving out of the way of the other text windows

Yeah, so i've got everything working EXCEPT i can't make the text size change ( gold window width/height was an easy edit ) and it still jumps upwards to the top when text appears and then stays there. is there a way to LOCK its X and Y coordinates so it will never move even with text pop ups? or maybe its something in the visustella message core(?) options i've got set affecting it, i'm not sure if that's a normal response or not when having multiple windows open.

Edit:
I also want to add, using the " SceneManager._scene._goldWindow.contents.fontSize = 36; " has zero effect on the size of the text, and if i use the " SceneManager._scene._goldWindow.contents.resize(999, 999); " the text inside the gold window disappears completely.
It only does this when i have the visustella core engine active, so i believe the issue lies somewhere within that but i have no idea how i would go about fixing it

Edit: Font sizing resolved, i have to change it in the visustella core engine plugin parameters, and it changes the gold font size EVERYWHERE including in your pause menu, but that's not a big deal.
Still not sure how to put that window where i want it and have it stay when other text boxes appear : i
I turned off every single plugin one by one, none of them affected the gold box moving upwards so its not an issue with any of those.
Still not sure how to put that window where i want it and have it stay when other text boxes appear
I'm not that familiar with MZ, but from looking at the code it seems like the gold window's position is automatically updated whenever a message window appears - this is because that position can be different depending on whether you have the message window on the bottom or top of the screen.

This should disable this behaviour:
JavaScript:
Window_Message.prototype.updatePlacement = function() {
    this._positionType = $gameMessage.positionType();
    this.y = (this._positionType * (Graphics.boxHeight - this.height)) / 2;
};
Thanks, i'll give that a try when i'm back at it. currently that's the only problem with the gold window i haven't been able to resolve in some way or another.
Would prefer to have the gold font size change only in the custom menu i'm working with but changing it globally was the only thing that actually changed it ( the visustella engine core plugin controls it completely )

Original thread: https://forums.rpgmakerweb.com/threads/script-call-to-show-gold-window-without-text-window.166076/