MZ Draw Sprite on Status Scene

Hi!! So a while ago you helped me with this plugin to draw the walking sprite on the Menu Scene.
(function() {
const _drawItem = Window_MenuStatus.prototype.drawItem;
Window_MenuStatus.prototype.drawItem = function(index) {
_drawItem.call(this, index);
const actor = this.actor(index);
const rect = this.itemRect(index);
const x = rect.width - 543; // <-- adjust this number as you prefer
const y = rect.y + 113; // <-- adjust this number as you prefer
this.drawActorCharacter(actor, x, y);
}
})()

And it is amazing as it was super easy to move around and such, so I was wondering if there was a similar way of drawing the sv_battler sprite onto the Status Scene menu, thanks a mil!!
Hello!

I'm not too good with plugins or JS in general, but I have been using this plugin by SumRanDev that shows the bust in the menu screen, along with an SV battler with the idle animation.

I don't know how to edit, so it only shows the SV battler sprite, but I'll link it here anyway, just in case
you may need to change this.drawActorCharacter to the one
that draw the sv actors, but you need to check the core plugin
which function is responsible for it if you want it in the status scene.

you may need to look ino the rmmz-mananger to look for it.
else the rmmz_objects.
you may need to change this.drawActorCharacter to the one
that draw the sv actors, but you need to check the core plugin
which function is responsible for it if you want it in the status scene.

you may need to look ino the rmmz-mananger to look for it.
else the rmmz_objects.
I see, thanks! I´ve been digging around a bit but the only one I found might be related to it was
Sprite_Actor.prototype.updateBitmap = function() {
Sprite_Battler.prototype.updateBitmap.call(this);
const name = this._actor.battlerName();
if (this._battlerName !== name) {
this._battlerName = name;
this._mainSprite.bitmap = ImageManager.loadSvActor(name);
}
};
On the rmmz_sprite, I don´t know a lot about coding so I've tried to search on the different files for "ActorCharacter" "SvActor" or "this.drawActorCharacter" but nothing was coming up besides this that I thought might be related, though I can´t really make head or tails of it to mix it up with the code I have.

Hello!

I'm not too good with plugins or JS in general, but I have been using this plugin by SumRanDev that shows the bust in the menu screen, along with an SV battler with the idle animation.

I don't know how to edit, so it only shows the SV battler sprite, but I'll link it here anyway, just in case
And thanks ! though I see that's for the menu and I was looking to add it on the Status Scene (where you see the character's stats and such)
there was a plugin for MV made, but forgot its name, which uses
battle actor sheet.

[here] is one for MV, I don't know how much different there is to
get it to work in MZ, but maybe there is some link for it for what you need.
there was a plugin for MV made, but forgot its name, which uses
battle actor sheet.

[here] is one for MV, I don't know how much different there is to
get it to work in MZ, but maybe there is some link for it for what you need.
Thanks! though this plugin is for adding the sv battle sprites to the menu in substitution of the Face icon, while I wanted to draw it on the status scene (where you see the stats of the characters) besides the Face icon to put it on an empty corner, sorry if I didn´t explain myself properly, but thanks for the suggestion!
And thanks ! though I see that's for the menu and I was looking to add it on the Status Scene (where you see the character's stats and such)
Oh, my bad, I didn't see that.

P.S I just realised the plugin I porvided is for MV 😅 my bad.
I think you can just imitate the existing draw functions to add the sideview battler sprite like below (for base rpg maker). You don't need any indexes, because you just take the first (or I made it to take the middle) pic from the idle pose. Then add in the status draw function to draw the sprite for this._actor.battlerName(). I had to add that load listener to it though, so it does the blt and refresh as it wasn't loaded fast enough. I tested it and it seems to work, change the coordinates in the draw function to move it around.

Window_Status.prototype.drawBlock2 = function() {
const y = this.block2Y();
this.drawActorFace(this._actor, 12, y);
this.drawBasicInfo(204, y);
this.drawExpInfo(456, y);
this.drawSideviewCharacterSprite(this._actor.battlerName(), 70, y + 230);
};


Window_Base.prototype.drawSideviewCharacterSprite = function(
fileName, x, y
) {
const bitmap = ImageManager.loadSvActor(fileName);
const pw = Math.round(bitmap.width / 9);
const ph = Math.round(bitmap.height / 6);
const sx = pw;
const sy = 0;
if (bitmap.isReady()) {
this.contents.blt(bitmap, sx, sy, pw, ph, x - pw / 2, y - ph);
} else {
bitmap.addLoadListener(() => this.refresh())
}
};
I think you can just imitate the existing draw functions to add the sideview battler sprite like below (for base rpg maker). You don't need any indexes, because you just take the first (or I made it to take the middle) pic from the idle pose. Then add in the status draw function to draw the sprite for this._actor.battlerName(). I had to add that load listener to it though, so it does the blt and refresh as it wasn't loaded fast enough. I tested it and it seems to work, change the coordinates in the draw function to move it around.

Window_Status.prototype.drawBlock2 = function() {
const y = this.block2Y();
this.drawActorFace(this._actor, 12, y);
this.drawBasicInfo(204, y);
this.drawExpInfo(456, y);
this.drawSideviewCharacterSprite(this._actor.battlerName(), 70, y + 230);
};


Window_Base.prototype.drawSideviewCharacterSprite = function(
fileName, x, y
) {
const bitmap = ImageManager.loadSvActor(fileName);
const pw = Math.round(bitmap.width / 9);
const ph = Math.round(bitmap.height / 6);
const sx = pw;
const sy = 0;
if (bitmap.isReady()) {
this.contents.blt(bitmap, sx, sy, pw, ph, x - pw / 2, y - ph);
} else {
bitmap.addLoadListener(() => this.refresh())
}
};
It worked like a charm!! thanks a million ;v; <3<3<333

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/draw-sprite-on-status-scene.180565/