ไปที่หน้าต่างสคริปต์ ที่
Window_MenuCommand
หาบรรทัดพวกนี่
Code:
#--------------------------------------------------------------------------
# * Create Command List
#--------------------------------------------------------------------------
def make_command_list
add_main_commands
add_formation_command
add_original_commands
add_save_command
add_game_end_command
end
#--------------------------------------------------------------------------
# * Add Main Commands to List
#--------------------------------------------------------------------------
def add_main_commands
add_command(Vocab::item, :item, main_commands_enabled)
add_command(Vocab::skill, :skill, main_commands_enabled)
add_command(Vocab::equip, :equip, main_commands_enabled)
add_command(Vocab::status, :status, main_commands_enabled)
end
แก้เป็น
Code:
#--------------------------------------------------------------------------
# * Create Command List
#--------------------------------------------------------------------------
def make_command_list
add_main_commands
#add_formation_command
add_original_commands
add_save_command
add_game_end_command
end
#--------------------------------------------------------------------------
# * Add Main Commands to List
#--------------------------------------------------------------------------
def add_main_commands
add_command(Vocab::item, :item, main_commands_enabled)
#add_command(Vocab::skill, :skill, main_commands_enabled)
#add_command(Vocab::equip, :equip, main_commands_enabled)
#add_command(Vocab::status, :status, main_commands_enabled)
end
เสร็จแล้ว ให้ไปยัง
Scene_Menu
หาช่วงบรรทัดพวกนี่
Code:
#--------------------------------------------------------------------------
# * Create Command Window
#--------------------------------------------------------------------------
def create_command_window
@command_window = Window_MenuCommand.new
@command_window.set_handler(:item, method(:command_item))
@command_window.set_handler(:skill, method(:command_personal))
@command_window.set_handler(:equip, method(:command_personal))
@command_window.set_handler(:status, method(:command_personal))
@command_window.set_handler(:formation, method(:command_formation))
@command_window.set_handler(:save, method(:command_save))
@command_window.set_handler(:game_end, method(:command_game_end))
@command_window.set_handler(:cancel, method(:return_scene))
end
แก้เป็นตามนี่
Code:
#--------------------------------------------------------------------------
# * Create Command Window
#--------------------------------------------------------------------------
def create_command_window
@command_window = Window_MenuCommand.new
@command_window.set_handler(:item, method(:command_item))
#@command_window.set_handler(:skill, method(:command_personal))
#@command_window.set_handler(:equip, method(:command_personal))
#@command_window.set_handler(:status, method(:command_personal))
#@command_window.set_handler(:formation, method(:command_formation))
@command_window.set_handler(:save, method(:command_save))
@command_window.set_handler(:game_end, method(:command_game_end))
@command_window.set_handler(:cancel, method(:return_scene))
end
อาจจะมีผิดพลาดหรือบั๊กได้มั้ง ไม่แน่ใจเหมือนกัน เพราะผมไม่ได้เป็นสายสคริปเตอร์ แต่ลองสดๆตะกี้พบว่าปิดเมนูได้ และไม่เจอปัญหาอะไรที