VXAce Instant Show Message

Hello! So, the "\>" escape code in VXA allows you to show an entire line at once, bypassing the typewriter scrolling of default message boxes. The downside to this is that it only affects one line at a time, so if you're using for example a word wrapping script, you'll need to apply it in every spot where the line breaks when displayed in-game. This normally wouldn't be too much of a hassle, given how the engine allows you to preview text, but since the preview doesn't display escape codes (for obvious reasons) this can sometimes result in inaccurate estimations. This becomes even more of a headache if you're using custom fonts, some of which may have different character sizes and kerning, and as far as I'm aware, can't be shown in the editor preview.

Basically what I'm looking for is a way to show the text of a message box, while having the instant escape code applied automatically to each line that winds up being used. Would there be a way to script this in the editor, or would I need an entire custom script for this?
I barely understand the native RGSS classes, but searching for Input.trigger?(:C) in Window_Message I found this @showfast variable, so I looked for where it's set to false.

This script should override the function without affecting the other behaviors of the text box:
Ruby:
class Window_Message
  alias clearflags clear_flags
  def clear_flags
    clearflags
    @show_fast = true
  end
end
I barely understand the native RGSS classes, but searching for Input.trigger?(:C) in Window_Message I found this @showfast variable, so I looked for where it's set to false.

This script should override the function without affecting the other behaviors of the text box:
Ruby:
class Window_Message
  alias clearflags clear_flags
  def clear_flags
    clearflags
    @show_fast = true
  end
end
Yeah, I saw the @show_fast variable and tried poking around with it myself but couldn't quite figure it out. Thank you for the script! It works perfectly, the only thing I can think to add is a switch so it can be turned on and off:

Ruby:
class Window_Message
  alias clearflags clear_flags
  def clear_flags
    clearflags
    if $game_switches[n] == true
      @show_fast = true
    elsif $game_switches[n] == false
      @show_fast = false
    end
  end
end

No idea if that's an optimal way to do it, but based on a quick test it at least works.
But if Switch already works as a boolean and @show_fast is already disabled when using "alias", only one line would suffice:
Ruby:
class Window_Message
  alias clearflags clear_flags
  def clear_flags
    clearflags
    @show_fast = $game_switches[n]
  end
end

Or

@show_fast = true if $game_switches[n]
But if Switch already works as a boolean and @show_fast is already disabled when using "alias", only one line would suffice:
Ruby:
class Window_Message
  alias clearflags clear_flags
  def clear_flags
    clearflags
    @show_fast = $game_switches[n]
  end
end

Or

@show_fast = true if $game_switches[n]
That is way simpler than I thought, lol. Thank you!
Just so you know, a tip:
Ruby:
if $game_switches[n] == true
   ...
elsif $game_switches[n] == false
   ...
end
you only use "elsif" if there's an else statement immediately following it. Since "Switch" is a boolean, it only has two options, true and false. In this case, as with numerical values above 0, it is not necessary to use "==".
Simple as that:
Ruby:
if $game_switches[n]
   ...
else
   ...
end
Just so you know, a tip:
Ruby:
if $game_switches[n] == true
   ...
elsif $game_switches[n] == false
   ...
end
you only use "elsif" if there's an else statement immediately following it. Since "Switch" is a boolean, it only has two options, true and false. In this case, as with numerical values above 0, it is not necessary to use "==".
Simple as that:
Ruby:
if $game_switches[n]
   ...
else
   ...
end
You're awesome, thank you for explaining! ^^
Yesterday I was behind on sleep, and only today when I got home did I realize that all I had to do was remove the check mark from the key in "update_show_fast". It's much smaller now and works without any problems:
Ruby:
class Window_Message
  def update_show_fast
    @show_fast = true
  end
end

Original thread: https://forums.rpgmakerweb.com/threads/instant-show-message.183321/