Script command to change text speed?

I'm using a tiny script to slow the text speed down a bit so the player can better keep up with it.

class Window_Message
def wait_for_one_character
update_show_fast
wait(2)
Fiber.yield unless @show_fast || @line_show_fast
end
end

But if, at any point, I decide I want to remove this because I want the text to show up quickly or instantly, how would I issue a script command that would change "wait(2)" to "wait(0)" or longer if someone is supposed to be speaking slowly? Thanks!
If you just want to show up the text at once, there's a command for it. Go look up at the tooltip when you're hovering the text box.
If you just want to show up the text at once, there's a command for it. Go look up at the tooltip when you're hovering the text box.

\>, right? It doesn't display everything at once when wait is above 0.
Looked at the default code, wait(2) doesn't even exist in that line.
Let me fix that for you.
Code:
class Window_Message
  def wait_for_one_character
    update_show_fast
    wait([$game_variables[999],1].max) unless @show_fast || @line_show_fast
  end
end
By using this, you will be using variable to control the text speed. And the \> command should work as intended.
But you have to specify the variable id by changing the number 999 into something else.
That solved it, thanks!
@TheoAllen
Doing that will not update the @show_fast variable during the wait time.
That means that the player must wait that wait time before he can attempt to press the "fast forward text" button, and he will only have 1 frame to do so, or else the wait time triggers again. The players will most probably feel that the controls are unresponsive at this point.

Spoiler
Code:
  def wait_for_one_character
    $game_variables[999].times do
      update_show_fast
      break if @show_fast || @line_show_fast
      Fiber.yield
    end
  end
This should update the "fast forward text" button properly too.
I didn't put any minimum limit for the wait time, so if the specified variable is set to 0, the text will appear instantly, which is a feature I always use in any RPG I play if it's present in the options menu.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/script-command-to-change-text-speed.104769/