RMMZ How do i make the gold window to be available on screen all the time?

babysyi

Warper
Member
Joined
Jan 28, 2023
Messages
3
Reaction score
0
First Language
English
Primarily Uses
RMMZ
Hi, im very new here. Can anyone help me or it is not possible to do so?
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
7,629
Reaction score
5,398
First Language
English
Primarily Uses
RMMV
You'll need to use a plugin. You can check out HUD plugins, maybe Google for a gold window if someone's made something that simple by itself.

Otherwise, SRD's HUD Maker is a popular plugin to create interfaces like this.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
6,019
Reaction score
6,008
First Language
English
Primarily Uses
RMMZ
If you ask it very, very nicely to please never disappear, it will sometimes listen.

Joking aside, if this is all you want and you don't know which plugins allow for it:

JavaScript:
(() => {
  const _Scene_Message_createGoldWindow = Scene_Message.prototype.createGoldWindow;
  Scene_Message.prototype.createGoldWindow = function() {
    _Scene_Message_createGoldWindow.call(this);
    this._goldWindow.openness = 255;
  }

  Window_Message.prototype.terminateMessage = function() {
    this.close();
    $gameMessage.clear();
  };
})();

This should do the trick if you stick it in a .js file and add it to your plugin manager.
 
Last edited:

GmOcean

Veteran
Veteran
Joined
Nov 29, 2020
Messages
195
Reaction score
159
First Language
English
Primarily Uses
RMMZ
If you ask it very, very nicely to please never disappear, it will sometimes listen.

Joking aside, if this is all you want and you don't know which plugins allow for it:

JavaScript:
(() => {
  const _Scene_Message_createGoldWindow = Scene_Message.prototype.createGoldWindow;
  Scene_Message.prototype.createGoldWindow = function() {
    _Scene_Message_createGoldWindow.call(this);
    this._goldWindow.openness = 255;
  }
})();

This should do the trick if you stick it in a .js file and add it to your plugin manager.
Here you are with this teeny tiny little bit of code.. And then there's me last week, creating a crap ton of code by making a new window, having it display the gold, have it's own refresh and update.. etc... It was a proof of concept, but still lol.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
6,019
Reaction score
6,008
First Language
English
Primarily Uses
RMMZ
Here you are with this teeny tiny little bit of code.. And then there's me last week, creating a crap ton of code by making a new window, having it display the gold, have it's own refresh and update.. etc... It was a proof of concept, but still lol.
But hey, if you want to do a window that does something besides display gold, you've got the basis for it already!

Also in fairness I did just review it and add a bit to stop the gold window closing when the message window terminates.
 

LeashaX

Villager
Member
Joined
Nov 9, 2022
Messages
23
Reaction score
4
First Language
Spanish
Primarily Uses
RMMZ
A way to hide the window and leave only the icon and gold value?

1674856893545.png
EDIT: adding this line this._goldWindow.opacity = 0; works

1674857494072.png
 
Last edited:

LeashaX

Villager
Member
Joined
Nov 9, 2022
Messages
23
Reaction score
4
First Language
Spanish
Primarily Uses
RMMZ
A question how i can enable/disable the hud through a script?, for example i have a intro and the gold hud shows, my idea is hide the hud in the intro and show it when y character appears on first map.
 

babysyi

Warper
Member
Joined
Jan 28, 2023
Messages
3
Reaction score
0
First Language
English
Primarily Uses
RMMZ
If you ask it very, very nicely to please never disappear, it will sometimes listen.

Joking aside, if this is all you want and you don't know which plugins allow for it:

JavaScript:
(() => {
  const _Scene_Message_createGoldWindow = Scene_Message.prototype.createGoldWindow;
  Scene_Message.prototype.createGoldWindow = function() {
    _Scene_Message_createGoldWindow.call(this);
    this._goldWindow.openness = 255;
  }

  Window_Message.prototype.terminateMessage = function() {
    this.close();
    $gameMessage.clear();
  };
})();

This should do the trick if you stick it in a .js file and add it to your plugin manager.
Thank you very much!
 

babysyi

Warper
Member
Joined
Jan 28, 2023
Messages
3
Reaction score
0
First Language
English
Primarily Uses
RMMZ
If you ask it very, very nicely to please never disappear, it will sometimes listen.

Joking aside, if this is all you want and you don't know which plugins allow for it:

JavaScript:
(() => {
  const _Scene_Message_createGoldWindow = Scene_Message.prototype.createGoldWindow;
  Scene_Message.prototype.createGoldWindow = function() {
    _Scene_Message_createGoldWindow.call(this);
    this._goldWindow.openness = 255;
  }

  Window_Message.prototype.terminateMessage = function() {
    this.close();
    $gameMessage.clear();
  };
})();

This should do the trick if you stick it in a .js file and add it to your plugin manager.

also if you don't mind, do you happened to know how to display gold window on bottom right instead of top right?
 

Attachments

  • WhatsApp Image 2023-01-29 at 10.35.01 AM.jpeg
    WhatsApp Image 2023-01-29 at 10.35.01 AM.jpeg
    98.2 KB · Views: 1
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

Learn how to do custom face parts with my latest tutorial!
Generatorpartsfromscratch.png
The Legion
T7T0hR2.gif
Made a title screen, and by ''made'' I ofc mean I slapped a simple title on some cool art I bought xD This side project might be fun.

sIMPLE.png
CDF.png

Trying for a Classical RPG with Pokemon Elements. Capture monsters like Zombies and Harpys and use them on your team.
ow28O4A.png

Astarte in her usual demeanor: mocking people.

Forum statistics

Threads
129,872
Messages
1,205,837
Members
171,049
Latest member
Azkaelika
Top