RPG Maker Forums

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.

Latest Threads

Latest Posts

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,047
Messages
1,018,539
Members
137,834
Latest member
EverNoir
Top