Pause arrow and text do not disappear

Hi, i'm using 2 interesting scripts related to text and pause arrow, namely wiggly text by tuckie and relocated pause graphic by Racheal. Unfortunately, they are not compatible with the script for hiding the dialog box on CTRL, i need the arrow and text to disappear along with the window when the button is pressed and return when pressed again, if anyone can help me, i will be very grateful.

Spoiler: WIGGLY TEXT BY TUCKIE
Code:
=begin
______________________
<  wiggly text          │
│ by tuckie            │
│                      │
│ 7/7/17 woa lucky     │
│ Version: pretty done │
│______________________│

       ______________
(-o-)< hi there!! │
      │_____________│

__________________________________________
<                                           │
│ uhh hi this lets you animate text〰️〰️〰️〰️ │
│                  pretty cool             │
│ i like credit link to my twitter         │
│ @plsvotetuckie  in the credit.txt        │
│ or website(tell ur fans to give me $100) │
│ tuckie.zone thank you i love yuo ❤️      │
│__________________________________________│

=end

#==============================================================================
# how2use this scripty boy                                              _ ⬜ ❎
#==============================================================================
# Triggering animations is done via tags in the message window.
#
# Simply add a \ani[0-9] to pick the animation you want, and all text after will
# be animated. If a new text box appears the animation will stop. You can
# manually end animation with a \stop or \ani[7].
#
#-R/-\|NB0\^/-------------------------------------------------------------------
# Much like an animation, you can turn on a rainbow effect with \ran . You can
# turn off the rainbow and animation with \off but \bln will turn off only the
# rainbow effect.
#
#==============================================================================

#==============================================================================
# ** SETTINGS | hi im tuckie please tell your players i made this       _ ⬜ ❎
#==============================================================================

module WiggleText

  # Characters 'drop in' when first drawn.
  DROP_IN     = true
  # Height from where characters drop.
  DROP_HEIGHT = 8

  # Enable or disable hitting a button to skip drawing characters one-by-one.
  # true means players can skip, false means they can't.
  SKIP_CHAR   = true

  # do /nam[number] to make a nametag box with that specific name
  NAMES = [
      "that guy", #0
      "that other guy",   #1
      "a jerk", #2 etc
  ]
  #the filename of the background for the nametag sprite, place in Graphics/System
  NAME_SPRITE = "Nametag"

  # creature comfort feature: If you have a bunch of text codes (nametag, color
  # sound effect, etc) that you need to have at the start of a message make them
  # on line one, and use the text code \lin . this will "reset" the text height
  # so line two is higher up. adjust the height to fit your font with this
  # variable. Measurement in pixels.
  LINE_HEIGHT = 16
end

#==============================================================================
# ** Sprite_TextAnim                                                    _ ⬜ ❎
#------------------------------------------------------------------------------
#  Sprite subclass for text animations.
#==============================================================================

class Sprite_TextAnim < Sprite

  attr_accessor :anim_offset
  attr_accessor :anim_type
  attr_accessor :rainbow
  attr_accessor :rainbow_offset
  attr_accessor :drop
  @timer      = false
  attr_accessor :galv_ani

  def drop()
    if WiggleText::DROP_IN
      @drop -= @drop * 0.1
      if @drop < 0
        @drop = 0
      end
      return @drop
    else
      return 0
    end
  end

  def ani
      @galv_ani += 0.015
  end

  def update
    return unless @anim_offset

    if @rainbow
      @rainbow_offset += 0.03
      self.color = Color.new(128 + Math.sin(@rainbow_offset) * 127,
        128 + Math.sin(@rainbow_offset + 2*Math::PI/3) * 127,
        128 + Math.sin(@rainbow_offset + 4*Math::PI/3) * 127,
        255)
    end
    case @anim_type
      when 1
        @anim_offset += 0.115
        self.oy = Math.sin(@anim_offset) * 3 + drop()
        ani()
      when 2
        @anim_offset += 0.2
        self.ox = Math.sin(@anim_offset) * 3
        self.oy = Math.cos(@anim_offset) * -3 + drop()
        ani()
      when 3
        @anim_offset += 0.15
        self.zoom_x = 1 + Math.sin(@anim_offset) * 0.2
        self.zoom_y = 1 + Math.cos(@anim_offset) * 0.2
        self.oy = drop()
        ani()
      when 4
        @anim_offset += 1
        rand = 0
        if @anim_offset % 8 == 0
          rand = 4
          self.ox = rand(rand) - rand(rand)
          self.oy = rand(rand) - rand(rand) + drop()
        end
        ani()
      when 5
        @anim_offset += 0.1
        sample  = Math.sin(@anim_offset) * 5
        self.oy = sample.abs + drop()
        ani()
      when 6
        @anim_offset += 0.1
        self.ox = Math.sin(@anim_offset) * 3
        self.oy = Math.cos(@anim_offset) * -2 + drop()
        self.angle = Math.sin(@anim_offset * 0.5) * 10
        ani()
      when 7
        #no animation
        self.oy = drop()
        ani()
      when 8
        @anim_offset += 0.1
        self.ox = Math.sin(@anim_offset) * 3
        self.oy = Math.cos(@anim_offset) * -2 + drop()
        self.angle = Math.sin(@anim_offset) * 10
      when 9
        @anim_offset += 0.15
        self.zoom_x = 2
        self.zoom_y = 2
        self.oy = Math.sin(@anim_offset / 2) * -4 + drop()
      when 10
        @anim_offset += 0.085
        self.oy = Math.sin(@anim_offset / 2) * 3 + drop() + 2
      else
        return
    end
  end

