RMMV [Request] Change profile information location/ show the custom variables/parameters in the status screen

duy123a

Warper
Member
Joined
Oct 24, 2021
Messages
4
Reaction score
1
First Language
English
Primarily Uses
RMMV
Hello everyone. I am new to RPG Maker MV and get some problems here. I want to change the location of the profile information/ or add more variables/parameters from the bottom area to nearby the Parameters area. Please help me with some scripts ><
I'm currently using LLA_LemonsStatusVariable.js to show a custom variable.
Thank you and please have a nice day everyone.
04.png
 

autodidact

Veteran
Veteran
Joined
Nov 13, 2020
Messages
75
Reaction score
62
First Language
English
Primarily Uses
RMMV
Hello,

I think this might work for you.

Your window already indicates that you are not showing actor equipped items. So, I hope it doesn't matter that I am overwriting the drawEquipments method.

Paste the below into a text file and name it with a ".js" extension, and put it in your plugins folder.
JavaScript:
Window_Status.prototype.drawEquipments = function(x, y) {
    this.drawTextEx(this._actor.profile(), x, y);
};


The max equipmentLines (aka your profileLines) is currently 6, but you can change it by overriding (though I haven't tested the result):
JavaScript:
Window_Status.prototype.maxEquipmentLines = function() {
    return 6;
};
 

duy123a

Warper
Member
Joined
Oct 24, 2021
Messages
4
Reaction score
1
First Language
English
Primarily Uses
RMMV
Hello,

I think this might work for you.

Your window already indicates that you are not showing actor equipped items. So, I hope it doesn't matter that I am overwriting the drawEquipments method.

Paste the below into a text file and name it with a ".js" extension, and put it in your plugins folder.
JavaScript:
Window_Status.prototype.drawEquipments = function(x, y) {
    this.drawTextEx(this._actor.profile(), x, y);
};


The max equipmentLines (aka your profileLines) is currently 6, but you can change it by overriding (though I haven't tested the result):
JavaScript:
Window_Status.prototype.maxEquipmentLines = function() {
    return 6;
};
Hi, thank you for helping me.
It works but the original one still shows up, can you give me a script to hide it?
In my theory, it should be like this but it could be wrong
JavaScript:
Window_Status.prototype.drawBlock4 = function (y) {
  this.drawText("");
};
 

Attachments

  • 04.png
    04.png
    1.8 MB · Views: 4
Last edited:

autodidact

Veteran
Veteran
Joined
Nov 13, 2020
Messages
75
Reaction score
62
First Language
English
Primarily Uses
RMMV
Oh, sorry, I forgot about that. Also, since you are overwriting functions, it is a good idea to put these into a plugin and keep it at the very top of your list. That way other plugins think yours is the original declaration of the methods.

Try this:
JavaScript:
Window_Status.prototype.drawBlock4 = function(y) {
    //this.drawProfile(6, y);
};

If the last horizontal line in the window is a problem then you will have to overwrite another function.
JavaScript:
Window_Status.prototype.refresh = function() {
    this.contents.clear();
    if (this._actor) {
        var lineHeight = this.lineHeight();
        this.drawBlock1(lineHeight * 0);
        this.drawHorzLine(lineHeight * 1);
        this.drawBlock2(lineHeight * 2);
        this.drawHorzLine(lineHeight * 6);
        this.drawBlock3(lineHeight * 7);
        //this.drawHorzLine(lineHeight * 13);
        //this.drawBlock4(lineHeight * 14);
    }
};
 

duy123a

Warper
Member
Joined
Oct 24, 2021
Messages
4
Reaction score
1
First Language
English
Primarily Uses
RMMV
Yeah, thank you for your note too. Please have a nice day ^^
 

Latest Threads

Latest Profile Posts

Ugh, can't decide what to make next!
The Dystopia
ikW0BYF.png
Recently got RPG Maker MZ. A bit slower with my current PC but I will be getting a new one soon.
evening progress; pretty happy where this is at so i'll take the rest of the night to myself =w=
5NJGyKY.png
It would seem learning JS is not a know it all for making plugins. While it has enabled me to understand what I'm looking at, I still have to find the relevant information in the core scripts. This is much harder than learning JS IMO.

Forum statistics

Threads
118,403
Messages
1,115,673
Members
155,343
Latest member
sograyish
Top