Just need a confirmation from a scripter

Well, I am using Yanfly Mensage System and it makes a name box over the normal textbox.

Well, I also wanted to have a button to hide the textbox so I found this

Spoiler
=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

It worked well, but it had one problem, it didn't hide Yanfly Name box. So I messed a little with the few knowledge I have of programation language and altered the script to this:

Spoiler
=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

class Window_NameMessage < 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

Repeting everything but changing the "class" to the name it was in Yanfly Mensage System that refered (for what I undertood) to the Name Box. And the thing worked.

My question is, will this break something? I put this script below Yanfly Mensage System to be sure.

Here is a link to Yanfly Mensage System. https://yanflychannel.wordpress.com/rmvxa/core-scripts/ace-message-system/
'Scripts' is where people who have written scripts that they want to share with the community can post them.
Moved to: RGSSx Script Support
Please remove Yanfly's script from your first post. He asks that people not repost them. Instead, give a link to the webpage on his site where it can be found.

Have you tried this in a dummy project to see if it works? What happens when you do?
I am sorry for the mistake. I erased Yanfly part, but that wasn't the entire script, just the part that mattered.

The alteration I did worked. The name box disappear when I press the key and come back when I press it again. My question was if this can break something else.

Original thread: https://forums.rpgmakerweb.com/threads/just-need-a-confirmation-from-a-scripter.82393/