| 
 
| 赞 | 0 |  
| VIP | 0 |  
| 好人卡 | 2 |  
| 积分 | 6 |  
| 经验 | 31761 |  
| 最后登录 | 2025-10-29 |  
| 在线时间 | 1796 小时 |  
 Lv2.观梦者 
	梦石0 星屑562 在线时间1796 小时注册时间2009-7-12帖子443 | 
| 
本帖最后由 serena718 于 2012-1-25 00:47 编辑
x
加入我们,或者,欢迎回来。您需要 登录 才可以下载或查看,没有帐号?注册会员  
 ※新增VX版
 #-----------------------------------------------------
 方才幫一個人完成了這個腳本,在6R搜尋了下後發現似乎沒人有發過類似的
 其實這腳本的原理很簡單,相信高手都會,而我也只是將內建的腳本移花接木罷了
 還有就是這腳本並沒有做美化以及和截圖存檔之類的有動到存讀檔方面的腳本做整合
 標題美化類的一定會有衝突
 小妹我雖然註冊時間早但是一直都在潛水,所以也算個半新人(?)
 這也是我在6R的第一個腳本,寫法各種渣(應該說只是內建的移過去),希望各位高手多包涵m(_ _)m
 
 ※請將腳本插入在Scene_Debug下、Main上
 ※我順便將標題的選單改了下,將"讀取"這項拿掉了,以後要開始或讀取遊戲,都將由"進入遊戲"這選項完成
 ※跟一些標題類,還有大部分有動到存讀檔的腳本(ex:截圖存檔…)會有衝突,請注意
 
 (XP版本)那啥……我幫人寫完後,才發現對方沒跟我講版本,我自顧自地以為他跟我一樣是用XP版的(汗)
 於是我又弄了個RMVA版的了
 上面的那個是XP版本
 下面這VA版的,使用方式以及注意事項一樣
 還有就是,VA版的我是將"開始遊戲"刪掉了,要更改標題選單中顯示的字
 要到資料庫>用語,將"繼續遊戲"這項改成"開始遊戲"之類的……
 (VA版本)
 (VX版本)复制代码class Window_TitleCommand < Window_Command
  def initialize
    super(0, 0)
    update_placement
    self.openness = 0
    open
  end
  def make_command_list
    add_command(Vocab::continue, :continue)
    add_command(Vocab::shutdown, :shutdown)
  end
end
class Scene_Title < Scene_Base
  def create_command_window
    @command_window = Window_TitleCommand.new
    @command_window.set_handler(:continue, method(:command_continue))
    @command_window.set_handler(:shutdown, method(:command_shutdown))
  end
end
class Scene_Load < Scene_File
  def on_savefile_ok
    super
    if DataManager.load_game(@index)
      on_load_success
    else
      DataManager.setup_new_game
      fadeout_all
      $game_map.autoplay
      SceneManager.goto(Scene_Map)
    end
  end
end
复制代码class Scene_Title < Scene_Base
  def update
    super
    @command_window.update
    if Input.trigger?(Input::C)
      case @command_window.index
      when 0
        command_continue
      when 1
        command_shutdown
      end
    end
  end
  def create_command_window
    s1 = Vocab::continue
    s2 = Vocab::shutdown
    @command_window = Window_Command.new(172, [s1, s2])
    @command_window.x = (544 - @command_window.width) / 2
    @command_window.y = 288
    @command_window.openness = 0
    @command_window.open
  end
  def command_continue
      Sound.play_decision
      $scene = Scene_File.new(false, true, false)
  end
end
class Scene_File < Scene_Base
  def confirm_player_location
    if $data_system.start_map_id == 0
      print "玩家起始位置沒有被指定。"
      exit
    end
  end
  def determine_savefile
    if @saving
      Sound.play_save
      do_save
    else
      if @savefile_windows[@index].file_exist
        Sound.play_load
        do_load
      else
        confirm_player_location
        Sound.play_decision
        $game_party.setup_starting_members
        $game_map.setup($data_system.start_map_id)
        $game_player.moveto($data_system.start_x, $data_system.start_y)
        $game_player.refresh
        $scene = Scene_Map.new
        RPG::BGM.fade(1500)
        Graphics.fadeout(60)
        Graphics.wait(40)
        Graphics.frame_count = 0
        RPG::BGM.stop
        $game_map.autoplay
        return
      end
    end
    $game_temp.last_file_index = @index
  end
end
 | 
 评分
查看全部评分
 |