AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,728
Reaction score
1,203
First Language
Greek
Primarily Uses
RMVXA

HP Color Controller
by AceOfAces_Mod
Version R1.05a (28/8/2020)

This plugin expands the customization by adding additional HP bar colors and one additional HP text color to the engine. This allows the developer to change the color depending on the actor's remaining HP.

Features:
  • Easy to use and configure.
  • Compatibility mode for use with scripts that have their HP color (Normal only).
Screenshots:
hmhrPD1.png
4vdsHzJ.png
Demo:
Pretty self-explanatory. No demo needed.

Setup and Instructions:​
  1. Place the plugin file to your project’s js/plugins folder.
  2. On the plugin Manager, place this plugin below any plugin that changes HP Bars as well (such as Yanfly’s Core Engine). If you don’t have any of these on your project, you can place it anywhere.
  3. After turning it on, save and playtest. If the game didn’t crash after opening the menu and you can see the bars green, the plugin is installed properly. Adjust the settings within the Plugin Manager.
If you wish to use the HP bar colors set by the other script, turn on the compatibility mode by setting its value to true. Compatibility mode will simply ignore Normal HP Color 1 and Normal HP Color 2 and will use the preset color (or the other plugin’s color, if it rerouted the selection).


Compatibility:
Tested with RPG Maker MV version 1.3.4. Versions older than 1.3 might work, but I cannot guarantee compatibility. Fully compatible with MV version 1.6.x. Compatible with most plugins.

Download:
GitHub (Add-ons available here as well)
Full plugin documentation here (covers technical info as well).
You can post issues with the plugin here or on Github.
Licensed under the MIT license. Can be used in commercial and non-commercial games.

Credits:
AceOfAces_Mod

Changelog:
R1.05 Revision 1 ( R1.05A )
  • Re-worked the HP Text Color Picker to be part of the API.​

R1.05
  • Improved color picker logic. This may improve performance in edge cases.​
  • Added API.​
  • Fixed some bugs.​

R1.04
  • Added a new color.​
  • Added settings to handle the new color.​

R1.03 Revision 2 ( R1.03B )
  • Minor tweak on the code's logic.​

R1.03 Revision 1 ( R1.03A ):
  • Hotfix for a crash.​

R1.03:
  • Added partial extensibility.​
  • Change the name to FSDK_HPColor.js. CAUTION: Copy over the settings from the old version before replacing it with the newer version. Remove the old version when you finish.​

R1.02:
  • Enhanced support for RPG Maker MV version 1.5.x (and higher).​

R1.01:
  • Initial release.​
 
Last edited:

TriceratopsX

Veteran
Veteran
Joined
May 2, 2016
Messages
264
Reaction score
404
First Language
English
Primarily Uses
RMMV
Wow, this is great thanks for this!
 

Neo Soul Gamer

Veteran
Veteran
Joined
Aug 10, 2012
Messages
659
Reaction score
403
First Language
English
Primarily Uses
N/A
@AceOfAces_Mod

Great plugin!

Just a thought... It'd be nice to see the same effect for TP, but on the reverse. Meaning, the gauge color changes when the bar is full. I feel like this would be useful for anyone using TP for a Limit Break/Overdrive system.
 

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,728
Reaction score
1,203
First Language
Greek
Primarily Uses
RMVXA
Version R1.02 was uploaded today. This uses new features for plugins on RPG Maker MV version 1.5.x (and possibly on newer versions).
 

RK DracoRoy

Fire Emblem RPG Gamer
Veteran
Joined
Jun 29, 2017
Messages
308
Reaction score
97
First Language
English
Primarily Uses
RMMV
Would it be possible to change the enemy's hp color bars with Yanfly's Visual HP Gauge plug-in (when enabled)?

With Yanfly's plug-in enabled, you can see that the HP color plug-in even affects the HP text color of the enemies when at low / critical health, but the enemy HP color bars are still the same regardless of low or critical health.
 

