- Joined
- Nov 30, 2013
- Messages
- 36
- Reaction score
- 1
- First Language
- Portuguese
- Primarily Uses
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
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:
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/
Well, I also wanted to have a button to hide the textbox so I found this
=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
===============================================================================
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:
=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
===============================================================================
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/
Last edited:
