Hello, I want to show the HP/MaxHP values in the enemy head in the battle scene, I think I have to make a plugin updating a rpg_sprite.js function.
Correct me if I'm wrong... but I need the hp and maxhp from the current updating sprite (enemy) and then draw it, or something. I know there are addons for it but I want to do by myself and your help.
Thanks!
So I need to know how to get enemy info and draw it... but I think to draw it I need rpg_window right? I am a bit confused.
Edited the code
Code:
(function() {
var parameters = PluginManager.parameters('ROKI_ShowEnemyHP');
Sprite_Enemy.prototype.update = function() {
Sprite_Battler.prototype.update.call(this);
if (this._enemy) {
this.updateEffect();
this.updateStateSprite();
this.updateHPText();
}
};
Sprite_Enemy.prototype.updateHPText = function() {
};
})();
Correct me if I'm wrong... but I need the hp and maxhp from the current updating sprite (enemy) and then draw it, or something. I know there are addons for it but I want to do by myself and your help.
Thanks!
So I need to know how to get enemy info and draw it... but I think to draw it I need rpg_window right? I am a bit confused.
Edited the code