• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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

PiaCRT

Orange Dev
938
Posts
13
Years
  • 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:
    3
    Posts
    11
    Years
    • Seen Aug 31, 2021
    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...
     
    10,673
    Posts
    15
    Years
    • Seen Dec 30, 2023
    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!
     

    FL

    Pokémon Island Creator
    2,452
    Posts
    13
    Years
    • Seen yesterday
    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?'.
     
    3
    Posts
    11
    Years
    • Seen Aug 31, 2021
    @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?
     
    13
    Posts
    8
    Years
    • Seen Nov 27, 2018
    When I access to Pokémon info (in the game), the game crhases in line 38: undefined local variable upd_old_speedup
     

    Zeak6464

    Zeak #3205 - Discord
    1,101
    Posts
    11
    Years
  • 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