Hi all,
I'm using Moghunter's Battle HUD as I love how it allows me to customise the default look to my liking. I want to show the faces of my characters too. The issue I'm facing is that I need to use faces from the Database (Actors) rather than the images folder. This is because my main character is a custom character. The player can change their gender, appearance, etc.
Here is the code I found for this part of the plugin:
I'm assuming I need to change this line:
I'd super appreciate it if someone could let me know what exactly I need to change in this code.
I'm using Moghunter's Battle HUD as I love how it allows me to customise the default look to my liking. I want to show the faces of my characters too. The issue I'm facing is that I need to use faces from the Database (Actors) rather than the images folder. This is because my main character is a custom character. The player can change their gender, appearance, etc.
Here is the code I found for this part of the plugin:
Code:
// * Create Face
//==============================
Battle_Hud.prototype.create_face = function() {
if (String(Moghunter.bhud_face_visible) != "true") {return};
this.removeChild(this._face);
if (!this._battler) {return};
this._face = new Sprite(ImageManager.loadBHud("Face_" + this._battler._actorId));
this._face.anchor.x = 0.5;
this._face.anchor.y = 0.5;
this._face_data = [0,0,false,false,false,-1];
this._face.ph = 0;
this._face.animation = [-1,0,0,0,0,0,0,0,0];
this._face.breathEffect = this._battler._bhud.faceBreath;
this._face.scaleY = 0;
if (String(Moghunter.bhud_face_shake) === "true") {this._face_data[2] = true}
if (String(Moghunter.bhud_face_animated) === "true") {this._face_data[4] = true}
this._battler._bhud_face_data = [0,0,0,0]
this.addChild(this._face);
};
I'm assuming I need to change this line:
Code:
this._face = new Sprite(ImageManager.loadBHud("Face_" + this._battler._actorId));
I'd super appreciate it if someone could let me know what exactly I need to change in this code.