| 本帖最后由 喵呜喵5 于 2015-12-29 09:51 编辑 
 完全不理解你自己究竟哪里弄错了,于是自己写了一个这样的脚本……
 【看到你的新帖才想起来这个旧帖还没有回复
  
 #--------------------------------------------------------------------------# ● 选项窗口的类#--------------------------------------------------------------------------class Window_M5Command < Window_Command  #--------------------------------------------------------------------------  # ● 载入窗口以及选项帮助窗口  #--------------------------------------------------------------------------  def initialize    super(0, fitting_height(2))    @m5_command_help = Window_Help.new    @m5_command_help.set_text(current_ext)  end  #--------------------------------------------------------------------------  # ● 生成选项列表  #--------------------------------------------------------------------------  def make_command_list    add_command("选项1",  :cho1, true, "选择了选项1")    add_command("选项2",  :cho2, true, "选择了选项2")    add_command("选项3",  :cho3, true, "选择了选项3")    add_command("选项4",  :cho4, true, "选择了选项4")  end  #--------------------------------------------------------------------------  # ● 释放选项帮助窗口  #--------------------------------------------------------------------------  def dispose    super    @m5_command_help.dispose  end  #--------------------------------------------------------------------------  # ● 如果光标移动时,更新帮助窗口  #--------------------------------------------------------------------------  def process_cursor_move    last_index = @index    super    @m5_command_help.set_text(current_ext) if @index != last_index  end  end#--------------------------------------------------------------------------# ● Scene#--------------------------------------------------------------------------class Scene_Test < Scene_MenuBase  def start    super        @command_window = Window_M5Command.new  endendclass << SceneManager  def first_scene_class    $BTEST ? Scene_Battle : Scene_Test  endend
#-------------------------------------------------------------------------- 
# ● 选项窗口的类 
#-------------------------------------------------------------------------- 
class Window_M5Command < Window_Command 
  #-------------------------------------------------------------------------- 
  # ● 载入窗口以及选项帮助窗口 
  #-------------------------------------------------------------------------- 
  def initialize 
    super(0, fitting_height(2)) 
    @m5_command_help = Window_Help.new 
    @m5_command_help.set_text(current_ext) 
  end 
  #-------------------------------------------------------------------------- 
  # ● 生成选项列表 
  #-------------------------------------------------------------------------- 
  def make_command_list 
    add_command("选项1",  :cho1, true, "选择了选项1") 
    add_command("选项2",  :cho2, true, "选择了选项2") 
    add_command("选项3",  :cho3, true, "选择了选项3") 
    add_command("选项4",  :cho4, true, "选择了选项4") 
  end 
  #-------------------------------------------------------------------------- 
  # ● 释放选项帮助窗口 
  #-------------------------------------------------------------------------- 
  def dispose 
    super 
    @m5_command_help.dispose 
  end 
  #-------------------------------------------------------------------------- 
  # ● 如果光标移动时,更新帮助窗口 
  #-------------------------------------------------------------------------- 
  def process_cursor_move 
    last_index = @index 
    super 
    @m5_command_help.set_text(current_ext) if @index != last_index 
  end   
end 
#-------------------------------------------------------------------------- 
# ● Scene 
#-------------------------------------------------------------------------- 
class Scene_Test < Scene_MenuBase 
  def start 
    super     
    @command_window = Window_M5Command.new 
  end 
end 
class << SceneManager 
  def first_scene_class 
    $BTEST ? Scene_Battle : Scene_Test 
  end 
end 
 |