Script on hide message box RPG MAKER XP AND VX

I am a regular player of RPG MAKER XP, VX, VXA, MZ and MV games, if in short I have no idea how to make them and the like, but I don't need to, because I PLAY))) Here's the problem, I REALLY need a script to "hide text" for versions XP and VX. That is, the point of the script is that I can see the picture without the text, for example, which key I pressed, and the text disappeared, and on the contrary, I pressed the key, the text on the picture appeared during an event in the game. I have such scripts for all the others, but for VX and XP, no, and I have no idea where to look for them or even more so how to make them myself. I REALLY ask for help, who knows where I can find them or maybe someone has them.
What does disappear after pressing the key? The typical game window? Or a sprite with some text?
What does disappear after pressing the key? The typical game window? Or a sprite with some text?
I don't speak English, so)))))) I don't quite understand the question, or more precisely the difference))), so I'll write in more detail using an example, for example, a dialogue appears when I start "talking" with some NPC, and so that I can completely hide the dialogue window, without a frame, without text, after pressing the key, pressing the same key again, the dialogue window appears again.
Basically, you just want to make the message box invisible. Thst's not hsrd to accomplish, but I'm on my phone now...
Basically, you just want to make the message box invisible. Thst's not hsrd to accomplish, but I'm on my phone now...
Yes, absolutely right. Needed as written in the title for VX and XP)))
Here's a working script for RMXP!

Ruby:
# * Toggle Message Window XP * #
#   2024-11-10

module Input
  HIDE_MESSAGE_BTN = A
end

class Window_Message
  alias :win_mess_up :update
  def update
    win_mess_up
    if @contents_showing and Input.trigger?(Input::HIDE_MESSAGE_BTN)
      self.visible = !self.visible
    end
  end
end

And here's its RMVX port!

Ruby:
# * Toggle Message Window VX * #
#  2024-11-10

module Input
  HIDE_MESSAGE_BTN = A
end

class Window_Message
  alias :win_mess_up :update
  def update
    win_mess_up
    unless @opening or @closing
      if Input.trigger?(Input::HIDE_MESSAGE_BTN)
        self.visible = !self.visible
      end
    end
  end
end

You can replace A with any other of the available buttons.

Free for use in ANY game.
Due credit is optional here, but at least mention this forum if you don't mind.
That's it! 😛
Here's a working script for RMXP!

Ruby:
# * Toggle Message Window XP * #
#   2024-11-10

module Input
  HIDE_MESSAGE_BTN = A
end

class Window_Message
  alias :win_mess_up :update
  def update
    win_mess_up
    if @contents_showing and Input.trigger?(Input::HIDE_MESSAGE_BTN)
      self.visible = !self.visible
    end
  end
end

And here's its RMVX port!

Ruby:
# * Toggle Message Window VX * #
#  2024-11-10

module Input
  HIDE_MESSAGE_BTN = A
end

class Window_Message
  alias :win_mess_up :update
  def update
    win_mess_up
    unless @opening or @closing
      if Input.trigger?(Input::HIDE_MESSAGE_BTN)
        self.visible = !self.visible
      end
    end
  end
end

You can replace A with any other of the available buttons.

Free for use in ANY game.
Due credit is optional here, but at least mention this forum if you don't mind.
That's it! 😛
I tried both and they work, although I don't know why, but not the "A" key, but on "Shift", well, these are trifles)) ahaha. Thank you very much, I've been looking for these things for a very long time, and oh my God, finally they are here. Once again, thank you very much))))

Here's a working script for RMXP!

Ruby:
# * Toggle Message Window XP * #
#   2024-11-10

module Input
  HIDE_MESSAGE_BTN = A
end

class Window_Message
  alias :win_mess_up :update
  def update
    win_mess_up
    if @contents_showing and Input.trigger?(Input::HIDE_MESSAGE_BTN)
      self.visible = !self.visible
    end
  end
end

And here's its RMVX port!

Ruby:
# * Toggle Message Window VX * #
#  2024-11-10

module Input
  HIDE_MESSAGE_BTN = A
end

class Window_Message
  alias :win_mess_up :update
  def update
    win_mess_up
    unless @opening or @closing
      if Input.trigger?(Input::HIDE_MESSAGE_BTN)
        self.visible = !self.visible
      end
    end
  end
end

You can replace A with any other of the available buttons.

Free for use in ANY game.
Due credit is optional here, but at least mention this forum if you don't mind.
That's it! 😛
Another request, if it's not too much trouble, can you write on VXA? I have a couple of them, but another good one wouldn't hurt. Of course, if not, then everything is fine))) I'm already very grateful.
I don't know why, but not the "A" key, but on "Shift",
1731336325376.png
Thanks for the table, I'll keep it in mind.

Original thread: https://forums.rpgmakerweb.com/threads/script-on-hide-message-box-rpg-maker-xp-and-vx.173121/