Okay, since today's a snowday for me, I've been trying my hand at RGSS to pass the time. I've been working at a window to show the objective in the menu, and it works fine, but I want to know how to make the objective changeable using the Call Script command. I've tried nearly everything I could think of, but nothing has worked.
Here's the script:
#==============================================================================
# ** Window_Objective
#------------------------------------------------------------------------------
# This window displays the party's current objective.
#==============================================================================
OBJECTIVE = "Make this script work!"
class Window_Objective < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0, 640, 64)
self.contents = Bitmap.new(width - 32, height - 32)
refresh
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.font.color = system_color
self.contents.draw_text(0, -20, 100, 70, "Objective:")
self.contents.font.color = normal_color
self.contents.draw_text(90, -20, 400, 70, OBJECTIVE)
end
end
It's probably something stupidly simple I'm missing and/or doing wrong, but since I know very little about RGSS, I have no idea what it could be.