alias update_for_no_encounter update
def update
last_moving = moving?
update_for_no_encounter
unless moving?
# 上次主角移动中的情况
if last_moving
# 与同位置的事件接触就判定为事件启动
result = check_event_trigger_here([1,2])
# 没有可以启动的事件的情况下
if result == false
if $game_switches[100] && (1..10).include?($game_map.map_id)
@encounter_count += 1
end
end
end
end
end
# 调试模式为 ON 并且按下 CTRL 键的情况下除外
unless $DEBUG and Input.press?(Input::CTRL)
# 遇敌计数下降
if @encounter_count > 0
@encounter_count -= 1
end
end
@encounter_count为啥不是+1而是-1啊?