Project1
标题:
存取档 和 装备扩展 的冲突~
[打印本页]
作者:
pigsss
时间:
2010-10-11 23:25
标题:
存取档 和 装备扩展 的冲突~
1.jpg
(9.7 KB, 下载次数: 4)
下载附件
保存到相册
2010-10-11 23:24 上传
看不懂~~
class Scene_Load < Scene_File
#--------------------------------------------------------------------------
# ● 读取存档数据
# file : 读取用文件对像 (已经打开)
#--------------------------------------------------------------------------
def read_save_data(file)
# 读取描绘存档文件用的角色数据
characters = Marshal.load(file)
# 读取测量游戏时间用画面计数
Graphics.frame_count = Marshal.load(file)
# 读取各种游戏对像
$game_system = Marshal.load(file)
$game_switches = Marshal.load(file)
$game_variables = Marshal.load(file)
$game_self_switches = Marshal.load(file)
$game_screen = Marshal.load(file)
$game_actors = Marshal.load(file)
$game_party = Marshal.load(file)
$game_troop = Marshal.load(file)
$game_map = Marshal.load(file)
$game_player = Marshal.load(file)
$data_weapons = []
$data_armors = []
$data_weapons = load_data("Data/Weapons.rxdata")
$data_armors = load_data("Data/Armors.rxdata")
iii = Marshal.load(file)
for jjj in 1000...iii
$data_weapons[jjj]= Marshal.load(file)
end
iii = Marshal.load(file)
for jjj in 1000...iii
$data_armors[jjj] = Marshal.load(file)
end
# 魔法编号与保存时有差异的情况下
# (加入编辑器的编辑过的数据)
if $game_system.magic_number != $data_system.magic_number
# 重新装载地图
$game_map.setup($game_map.map_id)
$game_player.center($game_player.x, $game_player.y)
end
# 刷新同伴成员
$game_party.refresh
end
end
复制代码
作者:
小传子
时间:
2010-10-12 00:18
= =估计是装备数据没有写进Save
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1