end

#==============================================================================
# ** Window_Message                                                     _ ⬜ ❎
#------------------------------------------------------------------------------
#  This message window is used to display text.
#==============================================================================

class Window_Message < Window_Base

  #--------------------------------------------------------------------------
  # * Window_Message Creation | Alias
  #--------------------------------------------------------------------------
  alias tuckie_wiggly_initialize initialize
  def initialize
    tuckie_wiggly_initialize
    @animchars = []
    @rainbow = false
    @anim_offset = 0
  end

  #--------------------------------------------------------------------------
  # * Normal Character Processing | Overwrite
  #--------------------------------------------------------------------------
  def process_normal_character(c, pos)
    if @anim_type && @anim_type > 0
      process_anim_character(c, pos)
    else
      if WiggleText::DROP_IN
        @anim_type = 7
        process_anim_character(c, pos)
      else
        super
      end
    end
    wait_for_one_character
  end
  #--------------------------------------------------------------------------
  # * Animated Character Processing | New Method
  #--------------------------------------------------------------------------
  def process_anim_character(c, pos)
    text_width = text_size(c).width
    if defined? Graphics.fullscreen #MKXP fix
      text_width += text_width * 0.6
      text_width = text_width.round
    end
    letter = Sprite_TextAnim.new(self.viewport)
    bitmap = Bitmap.new(text_width, pos[:height])
    bitmap.font = self.contents.font
    letter.bitmap = bitmap
    letter.x = pos[:x] + self.standard_padding + 9
    letter.y += WiggleText::DROP_HEIGHT if WiggleText::DROP_IN
    letter.y = self.y + standard_padding + pos[:y]
    letter.z = self.z + 10
    letter.anim_offset = @animchars.size
    letter.anim_type = @anim_type
    tuckie_extra(letter)
    letter.update
    bitmap.draw_text(0, 0, 10, pos[:height], c)
    @animchars.push(letter)
    pos[:x] += text_width
  end
  #--------------------------------------------------------------------------
  # * Name Menu Processing | New Method
  #--------------------------------------------------------------------------
  def process_name(c, pos)
    c = WiggleText::NAMES[c]
    text_width = text_size(c).width
    if defined? Graphics.fullscreen #MKXP fix
      text_width += text_width * 0.6
      text_width = text_width.round
    end

    letter = Sprite_TextAnim.new(self.viewport)
    bitmap = Bitmap.new(text_width + 4, 20)
    letter.bitmap = bitmap
    bitmap.font = self.contents.font
    letter.x = 23
    letter.y = self.y  + 2
    letter.z = self.z + 10
    letter.anim_offset = @animchars.size
    letter.anim_type = 10 #@anim_type
    tuckie_extra(letter)
    letter.update
    bitmap.draw_text(0, 0, 10, 16, c)

    tag = Sprite_TextAnim.new(self.viewport)
    tag.bitmap = Cache.system(WiggleText::NAME_SPRITE)
    tag.x = 14
    tag.y = self.y - 8
    tag.z = self.z + 9
    tag.anim_offset = @animchars.size
    tag.anim_type = 10
    tuckie_extra(tag)
    tag.drop = 0
    tag.update

    @animchars.push(tag)
    @animchars.push(letter)
  end
  #--------------------------------------------------------------------------
  # * Animated Emoji Processing | New Method
  #--------------------------------------------------------------------------
  def process_anim_emoji(c, pos)
    text_width = 24
    letter = Sprite_TextAnim.new(self.viewport)
    icon_bitmap = Cache.system("Emoji")
    bitmap = Bitmap.new(24, pos[:height])
    rect = Rect.new(c % 16 * 24, c / 16 * 24, 24, 24)
    bitmap.blt(0, 0, icon_bitmap, rect)
    letter.bitmap = bitmap
    letter.x = pos[:x] + self.standard_padding + 9
    letter.y += WiggleText::DROP_HEIGHT if WiggleText::DROP_IN
    letter.y = self.y + standard_padding + pos[:y]
    letter.z = self.z + 10
    letter.anim_offset = @animchars.size
    letter.anim_type = @anim_type
    tuckie_extra(letter)
    letter.update
    bitmap.draw_text(0, 0, text_width * 2, pos[:height], c)
    @animchars.push(letter)
    pos[:x] += text_width
  end
  #--------------------------------------------------------------------------
  # * Animated Character Extra Conditions | New Method
  #--------------------------------------------------------------------------
  def tuckie_extra(letter)
    if WiggleText::DROP_IN
      letter.drop = WiggleText::DROP_HEIGHT
    else
      letter.drop = 0
    end
    if @anim_type == 5
      letter.anim_offset = 0
    end
    letter.galv_ani = get_galvani
    if @rainbow
      letter.rainbow = true
      letter.rainbow_offset = @animchars.size * 0.5
    end
  end
  #--------------------------------------------------------------------------
  # * Control Character Processing | Alias
  #     code : the core of the control character
  #            e.g. "C" in the case of the control character \C[1].
  #--------------------------------------------------------------------------
  alias tuckie_wiggly_process_escape_character process_escape_character
  def process_escape_character(code, text, pos)
    case code.upcase
    when 'ANI' # Text Animation (by number)
      @anim_type = obtain_escape_param(text)
    when 'OFF' # No Text Animation
      @anim_type = 7 if WiggleText::DROP_IN
      @rainbow = false
    when 'WAV' # Wave animation
      @anim_type = 1
    when 'SHK' # Shake Screen
      $game_map.screen.start_shake(obtain_escape_param(text), 15, 10)
    when 'RAN'
      @rainbow = true
    when 'BLN'
      @rainbow = false
    when 'MOJ'
      process_anim_emoji(obtain_escape_param(text), pos)
    when 'NAM'
      process_name(obtain_escape_param(text), pos)
    when 'LIN'
      pos[:y] -= WiggleText::LINE_HEIGHT
    end
    tuckie_wiggly_process_escape_character(code, text, pos)
  end
  #--------------------------------------------------------------------------
  # * Close Window and Wait for It to Fully Close | Alias
  #--------------------------------------------------------------------------
  alias tuckie_wiggly_close_wait close_and_wait
  def close_and_wait
    dispose_text_animation()
    tuckie_wiggly_close_wait()
  end
  #--------------------------------------------------------------------------
  # * Close Window and Wait for It to Fully Close | Alias
  #--------------------------------------------------------------------------
  alias tuckie_wiggly_dispose dispose
  def dispose
    dispose_text_animation()
    tuckie_wiggly_dispose()
  end
  #--------------------------------------------------------------------------
  # * New Page | Alias
  #--------------------------------------------------------------------------
  alias tuckie_wiggly_new_page new_page
  def new_page(*args)
    dispose_text_animation()
    tuckie_wiggly_new_page(*args)
  end
  #--------------------------------------------------------------------------
  # * Free animated text | New Method
  #--------------------------------------------------------------------------
  def dispose_text_animation
    @animchars.each do |letter|
      letter.dispose
    end
    @animchars = []
    @anim_type = 7
  end
  #--------------------------------------------------------------------------
  # * Update Fast Forward Flag | Alias
  #--------------------------------------------------------------------------
  alias tuckie_wiggle_update_show_fast update_show_fast
  def update_show_fast
    tuckie_wiggle_update_show_fast()
    @show_fast = false if !WiggleText::SKIP_CHAR
  end
  #--------------------------------------------------------------------------
  # * Galv Animated Textbox | Alias
  #--------------------------------------------------------------------------
  def get_galvani # new method
    return @anim_offset
  end

  def tuckie_update # new method
    @anim_offset += 0.015
  end

  #--------------------------------------------------------------------------
  # * Window Update | Alias
  #--------------------------------------------------------------------------
  alias tuckie_wiggly_update_base update
  def update
    tuckie_update
    update_text_animation()
    tuckie_wiggly_update_base()
  end
  #--------------------------------------------------------------------------
  # * Text Animation Processing | New Method
  #--------------------------------------------------------------------------
  def update_text_animation()
    unless @animchars.empty?
      @animchars.each do |letter|
        letter.update
      end
    end
  end

