• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Turbo Speed

Hello, PC. I wrote this up real quickly. Make an new script above main and put the script in. What it does, is that when Switch 42 is on, the game will go into Turbo speed while on the map. I was able to get it to work with an item, but it's easier to do with a Parallel Process turning the switch on.



Script:
Code:
[COLOR=Green]#########################################
# Turbo Speed Script by Pia Carrot      #
# Released March 19th, 2012             #  
#########################################
# Instructions:                         #
# Though it's rather self explanatory,  # 
# this little snippet:                  #
#          if $game_switches[42]        #
# Can be changed to whatever you please,#
# even something other than a switch.   #
#                                       #
# Credits: Maruno, Pia Carrot           #
# Why Maruno? Shiny Pokémon Reference,  #
# current Pokémon Essentials Owner      # 
#########################################[/COLOR]
[COLOR=MediumTurquoise]class[/COLOR] Game_System

  [COLOR=MediumTurquoise]alias[/COLOR] upd_old_speedup update
  [COLOR=MediumTurquoise]def[/COLOR] update
    [COLOR=MediumTurquoise]if[/COLOR] $game_switches[42]
      Graphics.frame_rate = 160
    [COLOR=MediumTurquoise]else[/COLOR]
      Graphics.frame_rate = 40
    [COLOR=MediumTurquoise]end[/COLOR]
    upd_old_speedup
  [COLOR=MediumTurquoise]end[/COLOR]

[COLOR=MediumTurquoise]end
[COLOR=DeepSkyBlue]
[/COLOR][/COLOR][COLOR=DeepSkyBlue]class[/COLOR] MoveSelectionSprite < SpriteWrapper

  [COLOR=MediumTurquoise]def[/COLOR] update
    [COLOR=MediumTurquoise]if[/COLOR] $game_switches[42]
      Graphics.frame_rate = 160
    [COLOR=MediumTurquoise]else[/COLOR]
      Graphics.frame_rate = 40
    [COLOR=MediumTurquoise]end[/COLOR]
    upd_old_speedup
  [COLOR=MediumTurquoise]end[/COLOR]

[COLOR=MediumTurquoise]end

[COLOR=Black]class PokeBattle_Battler
  
  def update
    if $game_switches[42]
      Graphics.frame_rate = 160
    else
      Graphics.frame_rate = 40
    end
    upd_old_speedup
  end

end

class PokeBattle_ActiveSide
  
  def update
    if $game_switches[42]
      Graphics.frame_rate = 160
    else
      Graphics.frame_rate = 40
    end
    upd_old_speedup
  end

end[/COLOR][/COLOR]
Please note the script does not work in DEBUG Mode. Please compile your game and use the Game.exe to test it.

Credits: Pia Carrot, Maruno (Reference)

Update. Now speeds up battles, Pokédex, and summary screens.
 
Last edited:
Hey
Is is possible to make this script run only if the player is pressing down a particular button? I tried it using Input.press but that didn't work...
 
While this is a thread revival, I'm going to go ahead and leave it open as this is a decent resource. But in future Zara, please do not revive threads in the Game Development section (including its sub-forums) in which are over 2 months old. Thanks!
 
Hey
Is is possible to make this script run only if the player is pressing down a particular button? I tried it using Input.press but that didn't work...
An example (untested) with F9 (change with 'A' to use the running button to turbo button). In PokemonSystem, before line 'if trigger?(Input::F7)' add:
Code:
turbopress=false
if trigger?(Input::F9)
     turbopress=true
end
$game_switches[42]=turbopress
Maybe you need to change the 'trigger?' to 'press?'.
 
@Abnegation: Sorry! I didn't realize the thread was dead... my bad.
@FL: I tried it and it kept giving me a no method error. Any other ideas?
 
When I access to Pokémon info (in the game), the game crhases in line 38: undefined local variable upd_old_speedup
 
When I access to Pokémon info (in the game), the game crhases in line 38: undefined local variable upd_old_speedup

Here is mine and it works great

Code:
#########################################
# Turbo Speed Script by Pia Carrot      #
# Released March 19th, 2012             #  
#########################################
# Instructions:                         #
# Though it's rather self explanatory,  # 
# this little snippet:                  #
#          if $game_switches[42]        #
# Can be changed to whatever you please,#
# even something other than a switch.   #
#                                       #
# Credits: Maruno, Pia Carrot           #
# Why Maruno? Shiny Pokémon Reference,  #
# current Pokémon Essentials Owner      # 
#########################################
class Game_System

  alias upd_old_speedup update
  def update
    if $game_switches[42]
      Graphics.frame_rate = 160
    else
      Graphics.frame_rate = 40
    end
  end

end

class MoveSelectionSprite < SpriteWrapper

  def update
    if $game_switches[42]
      Graphics.frame_rate = 160
    else
      Graphics.frame_rate = 40
    end
  end

end

class PokeBattle_Battler
  
  def update
    if $game_switches[42]
      Graphics.frame_rate = 160
    else
      Graphics.frame_rate = 40
    end
  end

end

class PokeBattle_ActiveSide
  
  def update
    if $game_switches[42]
      Graphics.frame_rate = 160
    else
      Graphics.frame_rate = 40
    end
  end

end
 
Back
Top