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

duy123a

Villager
Member
Joined
Oct 24, 2021
Messages
5
Reaction score
2
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
82
Reaction score
65
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

Villager
Member
Joined
Oct 24, 2021
Messages
5
Reaction score
2
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: 20
Last edited:

autodidact

Veteran
Veteran
Joined
Nov 13, 2020
Messages
82
Reaction score
65
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

Villager
Member
Joined
Oct 24, 2021
Messages
5
Reaction score
2
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

Damn, took a chance on a paid MV plugin working with MZ (FOSSIL) but didn't work :p Been lucky up until now so I got cocky!
Going to be streaming more RM game dev in about 20 minutes or so...

Hello, debt! But it matches my eyes, don't you think?

forester.jpg
Gnyaaaa! Invisible comments on YouTube!!!
When I learned about multithreading in C++, one of the first things was that while heap is shared, each thread has its own stack and it's impossible to access another thread's stack.
So I wrapped the variables into a static class and passed its address to another thread. And it worked.

Forum statistics

Threads
129,985
Messages
1,206,749
Members
171,219
Latest member
apkmodyinfo
Top