end
# end of script :) have a nice one thankz for looking
Spoiler: RELOCATED PAUSE GRAPHIC BY RACHEAL
Code:
#==============================================================================
# Relocated Pause Graphic
# by: Racheal
# Version 1.0
# Created: 11/11/2013
#==============================================================================
# Replicates the pause graphic in Window_Message to allow for repositioning
#==============================================================================
# Instructions:
# * Insert in the Materials section
# * Configure to your liking below
#==============================================================================

#==============================================================================
# Customization
#==============================================================================
module Racheal_Move_Pause
#Set the position of the pause graphic. :left, :center, and :right supported
POSITION = :right

#Set fine tuning of position here
X_OFFSET = 12
Y_OFFSET = 4
end
#==============================================================================
# End Customization
#==============================================================================

class Window_Message < Window_Base
#--------------------------------------------------------------------------
# * Alias: Initialize
#--------------------------------------------------------------------------
alias move_pause_graphic_initialize initialize
def initialize
move_pause_graphic_initialize
make_pause_sprite
end
#--------------------------------------------------------------------------
# * Alias: Dispose
#--------------------------------------------------------------------------
alias move_pause_graphic_dispose dispose
def dispose
move_pause_graphic_dispose
@pause_sprite.dispose
end
#--------------------------------------------------------------------------
# * Make Pause Sprite
#--------------------------------------------------------------------------
def make_pause_sprite
@pause_sprite = Sprite.new
@pause_sprite.bitmap = self.windowskin
@pause_sprite.src_rect = Rect.new(96, 64, 16, 16)
@pause_sprite.z = self.z + 10
@pause_sprite.visible = false
end
#--------------------------------------------------------------------------
# * Alias: Update
#--------------------------------------------------------------------------
alias move_pause_graphic_update update
def update
move_pause_graphic_update
update_pause_sprite if @pause_sprite.visible
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update_pause_sprite
frame = Graphics.frame_count % 60 / 15
@pause_sprite.src_rect.x = 96 + 16 * (frame % 2)
@pause_sprite.src_rect.y = 64 + 16 * (frame / 2)
end
#--------------------------------------------------------------------------
# * Overwrite: Set Pause
#--------------------------------------------------------------------------
def pause=(pause)
if pause
case Racheal_Move_Pause::pOSITION
when :left
@pause_sprite.x = self.x + padding + Racheal_Move_Pause::X_OFFSET
when :center
@pause_sprite.x = self.x + self.width / 2 + Racheal_Move_Pause::X_OFFSET
when :right
@pause_sprite.x = self.x + self.width - padding - Racheal_Move_Pause::X_OFFSET
end
@pause_sprite.y = self.y + self.height - padding - Racheal_Move_Pause::Y_OFFSET
end
@pause_sprite.visible = pause
end
end
Spoiler: MESSAGE VISIBILITY BY EFEBERK
Code:
=begin
===============================================================================
 Message Visibility by efeberk
 Version: RGSS3
