I'm using Mr. Moo's Window/Scene Wizard to make, well, some windows and some scenes. I'm having problems with this:
I test play, start the script, but when I select Slot 1 it comes up with this error:
The red writing above indicates line 98 of Scene_Memory.
What am I doing wrong please?
If you need to see the rest of the script, then please tell me.
Code:
#--------------------------------------------------------------------------
# * Update list47136452
#--------------------------------------------------------------------------
def update_list47136452
# If B button was pressed
if Input.trigger?(Input::B)
# Play cancel SE
$game_system.se_play($data_system.cancel_se)
return
end
# If C button was pressed
if Input.trigger?(Input::C)
# Branch by command window cursor position
[COLOR=Red]line98--->[/COLOR] case @command_window.index
when 0 # Slot 1
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to save screen
$scene = Scene_Save.new
when 1 # Slot 2
end
end
end
Code:
Script 'Scene_Memory' line 98: NoMethodError occurred.
undefined method 'index' for nil:NilClass
What am I doing wrong please?
If you need to see the rest of the script, then please tell me.