Just need a confirmation from a scripter

Ant1989

Veteran
Veteran
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

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

=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/
 
Last edited:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
'Scripts' is where people who have written scripts that they want to share with the community can post them.
[move]RGSSx Script Support[/move]
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?
 

Ant1989

Veteran
Veteran
Joined
Nov 30, 2013
Messages
36
Reaction score
1
First Language
Portuguese
Primarily Uses
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,045
Members
137,569
Latest member
Shtelsky
Top