===============================================================================
 This script will allow to player sets message window visible or unvisible with
 a key.
 
 Example : Press CTRL to hide message window and repress CTRL to show message
 window.
--------------------------------------------------------------------------------
=end


module EFE
 
  KEY = :CTRL


end


class Window_Message < Window_Base
 
  alias efeberk_window_message_update update
  def update
    efeberk_window_message_update
    if Input.trigger?(EFE::KEY)
      self.visible = !self.visible
    end
  end
 
end
Knowing your previous request for using a switch I've included this in the fix.
Basically adding onto the visibility script. But has to be reformatted because it's not one line anymore.

Also the pause graphic script you posted is wrong. It has a typo.
You're using code tags but not specifying ruby, even so all the code in the pause graphic script is left aligned so you must have gotten it from somewhere in the forum where it was changed by something.
Also interesting is that it is a different version that what I have (I have three variants of this script - but not this).
Spoiler: Message Visibility
Ruby:
=begin
===============================================================================
 Message Visibility by efeberk
 Version: RGSS3
===============================================================================
 This script will allow to player sets message window visible or unvisible with
 a key.
 
 Example : Press CTRL to hide message window and repress CTRL to show message
 window.
--------------------------------------------------------------------------------
=end


module EFE
 
  KEY = :CTRL

