So, I have a problem which is probably easy to solve, but I can't figure out since I am completely new to scripting:
I wanted to display a window with a message which didn't disappear despite user input, so I added this script:
class Window_Bro < Window_Base
def initialize
super(Graphics.width / 4, 0, Graphics.width / 2, 48)
refresh
end
def refresh
if $game_variables[78] == 1
draw_text( 0, 0, contents_width, contents_height, "Nessa")
else if $game_variables[78] == 2
draw_text( 0, 0, contents_width, contents_height, "Alice", 1)
else
draw_text( 0, 0, contents_width, contents_height, "Liu", 1)
end
end
end
end
I use a script call in-game for when I need it: (@w=Window_Bro.new) but when it comes to make it disappear, I haven't found a way to do it. That also means that calling the window again creates a "stack" of window, with the different text overlapping. So how would I go about deleting and/or refreshing the content of the window?
Edit: Forgot to mention I am using RPG Maker VX Ace.