赞 | 1 |
VIP | 101 |
好人卡 | 62 |
积分 | 1 |
经验 | 34619 |
最后登录 | 2019-5-30 |
在线时间 | 270 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 270 小时
- 注册时间
- 2010-2-4
- 帖子
- 1305
|
本帖最后由 zhangbanxian 于 2012-2-6 12:31 编辑
脚本空白页插个脚本- def switches_is_on?(filename,id)
- file = open(filename,"rb+")
- # Read character data for drawing save file
- characters = Marshal.load(file)
- # Read frame count for measuring play time
- Marshal.load(file)
- # Read each type of game object
- 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)
- file.close
- return game_switches[id]
- end
复制代码 弄个自动执行事件,条件分歧里填上脚本switches_is_on?(file,id)
file是存档文件名,id是你要判断的开关名... |
|