MZ Scroll bar for item stats with Yanfly plugin?

Hey y'all, I am still a greenhorn here and I'm sure someone's gotten a straight answer for this before, just not that I could find. I'm having a bit of trouble figuring out how to edit the main menu scenes to create something that can scroll. I have no issue with the windows themselves, I would just like the option to see more of them.

I'm using MZ 1.9 on Mac with the Yanfly Core suite (fully updated as of this post). Other plugins are minimal, just PluginCommonBase and PluginBaseFunction from Triacontane plus a trio of OverpassTile plugins also ported by Triacontane via Yoji Ojima. As of now I've largely been messing around with the default stuff and am only really now getting into exploring how the plugins work. As a test I made a weapon with some custom effect resistances and tagged them as such in the Weapons Notes using the Yanfly custom info.
Screenshot 2025-12-15 at 5.19.42 PM.png


When I put it in the Player inventory and open the item menu, I get this:

Screenshot 2025-12-15 at 5.21.19 PM.png


Miles ahead from here I started! But still a ways to go.
As I understand it, I would need to find a way both to let the screen continue rendering "outside" of the borders, and a way to implement the actual scrolling function using that. I've heard talk of using "pictures" but how would that work in a dynamic menu like the items page?

If I could, I would like to be able to scroll within the item description as well, but I would want to keep dynamic text effects for that. Not to mention that I haven't been able to find a good way to change the individual panel heights within the main menu; at least, not with just the Yanfly plugins.

I'm just sort of puzzled why I'm having trouble digging up info on this specific function, seeing as the weapons list right beside it scrolls just fine! I know the functionality is in there, and I did go looking! I found this in the main.js file:
Screenshot 2025-12-15 at 5.57.15 PM.png

...but this is less than half of it and, like I said, I'm still green here. I don't really know how to go about implementing it, say nothing of making it play nice with the plugins. Still, it feels like there's gotta be a way to implement custom scrolling within the main menu scenes. But I've been at it for days and the closest I've gotten is finding a plugin literally called "scroll bar" but to download it I would have to give Patreon by bank details and I am not doing that.

So...is getting to choose which screens can scroll within the main menu parameters a fools' errand? Or, more accurately, something that should be attempted with more JS experience? Could I just override it with something else, like an elaborate message overlay? Or is there another Menu plugin y'all would recommend, either for getting that scroll bar or for extensively editing individual menu panes? (I tried to download one that was originally for MV via FOSSIL and that sadly did not work...) Or, secret third option, am I just missing something here?
MOG Hunter has scrollbar plugin that can be placed on windows that can scroll,
there may be one for another author too.

problem with Visustella plugins are they are obfuscated, so how to add a scrollbar
to the window is a bit more complicated if you don't know how their way works.

but you can try to add a scroll bar plugin to it and see if it works.
it may push the content to the right or left, depending on the position of the scrollbar.
Haven't tried to check the draw logic very deeply (don't understand that block drawing stuff etc), but I managed to make something. The idea is that you give it a contentsHeight based on what your equipment with the highest amount of custom entries is (maybe you could instead check the custom entries in the draw method and give it a new sized bitmap based on that). Then that maxScollY is also based on the amount of custom entries (I put a notetag <customCount:X> on the equipment (if you know how to scan the notedata, you don't need additional notetag). And that subtraction is based on how many custom entries is visible without scrolling.

Window_ShopStatus.prototype.contentsHeight = function() {
return this.innerHeight + 200;
};

Window_ShopStatus.prototype.overallHeight = function() {
return this.contents.height;
};

Window_ShopStatus.prototype.scrollBlockHeight = function() {
return this.contents.height;
};

Window_ShopStatus.prototype.maxScrollY = function() {
let customCount = 0;
if (this._item && this._item.meta.customCount) customCount += this._item.meta.customCount * this.lineHeight();
return Math.max(0, customCount - 4 * this.lineHeight());
};

Then in the VS plugin settings at the start of the draw method put (so it goes back to start position if you change item):
this._scrollY = 0;

And if you want you can remove (or put conditional) on the "// Fill rest of the window" at the bottom.

Seemed to work for me, but that window is used in multiple places, so you might need to put some kind of conditionals there that depending on what scene you're in.

EDIT: Oh and this isn't a scroll bar, more like there's a small bar visible on the right and you can scroll the window by clicking and holding the mouse button and moving the mouse up/down.
MOG Hunter has scrollbar plugin that can be placed on windows that can scroll,
there may be one for another author too.
Thank you for the suggestion! I'll definitely explore the MOG plugins more, but sadly I haven't been able to make this one work for me ^^; Even when I turn off the VS plugins, it doesn't seem to have any effect.


Window_ShopStatus.prototype.contentsHeight = function() {
return this.innerHeight + 200;
};

Window_ShopStatus.prototype.overallHeight = function() {
return this.contents.height;
};

Window_ShopStatus.prototype.scrollBlockHeight = function() {
return this.contents.height;
};

Window_ShopStatus.prototype.maxScrollY = function() {
let customCount = 0;
if (this._item && this._item.meta.customCount) customCount += this._item.meta.customCount * this.lineHeight();
return Math.max(0, customCount - 4 * this.lineHeight());
};
Thank you for the script, rpgLord69!! I'll try it out and see if it works, but would this be something I add as it's own plugin, something I add to a plugin, or something I call as a script?
Yeah, put that as a plugin file. But like I said, there's a better way to do that, if you fully understand the scroll logic (or build something custom).

Original thread: https://forums.rpgmakerweb.com/threads/scroll-bar-for-item-stats-with-yanfly-plugin.181452/