设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 3652|回复: 3
打印 上一主题 下一主题

[已经解决] 求vx增加存档个数的脚本

[复制链接]

Lv5.捕梦者 (管理员)

老黄鸡

梦石
0
星屑
39855
在线时间
7493 小时
注册时间
2009-7-6
帖子
13485

开拓者贵宾

1
发表于 2010-12-24 07:33:48 | 显示全部楼层
回复 莹的赎生 的帖子

插入以下脚本
  1. # 存档容量扩大 by fux2


  2. class Window_SaveFile < Window_Base
  3.   
  4.   def initialize(file_index, filename)
  5.     super(0, 56 + file_index % 10 * 90, 544, 90)
  6.     @file_index = file_index
  7.     @filename = filename
  8.     load_gamedata
  9.     refresh
  10.     @selected = false
  11.   end

  12.   def file_index=(i)
  13.     @file_index = i
  14.   end
  15.    
  16. end

  17. class Scene_File < Scene_Base

  18.   def create_savefile_windows
  19.     @savefile_windows = []
  20.     for i in 0..9
  21.       @savefile_windows.push(Window_SaveFile.new(i, make_filename(i)))
  22.     end
  23.     @item_max = 10
  24.   end

  25.   def cursor_down(wrap)
  26.     if @index < @item_max - 1 or wrap
  27.       @index = (@index + 1 + @item_max) % @item_max
  28.     end
  29.     for i in 0..9
  30.       @savefile_windows[i].y = (i - @index) * 90 + 56
  31.       if @savefile_windows[i].y < 56
  32.         @savefile_windows[i].opacity = 0
  33.         @savefile_windows[i].contents.clear
  34.       else
  35.         @savefile_windows[i].opacity = 255
  36.         @savefile_windows[i].refresh
  37.       end
  38.     end
  39.   end
  40.   
  41.   def cursor_up(wrap)
  42.     if @index > 0 or wrap
  43.       @index = (@index - 1 + @item_max) % @item_max
  44.     end
  45.     for i in 0..9
  46.       @savefile_windows[i].y = (i - @index) * 90 + 56
  47.       if @savefile_windows[i].y < 56
  48.         @savefile_windows[i].opacity = 0
  49.         @savefile_windows[i].contents.clear
  50.       else
  51.         @savefile_windows[i].opacity = 255
  52.         @savefile_windows[i].refresh
  53.       end
  54.     end
  55.   end
  56.   
  57. end
复制代码
RGDirect - DirectX驱动的RGSS,点我了解.
RM全系列成套系统定制请联系QQ1213237796
不接受对其他插件维护的委托
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-5-11 23:51

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表