MV Moghunter Battle HUD - Help with a small edit on the plugin!

Hello!

I'm working in customizing a battle HUD, everything is working well, however, I encountered an issue I didn't notice until now x_x

Concept:
My main character can swap between 2 forms, for that I simply used a "Change Actor Image" command and a Switch.

Issue:
After I implemented Moghunter Battle HUD, that no longer works, since it uses a new folder called Battlehud.

I can keep making the character swap forms outside of battle. But in battle it uses a different file to draw the Face from and I can't seem to find a way to add the condition to the Moghunter plugin.

I'm using a Switch to turn on and off the second form, so in theory I can imagine adding that condition with that switch inside the plugin so it draws a different Face file instead, but my knowledge for coding is nearly zero.

Does anyone knows how to edit it?

Here is the plugin Im using
Never mind, ignore this, I see you want it to change mid-battle.
Never mind, ignore this, I see you want it to change mid-battle.
Oh not at all, I'm glad I checked right away because what you did worked perfectly!

Sorry for the missunderstanding! I didn't want to change it mid battle, the form swap occurs always outside of it but the swap didnt update in battle. So your edit was perfect!

Thanks so much!

Moghunter specifies to mention if the plugin was edited, I'm not sure how to edit that part though.
Think you can mention it too on the plugin itself if is not a problem or which part I should edit?
ooooh lol, well in that case 😀

reposting this here:

Assuming:
  • Your main character has actorId = 1
  • Switch you are using is 140
  • You have two images: Face_1 and Face_1b in the battlehud folder

Change line 3023 from:

Code:
this._face = new Sprite(ImageManager.loadBHud("Face_" + this._battler._actorId));

to:

Code:
this._face = new Sprite(ImageManager.loadBHud("Face_" + this._battler._actorId + ($gameSwitches.value(140) && this._battler._actorId == 1 ? "b" : "")));
ooooh lol, well in that case 😀

reposting this here:

Assuming:
  • Your main character has actorId = 1
  • Switch you are using is 140
  • You have two images: Face_1 and Face_1b in the battlehud folder

Change line 3023 from:

Code:
this._face = new Sprite(ImageManager.loadBHud("Face_" + this._battler._actorId));

to:

Code:
this._face = new Sprite(ImageManager.loadBHud("Face_" + this._battler._actorId + ($gameSwitches.value(140) && this._battler._actorId == 1 ? "b" : "")));
I'll add you on the credits XD, Should I edit the plugin description that says " Author: Moghunter" to "Author: Moghunter , edited by TESTOSTERONE"?
Thank you, but no credit is necessary for me. 😀 You can keep it as moghunter.

I’m just hoping that you get to learn some coding here and there.

Original thread: https://forums.rpgmakerweb.com/threads/moghunter-battle-hud-help-with-a-small-edit-on-the-plugin.158107/