Battle Speed Boost Script

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:
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=#
# Battle Speed Boost by Meiro
# Type: FPS Control in Battle
# Version: 1.0
# Date: 31.03.2025
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=#
#
# This script allows the player to increase the battle speed by holding the "C"
# button (default: C key, Enter or Space). The FPS will triple while the button
# is pressed and return to normal when released. The effect is only active
# during battles.
#
# Compatibility:
#   - This script may not be compatible with other scripts that alter the battle
#     scene, as it directly interacts with the battle update process.
#
# Terms of Use:
#   - Free for commercial and non-commercial use.
#   - Credits are a must. Just credit "Meiro" or "Meiro the Maze" if you use it.
#   - Edits are allowed.
#
# Disclaimer:
#   - The creator is not responsible for any adverse effects or issues caused by
#     improper use or conflicts with other scripts.
#
# Installation:
#   - Make sure this script is placed above "Main" in the script editor.
#
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=#
 
module BattleSpeedBoost
  NORMAL_FPS = 40
  BOOSTED_FPS = NORMAL_FPS * 3
  @@enabled = true
 
  def self.update_fps
    return unless @@enabled
    if $scene.is_a?(Scene_Battle)
      if Input.press?(Input::C) 
        Graphics.frame_rate = BOOSTED_FPS
      else
        Graphics.frame_rate = NORMAL_FPS
      end
    end
  end
 
  def self.disable
    @@enabled = false
    Graphics.frame_rate = NORMAL_FPS
  end
 
  def self.enable
    @@enabled = true
  end
end
 
class Scene_Battle
  alias update_fps_boost update
  def update
    update_fps_boost
    BattleSpeedBoost.update_fps
  end
 
  alias battle_end_fps_fix battle_end
  def battle_end(result)
    BattleSpeedBoost.disable
    battle_end_fps_fix(result)
  end
end
 
class Scene_Map
  alias main_fps_boost_call main
  def main
    BattleSpeedBoost.enable
    main_fps_boost_call
  end
end

Original thread: https://forums.rpgmakerweb.com/threads/battle-speed-boost-script.176668/