class Game_CharacterBase
  
  def region_id
    $game_map.region_id(@x, @y)
  end  
  
  def diffrence_player_region_id(x,y)
    region_id - $game_map.region_id(x,y)
    
  end  
  
  def d_event_region(x,y)
    diffrence_player_region_id(x,y).abs <= 1 || $game_map.region_id(x,y) == 0 || region_id == 0  
    
  end    
end  