设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 103|回复: 0

[转载发布] DoubleX RMVXA Enemy MP/TP Bars Addon to Yanfly Engine Ace - Ace Battle Engine

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    9071

    主题

    864

    回帖

    6万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    58883
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    68848

    灌水之王

    发表于 2026-8-3 08:02:25 | 显示全部楼层 |阅读模式

        DoubleX RMVXA Enemy MP/TP Bars Addon v1.03b 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

    Spoiler                Ruby:       
    1. #==============================================================================|
    2. # ** Mp bar notetags                                                           |
    3. #------------------------------------------------------------------------------|
    4. # * Notetag <hide mp gauge>, <show mp gauge>                                   |
    5. #   Hides or shows mp gauge for that enemy in battle. The guage appear whenever|
    6. #   that enemy is targeted for battle or taking mp damage. Using the latter    |
    7. #   will bypass the requirement for needing to defeat that enemy once.         |
    8. #------------------------------------------------------------------------------|
    9. # * Notetag: <back mp gauge: x>                                                |
    10. #   Sets the colour of that enemy's mp back gauge of to text color x.          |
    11. #------------------------------------------------------------------------------|
    12. # * Notetag <mp gauge 1: x>, <mp gauge 2: x>                                   |
    13. #   Sets the colour 1 and 2 of that enemy's mp gauge to text color x.          |
    14. #------------------------------------------------------------------------------|
    15. # * Notetag <mp display: x>                                                    |
    16. #   Displays that enemy's mp in the form of:                                   |
    17. #   Don't display if x is 0                                                    |
    18. #   Percentage if x is 1                                                       |
    19. #   Actual number if x is 2                                                    |
    20. #==============================================================================|
    21. # ** Tp bar notetags                                                           |
    22. #------------------------------------------------------------------------------|
    23. # * Notetag <hide tp gauge>, <show tp gauge>                                   |
    24. #   Hides or shows tp gauge for that enemy in battle. The guage appear whenever|
    25. #   that enemy is targeted for battle or taking tp damage. Using the latter    |
    26. #   will bypass the requirement for needing to defeat that enemy once.         |
    27. #------------------------------------------------------------------------------|
    28. # * Notetag: <back tp gauge: x>                                                |
    29. #   Sets the colour of that enemy's tp back gauge of to text color x.          |
    30. #------------------------------------------------------------------------------|
    31. # * Notetag <tp gauge 1: x>, <tp gauge 2: x>                                   |
    32. #   Sets the colour 1 and 2 of that enemy's tp gauge to text color x.          |
    33. #------------------------------------------------------------------------------|
    34. # * Notetag <tp display: x>                                                    |
    35. #   Displays that enemy's tp in the form of:                                   |
    36. #   Don't display if x is 0                                                    |
    37. #   Percentage if x is 1                                                       |
    38. #   Actual number if x is 2                                                    |
    39. #------------------------------------------------------------------------------|
    40. #==============================================================================|
    41. #  ** You only need to edit this part as it's about what this script does      |
    42. #------------------------------------------------------------------------------|
    43. module DoubleX_RMVXA
    44.   module YEA_BattleEngine_Enemy_MP_TP_Bars_Addon
    45. #------------------------------------------------------------------------------|
    46. #  * MP Bars                                                                   |
    47. #------------------------------------------------------------------------------|
    48.     # SHOW_ENEMY_MP_GAUGE, default = true
    49.     # Show the enemy mp gauge if SHOW_ENEMY_MP_GAUGE is true
    50.     SHOW_ENEMY_MP_GAUGE = true
    51.     # ANIMATE_MP_GAUGE, default = true
    52.     # Animate the enemy mp gauge if ANIMATE_MP_GAUGE is true
    53.     ANIMATE_MP_GAUGE = true
    54.     # MP_DEFEAT_ENEMIES_FIRST, default = false
    55.     # Show the enemy mp gauge only if it's been defeated before
    56.     MP_DEFEAT_ENEMIES_FIRST = false
    57.     # ENEMY_MP_GAUGE_WIDTH, ENEMY_MP_GAUGE_HEIGHT, default = 80, 20
    58.     # Sets the enemy mp gauge width and height as ENEMY_MP_GAUGE_WIDTH and
    59.     # ENEMY_MP_GAUGE_HEIGHT respectively
    60.     ENEMY_MP_GAUGE_WIDTH = 48
    61.     ENEMY_MP_GAUGE_HEIGHT = 12
    62.     # ENEMY_MP_GAUGE_COLOUR1, ENEMY_MP_GAUGE_COLOUR2, default = 22, 23
    63.     # Sets the colour 1 and colour 2 of the enemy mp gauge as
    64.     # ENEMY_MP_GAUGE_COLOUR1 and ENEMY_MP_GAUGE_COLOUR2 respectively
    65.     ENEMY_MP_GAUGE_COLOUR1 = 22
    66.     ENEMY_MP_GAUGE_COLOUR2 = 23
    67.     # ENEMY_MP_BACKGAUGE_COLOUR, default = 15
    68.     # Sets the enemy mp back gauge colour as ENEMY_MP_BACK_GAUGE_COLOUR
    69.     ENEMY_MP_BACKGAUGE_COLOUR = 15
    70.     # ENEMY_MP_DISPLAY, default = 2
    71.     # Display the enemy's mp in the form of:
    72.     # Don't display if 0
    73.     # Percentage if 1
    74.     # Actual number if 2
    75.     ENEMY_MP_DISPLAY = 2
    76.     # (v1.03a+)MP_PERCENTAGE_DECIMAL_DIGHT_NUMBER, default = 0
    77.     # Sets the number of decimal digits when showing mp percentages
    78.     MP_PERCENTAGE_DECIMAL_DIGHT_NUMBER = 0
    79.     # MP_TEXT_SIZE, default = ENEMY_MP_GAUGE_HEIGHT
    80.     # Sets the size of the text shown on enemy mp bars as MP_TEXT_SIZE
    81.     MP_TEXT_SIZE = ENEMY_MP_GAUGE_HEIGHT + 4
    82.     # (v1.00b+)FIX_LARGE_MP_TEXT, default = false
    83.     # Fixes issues when MP_TEXT_SIZE is much larger than ENEMY_MP_GAUGE_HEIGHT
    84.     FIX_LARGE_MP_TEXT = false
    85.     # (v1.02a+)MP_CRISIS_TEXT_COLOR, default = 17
    86.     # Sets the mp text color with mp crisis as MP_CRISIS_TEXT_COLOR
    87.     MP_CRISIS_TEXT_COLOR = 17
    88.     # (v1.01a+)MP_TEXT_COLOR, default = 16
    89.     # Sets the mp text color as MP_TEXT_COLOR
    90.     MP_TEXT_COLOR = 0
    91.     # (v1.01a+)MP_TEXT_X_OFFSET, MP_TEXT_Y_OFFSET, default = 0, 0
    92.     # Sets the x and y offsets of the mp text relative to the mp bar
    93.     MP_TEXT_X_OFFSET = 0
    94.     MP_TEXT_Y_OFFSET = 0
    95. #------------------------------------------------------------------------------|
    96. #  * TP Bars                                                                   |
    97. #------------------------------------------------------------------------------|
    98.     # SHOW_ENEMY_TP_GAUGE, default = true
    99.     # Show the enemy tp gauge if SHOW_ENEMY_TP_GAUGE is true
    100.     SHOW_ENEMY_TP_GAUGE = true
    101.     # ANIMATE_TP_GAUGE, default = true
    102.     # Animate the enemy mp gauge if ANIMATE_TP_GAUGE is true
    103.     ANIMATE_TP_GAUGE = true
    104.     # TP_DEFEAT_ENEMIES_FIRST, default = false
    105.     # Show the enemy tp gauge only if it's been defeated before
    106.     TP_DEFEAT_ENEMIES_FIRST = false
    107.     # ENEMY_TP_GAUGE_WIDTH, ENEMY_TP_GAUGE_HEIGHT, default = 80, 20
    108.     # Sets the enemy tp gauge width and height as ENEMY_TP_GAUGE_WIDTH and
    109.     # ENEMY_TP_GAUGE_HEIGHT respectively
    110.     ENEMY_TP_GAUGE_WIDTH = 48
    111.     ENEMY_TP_GAUGE_HEIGHT = 12
    112.     # ENEMY_TP_GAUGE_COLOUR1, ENEMY_TP_GAUGE_COLOUR2, default = 20, 21
    113.     # Sets the colour 1 and colour 2 of the enemy tp gauge as
    114.     # ENEMY_TP_GAUGE_COLOUR1 and ENEMY_TP_GAUGE_COLOUR2 respectively
    115.     ENEMY_TP_GAUGE_COLOUR1 = 20
    116.     ENEMY_TP_GAUGE_COLOUR2 = 21
    117.     # ENEMY_TP_BACKGAUGE_COLOUR, default = 15
    118.     # Sets the enemy tp back gauge colour as ENEMY_TP_BACK_GAUGE_COLOUR
    119.     ENEMY_TP_BACKGAUGE_COLOUR = 15
    120.     # ENEMY_TP_DISPLAY, default = 2
    121.     # Display the enemy's tp in the form of:
    122.     # Don't display if 0
    123.     # Percentage if 1
    124.     # Actual number if 2
    125.     ENEMY_TP_DISPLAY = 2
    126.     # (v1.03a+)TP_PERCENTAGE_DECIMAL_DIGHT_NUMBER, default = 0
    127.     # Sets the number of decimal digits when showing tp percentages
    128.     TP_PERCENTAGE_DECIMAL_DIGHT_NUMBER = 0
    129.     # TP_TEXT_SIZE, default = ENEMY_TP_GAUGE_HEIGHT
    130.     # Sets the size of the text shown on enemy mp bars as TP_TEXT_SIZE
    131.     TP_TEXT_SIZE = ENEMY_TP_GAUGE_HEIGHT + 4
    132.     # (v1.00b+)FIX_LARGE_MP_TEXT, default = false
    133.     # Fixes issues when MP_TEXT_SIZE is much larger than ENEMY_MP_GAUGE_HEIGHT
    134.     FIX_LARGE_TP_TEXT = false
    135.     # (v1.01a+)TP_TEXT_COLOR, default = 16
    136.     # Sets the tp text color as TP_TEXT_COLOR
    137.     TP_TEXT_COLOR = 0
    138.     # (v1.01a+)TP_TEXT_X_OFFSET, TP_TEXT_Y_OFFSET, default = 0, 0
    139.     # Sets the x and y offsets of the tp text relative to the tp bar
    140.     TP_TEXT_X_OFFSET = 0
    141.     TP_TEXT_Y_OFFSET = 0
    142. #==============================================================================|
    复制代码






    Video

    https://www.youtube.com/embed/C9NAGpaP230

    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.03b(GMT 1000 21-5-2023):
    - Fixed not updating the enemy mp and tp bars when their mp and tp becomes 0 respectively
    v1.03a(GMT 1000 10-10-2022):
    - Added MP_PERCENTAGE_DECIMAL_DIGHT_NUMBER and TP_PERCENTAGE_DECIMAL_DIGHT_NUMBER
    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

    Download Link


    本贴来自国际rpgmaker官方论坛作者:DoubleX处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/doublex-rmvxa-enemy-mp-tp-bars-addon-to-yanfly-engine-ace-ace-battle-engine.31561/
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-8-17 07:17 , Processed in 0.135624 second(s), 55 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表