Enemy HP Bars

Hey, I modified the script just a bit to enable the use of simple critical HP display (the bar change's color when the enemy's hp is under certain threshold). Still, 99.9% of the script is V.M.'s original, and I don't claim credit or need to be credited in anyway ever. Hope someone gets benefitted.

http://pastebin.com/CyskpRTJ

Thanks for that script, V.M., helped my a lot.
First, thanks for this nice script.

But, i only want to show enemy HP bars in Bossbattles. can someone tell me, how to use with scan state ?
Set Scane state to say.. 20 and make a dummy state on state id 20 in the database that is applied to all bosses.
can you make a scrip like that but the enemy in maps... i'm using khas battle engine ... please..
That should be something you ask of the author of that script.
Hi Vlue,

  Is there a way to only show the HP bars when the enemy is selected and being attacked? It would work much like Yanfly enemy HP bars http://yanflychannel.wordpress.com/rmvxa/battle-scripts/ace-battle-engine/enemy-hp-bars/ .

  I am asking for this as i am using Battle Symphony from Yami, and your script doesn't have any compability issues with it as far as i know. But in this battle system there's an option to fade the other monsters that are not the target of a skill. what happens is that the enemy hp bar still stays there.
Try the more recent version I got up on the pastebin, might work. It's set to make the hp bar the same opacity as the battler sprite.
Try the more recent version I got up on the pastebin, might work. It's set to make the hp bar the same opacity as the battler sprite.
Thanks again Vlue, it work as intended when the battler disappear. The only thing that didn't disappeared is the number of HP. I don't use it at all, but maybe someone else does (if you're interested to make it's opacity to 0 of course 😎  ).
Awesome, thanks for this!  BD   It's just what I've been looking for. I do have a couple of questions though...

As mentioned above... how would I set it to show the HP bar for only the selected enemy(s)?

Is there an easy way to "auto-center" the text? 🤔

Thanks again for everything. 🙂
Hello, very nice script. I'm using Enu's sideview, and I have a small issue... the camera moves, but the HP bar doesn't, so, when the game "focuses" on the monster, its sprite moves but the HP bar stands still...
Link to the script and I'll take a look.
Here: http://www.rpgmakervxace.net/topic/4337-rmvxa-tankentai-v100-update-fully-functioning-english-version-installation-instructions/

I think the only solution would be to eliminate the 'camera' script...
This is great Vlue, it adds a little bit to the default battle system without altering it like crazy.

Just one question: Did you want to be credited as V.M, V.M of D.T. or Vlue?
This is great Vlue, it adds a little bit to the default battle system without altering it like crazy.


Just one question: Did you want to be credited as V.M, V.M of D.T. or Vlue?
Whichever works, with Vlue being preferable.
@Vlue You got it, if Vlue is what you prefer by all means I will credit you as such.
Added a Scan Once option that when combined with scan state skills will let you have the player scan a monster once and their hp bar will remain visible throughout the game.
Updated to allow setting custom width/height, border_width/border_height, for bosses hp bars.
Awesome, thanks for this!  BD   It's just what I've been looking for. I do have a couple of questions though...

As mentioned above... how would I set it to show the HP bar for only the selected enemy(s)?
I would also be greatly interested in this feature. I'd like it so the health bars aren't always displaying, but just when you have the enemy targeted. Is that a simple addition to the script?
Mmmmmmmmhmmm, updated the script on the pastebin with a new option that reads... ONLY_ON_TARGET which will have the hp bar only be visible on the monster selected in the enemy select window, when it's up.
Mmmmmmmmhmmm, updated the script on the pastebin with a new option that reads... ONLY_ON_TARGET which will have the hp bar only be visible on the monster selected in the enemy select window, when it's up.
Fantastic, this is greatly appreciated! Thanks very much.

EDIT: I have a battle with some event scripting in it, where the enemy has a resist death state attached to it, and simply displays a text box upon reaching 1% or less health, then calls an abort battle command. However, I'm getting the following error right when abort battle is called:

NoMethodError occurred. undefined method 'enemy_window' for nil:NilClass

It occurs on this line of code: return unless SceneManager.scene.enemy_window

Any thoughts?

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