This is the script I'm using:
The problem is, once I use Itachi_One.new to bring the window up, it disappears after a while. With my crappy scripting knowledge, I have no idea how to fix this. So how do I fix it so it stays forever?
Code:
class Itachi_One < Window_Base
def to_s
$game_variables[15].to_s
end
def initialize
super(0, 0, 70, 70)
self.contents = Bitmap.new(width-32, height-32)
@windowskin_name = $game_system.windowskin_name
self.contents.font.name = "Arial"
self.contents.font.size = 24
self.contents.draw_text(0, 0, 100, 32, to_s + "%")
refresh
end
def refresh
Graphics.update
self.contents.clear
self.contents.font.color = text_color(2)
self.contents.draw_text(0, 0, 100, 32, to_s + "%")
end
def update
refresh
end
end
The problem is, once I use Itachi_One.new to bring the window up, it disappears after a while. With my crappy scripting knowledge, I have no idea how to fix this. So how do I fix it so it stays forever?