end

class Window_Message < Window_Base
 
  alias efeberk_window_message_update update
  def update
    efeberk_window_message_update
    if Input.trigger?(EFE::KEY)
      if $game_switches[1] == true
        self.visible = !self.visible
        @pause_sprite.visible = !@pause_sprite.visible
        @animchars.each do |tk|
          tk.visible = !tk.visible
        end
      end
    end
  end
 
end
Knowing your previous request for using a switch I've included this in the fix.
Basically adding onto the visibility script. But has to be reformatted because it's not one line anymore.

Also the pause graphic script you posted is wrong. It has a typo.
You're using code tags but not specifying ruby, even so all the code in the pause graphic script is left aligned so you must have gotten it from somewhere in the forum where it was changed by something.
Also interesting is that it is a different version that what I have (I have three variants of this script - but not this).
Spoiler: Message Visibility
Ruby:
=begin
===============================================================================
 Message Visibility by efeberk
 Version: RGSS3
===============================================================================
 This script will allow to player sets message window visible or unvisible with
 a key.
 
 Example : Press CTRL to hide message window and repress CTRL to show message
 window.
--------------------------------------------------------------------------------
=end


module EFE
 
  KEY = :CTRL

end

class Window_Message < Window_Base
 
  alias efeberk_window_message_update update
  def update
    efeberk_window_message_update
    if Input.trigger?(EFE::KEY)
      if $game_switches[1] == true
        self.visible = !self.visible
        @pause_sprite.visible = !@pause_sprite.visible
        @animchars.each do |tk|
          tk.visible = !tk.visible
        end
      end
    end
  end
 
end
Okay, everything works, but there is a small problem. You can hide the window before all the text appears, which is why if you press CTRL while typing the text, the text will break and be transferred there, and the rest will remain in another place, i want it to be possible to press CTRL only when all the text is printed.
1701618436512.png

1701618467022.png
Two changes. The ctrl script and the pause script.

Spoiler: Message Visibility by Efeberk
Ruby:
=begin
===============================================================================
 Message Visibility by efeberk
 Version: RGSS3
===============================================================================
 This script will allow to player sets message window visible or unvisible with
 a key.
 
 Example : Press CTRL to hide message window and repress CTRL to show message
 window.
--------------------------------------------------------------------------------
=end

module EFE
 
  KEY = :CTRL

end

class Window_Message < Window_Base
 
  alias efeberk_window_message_update update
  def update
    efeberk_window_message_update
    if Input.trigger?(EFE::KEY)
      if $game_switches[1] == true
        self.visible = !self.visible
        @pause_sprite.visible = self.visible
        @animchars.each do |tk|
          tk.visible = !tk.visible
        end
      end
    end
  end
end

class Window_Message < Window_Base
  #--------------------------------------------------------------------------
  # * Animated Character Processing | New Method
  #--------------------------------------------------------------------------
  alias r2_process_anim_char_visibility process_anim_character
  def process_anim_character(c, pos)
    r2_process_anim_char_visibility(c, pos)
    @animchars[-1].visible = @animchars[0].visible
  end
end

Pause visibility update
Line 87 -> @pause_sprite.visible = pause if self.visible
Two changes. The ctrl script and the pause script.

Spoiler: Message Visibility by Efeberk
Ruby:
=begin
===============================================================================
 Message Visibility by efeberk
 Version: RGSS3
===============================================================================
 This script will allow to player sets message window visible or unvisible with
 a key.
 
 Example : Press CTRL to hide message window and repress CTRL to show message
 window.
--------------------------------------------------------------------------------
=end

module EFE
 
  KEY = :CTRL

end

class Window_Message < Window_Base
 
  alias efeberk_window_message_update update
  def update
    efeberk_window_message_update
    if Input.trigger?(EFE::KEY)
      if $game_switches[1] == true
        self.visible = !self.visible
        @pause_sprite.visible = self.visible
        @animchars.each do |tk|
          tk.visible = !tk.visible
        end
      end
    end
  end
end

