| 赞 | 15 |
| VIP | |
| 好人卡 | |
| 积分 | 3 |
| 经验 | |
| 最后登录 | 2022-8-25 |
| 在线时间 | 2355 小时 |
- 梦石
- 0
- 星屑
- 266
- 在线时间
- 2355 小时
- 注册时间
- 2009-3-13
- 回帖
- 2257

|
发表于 2013-5-11 17:38:41
|
显示全部楼层
- # 说明:
- # 事件中插入脚本 collected ,启动后事件消失
- # 要刷新全部采集事件,事件中运行脚本 refresh_collected
- class Game_Event
- alias conditions_met_2013_5_11? conditions_met?
- def conditions_met?(page)
- return false if $game_self_switches[[@map_id, @id, :collected]]
- conditions_met_2013_5_11?(page)
- end
- end
- class Game_Interpreter
- def collected
- $game_self_switches[[@map_id, @event_id, :collected]] = true
- end
- def refresh_collected
- $game_self_switches.refresh_collected_events
- end
- end
- class Game_SelfSwitches
- def refresh_collected_events
- @data.delete_if {|key| key[2] == :collected}
- end
- end
复制代码 |
评分
-
查看全部评分
|