CODE
#-------------------------------------------------------------------------------
# Version: 1.0
#-------------------------------------------------------------------------------
# 12/02/2011 - Started Script
#
#-------------------------------------------------------------------------------
#
#-------------------------------------------------------------------------------
#===============================================================================
# Begin Customization
#===============================================================================
module XSS
module PROF_SKILL
PROF_AMT = 5
PROF_BONUS = 5
PROF_NAME = {
1 => "Bla1",
2 => "Bla2",
3 => "Bla3",
4 => "Bla4",
5 => "Bla5",
}
#===============================================================================
# End Customization
#===============================================================================
#===============================================================================
# Begin the Script
#===============================================================================
class Window_Prof < Window_Base
def initialize
super(0, 0, 544, 416)
self.contents.draw_text(0, 0, self.width, WLH, XSS::PROF_SKILL::PROF_NAMES)
end
end
class Scene_Prof < Scene_Base
def start
@prof_win = Window_Prof.new
end
def update
@prof_win.update
if Input.trigger?(Input::C)
$scene = Scene_Map.new
end
end
def terminate
@prof_win.dispose
end
end
class Add_Selections < Window_Selectable
def create_contents
self.contents.dispose
self.contents.font.color = system_color
case XSS::PROF_SKILL::PROF_AMT
when 1; self.contents.draw_text(x, y, 30, WLH, (XSS::PROF_SKILL::PROF_NAME[1])
when 2; self.contents.draw_text(x, y, 30, WLH, (XSS::PROF_SKILL::PROF_NAME[1..2])
when 3; self.contents.draw_text(x, y, 30, WLH, (XSS::PROF_SKILL::PROF_NAME[1..3])
when 4; self.contents.draw_text(x, y, 30, WLH, (XSS::PROF_SKILL::PROF_NAME[1..4])
when 5; self.contents.draw_text(x, y, 30, WLH, (XSS::PROF_SKILL::PROF_NAME[1..5])
when 6; self.contents.draw_text(x, y, 30, WLH, (XSS::PROF_SKILL::PROF_NAME[1..6])
when 7; self.contents.draw_text(x, y, 30, WLH, (XSS::PROF_SKILL::PROF_NAME[1..7])
when 8; self.contents.draw_text(x, y, 30, WLH, (XSS::PROF_SKILL::PROF_NAME[1..8])
when 9; self.contents.draw_text(x, y, 30, WLH, (XSS::PROF_SKILL::PROF_NAME[1..9])
when 10; self.contents.draw_text(x, y, 30, WLH, (XSS::PROF_SKILL::PROF_NAME[1..10])
when 11; self.contents.draw_text(x, y, 30, WLH, (XSS::PROF_SKILL::PROF_NAME[1..11])
when 12; self.contents.draw_text(x, y, 30, WLH, (XSS::PROF_SKILL::PROF_NAME[1..12])
when 13; self.contents.draw_text(x, y, 30, WLH, (XSS::PROF_SKILL::PROF_NAME[1..13])
when 14; self.contents.draw_text(x, y, 30, WLH, (XSS::PROF_SKILL::PROF_NAME[1..14])
when 15; self.contents.draw_text(x, y, 30, WLH, (XSS::PROF_SKILL::PROF_NAME[1..15])
when 16; self.contents.draw_text(x, y, 30, WLH, (XSS::PROF_SKILL::PROF_NAME[1..16])
when 17; self.contents.draw_text(x, y, 30, WLH, (XSS::PROF_SKILL::PROF_NAME[1..17])
when 18; self.contents.draw_text(x, y, 30, WLH, (XSS::PROF_SKILL::PROF_NAME[1..18])
when 19; self.contents.draw_text(x, y, 30, WLH, (XSS::PROF_SKILL::PROF_NAME[1..19])
when 20; self.contents.draw_text(x, y, 30, WLH, (XSS::PROF_SKILL::PROF_NAME[1..20])
end
end