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,395
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,005
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,005
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 Profile Posts

If anyone knows any C# programmers, please send them my way.
Chilling at night in a tavern.
ChillingAtTavern.png

After 'multiple breakdowns', it's finally over. 10/10 will do this again.
Ever notice that villains can reform and become better people, but heroes can only ever die... or live long enough to see themselves become villains?

Isn't that interesting?
xabileug wrote on Kaelan's profile.
Will you be back?


got inspired by Tekken 5's character select screen and made some new music today for my character select screen.

Forum statistics

Threads
129,843
Messages
1,205,650
Members
170,996
Latest member
AyanaMiles
Top