Attachments

  • Screenshot (234).png
    Screenshot (234).png
    240.6 KB · Views: 19

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,728
Reaction score
1,203
First Language
Greek
Primarily Uses
RMVXA
@RK DracoRoy , I'm surprised that the plugin partially works with Yanfly's plugin (since I haven't built some form of extensibility on the Color Controller). I am actually writing an add-on to the HP Color Controller so it works with Yanfly's Visual HP Gauges. It will take a while, though (I am new to JavaScript, so I need to figure out some kinks with the programming language).

EDIT: Almost 5 minutes in, I have wrote the code for that add-on. Keep an eye out for when I upload the add-on, along with a patch to the HP Color Controller plugin.
 
Last edited:

RK DracoRoy

Fire Emblem RPG Gamer
Veteran
Joined
Jun 29, 2017
Messages
308
Reaction score
97
First Language
English
Primarily Uses
RMMV
@RK DracoRoy , I'm surprised that the plugin partially works with Yanfly's plugin (since I haven't built some form of extensibility on the Color Controller). I am actually writing an add-on to the HP Color Controller so it works with Yanfly's Visual HP Gauges. It will take a while, though (I am new to JavaScript, so I need to figure out some kinks with the programming language).

EDIT: Almost 5 minutes in, I have wrote the code for that add-on. Keep an eye out for when I upload the add-on, along with a patch to the HP Color Controller plugin.

Oh sweet! I took the previous plug-in out in favor of the updated HP Color Controller you submitted along with the add-on. Now it shows the enemy bar's changed colors, as desired.

I was a bit surprised as well, that the Color Controller would have some affect on Yanfly's Visual HP Bars plugin. So I thought why not give the color changes to the enemies, if the actors have it? I thank you very much for this update.
 

RK DracoRoy

Fire Emblem RPG Gamer
Veteran
Joined
Jun 29, 2017
Messages
308
Reaction score
97
First Language
English
Primarily Uses
RMMV
I also thought about the idea of the MP bars with changed color effect like the HP bars. I feel like that would be a cool addition to HP bars changing color effect.
 
Last edited:

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,728
Reaction score
1,203
First Language
Greek
Primarily Uses
RMVXA
@RK DracoRoy , I have it on my backlog of ideas. I may work on it if it's useful enough.

A quick announcement: A hotfix for the plugin has been released. This fixes a bug caused a syntax error that was missed.
 

RK DracoRoy

Fire Emblem RPG Gamer
Veteran
Joined
Jun 29, 2017
Messages
308
Reaction score
97
First Language
English
Primarily Uses
RMMV
@AceOfAces_Mod One small problem here. When the enemy's HP goes down to 25% or 15%, both the HP bar and the number color are back to normal instead of the desired color. But below the two percentages (e.g. < 25% or < 15%), it's back to the desired color for both low health and critical health color settings. Unfortunately, I do not have a photo and lost it. And I'm not sure if this applies to actors too.

-----------------------------------------------
Edit: Here is a photo of the enemy actor at 15% HP, but in normal colors instead of the desired critical health color.
-----------------------------------------------
Also, @AceOfAces_Mod I used DreamX's Battle Status Core and it conflicts with your HP Color Changer.

Actors's HP bars turn back into the default color and doesn't change colors based on HP percentage when using his plug-in. Enemies, however, are unaffected by this.
 

Attachments

  • Capture1.PNG
    Capture1.PNG
    513.9 KB · Views: 12
Last edited:

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,728
Reaction score
1,203
First Language
Greek
Primarily Uses
RMVXA
@RK DracoRoy , I'll look into it, as soon as I get my toolbox up and running again (my laptop broke and I had to get a new one).
 

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,728
Reaction score
1,203
First Language
Greek
Primarily Uses
RMVXA
A quick update: Both the main plugin and the extension for Yanfly's Visual HP Gauges have been updated to new revisions. Both have the logic of picking colors slightly tweaked (although the extension also has a minor fix).
 

RK DracoRoy

Fire Emblem RPG Gamer
Veteran
Joined
Jun 29, 2017
Messages
308
Reaction score
97
First Language
English
Primarily Uses
RMMV

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,728
Reaction score
1,203
First Language
Greek
Primarily Uses
RMVXA
Recently, MV version 1.6 was released to the public. And that broke some plugins. I had some time to test the plugin (and the addon) and I can confirm that no compatibility issues were found. If you do find one, post here (or on my bug tracker). I'll keep an eye out for any compatibility issues that I might have missed (I do doubt it since it's a pretty simple plugin. I am waiting on info about Yanfly's Enemy HP Bars at the moment, just in case Yanfly updates it and breaks the addon.
Speaking of plugins:
@RK DracoRoy , apologies for the silence, but IRL stuff went in the way. I have found a way to fix the issue that prevented my plugin to work with the Battle Status Core Extension. I may have it ready within the week.
 

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,728
Reaction score
1,203
First Language
Greek
Primarily Uses
RMVXA
Heyo! A quick update on the plugin:

I've updated the plugin (and the extension for it) to version R1.04 (the addon for Yanfly's Visual HP Bars is in version R1.01). This adds a new color (along with new options to handle that color). The update to the addon simply adds support for that version. Make sure to update both of them. Here's how the new one looks like:

ZQ3Va4T.png
EDIT: I've also added a new addon to the plugin as well. That addon adds support for Yanfly's Absorption Barrier plugin.
 
Last edited:

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,728
Reaction score
1,203
First Language
Greek
Primarily Uses
RMVXA
A quick update about the plugin: I released version R1.05 of the plugin (and add-ons). This provides improved logic when picking a color, an API (of sorts) and some bug fixes.
 

RK DracoRoy

Fire Emblem RPG Gamer
Veteran
Joined
Jun 29, 2017
Messages
308
Reaction score
97
First Language
English
Primarily Uses
RMMV
@AceOfAces_Mod Do you intend to port the HP Color Controller alongside the Visual HP Gauge and Absorption Barrier patches to MZ? I know the other two patches would have to come later because of future VisuStella plugins.
 

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,728
Reaction score
1,203
First Language
Greek
Primarily Uses
RMVXA
@RK DracoRoy , I certainly want to port it (and my other plugin) to MZ, as soon as I have a copy of it.

Apologies for the late reply. I had a bit of a weird week.
 

RK DracoRoy

Fire Emblem RPG Gamer
Veteran
Joined
Jun 29, 2017
Messages
308
Reaction score
97
First Language
English
Primarily Uses
RMMV
@AceOfAces_Mod If I used Olivia's Side Battle UI (http://www.yanfly.moe/wiki/Side_Battle_Status_UI_(Olivia)) with your plugin, the changed color bars still work but the player actor names on the right side window don't automatically update their colors to go with the bar (unless I choose a command that fades the screen like "Equip", "Formation" and go back to battle).

It works everywhere else, it's only the right side window where the name text is still the current color.
 

Moon_Haven

Veteran
Veteran
Joined
May 5, 2020
Messages
191
Reaction score
83
First Language
French
Primarily Uses
RMMV
@AceOfAces_Mod If I used Olivia's Side Battle UI (http://www.yanfly.moe/wiki/Side_Battle_Status_UI_(Olivia)) with your plugin, the changed color bars still work but the player actor names on the right side window don't automatically update their colors to go with the bar (unless I choose a command that fades the screen like "Equip", "Formation" and go back to battle).

It works everywhere else, it's only the right side window where the name text is still the current color.



And I thought I was going crazy... I have the same problem and could not figure out why. Sure enough, I'm also using Olivia's Battle UI.
 
Last edited:

Latest Threads

Latest Profile Posts

Voting for the second round of the Map Madness Tournament is now live! Vote for your favorite in each matchup! https://forums.rpgmakerweb.com/index.php?forums/map-madness-2021-polls.187/
Just bought the Visustella All Waves bundle... Time to go IN!!
Oh, I was just confirmed I'll be doing small online classes during june - july, on one side I'm nervous and looking forward it, on the other one: I've became the very thing I swore to destroy. :kaodes:
Work starts today at 2pm. I hate jeans, but the dress code says I have to wear them... That's how I discovered I was a plus size. Shopping for my first pair of jeans.
Anyhow, I'll post a new video on TheDazzlingsAreBack as soon as I'm able to.
dEj6ha4.png

WIP :)
Added some cliffs / walls / roofs to the tilesheet and am currently working on roof objects to make them prettier and more variable. And of course, windows and doors that fit to the game's style.
I also adjusted the grass color but i have some issues with my display, so if it looks weird, please let me know :)

Forum statistics

Threads
110,573
Messages
1,054,305
Members
143,685
Latest member
Yatsuzuka_Kou
Top