Being new to scripting, I'd like to ask a noobish question. First of all, I've searched, checked, and hunted down everything in order to find the answer to my question.
In the script below, I have created a new window (appears in the menu) that displays the variable $copperore. I was wondering how I would change copper ore from within an event, or achieve something similar. The idea is for the character to mine ore from a rock, and instead of it being an actual item, it would appear in the menu. The problem I have, is that I cannot find a way to change this variable outside of the editor. Help is VERY appreciated
In the script below, I have created a new window (appears in the menu) that displays the variable $copperore. I was wondering how I would change copper ore from within an event, or achieve something similar. The idea is for the character to mine ore from a rock, and instead of it being an actual item, it would appear in the menu. The problem I have, is that I cannot find a way to change this variable outside of the editor. Help is VERY appreciated
Code:
#==============================================================================
# ** Window_CopperOre
#------------------------------------------------------------------------------
# This window displays the amount of copper ore.
#==============================================================================
class Window_CopperOre < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
# x : window X coordinate
# y : window Y coordinate
#--------------------------------------------------------------------------
def initialize(x, y)
super(x, y, 160, WLH + 32)
refresh
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.draw_text(4, 0, 120, 25, $copperore)
self.contents.draw_text(40, 0, 120, 25, "Copper Ore")
end
end