I only just looked at it, but I see four errors. First, in your Scene_Menu, around line 98, you have two "when 5"s. One of them has to be a "when 6"; I'm guessing the Exit one.
Second error: at line 18 in the WorldMap part, you have no method definition for (line 18):
#--------------------------------------------------------------------------
# * Termination Processing
#--------------------------------------------------------------------------
@image = Sprite.new
@image.bitmap = Bitmap.new (100, 100)
@image.bitmap.fill_rect (0, 0, 100, 100, Color.new (128, 224, 98))
@image.ox += 1
@image.oy += 1
end
It ought to look like this:
#--------------------------------------------------------------------------
# * Start processing
#--------------------------------------------------------------------------
def start
super
create_menu_background
create_command_window
@gold_window = Window_Gold.new(0, 360)
@status_window = Window_MenuStatus.new(160, 0)
@image = Sprite.new
@image.bitmap = Bitmap.new (100, 100)
@image.bitmap.fill_rect (0, 0, 100, 100, Color.new (128, 224, 98))
@image.ox += 1
@image.oy += 1
end
#--------------------------------------------------------------------------
# * Termination Processing
#--------------------------------------------------------------------------
def terminate
super
dispose_menu_background
@command_window.dispose
@status_window.dispose
end
You will also need to put another end at the bottom of the script.
Get rid of that end and the comment and put that code inside the start method. Then put @image.dispose inside the dispose method as well.
Error 3: this is the error that is causing your problem.
Around line 50 you have:
#--------------------------------------------------------------------------
# * Create Command Window
#--------------------------------------------------------------------------
def create_command_window
s1 = Vocab::item
s2 = "Save"
@command_window = Window_Command.new(160, [s1,s2])
@command_window.index = @menu_index
end
@menu_index is nil however, because it has not been defined. Remove that line altogether so it looks like:
#--------------------------------------------------------------------------
# * Create Command Window
#--------------------------------------------------------------------------
def create_command_window
s1 = Vocab::item
s2 = "Save"
@command_window = Window_Command.new(160, [s1,s2])
end
4:
You should be updaing your command window. Place in the update method:
@command_window.update
There may be other problems, but those are ones I noticed at first glance.