@LordScribble Here, give this addon plugin a try :
Addon for YEP_BattleEngineCore
Replace the modified YEP_BattleEngineCore plugin I uploaded in the previous post with a fresh copy and include the addon plugin to your project beneath YEP_BattleEngineCore.
Using the 'Enemy Font Color' option in the addon plugin configuration, you can add as many color triggers as you want. A color trigger uses a simple snippet of javascript which is evaluated whenever the enemy selection boxes are visible. Keep in mind that the snippet of code will need to return a true or false value in order to activate the color. The plugin will start at the top of the color list and test each trigger. If a trigger is activated, the remainder of the list is skipped. If no trigger is activated, then the font color reverts to the default.
So, for example, if you wanted a different color to be used whenever an enemy is at half health, you would use the following code :
Code:
// The variable 'b' contains enemy Battler data
// If '_hp' (Current HP) is less than 'mhp' (Max HP) divided by two
b._hp < b.mhp / 2
You could also set a certain color for when a certain state is applied :
Code:
// If state #21 is applied on the enemy
b.isStateAffected(21)
If you want a color to always be active (useful for the last entry on the list), you can simply put 'true' in the trigger.