DoubleX RMVXA Percentage Addon to Yanfly Engine Ace - Battle Engine Add-On: Enemy HP Bars


DoubleX RMVXA Percentage Addon v1.03a to Yanfly Engine Ace - Battle Engine Add-On: Enemy HP Bars
by DoubleX​

Prerequisites
Yanfly Engine Ace - Battle Engine Add-On: Enemy HP Bars(Created by Yanfly)

Introduction
Displays the current percentage of the hp bar filled
Spoiler
Ruby:
    # (v1.04a+)PERCENTAGE_DECIMAL_DIGHT_NUMBER, default = 0
    # Sets the number of decimal digits when showing percentages
    PERCENTAGE_DECIMAL_DIGHT_NUMBER = 0

    # (v1.01a+)ACTUAL_NUMBER, default = false
    # Shows the actual hp numbers instead of the percentages
    ACTUAL_NUMBER = true

    # (v1.01a+)TEXT_SIZE, default = YEA::BATTLE::ENEMY_GAUGE_HEIGHT
    # Sets the size of the text shown on enemy hp bars as TEXT_SIZE
    TEXT_SIZE = YEA::BATTLE::ENEMY_GAUGE_HEIGHT + 4

    # (v1.03a+)CRISIS_TEXT_COLOR, default = 17
    # Sets the text color of the text shown on enemy hp bars with hp crisis as
    # CRISIS_TEXT_COLOR
    CRISIS_TEXT_COLOR = 17

    # (v1.03a+)KNOCKOUT_TEXT_COLOR, default = 17
    # Sets the text color of the text shown on enemy hp bars with 0 hp as
    # KNOCKOUT_TEXT_COLOR
    KNOCKOUT_TEXT_COLOR = 18

    # (v1.02a+)TEXT_COLOR, default = 16
    # Sets the text color of the text shown on enemy hp bars as TEXT_COLOR
    TEXT_COLOR = 0

    # (v1.02a+)FIX_LARGE_TEXT, default = false
    # Fixes issues when TEXT_SIZE is much larger than ENEMY_GAUGE_HEIGHT
    FIX_LARGE_TEXT = false

    # (v1.02a+)TEXT_X_OFFSET, TEXT_Y_OFFSET, default = 0, 0
    # Sets the x and y offsets of the hp text relative to the hp bar
    TEXT_X_OFFSET = 0
    TEXT_Y_OFFSET = 0

Video


Features
Plug and play(You don't need to edit anything in this script but you may still do so)

How to use
Open the script editor and put this script into an open slot between the script Yanfly Engine Ace - Battle Engine Add-On: Enemy HP Bars and Main. Save to take effect.

FAQ
None

Credit and Thanks
DoubleX(Giving me credit is completely optional)
The terms of use are the same as that of Yanfly Engine Ace - Battle Engine Add-On: Enemy HP Bars except that you must also give Yanfly credit(you should do this anyway) if you give DoubleX or his alias credit

Compatibility
Same as that of Yanfly Engine Ace - Battle Engine Add-On: Enemy HP Bars

Changelog
v1.04a(GMT 1000 7-10-2022):
- Added PERCENTAGE_DECIMAL_DIGHT_NUMBER
v1.03a(GMT 0200 6-4-2015):
- Added CRISIS_TEXT_COLOR and KNOCKOUT_TEXT_COLOR
v1.02a(GMT 0300 4-9-2014):
- Added hp texts x and y offsets relative to respective bars
- Added TEXT_COLOR and FIX_LARGE_TEXT
v1.01a(GMT 1400 21-7-2014):
- Lets users shows actual hp numbers instead of percentages
- Lets users sets the size of the text shown on enemy hp bars
v1.00a(GMT 0400 1-7-2014):
- 1st version of this script finished

Download Link
Updates

v1.03a(GMT 0200 6-4-2015):

- Added CRISIS_TEXT_COLOR and KNOCKOUT_TEXT_COLOR
Updates
v1.04a(GMT 1000 7-10-2022):
- Added PERCENTAGE_DECIMAL_DIGHT_NUMBER

Original thread: https://forums.rpgmakerweb.com/threads/doublex-rmvxa-percentage-addon-to-yanfly-engine-ace-battle-engine-add-on-enemy-hp-bars.29496/