Hi,
In my game, I'm using a system not unlike the Legend of Dragoon 'stardust' side-quest, It all works with variables, but I have need of a tiny piece of script to put in the menu to display the variable.
I would like it, if possible to be in the place of the 'Steps taken' window.
I have tried a little bit of it, But I have no idea how to make it display a variable.
But all it looks like is:
Signets: <-title of window
Signet <- Name of the variable
I want to know how to make it display the value of the variable, but I only get errors
this is the line which should display the value of the variable.
I know it'll be simple for you guys so I have no worries that you wont be able to do it :smile:
Thanks
In my game, I'm using a system not unlike the Legend of Dragoon 'stardust' side-quest, It all works with variables, but I have need of a tiny piece of script to put in the menu to display the variable.
I would like it, if possible to be in the place of the 'Steps taken' window.
I have tried a little bit of it, But I have no idea how to make it display a variable.
Code:
#==============================================================================
# ** Window_Signet
#------------------------------------------------------------------------------
# This window displays signet count on the menu screen.
#==============================================================================
class Window_Signet < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0, 160, 96)
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(4, 0, 120, 32, "Signets")
self.contents.font.color = normal_color
self.contents.draw_text(4, 32, 120, 32, $game_variable = 0007)
end
end
But all it looks like is:
Signets: <-title of window
Signet <- Name of the variable
I want to know how to make it display the value of the variable, but I only get errors
Code:
self.contents.draw_text(4, 32, 120, 32, $game_variable = 0001)
I know it'll be simple for you guys so I have no worries that you wont be able to do it :smile:
Thanks