A downloadable tool

Download NowName your own price


 This plugin adds health bars to enemies in side view battle. The position of the health bars is dynamically adjusted based on the position of the enemy sprite in battle. The Display Condition parameter should be a JavaScript condition that  determines whether the health bar should be displayed for a given enemy.  This can be used to only show enemy health bars when an enemy is the subject of an attack for example, or just set this value to 'true' to always show the health bars.

Instructions

 To use this plugin, simply install it and the health bars will appear automatically in battle by default. Place this plugin near the bottom of your plugin list. This plugin should be compatible with most other plugins like Yanfly, VictorEngine, etc. It may be incompatible with other plugins that drastically modify enemy sprites.

Parameters

You can alter the bar's width, height, display condition (this is a snippet of javascript code that should evaluate to either 'true' or 'false') and the gradient for the bar with hex codes.

Terms of Use

This code is under the MIT license. You are free to use this plugin in any game, commercial or not (18+ games are fine too). You must credit Axial Escape in your project if you plan to release commercially. You are free to extend and make changes to the code base. Thank you!

StatusReleased
CategoryTool
Rating
Rated 5.0 out of 5 stars
(2 total ratings)
AuthorAxial Escape
Made withRPG Maker
Tagsasset, plugin, RPG Maker, tool
Code licenseMIT License
Average sessionA few seconds
LanguagesEnglish

Download

Download NowName your own price

Click download now to get access to the following files:

Enemy_Health_Bars.js 4 kB

Development log

Comments

Log in with itch.io to leave a comment.

Hi! Thank you for your work. I was looking for a simple plugin without all the bloated modifications to the battle system, and your plugin was a godsend.

However, there's one problem with it. The gauge isn't updated when the enemy heals itself or other enemies.

(1 edit)

Yep you're absolutely right now that I test it. I just uploaded a patched version of the plugin, can you download that and see if it fixes the issues on your end?

Thanks. Looks like it works on my side. I still have one question though: what should be the "Display Condition" if I want the bar  hidden when the current enemy is dead?

(1 edit)

Here's some background info that may help. The plugin iteratively checks each enemy during a screen update. You can access each individual enemy object with this code, where i is the index that the plugin uses to iterate:

$gameTroop.members()[i]

As such there are tons of different ways to show or hide the HP bars for each specific enemy in each scenario. For example, this is a condition I use (in addition to some others):

$gameTroop.members()[i].isSelected()

This checks if an enemy is being selected by an attack, skill, spell, etc. If you wanted to only show HP bars for living enemies, try this:

$gameTroop.members()[i].isAlive()

This method does exactly what you think it does, and only evaluates true if the enemy is still alive.

Thanks for your reply!