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

[转载发布] Undefeated Hidden Enemies Visual Fix

[复制链接]
累计送礼:
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-1 21:32:44 | 显示全部楼层 |阅读模式
    Hello everybody,

    I don't know if anyone else notices this - but it was bugging me right from the beginning, when I was playing around with battles, that have halfway appearing enemies.


    Introduction

    When you flee from a battle (Thanks to Mihel for pointing that out) before all halfway appearing enemies are summoned, there is a short moment just before the battle ends, when you will see the whole enemy party on the battle screen. This is now fixed.

    How to use
    Just paste the Script anywhere in the Materials section.

    Screenshots & Demo

    Unneccessary...

    Compatibility issues?
    There shouldn't be any. If you use any battle system apart from the default one or Yanfly's Battle Engine Ace, you should check the overwritten method just in case.

    The Script

    Spoiler                Code:       
    1. #==============================================================================
    2. #
    3. # "Undefeated Hidden Enemies Visual Fix"
    4. # Version 1.1
    5. # Last Update: September 2nd, 2013
    6. # Author: DerTraveler (dertraveler [at] gmail.com)
    7. #
    8. #==============================================================================
    9. #
    10. # Description:
    11. #
    12. # Fixes a small visual bug concerning hidden enemies that haven't appeared.
    13. # Without the fix these enemies would appear for a very short moment before the
    14. # battle ends, when the party flees from combat.
    15. #
    16. #==============================================================================
    17. #
    18. # How to use:
    19. #
    20. # Just paste it anywhere in the Materials section.
    21. #
    22. #==============================================================================
    23. #
    24. # Changelog:
    25. #   1.1:
    26. #     - Change the implementation of Game_Enemy only instead of Game_Battler
    27. #       and SceneManager, which were unneccessarily central changes.
    28. #       Thanks to Mihel & Tsukihime for pointing out that the bug only occurs
    29. #       when fleeing from battle and for hints regarding the cause of the
    30. #       problem.
    31. #
    32. # Compatibility:
    33. #
    34. # Overwrites  - Game_Enemy: on_battle_end
    35. #
    36. #==============================================================================
    37. #
    38. # Terms of use:
    39. #
    40. # - Free to use in any commercial or non-commercial project.
    41. # - Please mail me if you find bugs so I can fix them.
    42. # - If you have feature requests, please also mail me, but I can't guarantee
    43. #   that I will add every requested feature.
    44. # - You don't need to credit me, if you don't want to for some reason, since
    45. #   it's only a bugfix of a standard RPG Maker behaviour.
    46. #
    47. #==============================================================================
    48. class Game_Enemy < Game_Battler   
    49.   # Identically to the implementation in Game_BattlerBase except of the removed
    50.   # call to 'appear' in the end, which is unneccessary since the data of
    51.   # defeated enemies aren't reused anywhere else.
    52.   def on_battle_end
    53.    @result.clear
    54.    remove_battle_states   
    55.    remove_all_buffs   
    56.    clear_actions   
    57.    clear_tp unless preserve_tp?
    58.   end
    59. end
    复制代码








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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-18 07:56 , Processed in 0.108234 second(s), 54 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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