class Window_Message < Window_Base
  #--------------------------------------------------------------------------
  # * Animated Character Processing | New Method
  #--------------------------------------------------------------------------
  alias r2_process_anim_char_visibility process_anim_character
  def process_anim_character(c, pos)
    r2_process_anim_char_visibility(c, pos)
    @animchars[-1].visible = @animchars[0].visible
  end
end

Pause visibility update
Line 87 -> @pause_sprite.visible = pause if self.visible
Everything is fine, i would like to find a way to prevent the player from hiding the window before all the text is printed. This means allowing CTRL to be pressed only when pause is activated.
Didn't think of it that way, but makes it a little easier. Don't need the
Everything is fine, i would like to find a way to prevent the player from hiding the window before all the text is printed. This means allowing CTRL to be pressed only when pause is activated.
other part I had in the last post.
Spoiler: message visibility by Efeberk
Ruby:
=begin
===============================================================================
 Message Visibility by efeberk
 Version: RGSS3
===============================================================================
 This script will allow to player sets message window visible or unvisible with
 a key.
 
 Example : Press CTRL to hide message window and repress CTRL to show message
 window.
--------------------------------------------------------------------------------
=end

module EFE
 
  KEY = :CTRL

end

class Window_Message < Window_Base
 
  alias efeberk_window_message_update update
  def update
    efeberk_window_message_update
    if Input.trigger?(EFE::KEY)
      if self.visible
        return unless @pause_sprite.visible
      end
      if $game_switches[1] == true
        self.visible = !self.visible
        @pause_sprite.visible = self.visible
        @animchars.each do |tk|
          tk.visible = !tk.visible
        end
      end
    end
  end
end
Didn't think of it that way, but makes it a little easier. Don't need the

other part I had in the last post.
Spoiler: message visibility by Efeberk
Ruby:
=begin
===============================================================================
 Message Visibility by efeberk
 Version: RGSS3
===============================================================================
 This script will allow to player sets message window visible or unvisible with
 a key.
 
 Example : Press CTRL to hide message window and repress CTRL to show message
 window.
--------------------------------------------------------------------------------
=end

module EFE
 
  KEY = :CTRL

end

class Window_Message < Window_Base
 
  alias efeberk_window_message_update update
  def update
    efeberk_window_message_update
    if Input.trigger?(EFE::KEY)
      if self.visible
        return unless @pause_sprite.visible
      end
      if $game_switches[1] == true
        self.visible = !self.visible
        @pause_sprite.visible = self.visible
        @animchars.each do |tk|
          tk.visible = !tk.visible
        end
      end
    end
  end
end
Okay, that's the last thing i need. I want it so that when hiding a window it is impossible to press Z or Enter in order to continue the dialogue further.
Okay, that's the last thing i need. I want it so that when hiding a window it is impossible to press Z or Enter in order to continue the dialogue further.
I had no idea what you're talking about, I tested again and found it does that already.
If it doesn't for you then something else is happening.
But I did notice another two issues.
I got one figured out, but the second is puzzling.
When the message is hidden and you start a new message, pressing ctrl brings the window back but you can hide it again right away because the pause sprite is visible since it gets shown when pressing the button.
I can't see a way to prevent that. There is no function that says "hey, all the text has been shown"
If there was I could maybe use that to prevent the pause sprite from showing until the message was displayed.
Here is the latest. Fixes the one issue.
Spoiler: Message Visibility by Efeberk
Ruby:
=begin
===============================================================================
 Message Visibility by efeberk
 Version: RGSS3
===============================================================================
 This script will allow to player sets message window visible or unvisible with
 a key.
 
 Example : Press CTRL to hide message window and repress CTRL to show message
 window.
--------------------------------------------------------------------------------
=end

module EFE
 
  KEY = :CTRL

end

class Window_Message < Window_Base
 
  alias efeberk_window_message_update update
  def update
    efeberk_window_message_update
    if Input.trigger?(EFE::KEY)
      if self.visible
        return unless @pause_sprite.visible
      end
      if $game_switches[1] == true
        self.visible = !self.visible
        @pause_sprite.visible = !@pause_sprite.visible
        @animchars.each do |tk|
          tk.visible = !tk.visible
        end
      end
    end
  end
end

class Window_Message < Window_Base

  alias r2_process_anim_char_visibility process_anim_character
  def process_anim_character(c, pos)
    r2_process_anim_char_visibility(c, pos)
    @animchars[-1].visible = self.visible
  end
