赞 | 1 |
VIP | 20 |
好人卡 | 8 |
积分 | 3 |
经验 | 6181 |
最后登录 | 2022-8-5 |
在线时间 | 271 小时 |
Lv2.观梦者 神隐的主犯
- 梦石
- 0
- 星屑
- 299
- 在线时间
- 271 小时
- 注册时间
- 2008-2-22
- 帖子
- 7691
|
本帖最后由 月兔铃仙 于 2010-8-30 23:20 编辑
- #==============================================================================
- # ■ Game_Interpreter
- #------------------------------------------------------------------------------
- # 执行事件命令的解释器。本类在 Game_Map 类、Game_Troop 类、与
- # Game_Event 类的内部使用。
- #==============================================================================
- class Game_Interpreter
- def old_to_new
- # 旧版本的记录文件名
- old_save_name = ""
- # 新版本的记录文件名
- new_save_name = ""
- old_file = File.open(old_save_name , "rb")
- new_file = File.open(new_save_name , "wb")
-
- characters = Marshal.load(old_file)
- Graphics.frame_count = Marshal.load(old_file)
- last_bgm = Marshal.load(old_file)
- last_bgs = Marshal.load(old_file)
- game_system = Marshal.load(old_file)
- game_message = Marshal.load(old_file)
- game_switches = Marshal.load(old_file)
- game_variables = Marshal.load(old_file)
- game_self_switches = Marshal.load(old_file)
- game_actors = Marshal.load(old_file)
- game_party = Marshal.load(old_file)
- game_troop = Marshal.load(old_file)
- game_map = Marshal.load(old_file)
- game_player = Marshal.load(old_file)
- Marshal.dump(characters, new_file)
- Marshal.dump(Graphics.frame_count, new_file)
- Marshal.dump(last_bgm, new_file)
- Marshal.dump(last_bgs, new_file)
- Marshal.dump(game_system, new_file)
- Marshal.dump(game_message, new_file)
- Marshal.dump(game_switches, new_file)
- Marshal.dump(game_variables, new_file)
- Marshal.dump(game_self_switches, new_file)
- Marshal.dump(game_actors, new_file)
- Marshal.dump(game_party, new_file)
- Marshal.dump(game_troop, new_file)
- Marshal.dump($game_map, new_file)
- Marshal.dump(game_player, new_file)
-
- old_file.close
- new_file.close
- end
- end
复制代码 事件脚本 old_to_new
记得将里面的那个记录文件名填上
脚本未测试, 记得备份原纪录, 把脚本丢到新版本的游戏里运行. 切记~~~~~~~~~~~~~~
|
|