赞 | 451 |
VIP | 56 |
好人卡 | 75 |
积分 | 427 |
经验 | 124650 |
最后登录 | 2024-12-22 |
在线时间 | 7616 小时 |
Lv5.捕梦者 (管理员) 老黄鸡
- 梦石
- 0
- 星屑
- 42662
- 在线时间
- 7616 小时
- 注册时间
- 2009-7-6
- 帖子
- 13506
|
回复 黄亦天 的帖子
scene_file定义很清楚了,要保存什么就自己dump啊.- def write_save_data(file)
- characters = []
- for actor in $game_party.members
- characters.push([actor.character_name, actor.character_index])
- end
- $game_system.save_count += 1
- $game_system.version_id = $data_system.version_id
- @last_bgm = RPG::BGM::last
- @last_bgs = RPG::BGS::last
- Marshal.dump(characters, file)
- Marshal.dump(Graphics.frame_count, file)
- Marshal.dump(@last_bgm, file)
- Marshal.dump(@last_bgs, file)
- Marshal.dump($game_system, file)
- Marshal.dump($game_message, file)
- Marshal.dump($game_switches, file)
- Marshal.dump($game_variables, file)
- Marshal.dump($game_self_switches, file)
- Marshal.dump($game_actors, file)
- Marshal.dump($game_party, file)
- Marshal.dump($game_troop, file)
- Marshal.dump($game_map, file)
- Marshal.dump($game_player, file)
- end
复制代码 窗口是否建立P一下不就知道了,判断是否为空 |
评分
-
查看全部评分
|