end
There's a way to force the display of the complete complete message in the default message script. You better search for it as soon as you get some spare time if you wanna solve that issue.
I had no idea what you're talking about, I tested again and found it does that already.
If it doesn't for you then something else is happening.
But I did notice another two issues.
I got one figured out, but the second is puzzling.
When the message is hidden and you start a new message, pressing ctrl brings the window back but you can hide it again right away because the pause sprite is visible since it gets shown when pressing the button.
I can't see a way to prevent that. There is no function that says "hey, all the text has been shown"
If there was I could maybe use that to prevent the pause sprite from showing until the message was displayed.
Here is the latest. Fixes the one issue.
Spoiler: Message Visibility by Efeberk
Ruby:
=begin
===============================================================================
 Message Visibility by efeberk
 Version: RGSS3
===============================================================================
 This script will allow to player sets message window visible or unvisible with
 a key.
 
 Example : Press CTRL to hide message window and repress CTRL to show message
 window.
--------------------------------------------------------------------------------
=end

module EFE
 
  KEY = :CTRL

end

class Window_Message < Window_Base
 
  alias efeberk_window_message_update update
  def update
    efeberk_window_message_update
    if Input.trigger?(EFE::KEY)
      if self.visible
        return unless @pause_sprite.visible
      end
      if $game_switches[1] == true
        self.visible = !self.visible
        @pause_sprite.visible = !@pause_sprite.visible
        @animchars.each do |tk|
          tk.visible = !tk.visible
        end
      end
    end
  end
end

class Window_Message < Window_Base

  alias r2_process_anim_char_visibility process_anim_character
  def process_anim_character(c, pos)
    r2_process_anim_char_visibility(c, pos)
    @animchars[-1].visible = self.visible
  end
end
I meant that i don’t want to be able to start a new message when the window is hidden, this will just solve the problem with the pause graphic. You said that you don’t have such a problem, but then you mentioned that when the window hidden if you start a new message there will be problems with the pause graphic, so you have this problem too, i'd like to just prevent from pressing the Z or Enter button (any that can continue the message) to fix this. If this problem is can be fixed in other ways, then ok.
Well, what you're asking is a bit counterintuitive indeed. Anyway, a script call like self.pause = false might help there but I haven't tested it as of yet.
Well, what you're asking is a bit counterintuitive indeed. Anyway, a script call like self.pause = false might help there but I haven't tested it as of yet.
I found a small plugin for the MV version of RPG Maker, i think that something similar can be done for VX Ace, you just need to rewrite it into another language and insert it somewhere, it will pause the dialogue when switch number 11 is activated, and switch number 11 will be activated when you press CTRL, maybe everything will work out.
Spoiler: SMALL PLUGIN FOR MV
Code:
Window_Message.prototype.isTriggered = function() {
    if (!$gameSwitches.value(11)) {
        return (Input.isRepeated('ok') || Input.isRepeated('cancel') ||
            TouchInput.isRepeated());
    } else {
        //nothing can be triggered
    }
};
I meant that i don’t want to be able to start a new message when the window is hidden,
It's nice when people explain things.

I found a small plugin for the MV version of RPG Maker, i think that something similar can be done for VX Ace, you just need to rewrite it into another language and insert it somewhere,
Doesn't help

Here is the final version. works like you want it to.
Spoiler: Message Visibility by Efeberk
Ruby:
=begin
===============================================================================
 Message Visibility by efeberk
 Version: RGSS3
===============================================================================
 This script will allow to player sets message window visible or unvisible with
 a key.
 
 Example : Press CTRL to hide message window and repress CTRL to show message
 window.
--------------------------------------------------------------------------------
=end

module EFE
 
  KEY = :CTRL

end

class Window_Message < Window_Base
 
  alias efeberk_window_message_update update
  def update
    efeberk_window_message_update
    if Input.trigger?(EFE::KEY)
      if self.visible
        return unless @pause_sprite.visible
      end
      if $game_switches[1] == true
        self.visible = !self.visible
        @pause_sprite.visible = !@pause_sprite.visible
        @animchars.each do |tk|
          tk.visible = !tk.visible
        end
      end
    end
  end
  alias r2_show_when_closed close_and_wait
  def close_and_wait
    r2_show_when_closed
    self.visible = true
  end

  alias r2_process_anim_char_visibility process_anim_character
  def process_anim_character(c, pos)
    r2_process_anim_char_visibility(c, pos)
    @animchars[-1].visible = self.visible
  end
