DoubleX RMVXA Enemy MP/TP Bars Addon v1.02b to Yanfly Engine Ace - Ace Battle Engine
by DoubleX
Note
This script is extremely similar to Yanfly Engine Ace - Battle Engine Add-On: Enemy HP Bars so crediting DoubleX or his alias will violate this script's terms of use.
Prerequisites
Yanfly Engine Ace - Ace Battle Engine(Created by Yanfly)
Introduction
Displays the enemy mp or/and tp bars
#==============================================================================| # ** Mp bar notetags | #------------------------------------------------------------------------------| # * Notetag <hide mp gauge>, <show mp gauge> | # Hides or shows mp gauge for that enemy in battle. The guage appear whenever| # that enemy is targeted for battle or taking mp damage. Using the latter | # will bypass the requirement for needing to defeat that enemy once. | #------------------------------------------------------------------------------| # * Notetag: <back mp gauge: x> | # Sets the colour of that enemy's mp back gauge of to text color x. | #------------------------------------------------------------------------------| # * Notetag <mp gauge 1: x>, <mp gauge 2: x> | # Sets the colour 1 and 2 of that enemy's mp gauge to text color x. | #------------------------------------------------------------------------------| # * Notetag <mp display: x> | # Displays that enemy's mp in the form of: | # Don't display if x is 0 | # Percentage if x is 1 | # Actual number if x is 2 | #==============================================================================| # ** Tp bar notetags | #------------------------------------------------------------------------------| # * Notetag <hide tp gauge>, <show tp gauge> | # Hides or shows tp gauge for that enemy in battle. The guage appear whenever| # that enemy is targeted for battle or taking tp damage. Using the latter | # will bypass the requirement for needing to defeat that enemy once. | #------------------------------------------------------------------------------| # * Notetag: <back tp gauge: x> | # Sets the colour of that enemy's tp back gauge of to text color x. | #------------------------------------------------------------------------------| # * Notetag <tp gauge 1: x>, <tp gauge 2: x> | # Sets the colour 1 and 2 of that enemy's tp gauge to text color x. | #------------------------------------------------------------------------------| # * Notetag <tp display: x> | # Displays that enemy's tp in the form of: | # Don't display if x is 0 | # Percentage if x is 1 | # Actual number if x is 2 | #------------------------------------------------------------------------------| #==============================================================================| # ** You only need to edit this part as it's about what this script does | #------------------------------------------------------------------------------| module DoubleX_RMVXA module YEA_BattleEngine_Enemy_MP_TP_Bars_Addon #------------------------------------------------------------------------------| # * MP Bars | #------------------------------------------------------------------------------| # SHOW_ENEMY_MP_GAUGE, default = true # Show the enemy mp gauge if SHOW_ENEMY_MP_GAUGE is true SHOW_ENEMY_MP_GAUGE = true # ANIMATE_MP_GAUGE, default = true # Animate the enemy mp gauge if ANIMATE_MP_GAUGE is true ANIMATE_MP_GAUGE = true # MP_DEFEAT_ENEMIES_FIRST, default = false # Show the enemy mp gauge only if it's been defeated before MP_DEFEAT_ENEMIES_FIRST = false # ENEMY_MP_GAUGE_WIDTH, ENEMY_MP_GAUGE_HEIGHT, default = 80, 20 # Sets the enemy mp gauge width and height as ENEMY_MP_GAUGE_WIDTH and # ENEMY_MP_GAUGE_HEIGHT respectively ENEMY_MP_GAUGE_WIDTH = 80 ENEMY_MP_GAUGE_HEIGHT = 20 # ENEMY_MP_GAUGE_COLOUR1, ENEMY_MP_GAUGE_COLOUR2, default = 22, 23 # Sets the colour 1 and colour 2 of the enemy mp gauge as # ENEMY_MP_GAUGE_COLOUR1 and ENEMY_MP_GAUGE_COLOUR2 respectively ENEMY_MP_GAUGE_COLOUR1 = 22 ENEMY_MP_GAUGE_COLOUR2 = 23 # ENEMY_MP_BACKGAUGE_COLOUR, default = 15 # Sets the enemy mp back gauge colour as ENEMY_MP_BACK_GAUGE_COLOUR ENEMY_MP_BACKGAUGE_COLOUR = 15 # ENEMY_MP_DISPLAY, default = 2 # Display the enemy's mp in the form of: # Don't display if 0 # Percentage if 1 # Actual number if 2 ENEMY_MP_DISPLAY = 2 # MP_TEXT_SIZE, default = ENEMY_MP_GAUGE_HEIGHT # Sets the size of the text shown on enemy mp bars as MP_TEXT_SIZE MP_TEXT_SIZE = ENEMY_MP_GAUGE_HEIGHT # (v1.00b+)FIX_LARGE_MP_TEXT, default = false # Fixes issues when MP_TEXT_SIZE is much larger than ENEMY_MP_GAUGE_HEIGHT FIX_LARGE_MP_TEXT = false # (v1.02a+)MP_CRISIS_TEXT_COLOR, default = 17 # Sets the mp text color with mp crisis as MP_CRISIS_TEXT_COLOR MP_CRISIS_TEXT_COLOR = 17 # (v1.01a+)MP_TEXT_COLOR, default = 16 # Sets the mp text color as MP_TEXT_COLOR MP_TEXT_COLOR = 16 # (v1.01a+)MP_TEXT_X_OFFSET, MP_TEXT_Y_OFFSET, default = 0, 0 # Sets the x and y offsets of the mp text relative to the mp bar MP_TEXT_X_OFFSET = 0 MP_TEXT_Y_OFFSET = 0 #------------------------------------------------------------------------------| # * TP Bars | #------------------------------------------------------------------------------| # SHOW_ENEMY_TP_GAUGE, default = true # Show the enemy tp gauge if SHOW_ENEMY_TP_GAUGE is true SHOW_ENEMY_TP_GAUGE = true # ANIMATE_TP_GAUGE, default = true # Animate the enemy mp gauge if ANIMATE_TP_GAUGE is true ANIMATE_TP_GAUGE = true # TP_DEFEAT_ENEMIES_FIRST, default = false # Show the enemy tp gauge only if it's been defeated before TP_DEFEAT_ENEMIES_FIRST = false # ENEMY_TP_GAUGE_WIDTH, ENEMY_TP_GAUGE_HEIGHT, default = 80, 20 # Sets the enemy tp gauge width and height as ENEMY_TP_GAUGE_WIDTH and # ENEMY_TP_GAUGE_HEIGHT respectively ENEMY_TP_GAUGE_WIDTH = 80 ENEMY_TP_GAUGE_HEIGHT = 20 # ENEMY_TP_GAUGE_COLOUR1, ENEMY_TP_GAUGE_COLOUR2, default = 20, 21 # Sets the colour 1 and colour 2 of the enemy tp gauge as # ENEMY_TP_GAUGE_COLOUR1 and ENEMY_TP_GAUGE_COLOUR2 respectively ENEMY_TP_GAUGE_COLOUR1 = 20 ENEMY_TP_GAUGE_COLOUR2 = 21 # ENEMY_TP_BACKGAUGE_COLOUR, default = 15 # Sets the enemy tp back gauge colour as ENEMY_TP_BACK_GAUGE_COLOUR ENEMY_TP_BACKGAUGE_COLOUR = 15 # ENEMY_TP_DISPLAY, default = 2 # Display the enemy's tp in the form of: # Don't display if 0 # Percentage if 1 # Actual number if 2 ENEMY_TP_DISPLAY = 2 # TP_TEXT_SIZE, default = ENEMY_TP_GAUGE_HEIGHT # Sets the size of the text shown on enemy mp bars as TP_TEXT_SIZE TP_TEXT_SIZE = ENEMY_TP_GAUGE_HEIGHT # (v1.00b+)FIX_LARGE_MP_TEXT, default = false # Fixes issues when MP_TEXT_SIZE is much larger than ENEMY_MP_GAUGE_HEIGHT FIX_LARGE_TP_TEXT = false # (v1.01a+)TP_TEXT_COLOR, default = 16 # Sets the tp text color as TP_TEXT_COLOR TP_TEXT_COLOR = 16 # (v1.01a+)TP_TEXT_X_OFFSET, TP_TEXT_Y_OFFSET, default = 0, 0 # Sets the x and y offsets of the tp text relative to the tp bar TP_TEXT_X_OFFSET = 0 TP_TEXT_Y_OFFSET = 0
Video
Features
Almost no scripting knowledge is needed to use this script(some is needed to edit it)
How to use
Open the script editor and put this script into an open slot between the script Yanfly Engine Ace - Ace Battle Engine and Main. Save to take effect.
FAQ
None
Credit and Thanks
Yanfly for Yanfly Engine Ace - Battle Engine Add-On: Enemy HP Bars
The terms of use are the same as that of Yanfly Engine Ace - Ace Battle Engine except that you're not allowed to give DoubleX or his alias credit
Compatibility
Same as that of Yanfly Engine Ace - Ace Battle Engine
Changelog
v1.02b(GMT 1000 21-5-2016):
- Fixed not updating mp/tp bar fill ratio for mp/tp change on battle start
- If mmp is 0, the mp bar will be fully filled to show the mmp is 0
v1.02a(GMT 0200 6-4-2015):
- Added MP_CRISIS_TEXT_COLOR
v1.01e(GMT 0900 14-2-2014):
- Fixed the mp and tp bars of the hidden enemies being shown bug
- Further increased efficiency and reduced lag
v1.01d(GMT 0400 4-10-2014):
- Further increased efficiency and reduced lag
v1.01c(GMT 0300 4-9-2014):
- Updated compatibility with DoubleX RMVXA Percentage Addon to Yanfly Engine Ace - Battle Engine Add-On: Enemy HP Bars
v1.01b(GMT 0500 2-9-2014):
- Further increased efficiency and reduced size of this script
- Reduced lag induced from v1.00b efficiency upgrade
v1.01a(GMT 1700 1-9-2014):
- Added mp and tp texts x and y offsets relative to respective bars
- Added MP_TEXT_COLOR and TP_TEXT_COLOR
v1.00b(GMT 1600 1-9-2014):
- Fixed undesirable results when text size > bar height
- Increased efficiency and reduced size of this script
v1.00a(GMT 0500 29-8-2014):
- 1st version of this script finished