MZ Issue with character stats in Shop Screen

SOLVED: Don't neglect your Extended Parameters list in the Core plugin like this goober did, kids. Apparently that's what the other VisuStella plugins need to refer to.


EDIT: Thanks, mods 🙂

Hello!

This is kind of a frustrating one because I have both parts of my solution in two separate VisuStella plugins but I cannot get both to agree at once!

The armour in my game provides a suite of bonuses depending on their type. Some Provide lots of HP, DEF, and STR, some provide MP, SPR, and MAG, others provide a balance with a DEX bonus. So naturally, the default shop layout which only shows the DEF increase before purchase is no good to the player - they need to see all of the bonuses they're getting before they invest in a purchase.

Fortunately, the ItemsEquipsCore plugin shows exactly that.

Spoiler: Screenshot
Screenshot 2025-12-08 193947.png

The only issue is the stats are in the wrong order here. I mean, it's arbitrary, but I just don't like this order at all (I've replaced Luck with Strength since Luck makes a very small difference to state changes).
I would like Attack, Defense, Strength, Dexterity, Magic, Spirit, Max HP, Max MP.

Now there IS an option in the VisuStella Core under Parameter Settings which I can adjust the order.

Screenshot 2025-12-08 194405.png

If I disable ItemsEquipsCore this new order displays correctly in my status and equip menus. Unfortunately this new order is not reflected in the changes made in ItemsEquipsCore when that's enabled. I cannot find how to change the stat order in the latter! 🙁

I'm reasonably sure that what I'm looking for is in this // Draw Parameter Values section of this... section of the ItemsEquipsCore plugin, but I don't know java and can't make head nor tails of it. I was hoping to just be able to reorder some IDs as above, but alas.

Spoiler
Code:
// Set Variables
const lineHeight = this.lineHeight();
let x = 0;
let y = 0;
let width = this.innerWidth;
let height = this.innerHeight;
let hw = Math.floor(width / 2);
let hx = x + width - hw;

// Draw Item Name, Type, and Quantity
this.drawItemName(this._item, x + this.itemPadding(), y, width - this.itemPadding() * 2);
this.drawItemDarkRect(x, y, width);
y += lineHeight;
if (this.drawItemEquipType(x, y, hw)) y += 0;
if (this.drawItemQuantity(hx, y, hw)) y += lineHeight;

// Draw Item Weapon Type or Armor Type
if (this.drawItemEquipSubType(x, y, width)) y += lineHeight;

// Draw Parameter Values
const params = this.actorParams();
for (const paramId of params) {
    if (this.isCustomParameter(paramId)) continue;
    this.drawActorParamClassic(paramId, x, y, hw);
    if (x === hw) {
        y += lineHeight;
        x = 0;
    } else {
        x = hw;
    }
}
// Realign
if (x === hw) {
    this.drawItemDarkRect(hw, y, hw, lineHeight);
    y += lineHeight;
    x = 0;
}

// Draw Custom Entries
y = this.drawItemCustomEntries(x, y, width);

// Fill Rest of the Window
this.drawItemDarkRect(x, y, width, height - y);



SO, can anyone pretty please help with a solution to this? I would take either approach; if anyone can help me get the full list of stats to display in shops without using ItemsEquipsCore, that's great! If you know how to simply order the parameters displayed within ItemsEquipsCore, also amazing! I don't necessarily need any other feature of the latter plugin.
if your order show in equipStatus, menuStatus, than it's probably not
added at Window_ShopStatus? I think it was called.

it ItemCore does that, than I wonder as I don't have MZ, only hybrid,
so I don't know how VS plugins exactly work or what reflect what.

doesn't the helpfile say anything what scenes it target or other parameter
that reflect other windows?
if your order show in equipStatus, menuStatus, than it's probably not
added at Window_ShopStatus? I think it was called.

it ItemCore does that, than I wonder as I don't have MZ, only hybrid,
so I don't know how VS plugins exactly work or what reflect what.

doesn't the helpfile say anything what scenes it target or other parameter
that reflect other windows?


I gave Core another peruse but no, the order I put the stats in is one global setting that then applied to the Equip and Status screens. It was set here;

CoreEngine --> Parameter Settings --> Displayed Parameters

By default, the Shop scene doesn't show all these stats at once, they only do so once you plug in ItemsEquipCore. I would've hoped that Displayed Parameters would continue to affect their order in the next plugin, but it doesn't seem so. The snippet I copied into a spoiler tag in the OP is the only spot I could find mention of Shop Scene Parameters in the ItemCore plugin, but I don't know what to do with it >.< it doesn't mention any parameter IDs or anything that I could try juggling as a novice.
In the code this seems to draw your parameters:

// Draw Parameter Values
const params = this.actorParams();
for (const paramId of params) {
if (this.isCustomParameter(paramId)) continue;
this.drawActorParamClassic(paramId, x, y, hw);
if (x === hw) {
y += lineHeight;
x = 0;
} else {
x = hw;
}
}

So I guess you can remove the loop and draw them one at a time:

// Draw Parameter Values
const params = this.actorParams();
this.drawActorParamClassic(params[5], x, y, hw);
if (x === hw) {
y += lineHeight;
x = 0;
} else {
x = hw;
}
this.drawActorParamClassic(params[2], x, y, hw);
if (x === hw) {
y += lineHeight;
x = 0;
} else {
x = hw;
}

ETC. Just use params[X] to select wha tyou want next. (edit: they start at 0)

Or you can keep the loop and rearrange the const params before it starts looping.
Isn't your code from the 'double style' though? Your pic seems to be the 'compare style', I think? You need to change the code on the right setting.
Isn't your code from the 'double style' though? Your pic seems to be the 'compare style', I think? You need to change the code on the right setting.
Ah yes, I made an error when copying it for the thread, but I have been taking care which of the 3 modes I'm in! 🙂

In the code this seems to draw your parameters:

// Draw Parameter Values
const params = this.actorParams();
for (const paramId of params) {
if (this.isCustomParameter(paramId)) continue;
this.drawActorParamClassic(paramId, x, y, hw);
if (x === hw) {
y += lineHeight;
x = 0;
} else {
x = hw;
}
}

So I guess you can remove the loop and draw them one at a time:

// Draw Parameter Values
const params = this.actorParams();
this.drawActorParamClassic(params[5], x, y, hw);
if (x === hw) {
y += lineHeight;
x = 0;
} else {
x = hw;
}
this.drawActorParamClassic(params[2], x, y, hw);
if (x === hw) {
y += lineHeight;
x = 0;
} else {
x = hw;
}

ETC. Just use params[X] to select wha tyou want next. (edit: they start at 0)

Or you can keep the loop and rearrange the const params before it starts looping.

I didn't immediately have any luck (I caused some crashes) but am gonna keep trying once this abysmal headache is gone (having a day off here Dx ). I'm curious though, can I refer to Max HP and Max MP with a param[x]? I was under the impression it wasn't a standard engine "parameter" as such.

Thank you so much for taking the time to help.
So I checked and the const params = this.actorParams(); returns an array like:
["MAXHP", "MAXMP", "ATK", "DEF", "MAT", "MDF", "AGI", "LUK", "STR"]

So just change it to return an array where you change the order of those elements. Like for example:
const params = ["ATK", "MAXHP", "MAXMP", "DEF", "MAT", "MDF", "AGI", "LUK", "STR"];

Leave the rest of the code alone.

EDIT: Note that I have one extra parameter STR there, which you should remove.
I was hoping to be able to do that! 😀

Err, I have searched the script call list for all mentions of params and arrays though and cannot find what I'm looking for (I'm not in any way proficient at java)

