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

[转载发布] Battle Speed Boost Script

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

    连续签到: 2 天

    [LV.7]常住居民III

    9015

    主题

    864

    回帖

    6万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 2026-7-26 20:24:04 | 显示全部楼层 |阅读模式
    Battle Speed Boost Script
    by Meiro

    Hey everyone! I’ve been a lurker around here for a while, mostly staying in the shadows, but I’m want to share this scriptlet with you. Although scripting is not really my forte, I think this one turned out pretty nice. This is my very first post of this kind, although I’ve shared some graphic resources before. I made this one to make grinding in RPG Maker XP battles a bit more bearable. Sometimes, the regular pace of battles against mooks can feel a bit slow, especially if you're just trying to grind. That’s when I thought – why not make the speed of battles a little faster to make the process lighter and more enjoyable?


    What it does:​




    This script allows you to triple the FPS during battles when you hold the C button (or Enter/ Space keys, if that's what you're using). The effect only works during battles, so once you're out of the battle scene, the FPS goes back to normal. This is perfect if you’re looking to speed things up while grinding and just want to get through those repetitive encounters faster.


    How it works:​





    • Simply press and hold C (or Enter/ Space) to speed up the FPS by 3x during battle.​

    • When you release the button, the FPS returns to normal.​

    • It’s only active during battles, so it won’t affect your exploration or map scenes.​


    Installation:​





    • Put this script above "Main" in the script editor. Simple as that.​


    Compatibility:​





    • This script has not been tested with other battle-altering scripts, so if you use something else that changes how battles work, you might need to test for conflicts.​


    Terms of Use:​





    • Free for both commercial and non-commercial use.​

    • Just credit "Meiro" or "Meiro the Maze" if you use it.​


    Disclaimer: The creator isn't responsible for any issues caused by conflicts with other scripts or improper use.


    Hope this helps make your grinding sessions a little smoother!​

                    Ruby:       
    1. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=#
    2. # Battle Speed Boost by Meiro
    3. # Type: FPS Control in Battle
    4. # Version: 1.0
    5. # Date: 31.03.2025
    6. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=#
    7. #
    8. # This script allows the player to increase the battle speed by holding the "C"
    9. # button (default: C key, Enter or Space). The FPS will triple while the button
    10. # is pressed and return to normal when released. The effect is only active
    11. # during battles.
    12. #
    13. # Compatibility:
    14. #   - This script may not be compatible with other scripts that alter the battle
    15. #     scene, as it directly interacts with the battle update process.
    16. #
    17. # Terms of Use:
    18. #   - Free for commercial and non-commercial use.
    19. #   - Credits are a must. Just credit "Meiro" or "Meiro the Maze" if you use it.
    20. #   - Edits are allowed.
    21. #
    22. # Disclaimer:
    23. #   - The creator is not responsible for any adverse effects or issues caused by
    24. #     improper use or conflicts with other scripts.
    25. #
    26. # Installation:
    27. #   - Make sure this script is placed above "Main" in the script editor.
    28. #
    29. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=#
    30. module BattleSpeedBoost
    31.   NORMAL_FPS = 40
    32.   BOOSTED_FPS = NORMAL_FPS * 3
    33.   @@enabled = true
    34.   def self.update_fps
    35.     return unless @@enabled
    36.     if $scene.is_a?(Scene_Battle)
    37.       if Input.press?(Input::C)
    38.         Graphics.frame_rate = BOOSTED_FPS
    39.       else
    40.         Graphics.frame_rate = NORMAL_FPS
    41.       end
    42.     end
    43.   end
    44.   def self.disable
    45.     @@enabled = false
    46.     Graphics.frame_rate = NORMAL_FPS
    47.   end
    48.   def self.enable
    49.     @@enabled = true
    50.   end
    51. end
    52. class Scene_Battle
    53.   alias update_fps_boost update
    54.   def update
    55.     update_fps_boost
    56.     BattleSpeedBoost.update_fps
    57.   end
    58.   alias battle_end_fps_fix battle_end
    59.   def battle_end(result)
    60.     BattleSpeedBoost.disable
    61.     battle_end_fps_fix(result)
    62.   end
    63. end
    64. class Scene_Map
    65.   alias main_fps_boost_call main
    66.   def main
    67.     BattleSpeedBoost.enable
    68.     main_fps_boost_call
    69.   end
    70. end
    复制代码




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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-4 12:48 , Processed in 0.063478 second(s), 54 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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