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 Posts

Latest Profile Posts

Hi everyone! Enjoying this nice long weekend. How are you all doing? :)
I just successfully tested having events check if specific actors are in a particular party slot and then changing image to match. This will let me make scenes take into account who is in the party at the time and arrange them accordingly - this is important since I'll have extra actors beyond current party. The script used is the same from MV and is compatible with my current core plugin setup in MZ. Thank goodness.
That awkward moment when you're talking about thinking about writing a limited shop stock plugin for MZ and then find out you already wrote one...last May. My memory is so bad.
When I open my project and I'm like, hell yeah.
Some drawings I made in Lapis, one day I intend to involve them in some RPG Maker project.
* maybe two wall frames
*or some sprite flower tiara, or maybe it inspires someone to do something.
bdd19b62e539d17b3b00cc3d63034f7d.jpg

fcca5c8471b34483da8e032cfe579275.jpg

Forum statistics

Threads
118,426
Messages
1,115,869
Members
155,380
Latest member
Jairowind
Top