class Game_Player
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
end
class Game_Player
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
end