$game_party = Marshal.load(file)
$game_troop = Marshal.load(file)
$game_map = Marshal.load(file)
$game_player = Marshal.load(file)
###############################################
$game_switches[1] = false #关闭1号开关
###############################################
# 魔法编号与保存时有差异的情况下
# (加入编辑器的编辑过的数据)
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
以下引用killuer于2008-4-25 0:24:38的发言:
那怎样才能设置延迟呢?
以下引用幻耶于2008-4-25 9:47:21的发言:
读档的时候执行公共事件关闭开关?好像也没效果
# 读取各种游戏对像
$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)
common_event = $data_common_events[975] #关闭开关公共事件
以下引用精灵使者于2008-4-25 9:18:42的发言:
但是查了debug箱子又合上了。
[本贴由作者于 2008-4-25 9:22:12 最后编辑]
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |