Enemy HP Bars

Why isn't it working?
I need help................
Why isn't it working?

I need help................
And we need to know what you've done and what happens in your games, before we can help you.

As many people have used this, the problem has to be in your project and not in the script itself, so we need to know more about it to be able to look for the problem.
Hello. I am having an error with the lite version of this script, where the following error is displayed:

Script 'Enemy HP Bars' line 169: NoMethodError occurred. 

undefined method `[]' for nil:NillClass

The error shows up when the battle loads and the battle contains an enemy set to "Appear Halfway".

I am also using your "Sleek Gauge" script.

Could you help?
Apologies if this is a necro-post, however I'm struggling to find where in this to change the Y axis of State icons.

if DTP_HP::USE_STATES xx = 24 yy += 12 if @battler.boss? @battler.states.each do |state| @hp_bar.draw_icon(state.icon_index,xx,yy) xx += 24 end endThis is where it's determined, I'm fairly certain, but it's in an if statement I'm not really comprehending, as yy is declared before the if statement.

But.. If you change YY, it has no effect. What am I doing wrong here?

Edit: I added the following:

yy += 12and adjusted the if statement's yy value proportionally to my own. Just in case someone Googles this with the same question. Additionally, there doesn't seem to be a way to change the xx values individually between normal enemies and bosses, so that's my next goal to tackle.

Edit 2: I recall reading either here or on a Sleek Gauges thread that someone was having issues with the frame rate tanking using these scripts. I can confirm this happens, and to be upfront, there doesn't appear to be anything on Vlue's end wrong with either script (regarding that issue, anyway). So, in case someone ever Googles THIS or comes in to complain, here's the issue and what causes it:

The text engine sucks. That's it. You're drawing too many characters on screen. So, if you have characters named after adjectives for some reason, that will impact things. Or, if you have a mob named Werewolf, and you have 8 of em, that's Werewolf 1-8 + their health numbers. Compare to something like "Imp," you'll notice a huge change in performance. There's an INCREDIBLY easy fix though! The text cache script here:

http://forums.rpgmakerweb.com/index.php?/topic/1001-text-cache/
Is there a way for the Light Versions feature to show the enemy name, to be incorperated into the other version?

I'm currently making a "Sword Art Online" based game and I thought adding the names of the Bosses would be cool.

Thanks for the script btw thing works great lol 
How do i make it like in the 3rd photo with the demon, where it shows the overall health?
heya. i have no scripting skills, so can you inform me on how to get this to work.


thanks.
I tried adding the script as is to my game. When I inserted it in sprites section I get a superclass error in Scene_Battle. When I inserted it at the bottom of all the scripts the bars weren't visible for any enemy. I haven't done any modifications other than the basic scripts that are required to run the game. What should I do? What is the proper way of implementing the script.
What should I do? What is the proper way of implementing the script.

I suggest you follow the link "how to use a script" in my signature, it explains the procedure and all possible configuration options yoiu may need.
Hello!

Script looks nice.
Will it work for sapphire action system iv? Or do you know of any enemy hp bar script that does work with it? <3
I've got a question.

I'm doing a sort of horror-esque version of a chapter in my game. There are some ghosts and such to fight, but every once in a while you will get a battle here there is nothing there and you get the message, "There's nothing here. Were you just seeing things?" And the battle aborts. The only problem I have is that the HP bars still show on my "Null_Battler." Is there a way to disable the HP bars just for that one monster? I'm using both the normal and Boss HP bars otherwise, it's just this one monster I want not to have the bars for.
Hi, I'm a novice. They explain to me how to use this formula from where I copy and assemble .js how do I work in RPG Mv I do not understand this goes in the plugins folder or is it only used in events?
@DiegoArancibia This is an English language site, and public posts must be in English and only in English. Please edit your post and translate it; use Google translate if necessary
[QUOTE = "Vlue, post: 6386, miembro: 219"]
Basic Enemy HP Bars v2.1
Basic Enemy HP Bars Lite v1.0.2

por VM
​
Introducción
Proporciona indicadores de hp básicos sobre los enemigos en batalla con opciones para mostrar el porcentaje o el valor absoluto del hp restante, así como la personalización del color, el tamaño y la posición. ¡Y ahora con la opción de usar una imagen personalizada desde archivo!

Nueva versión Lite sin la opción de un calibre personalizable, para usar con Sleek Gauges

Caracteristicas
- Plug and play con la configuración predeterminada
- Colores personalizables, tamaño, posición.
- Puede mostrar hp restantes como porcentaje o valor absoluto
- Puede usar una imagen personalizada de un archivo

Capturas de pantalla
Spoiler
ENEMYHP1.png
ENEMYHP2.png
ENEMYHP3.png


[/ SPOILER]
Cómo utilizar
Plug and play, no se requiere edición para las barras predeterminadas.
La personalización se puede encontrar directamente en el script con comentarios que explican los valores.

Guión
Práctico pastebin a la derecha ... allí >> ¡ Aquí !
Y para jugar, un archivo de imagen que hice para la función de imagen personalizada:
Custom_HP.png


Versión Lite:


Preguntas más frecuentes
Ninguno disponible

Crédito y gracias
- Por VM de DT
- Gratis para usar en cualquier proyecto con crédito otorgado [/ QUOTE]
Hola perdon por molestar pero no entiendo nada como hago para usar esto y que me quede como las ratas ?
@diego this thread here is for an RMVXAce script not an MV plugin. You cannot use this on MV. You need to find an MV version if you want to use it on MV
[QUOTE = "Engr. Adiktuzmiko, post: 917871, miembro: 1742"] [USER = 81284] @diego [/ USER] este hilo aquí es para un script RMVXAce no para un plugin de MV. No puedes usar esto en MV. Necesitas encontrar una versión de MV si quieres usarla en MV [/ QUOTE]
De acuerdo gracias si ya logre darle vida a los moustros gracias a una pagina de plugins yanfly 🙂
@DiegoArancibia This is an English forum, so please translate your post. If your English isn't good enough, then please use Google Translate.
Would there be a way to make the health bar work in percentage, and appear at full every time they attack then show the percentage of health left compared to that attack, then disappear?
Similar to MegaMan X: Command Mission's health bar if anyone has played that
Is there a way to make a exception for certain enemies? Lifebar should work on most of enemies, but I want some enemies to not show it.
Is there a way to make a exception for certain enemies? Lifebar should work on most of enemies, but I want some enemies to not show it.
VTS Enemy HP Bars By Ventwig has this built in. I would suggest you use that instead.
Unless it really doesn't look like how you want.

Original thread: https://forums.rpgmakerweb.com/threads/enemy-hp-bars.697/