Chaos_Prime
Member
I'm working on a custom menu configuration, and I have a window that displays
all the classes in the default system. All 8 of them.
But my main problem is
1. I want to know how to have the script check for a class in the party and make that class white.
2. I know I have little to no scripting experience so I would like a little help with this, if any.
This is the window_class script I came up with to display all 8 classes within the game, but is there a script code to check for a certain class and then white or gray out that class?
all the classes in the default system. All 8 of them.
But my main problem is
1. I want to know how to have the script check for a class in the party and make that class white.
2. I know I have little to no scripting experience so I would like a little help with this, if any.
Code:
#==============================================================================
# ** Window_Class
#------------------------------------------------------------------------------
# This window displays actors class on the menu screen.
#==============================================================================
class Window_Class < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0, 160, 160)
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, 0, 120, 25, "Fighter")
self.contents.font.color = system_color
self.contents.draw_text(0, 0, 120, 55, "Lancer")
self.contents.font.color = system_color
self.contents.draw_text(0, 0, 120, 85, "Warrior")
self.contents.font.color = system_color
self.contents.draw_text(0, 0, 120, 115, "Thief")
self.contents.font.color = system_color
self.contents.draw_text(0, 0, 120, 145, "Hunter")
self.contents.font.color = system_color
self.contents.draw_text(0, 0, 120, 175, "Gunner")
self.contents.font.color = system_color
self.contents.draw_text(0, 0, 120, 205, "Cleric")
self.contents.font.color = system_color
self.contents.draw_text(0, 0, 120, 235, "Mage")
end
end