Would you be able to tell me how to change this array? I would be eternally grateful (though I already am)
No I mean if you look at the plugin settings for the code to draw it (like what you posted in opening), there's a line:
const params = this.actorParams();
Replace it with (order those how you like inside the square brackets):
const params = ["ATK", "MAXHP", "MAXMP", "DEF", "MAT", "MDF", "AGI", "LUK"];
OH MY GOSH IT'S DONE!!

The square brackets caused a crash, but I just said bugger it and tried a couple of other things including this, the winner:


Code:
const params = this.actorParams("MAXHP", "MAXMP","ATK",  "DEF", "LUK", "AGI","MAT", "MDF");

That seemed to change what the array is when it's called in other places too because it also fixed the order on the Equip Scene (something I didn't notice was also wrong until last night) even though I only used this line in the Shop Scene.


Thank you, thank you. You're like my Morpheus. You showed me the door, and I waaaalked through! 😀
Hmmm, good that it now works how you want.

But unless I made some mistake, it seemed to work for me. Also, that actorParams method doesn't seem to take arguments, so it should have no effect what you added there.

I also just tested how the Core Engine parameter settings affect it, and changing the parameter order (in the extended list) seemed to affect that shop status window. So I would think you had some other problem going on there. (Though my plugins aren't updated.)
Oh my god.


You're right.


I figured out what happened. I had neglected the Extended List. At some point during my tampering I just made the Extended List mirror the normal one... aaaand... something else must've gone wrong and it didn't work so I wrote that off, but that's what I did. That's why it's fixed.

Trying the code that I did did nothing (I wouldn't have known, I'm flying blind) but I had just so happened to solve it by accident along the way.

I think, when it crashed, I had deleted the entire Extended Parameters list (I assumed it was just for all those extra stats I wasn't gonna use, and they were only for niche functions) and so when I tried to put in your solution in the brackets, the extended list being empty caused the crash instead.

It was the extended parameters. It was always the extended parameters.

Original thread: https://forums.rpgmakerweb.com/threads/issue-with-character-stats-in-shop-screen.181355/