end
It's nice when people explain things.


Doesn't help

Here is the final version. works like you want it to.
Spoiler: Message Visibility by Efeberk
Ruby:
=begin
===============================================================================
 Message Visibility by efeberk
 Version: RGSS3
===============================================================================
 This script will allow to player sets message window visible or unvisible with
 a key.
 
 Example : Press CTRL to hide message window and repress CTRL to show message
 window.
--------------------------------------------------------------------------------
=end

module EFE
 
  KEY = :CTRL

end

class Window_Message < Window_Base
 
  alias efeberk_window_message_update update
  def update
    efeberk_window_message_update
    if Input.trigger?(EFE::KEY)
      if self.visible
        return unless @pause_sprite.visible
      end
      if $game_switches[1] == true
        self.visible = !self.visible
        @pause_sprite.visible = !@pause_sprite.visible
        @animchars.each do |tk|
          tk.visible = !tk.visible
        end
      end
    end
  end
  alias r2_show_when_closed close_and_wait
  def close_and_wait
    r2_show_when_closed
    self.visible = true
  end
end

class Window_Message < Window_Base

  alias r2_process_anim_char_visibility process_anim_character
  def process_anim_character(c, pos)
    r2_process_anim_char_visibility(c, pos)
    @animchars[-1].visible = self.visible
  end
end
Everything works, but i would like to make sure that the window returns after every message, and not only if the wait command is executed, if this cannot be done, then thanks anyway.
Everything works, but i would like to make sure that the window returns after every message, and not only if the wait command is executed, if this cannot be done, then thanks anyway.
I can only assume that you mean when display multiple message one after another.
I thought is was odd that you were asking about being able to continue a conversation while the window was hidden.

But I'm really not enjoying this. constantly making changes where it was never fully explained.

Spoiler: This can't be the final version?
Ruby:
=begin
===============================================================================
 Message Visibility by efeberk
 Version: RGSS3
===============================================================================
 This script will allow to player sets message window visible or unvisible with
 a key.
 
 Example : Press CTRL to hide message window and repress CTRL to show message
 window.
--------------------------------------------------------------------------------
=end

module EFE
 
  KEY = :CTRL

end

class Window_Message < Window_Base
 
  alias efeberk_window_message_update update
  def update
    efeberk_window_message_update
    if Input.trigger?(EFE::KEY)
      if self.visible
        return unless @pause_sprite.visible
      end
      if $game_switches[1] == true
        self.visible = !self.visible
        @pause_sprite.visible = !@pause_sprite.visible
        @animchars.each do |tk|
          tk.visible = !tk.visible
        end
      end
    end
  end
 
  alias r2_show_when_closed close_and_wait
  def close_and_wait
    r2_show_when_closed
    self.visible = true
  end
 
  alias r2_process_anim_char_visibility process_anim_character
  def process_anim_character(c, pos)
    r2_process_anim_char_visibility(c, pos)
    @animchars[-1].visible = self.visible
  end
 
  alias r2_process_all_text_visible process_all_text
  def process_all_text
    self.visible = true
    r2_process_all_text_visible
  end

end
=begin =============================================================================== Message Visibility by efeberk Version: RGSS3 =============================================================================== This script will allow to player sets message window visible or unvisible with a key. Example : Press CTRL to hide message window and repress CTRL to show message window. -------------------------------------------------------------------------------- =end module EFE KEY = :CTRL end class Window_Message < Window_Base alias efeberk_window_message_update update def update efeberk_window_message_update if Input.trigger?(EFE::KEY) if self.visible return unless @pause_sprite.visible end if $game_switches[1] == true self.visible = !self.visible @pause_sprite.visible = !@pause_sprite.visible @animchars.each do |tk| tk.visible = !tk.visible end end end end alias r2_show_when_closed close_and_wait def close_and_wait r2_show_when_closed self.visible = true end alias r2_process_anim_char_visibility process_anim_character def process_anim_character(c, pos) r2_process_anim_char_visibility(c, pos) @animchars[-1].visible = self.visible end alias r2_process_all_text_visible process_all_text def process_all_text self.visible = true r2_process_all_text_visible end end
Everything is cool, i apologize for the fact that i can’t fully explain what i want, problems with the translator.
This thread is closed due to being solved. If you need it reopened, report it to let us know why. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/pause-arrow-and-text-do-not-disappear.163525/