Zero_G

Veteran
Veteran
Joined
Mar 28, 2020
Messages
81
Reaction score
52
First Language
English
Primarily Uses
RMVXA
I found no script to double text speed so I ended making one. Script also allows to slow down text or display it instantly.

Edit v1.1: Added a fix for the window message reopening after each message

Ruby:
=begin
===============================================================================
Text Speed
Change text speed by Zero_G v1.1
Version: RGSS3
===============================================================================
== Description ==
This script will allow you to change the speed the text is displayed.
Text can be slowed down, speed up or to displayed instantly.

== Terms of Use ==
- Free for use in non-commercial projects.
- Free for use in commercial projects.
- Please provide credits to Zero_G.

== Credits ==
No one.

== Usage ==
Just add the plugin before main.

== Changelog ==
v1.1 Fix for the window message reopening after each message.
--------------------------------------------------------------------------------
=end
module ZERO
    # Speed of text, values -1, 0 and 1 for default speed
    # 2 for double speed, 3 triple speed, ...
    # -2 for half speed, -3 for 1/3 speed, ...
    TEXT_SPEED = 2
  
    # Display text instantly, will ignore text speed
    # Set to false for default, true for instant text
    INSTANT_SPEED = false
end

class Window_Message < Window_Base
  # Overwrite update_fiber
  # Faster text
  def update_fiber
    if @fiber
      @fiber.resume
      for i in 2..ZERO::TEXT_SPEED
          @fiber.resume unless @fiber.nil?
      end
    elsif $game_message.busy? && !$game_message.scroll_mode
      @fiber = Fiber.new { fiber_main }
      @fiber.resume
    else
      $game_message.visible = false
    end
  end

  # Overwrite fiber_main
  # Faster text
  def fiber_main
    $game_message.visible = true
    update_background
    update_placement
    loop do
      process_all_text if $game_message.has_text?
      process_input
      $game_message.clear
      @gold_window.close
      Fiber.yield
      for i in 2..ZERO::TEXT_SPEED # Balance the fiber resumes
          Fiber.yield
      end
      break unless text_continue?
    end
    close_and_wait
    $game_message.visible = false
    @fiber = nil
  end

  # Alias wait_for_one_character
  # Slower text
  alias zero_wait_for_one_character wait_for_one_character
  def wait_for_one_character
    zero_wait_for_one_character
    for i in ZERO::TEXT_SPEED..-2
        Fiber.yield unless @show_fast || @line_show_fast
     end
  end

  # Overwrite update_show_fast
  # Instant text
  if ZERO::INSTANT_SPEED
      def update_show_fast
        @show_fast = true
      end
    end
end # class Window_Message
 
Last edited:

Vijzon

Warper
Member
Joined
Mar 28, 2021
Messages
1
Reaction score
0
First Language
English
Primarily Uses
RMMV
Hi! I'd love to use this script but I'm still really new to rpg maker mv and don't know how to go about using this... How do you import raw scripts like these? Is there some way of transferring it into a plugin file? Sorry for the probably really simple question, but I'm genuinely stuck :aswt:
 

Zero_G

Veteran
Veteran
Joined
Mar 28, 2020
Messages
81
Reaction score
52
First Language
English
Primarily Uses
RMVXA
Hi! I'd love to use this script but I'm still really new to rpg maker mv and don't know how to go about using this... How do you import raw scripts like these? Is there some way of transferring it into a plugin file? Sorry for the probably really simple question, but I'm genuinely stuck :aswt:
There should be a lot of tutorials in internet on how to use them. This is the first link on a google search.
But do say if you have any problems, or try asking in the help forums.
 

Latest Threads

Latest Profile Posts

The full estate map(include 1F,2F,3F and backyard), yes the backyard is a small labyrinth as well as an entrance to a real labyrinth!
Sometimes you Just need to realise someone is beyond help... Still hard to walk away tho :(
100 Horror/Tragedy Sample Maps, Penguin Mech Sprite, & TileD Templates | RPG Maker News #70

Continuing working on abs. So far I have done the workout twice. I am excited to see the results after a couple of weeks. How is everyone doing? :)
MZ: oh boy imma work today
Me, excited: Really?
MZ, doesn't do what I tell It too
Me: I Thought-
MZ: I am Working!

Forum statistics

Threads
112,226
Messages
1,066,689
Members
145,834
Latest member
Grazzok
Top