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
73
Reaction score
52
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: 3
Last edited:

autodidact

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

Reading about metaverses recently. I can totally imagine myself in the future, logging in with VR glasses to a virtual beach villa sitting in a virtual chair, with a virtual laptop facing the sea...coding 16-bit RM.
Mod name: "[Game name] Gameplay Overhaul"
What they actually mean: "Here is a mod that makes the game harder."
I decided to reinstall one of my most favourite game of all times, Gothic 2. Time to get back to Khorinis!
So much game make... I needs to rest. The foods call.
-Casino with bunnysuit green check.png
1638563168795.png

Forum statistics

Threads
117,166
Messages
1,105,096
Members
153,259
Latest member
litespace
Top