| 
 
| 赞 | 5 |  
| VIP | 620 |  
| 好人卡 | 38 |  
| 积分 | 70 |  
| 经验 | 125468 |  
| 最后登录 | 2015-7-27 |  
| 在线时间 | 1666 小时 |  
 Lv4.逐梦者 
	梦石0 星屑6955 在线时间1666 小时注册时间2008-10-29帖子6710 
 | 
| 本帖最后由 后知后觉 于 2009-7-26 23:59 编辑 
 @menu_index是物品 特技 装备 状态 存档 游戏结束 这几个场景返回菜单场景
 的时候传递给Scene_Menu的参数
 这个东西是在Scene_Menu里面 你却在自己新定义的scene里使用当然会出错
 而且这个东西也没有意义传递给你的这个新定义的scene
 这个东西是返回菜单的时候传递给菜单的 你却把它逆向了……
 你的def xinxi是定义在 class~end之外的
 我上面也说了你的那个窗口类根本就没有存在的价值,就目前的东西来说的确是这样的
 
 最基本的语法你都还没明白
 自己还是小修小改熟悉了语法,了结了什么叫【对象】以后在
 慢慢的开始【自己编写】脚本吧
 学这东西要有耐心,急于求成会走很多弯路浪费很多时间
 没有牢固的地基,是建不起高楼的~
 复制代码class Scene_information
  def main
    s1="剧情任务"
    s2="剧情属性"
    s3="人际交友"
    @command_window = Window_Command.new(160, [s1, s2, s3])
    Graphics.transition
    loop do
    Graphics.update
    Input.update
    update
    break if $scene != self
    end
    Graphics.freeze
    @command_window.dispose
  end
  def update
    @command_window.update
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      $scene = Scene_Map.new
      return
    end
    if Input.trigger?(Input::C)
      $game_system.se_play($data_system.decision_se)
      case @command_window.index
      when 0
        $scene = Scene_Task.new
      when 1 
        $scene = Scene_atb.new
      when 2  
        $scene = Scene_frd.new
      end
      return
    end
  end
end
 | 
 |