Kingdom Ablaze
Sponsor
ok, so i moded my scence steps window to show the contents of variable 35, worked great. but then some one said that i should show a + or - sign infront of it. because it is a purity meter. so this is what i didit works, meaning no error message, but when the value changes the number wont, infact i could make it change at all from -0)
can anyone please get it to show the contents of varible 35 and put a plus or minus sign when pos or neg, oh ya and neither when its 0
#==============================================================================
# ** Window_Steps
#------------------------------------------------------------------------------
# This window displays step count on the menu screen.
#==============================================================================
class Window_Steps < 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, "Purity")
self.contents.font.color = normal_color
#text = $game_variables[0037]
#puttogether = text1 + ":" + text2 + ";"
if $game_variables[0035] > 0
text1 = "+"
text2 = $game_variables[0035]
puttogether = text1.to_s + text2.to_s
else
text1 = "-"
text2 = $game_variables[0035]
puttogether = text1.to_s + text2.to_s
end
self.contents.draw_text(4, 32, 120, 32, puttogether, 2)
end
end
# ** Window_Steps
#------------------------------------------------------------------------------
# This window displays step count on the menu screen.
#==============================================================================
class Window_Steps < 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, "Purity")
self.contents.font.color = normal_color
#text = $game_variables[0037]
#puttogether = text1 + ":" + text2 + ";"
if $game_variables[0035] > 0
text1 = "+"
text2 = $game_variables[0035]
puttogether = text1.to_s + text2.to_s
else
text1 = "-"
text2 = $game_variables[0035]
puttogether = text1.to_s + text2.to_s
end
self.contents.draw_text(4, 32, 120, 32, puttogether, 2)
end
end