Project1

标题: 还是存档问题…… [打印本页]

作者: 然然    时间: 2008-6-18 04:35
提示: 作者被禁止或删除 内容自动屏蔽
作者: 劍之飛龍☆    时间: 2008-6-18 04:38
将Scene_Load的第61行的 $scene = Scene_Title.new 改为 $scene = Scene_Menu.new
作者: 然然    时间: 2008-6-18 04:54
提示: 作者被禁止或删除 内容自动屏蔽
作者: dbshy    时间: 2008-6-18 04:58
Scene_Title中
   def command_continue
    # 继续无效的情况下
    unless @continue_enabled
      # 演奏无效 SE
      $game_system.se_play($data_system.buzzer_se)
      return
    end
    # 演奏确定 SE
    $game_system.se_play($data_system.decision_se)
    # 切换到读档画面
#=======================================================
    $t = true
    $scene = Scene.new
#=======================================================

  end


截图脚本中
   if Input.trigger?(Input::B)  
    # 演奏取消 SE
    $game_system.se_play($data_system.cancel_se)
    # 切换到标题画面
#=======================================================

    if $t then
      $scene = Scene_Title.new
      $t = false
    else
    $scene = Scene_Menu.new(5)
    end
#=======================================================


    end   
  
    if Input.trigger?(Input::C)
      # 文件不存在的情况下
      unless FileTest.exist?(BBS_66RPG_DIR+"Save#{@command_window.index}.rxdata")
        # 演奏冻结 SE
        $game_system.se_play($data_system.buzzer_se)
        return
      end
      # 演奏读档 SE
      $game_system.se_play($data_system.cancel_se)
      # 写入存档数据
      file = File.open(BBS_66RPG_DIR+"Save#{@command_window.index}.rxdata", "rb")
      read_save_data(file)
      file.close
      # 还原 BGM、BGS
      $game_system.bgm_play($game_system.playing_bgm)
      $game_system.bgs_play($game_system.playing_bgs)
      # 刷新地图 (执行并行事件)
      $game_map.update
      # 切换到地图画面
      $scene = Scene_Map.new
#=======================================================

      $t = false
#=======================================================

    end

比较废柴的方法,不过有效....

作者: 然然    时间: 2008-6-18 20:25
提示: 作者被禁止或删除 内容自动屏蔽
作者: 八云紫    时间: 2008-6-18 20:28
读档的是 $scene = Scene_File.new(false, true, false)

不是 $scene = Scene.new
作者: 然然    时间: 2008-6-18 20:36
提示: 作者被禁止或删除 内容自动屏蔽
作者: 八云紫    时间: 2008-6-18 20:45
嘛,看错了,那个是VX用的。{/pz}

XP的是这个 $scene = Scene_Load.new 。
作者: 然然    时间: 2008-6-18 20:59
提示: 作者被禁止或删除 内容自动屏蔽
作者: 八云紫    时间: 2008-6-18 21:00
以下引用然然于2008-6-18 12:59:28的发言:

用楼上的方法,修改后在标题处选择“继续”后显示“读取画面”,但此时按ESC就有:


这个不是我造成的,真的。 去问问 3楼 吧。
作者: 然然    时间: 2008-6-18 21:10
提示: 作者被禁止或删除 内容自动屏蔽
作者: dbshy    时间: 2008-6-18 21:12
LZ用我的方法,请看3楼.....
作者: 然然    时间: 2008-6-18 21:20
提示: 作者被禁止或删除 内容自动屏蔽
作者: 八云紫    时间: 2008-6-18 21:22
弱弱的说一下, XP 里没有 Scene 这个类哦。


闪人~~~
作者: dbshy    时间: 2008-6-18 21:37
以下引用八云紫于2008-6-18 13:22:12的发言:

弱弱的说一下, XP 里没有 Scene 这个类哦。


闪人~~~


我果然是脚本废柴,一不小心写错了
$scene = Scene.new改为$scene = Scene_Load.new

另外最后的$t = false别忘加

[LINE]1,#dddddd[/LINE]系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1