MV Custom Menu Backgrounds for each actor?

I'm making my first project in RPG maker MV. I've created full body art of the main four party members for my game, and I want there to be some way to see this art within the game.

Near the very start when I made the project, I downloaded the Menu Backgrounds plugin by SomeRandomDude, so that I could have the backgrounds for the pause menus be all black. I see there's a way to have a different image for the status screen, but I want there to be unique backgrounds for the status screen of each actor. Is there a way to do that with this plugin? If not, is there a way to do that with some other plugin? ( Also, I don't have money to buy plugins ;-; )

I'd very much appreciate some help and/or advice, thank you.
Hmmm, don't know if it works, but a random suggestion you can try:
In the plugin where it selects the file to load (const bit), put conditionals if the constuctor name is Scene_Status, check who the menuActor is and change the filename depending on that.

EDIT:
I tested it quickly and it seems to work if you replace the below

const bit = _.loadImage(_.backgrounds[this._menuBackgroundConstructorName]);

with (change the file names to what you want and add all actor ids)

let bit = 0;
if (this._menuBackgroundConstructorName == "Scene_Status") {
if ($gameParty._menuActorId == 2) {
bit = _.loadImage("Sword");
}
if ($gameParty._menuActorId == 1) {
bit = _.loadImage("Night");
}
} else {
bit = _.loadImage(_.backgrounds[this._menuBackgroundConstructorName]);
}

But yeah, there might be some problem that I'm unaware of and maybe you should add stuff to what it loads automatically(?). Ask some coders LOL.
Hmmm, don't know if it works, but a random suggestion you can try:
In the plugin where it selects the file to load (const bit), put conditionals if the constuctor name is Scene_Status, check who the menuActor is and change the filename depending on that.

EDIT:
I tested it quickly and it seems to work if you replace the below

const bit = _.loadImage(_.backgrounds[this._menuBackgroundConstructorName]);

with (change the file names to what you want and add all actor ids)

let bit = 0;
if (this._menuBackgroundConstructorName == "Scene_Status") {
if ($gameParty._menuActorId == 2) {
bit = _.loadImage("Sword");
}
if ($gameParty._menuActorId == 1) {
bit = _.loadImage("Night");
}
} else {
bit = _.loadImage(_.backgrounds[this._menuBackgroundConstructorName]);
}

But yeah, there might be some problem that I'm unaware of and maybe you should add stuff to what it loads automatically(?). Ask some coders LOL.
It works!!! thank you so much!!!!!!!!
One problem though is that when the game starts up, and the status screen is opened, it doesn't load the image the first time the player opens the status screen, only the second time onward, for all actors except the first one. how do you fix this?
JavaScript:
this._backgroundSprite.bitmap = new Bitmap(newWidth, newHeight);
this._backgroundSprite.bitmap.blt(bit, 0, 0, bit.width, bit.height, 0, 0, newWidth, newHeight);
This part looks suspicious. If the image is not loaded blt doesn't work.
I haven't read his whole code to know why he needs to create a new bitmap.
Without fixing the plugint itself, you can load the image in those custom scenes (there are 20 of them so maybe it is just enough). Maybe you can just use a false scene name too fool the plugin to load the image.
A common approach would be to attach a load listener to the bitmap and blt it within the callback rather than right away.

For more flexibility, just add the image as a custom sprite.
It works!!! thank you so much!!!!!!!!
One problem though is that when the game starts up, and the status screen is opened, it doesn't load the image the first time the player opens the status screen, only the second time onward, for all actors except the first one. how do you fix this?

Cool.
Yeah, I was gonna suggest the same thing as utunnels (seems to work if you just name the custom scenes like test1, test2 etc and use the same images there as the ones you want for status). Or you could do what Kenen suggested, but I've no idea how to do that LOOOL

EDIT: It also seems to work if you add in that loadAllImages function to load the images you've added in the code you changed.
Cool.
Yeah, I was gonna suggest the same thing as utunnels (seems to work if you just name the custom scenes like test1, test2 etc and use the same images there as the ones you want for status). Or you could do what Kenen suggested, but I've no idea how to do that LOOOL

EDIT: It also seems to work if you add in that loadAllImages function to load the images you've added in the code you changed.
Sorry, I have no experience with javascript whatsoever, how do I add in that function to the code?
Sorry, I have no experience with javascript whatsoever, how do I add in that function to the code?

Added the line that's commented as EXTRA. You can add lines for all the pics you need. That seemed to work for me, but I only tested it quickly back then.

_.loadAllImages = function() {
for (let property in _.backgrounds) {
if (_.backgrounds.hasOwnProperty(property)) {
const name = _.backgrounds[property];
if(name.trim().length > 0) {
_.loadImage(name);
}
}
}
_.loadImage("Sword"); // EXTRA
};

_.loadAllImages();
keep in mind that there can be 1 major drawback here as well and need
a fallback if it fails to load.

for example, your player can rename the actor, so this actor name doesn't
exist, so it must use the drawback.

another idea is maybe longer, which require more the ID for the actor
instead of using it's name.

this way, its safer and might better work as well 😉

if it also depends on the class, than ID's is the best way to go with.
Added the line that's commented as EXTRA. You can add lines for all the pics you need. That seemed to work for me, but I only tested it quickly back then.

_.loadAllImages = function() {
for (let property in _.backgrounds) {
if (_.backgrounds.hasOwnProperty(property)) {
const name = _.backgrounds[property];
if(name.trim().length > 0) {
_.loadImage(name);
}
}
}
_.loadImage("Sword"); // EXTRA
};

_.loadAllImages();
It works!! Thank you so much for helping me out with this!
Added the line that's commented as EXTRA. You can add lines for all the pics you need. That seemed to work for me, but I only tested it quickly back then.

_.loadAllImages = function() {
for (let property in _.backgrounds) {
if (_.backgrounds.hasOwnProperty(property)) {
const name = _.backgrounds[property];
if(name.trim().length > 0) {
_.loadImage(name);
}
}
}
_.loadImage("Sword"); // EXTRA
};

_.loadAllImages();
Hi again. Late follow-up question, How can I modify this to allow for image changes? For example, if I wanted to change the art that's used for a character after a certain point in the game?
Hmmm, I guess you can just put conditionals in the stuff in my first post, like $gameParty._menuActorId == 1 && $gameVariables.value(X) == 3
And then add it to also load those pics in the stuff you quoted.
Change the variables to choose what pic to use.

Original thread: https://forums.rpgmakerweb.com/threads/custom-menu-backgrounds-for-each-actor.176837/