The plugin in question: https://atelierrgss.wordpress.com/rmz-battle-hud/
I am looking at the code and how some of the faces can be changed at critical health.
Now I want to change this for the HP codes upon death or critical health, that way the HP number image (HP_Number) changes.
I am looking at the code and how some of the faces can be changed at critical health.
JavaScript:
//==============================
// * Update Face Animation
//==============================
Battle_Hud.prototype.update_face_animation = function() {
if (this._battler._bhud_face_data[3] > 0) {this._battler._bhud_face_data[3] -= 1;
if (this._battler._bhud_face_data[3] === 0) {
if (this._battler.isDead()) {this._battler._bhud_face_data[2] = 4}
else if (this._battler.hp <= 30 * this._battler.mhp / 100) {this._battler._bhud_face_data[2] = 3}
else {this._battler._bhud_face_data[2] = 0};
};
};
};
Now I want to change this for the HP codes upon death or critical health, that way the HP number image (HP_Number) changes.