Conversion of a collision checking Plugin from MV

Cool, thanks. I'm not sure I quite understand the error; can you whip up a demo?

EDIT: Actually, even just some screenshots of your setup for the events would be good.
Here you are. For the stool event (Note: The actual stool is elsewhere. This is activated when you pick the stool up, and processes the majority of the event when you try to set it down, by pressing :C.), I knit together a nearly-seamless screenshot of the entire event... there was no way in hell I was going to do that for the door event, so all you get is a simple screenshot. Both of these events are out in the open, away from any and all walls or other similar areas on the collision map. In all attempts to use these events, the Blockev == -2 conditional is triggered.

Code_17.png

Code_18.png
Thanks for doing this. I've replicated that as much as possible and I can't see what the error is, sorry. Are you constantly triggering the 'Wall Issue' text or 'There's something in the way'? And is this on a map with Hime's Collision Maps? Hime's Collision Maps makes it so that tiles are either passable or impassable, so there's not really any way of differentiating certain tiles specifically as 'walls', if that's what you mean. If the collision map shows any space as impassable, then blockev will be -2.

If you're constantly getting the 'There's something in the way' text, then you could add in another conditional to check the event's priority, e.g. 'check_priority?(blockev) != 1' will check if anything is not normal/same as characters priority.

Anywho, here's the most up-to-date one:
Spoiler
Code:
=begin
#=====================================================================
#   AMN Event Passability Checks - Advanced Version
#   Version 1.7
#   Author: AMoonlessNight
#   Date: 12 Feb 2018
#   Latest: 10 Mar 2018
#=====================================================================#
#   UPDATE LOG
#---------------------------------------------------------------------#
# 12 Feb 2018 - created the original script
# 12 Feb 2018 - fixed an error with calculating distance based on event
#               direction
# 14 Feb 2018 - created advanced version, including checks for blocking
#               events and event comments
# 16 Feb 2018 - fixed an error where blockev wasn't registering player
# 17 Feb 2018 - tidied up some superfluous code and made it so that
#               blockev registers non-'normal priority' events, added
#               some convenience methods for moving events
# 21 Feb 2018 - added compatibility with Hime Collision Maps
# 10 Mar 2018 - checked compatibility with GaryCXJk's Free Movement and
#               added another convenience method
#=====================================================================#

This script has a number of convenience script calls for event position
checks.

The advanced version includes:
  - checks for seeing which event is blocking the way and sets to an
    instance variable
  - checks for if the event has a particular comment to designate whether
    it should be ignored (like a 'below-priority' or 'through' event) or
    used for other purposes.
    
You can use the instance variable blockev in a conditional branch to see
which event is blocking the way.
  -2  = a tile / collision map
  -1  = the player
  0   = no event
  1+  = every other number is the ID of the event
    
For example, events with the comment <small_ev> (which can be changed in
the editable region) can be accessed using a script call in a conditional
branch and told to move aside.

As another example, events with the comment <over_ev> (which can also be
changed in the editable region) can be accessed using a script call in a
conditional branch and set to 'through' while the other event moves.

This script also contains some convenience script calls for moving events.

Based on the MV plugin by SumRndmDde: http://sumrndm.site/collision-checker/

Requested by Robert-Character-Creator

#=====================================================================#
          SCRIPT CALLS
#=====================================================================#

You can use the following script calls in conditional branches:

    * xyclear?(x, y)
  #----------------------------------------------------------------#
  # Checks if the tile at coordinates x and y is clear.
  # For example:  xyclear?(1, 2)   will check coordinates 1, 2.
  #----------------------------------------------------------------#


 
  The following script calls can be used with event IDs:
 
  Bear in the mind that event can be replaced with the following:
  -1 = player
  0 = current event
  everything else corresponds to the event ID
 
 
    * leftclear?(event) or leftclear?(event, distance)
  #----------------------------------------------------------------#
  # Checks if the tile to the event's left is clear. This is based
  # on the direction the event is facing.
  # For example:  leftclear?(3)   will check for event 3.
  # For example:  leftclear?(-1, 5)   will check for the player
  # 5 tiles away to the left.
  #----------------------------------------------------------------#
 
 
    * rightclear?(event) or rightclear?(event, distance)
  #----------------------------------------------------------------#
  # Checks if the tile to the event's right is clear. This is based
  # on the direction the event is facing.
  # For example:  rightclear?(3)   will check for event 3.
  # For example:  rightclear?(-1, 5)   will check for the player
  # 5 tiles away to the right.
  #----------------------------------------------------------------#
 
 
    * backclear?(event) or backclear?(event, distance)
  #----------------------------------------------------------------#
  # Checks if the tile behind the event is clear. This is based
  # on the direction the event is facing.
  # For example:  backclear?(3)   will check for event 3.
  # For example:  backclear?(0, 5)   will check for this event
  # 5 tiles away behind.
  #----------------------------------------------------------------#
 
 
    * frontclear?(event) or frontclear?(event, distance)
  #----------------------------------------------------------------#
  # Checks if the tile in front of the event is clear. This is
  # based on the direction the event is facing.
  # For example:  frontclear?(3)   will check for event 3.
  # For example:  frontclear?(0, 5)   will check for this event
  # 5 tiles away in front.
  #----------------------------------------------------------------#
 
 
    * northclear?(event) or northclear?(event, distance)
  #----------------------------------------------------------------#
  # Checks if the tile north of (above) the event is clear.
  # For example:  northclear?(3)   will check for event 3.
  # For example:  northclear?(3, 5)   will check for event 3
  # 5 tiles away.
  #----------------------------------------------------------------#
 
 
    * southclear?(event) or southclear?(event, distance)
  #----------------------------------------------------------------#
  # Checks if the tile south of (below) the event is clear.
  # For example:  southclear?(3)   will check for event 3.
  # For example:  southclear?(3, 5)   will check for event 3
  # 5 tiles away.
  #----------------------------------------------------------------#
 
 
    * eastclear?(event) or eastclear?(event, distance)
  #----------------------------------------------------------------#
  # Checks if the tile east of (right) the event is clear.
  # For example:  eastclear?(3)   will check for event 3.
  # For example:  eastclear?(3, 5)   will check for event 3
  # 5 tiles away.
  #----------------------------------------------------------------#
 
 
    * westclear?(event) or westclear?(event, distance)
  #----------------------------------------------------------------#
  # Checks if the tile west of (left) the event is clear.
  # For example:  westclear?(3)   will check for event 3.
  # For example:  westclear?(3, 5)   will check for event 3
  # 5 tiles away.
  #----------------------------------------------------------------#

 
  * a_equal_b_pos?(eventa, eventb)
  #----------------------------------------------------------------#
  # Checks to see if event A's position is equal to event B's
  # position.
  # For example:  a_equal_b_pos?(-1, 2)   will check if the player's
  #               position is equal to event 2's position.
  #----------------------------------------------------------------#

 
  The following script calls can be used in conditional branches to
  gather information for the user:
 

  * blockev
  #----------------------------------------------------------------#
  # blockev is an instance variable that stores the ID of the event
  # that is blocking the path.
  #
  # You can use the instance variable blockev in a conditional branch
  # or script call to see which event is blocking the way.
  #     -2    = a tile / collision map
  #     -1    = the player
  #     0     = no event
  #     1+    = every other number is the ID of the event
  #
  # For example: blockev == -1   in a conditional branch will check to
  #              see if blockev is equal to -1 (the player).
  #
  # blockev is set every time you use one of these script calls.
  #----------------------------------------------------------------#
 
 
  * eventkind(event)
  #----------------------------------------------------------------#
  # Checks to see the kind of event, or 'eventkind'. Can be used in
  # a conditional branch.
  # For example: eventkind(5) == 1   will check if the eventkind of
  #              event 5 is equal to 1 (small events).
  # For example: eventkind(blockev) == 2  will check if the eventkind
  #              of the blocking event (blockev) is equal to 2 (over
  #              events).
  #
  #     1     = small events || events with the comment <small_ev>
  #                                                      (default)
  #     2     = 'over' events || events with the comment <over_ev>
  #                                                      (default)
  #
  #----------------------------------------------------------------#
 
 
  * check_priority?(event)
  #----------------------------------------------------------------#
  # Checks the priority of event. Can be used in a conditional branch.
  # For example: check_priority?(5) == 1   will check if the priority
  #              of event 5 is equal to 1 (normal priority).
  # For example: check_priority?(blockev) == 2  will check if the
  #              priority of the blocking event (blockev) is equal to 2
  #              (above character).
  #----------------------------------------------------------------# 

 
  The following script calls can be used to move events:
 
    * moveev_rand(event) or moveev_rand(event, dist)
  #----------------------------------------------------------------#
  # Moves the event randomly the specified amount of times.
  # For example: moveev_rand(5)   will move event 5 one random step.
  # For example: moveev_rand(blockev, 2)  will move the blocking
  #              event (blockev) 2 random steps.
  #----------------------------------------------------------------#
 
    * moveev_left(event) or moveev_left(event, dist)
  #----------------------------------------------------------------#
  # Moves the event left the specified amount of times.
  # For example: moveev_left(5)   will move event 5 left one step.
  # For example: moveev_left(blockev, 2)  will move the blocking
  #              event (blockev) left 2 steps.
  #----------------------------------------------------------------#
 
    * moveev_right(event) or moveev_right(event, dist)
  #----------------------------------------------------------------#
  # Moves the event right the specified amount of times.
  # For example: moveev_right(5)   will move event 5 right one step.
  # For example: moveev_right(blockev, 2)  will move the blocking
  #              event (blockev) right 2 steps.
  #----------------------------------------------------------------#
 
    * moveev_down(event) or moveev_down(event, dist)
  #----------------------------------------------------------------#
  # Moves the event down the specified amount of times.
  # For example: moveev_down(5)   will move event 5 down one step.
  # For example: moveev_down(blockev, 2)  will move the blocking
  #              event (blockev) down 2 steps.
  #----------------------------------------------------------------#
 
    * moveev_up(event) or moveev_up(event, dist)
  #----------------------------------------------------------------#
  # Moves the event up the specified amount of times.
  # For example: moveev_up(5)   will move event 5 up one step.
  # For example: moveev_up(blockev, 2)  will move the blocking
  #              event (blockev) up 2 steps.
  #----------------------------------------------------------------#
 
    * ev_move_to(event, x, y)
  #----------------------------------------------------------------#
  # Moves the event to the specified coordinates.
  # For example: ev_move_to(5, 1, 6)   will move event 5 to the
  #              coordinates 1,6.
  # For example: ev_move_to(blockev, $game_variables[1], $game_variables[2])
  #              will move the blocking event (blockev) to the
  #              coordinates set in variables 1 and 2.
  #----------------------------------------------------------------#
 
=end

module AMN_eventpass_setup
 
#==============================================================================
#                               | OPTIONAL |
# ** EDITABLE REGION BELOW
#------------------------------------------------------------------------------
#  Change the values in the area below to suit your needs.
#
#  NOTE: You should have an understanding of regular expression before you
#        change these fields. If you do not, then it is recommended that you
#        leave them as the default.
#==============================================================================


  #--------------------------------------------------------------------------
  Small_Ev_Regex =          /<small_ev>/i          # Default: /<small_ev>/i
  #                                                 DO NOT REMOVE THIS ^ ^ ^
  # Use the regex <small_ev> (default) as a comment in an event to designate
  # 'small' events.
  #
  # This corresponds to the eventkind 1.
  #--------------------------------------------------------------------------
 
  #--------------------------------------------------------------------------
  Over_Ev_Regex =          /<over_ev>/i            # Default: /<over_ev>/i
  #                                                 DO NOT REMOVE THIS ^ ^ ^
  # Use the regex <over_ev> (default) as a comment in an event to designate
  # events that can be ignored or set to 'through'.
  #
  # This corresponds to the eventkind 2.
  #--------------------------------------------------------------------------

 
#==============================================================================
# ** END OF EDITABLE REGION
#------------------------------------------------------------------------------
#  Please do not edit below this point unless you know what you are doing.
#==============================================================================

end

#==============================================================================
# ** Game_Map
#------------------------------------------------------------------------------
#  This class handles maps. It includes scrolling and passage determination
# functions. The instance of this class is referenced by $game_map.
#==============================================================================

class Game_Map

  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_accessor   :blockev                    # ID of event blocking path
  attr_accessor   :eventkind                  # Kind of event

  #--------------------------------------------------------------------------
  # * Object Initialization                                  # ALIAS METHOD #
  #--------------------------------------------------------------------------
  alias amn_eventpos_gamemap_init   initialize
  def initialize
    @blockev = 0
    amn_eventpos_gamemap_init
  end
 
  #--------------------------------------------------------------------------
  # * Parse Event Comments                                     # NEW METHOD #
  #--------------------------------------------------------------------------
  # Parses the event's comments and checks for event kind.
  #--------------------------------------------------------------------------
  def parse_event_comments(event_id)
    event = @events[event_id]
    @eventkind = 0
    if event.list
      event.list.each do |cmd|
        if cmd.code == 108
          if cmd.parameters[0] =~ AMN_eventpass_setup::Small_Ev_Regex
            @eventkind = 1      # number for 'small' events
          elsif cmd.parameters[0] =~ AMN_eventpass_setup::Over_Ev_Regex
            @eventkind = 2      # number for 'over' events
          else
            @eventkind = 0      # number for all other (impassable) events
          end
        end
      end
    end
  end 
 
  #--------------------------------------------------------------------------
  # * XY Passability Clear?                                    # NEW METHOD #
  #--------------------------------------------------------------------------
  # Checks the X and Y coordinates and sees if they are clear. Doesn't
  # consider direction.
  #--------------------------------------------------------------------------
  def amn_xy_pass_clear?(x, y)
    get_blockev(x, y)
    return false if check_passage(x, y, 1) == false
    return false if $game_player.pos?(x, y)     # first checks the player's position
    if event_id_xy(x, y) > 0
      ev = event_id_xy(x, y)
      return false if @events[ev].normal_priority? && !@events[ev].through
      return true if !@events[ev].normal_priority? || @events[ev].through
    end
    return true
  end
 
  #--------------------------------------------------------------------------
  # * Get Blockev?                                             # NEW METHOD #
  #--------------------------------------------------------------------------
  # Checks the X and Y coordinates and gets the value of the blocking event.
  #--------------------------------------------------------------------------
  def get_blockev(x, y)
    if check_passage(x, y, 1) == false
      if $imported["TH_CollisionMaps"] && use_collision_map?
        @blockev = -2
        p(@blockev)
      else
        @blockev = -3
        p(@blockev)
      end
    elsif $game_player.pos?(x, y)
      @blockev = -1
    elsif event_id_xy(x, y) > 0
      ev = event_id_xy(x, y)
      @blockev = @events[ev].id
    else
      @blockev = 0
    end
  end
    
    
  #--------------------------------------------------------------------------
  # * Check Event Kind                                         # NEW METHOD #
  #--------------------------------------------------------------------------
  # Parses the event's comments for its event kind and returns it.
  #-------------------------------------------------------------------------- 
  def check_eventkind(event_id)
    parse_event_comments(event_id)
    return @eventkind
  end
 
 
end

#==============================================================================
# ** Game_CharacterBase
#------------------------------------------------------------------------------
#  This base class handles characters. It retains basic information, such as
# coordinates and graphics, shared by all characters.
#==============================================================================

class Game_CharacterBase
  #--------------------------------------------------------------------------
  # * Detect Collision with Event                        # OVERWRITE METHOD #
  #--------------------------------------------------------------------------
  # Overwrites the method for checking if an event is colliding with another
  # event; now it only returns false if both events are normal priority.
  #--------------------------------------------------------------------------
  def collide_with_events?(x, y)
    $game_map.events_xy_nt(x, y).any? do |event|
      event.normal_priority? && self.normal_priority?
    end
  end
 
end

#==============================================================================
# ** Game_Interpreter
#------------------------------------------------------------------------------
#  An interpreter for executing event commands. This class is used within the
# Game_Map, Game_Troop, and Game_Event classes.
#==============================================================================

class Game_Interpreter

  #--------------------------------------------------------------------------
  # * XY Clear?                                                # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the coordinates x & y are clear. Returns false if there is an
  # event or player there.
  #--------------------------------------------------------------------------
  def xyclear?(x, y)
    $game_map.amn_xy_pass_clear?(x, y)
  end
 
  #--------------------------------------------------------------------------
  # * Blockev                                                  # NEW METHOD #
  #--------------------------------------------------------------------------
  # Returns the value of the instance variable blockev, or the blocking event.
  #--------------------------------------------------------------------------
  def blockev
    return $game_map.blockev
  end
 
  #--------------------------------------------------------------------------
  # * Check Priority                                           # NEW METHOD #
  #--------------------------------------------------------------------------
  # Convenience method for checking the priority of an event.
  #--------------------------------------------------------------------------
  def check_priority?(event)
    return $game_map.events[event].priority_type
  end
 
  #--------------------------------------------------------------------------
  # * Move To                                                  # NEW METHOD #
  #--------------------------------------------------------------------------
  # Convenience method for moving an event to coordinates.
  #--------------------------------------------------------------------------
  def ev_move_to(event, x, y)
    event = get_character(event)
    event.moveto(x, y)
  end
 
  #--------------------------------------------------------------------------
  # * Eventkind                                                # NEW METHOD #
  #--------------------------------------------------------------------------
  # Returns the eventkind for the event.
  #--------------------------------------------------------------------------
  def eventkind(event)
    $game_map.check_eventkind(event)
  end

  #--------------------------------------------------------------------------
  # * Move Blockev Randomly                                    # NEW METHOD #
  #--------------------------------------------------------------------------
  # Just a convenient way of making the event move in a random
  # direction.
  #--------------------------------------------------------------------------
  def moveev_rand(event, dist = 1)
    event = get_character(event)
    mr = RPG::MoveRoute.new
    mr.repeat = false
    mr.skippable = true
    mr.wait = true
    mr.list = []
    dist.times do
      mr.list.push( RPG::MoveCommand.new(9, []) )
    end
    mr.list.push( RPG::MoveCommand.new )
    event.force_move_route(mr)
  end
 
  #--------------------------------------------------------------------------
  # * Move Blockev Left                                    # NEW METHOD #
  #--------------------------------------------------------------------------
  # Just a convenient way of making the event move left.
  #--------------------------------------------------------------------------
  def moveev_left(event, dist = 1)
    event = get_character(event)
    mr = RPG::MoveRoute.new
    mr.repeat = false
    mr.skippable = true
    mr.wait = true
    mr.list = []
    dist.times do
      mr.list.push( RPG::MoveCommand.new(2, []) )
    end
    mr.list.push( RPG::MoveCommand.new )
    event.force_move_route(mr)
  end
 
  #--------------------------------------------------------------------------
  # * Move Blockev Right                                       # NEW METHOD #
  #--------------------------------------------------------------------------
  # Just a convenient way of making the event move left.
  #--------------------------------------------------------------------------
  def moveev_right(event, dist = 1)
    event = get_character(event)
    mr = RPG::MoveRoute.new
    mr.repeat = false
    mr.skippable = true
    mr.wait = true
    mr.list = []
    dist.times do
      mr.list.push( RPG::MoveCommand.new(3, []) )
    end
    mr.list.push( RPG::MoveCommand.new )
    event.force_move_route(mr)
  end
 
  #--------------------------------------------------------------------------
  # * Move Blockev Down                                        # NEW METHOD #
  #--------------------------------------------------------------------------
  # Just a convenient way of making the event move left.
  #--------------------------------------------------------------------------
  def moveev_down(event, dist = 1)
    event = get_character(event)
    mr = RPG::MoveRoute.new
    mr.repeat = false
    mr.skippable = true
    mr.wait = true
    mr.list = []
    dist.times do
      mr.list.push( RPG::MoveCommand.new(1, []) )
    end
    mr.list.push( RPG::MoveCommand.new )
    event.force_move_route(mr)
  end
 
  #--------------------------------------------------------------------------
  # * Move Blockev Up                                          # NEW METHOD #
  #--------------------------------------------------------------------------
  # Just a convenient way of making the event move left.
  #--------------------------------------------------------------------------
  def moveev_up(event, dist = 1)
    event = get_character(event)
    mr = RPG::MoveRoute.new
    mr.repeat = false
    mr.skippable = true
    mr.wait = true
    mr.list = []
    dist.times do
      mr.list.push( RPG::MoveCommand.new(4, []) )
    end
    mr.list.push( RPG::MoveCommand.new )
    event.force_move_route(mr)
  end
    
  #--------------------------------------------------------------------------
  # * Left Clear?                                              # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile to the event's left is clear. Based on event's
  # direction.
  #--------------------------------------------------------------------------
  def leftclear?(event, dist = 0)
    event = get_character(event)
    dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
    case event.direction
    when 2; left_dir = 6; evx = (event.x + dist); evy = event.y; bevx = evx + 1; bevy = evy
    when 4; left_dir = 2; evy = (event.y + dist); evx = event.x; bevy = evy + 1; bevx = evx
    when 6; left_dir = 8; evy = (event.y - dist); evx = event.x; bevy = evy - 1; bevx = evx
    when 8; left_dir = 4; evx = (event.x - dist); evy = event.y; bevx = evx - 1; bevy = evy
    end
    $game_map.get_blockev(bevx, bevy)
    return false unless xyclear?(bevx, bevy)
    event.passable?(evx, evy, left_dir)
  end
 
  #--------------------------------------------------------------------------
  # * Right Clear?                                             # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile to the event's right is clear. Based on event's
  # direction.
  #--------------------------------------------------------------------------
  def rightclear?(event, dist = 0)
    event = get_character(event)
    dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
    case event.direction
    when 2;  right_dir = 4; evx = (event.x - dist); evy = event.y; bevx = evx - 1; bevy = evy
    when 4;  right_dir = 8; evy = (event.y - dist); evx = event.x; bevy = evy - 1; bevx = evx
    when 6;  right_dir = 2; evy = (event.y + dist); evx = event.x; bevy = evy + 1; bevx = evx
    when 8;  right_dir = 6; evx = (event.x + dist); evy = event.y; bevx = evx + 1; bevy = evy
    end
    $game_map.get_blockev(bevx, bevy)
    return false unless xyclear?(bevx, bevy)
    event.passable?(evx, evy, right_dir)
  end
 
  #--------------------------------------------------------------------------
  # * Back Clear?                                              # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile behind the event is clear. Based on event's direction.
  #--------------------------------------------------------------------------
  def backclear?(event, dist = 0)
    event = get_character(event)
    revdir = event.reverse_dir(event.direction)
    dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
    case event.direction
    when 2;  evy = (event.y - dist); evx = event.x; bevy = evy - 1; bevx = evx
    when 4;  evx = (event.x + dist); evy = event.y; bevx = evx + 1; bevy = evy
    when 6; evx = (event.x - dist); evy = event.y; bevx = evx - 1; bevy = evy
    when 8; evy = (event.y + dist); evx = event.x; bevy = evy + 1; bevx = evx
    end
    $game_map.get_blockev(bevx, bevy)
    return false unless xyclear?(bevx, bevy)
    event.passable?(evx, evy, revdir)
  end
 
  #--------------------------------------------------------------------------
  # * Front Clear?                                             # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile in front of the event is clear. Based on event's
  # direction.
  #--------------------------------------------------------------------------
  def frontclear?(event, dist = 0)
    event = get_character(event)
    dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
    case event.direction
    when 2;  evy = (event.y + dist); evx = event.x; bevy = evy + 1; bevx = evx
    when 4;  evx = (event.x - dist); evy = event.y; bevx = evx - 1; bevy = evy
    when 6; evx = (event.x + dist); evy = event.y; bevx = evx + 1; bevy = evy
    when 8; evy = (event.y - dist); evx = event.x; bevy = evy - 1; bevx = evx
    end
    $game_map.get_blockev(bevx, bevy)
    return false unless xyclear?(bevx, bevy)
    event.passable?(evx, evy, event.direction)
  end
 
  #--------------------------------------------------------------------------
  # * North Clear?                                             # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile above the event (the north) is clear.
  #--------------------------------------------------------------------------
  def northclear?(event, dist = 0)
    event = get_character(event)
    dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
    $game_map.get_blockev(event.x, (event.y - dist) - 1)
    return false unless xyclear?(event.x, (event.y - dist) - 1)
    event.passable?(event.x, (event.y - dist), 8)
  end
 
  #--------------------------------------------------------------------------
  # * South Clear?                                             # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile below the event (the south) is clear.
  #--------------------------------------------------------------------------
  def southclear?(event, dist = 0)
    event = get_character(event)
    dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
    $game_map.get_blockev(event.x, (event.y + dist) + 1)
    return false unless xyclear?(event.x, (event.y + dist) + 1)
    event.passable?(event.x, (event.y + dist), 2)
  end
 
  #--------------------------------------------------------------------------
  # * East Clear?                                              # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile right of the event (the east) is clear.
  #--------------------------------------------------------------------------
  def eastclear?(event, dist = 0)
    event = get_character(event)
    dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
    $game_map.get_blockev((event.x - dist) - 1, event.y)
    return false unless xyclear?((event.x - dist) - 1, event.y)
    event.passable?((event.x - dist), event.y, 6)
  end
 
  #--------------------------------------------------------------------------
  # * West Clear?                                              # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile left of the event (the west) is clear.
  #--------------------------------------------------------------------------
  def westclear?(event, dist = 0)
    event = get_character(event)
    dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
    $game_map.get_blockev((event.x + dist) + 1, event.y)
    return false unless xyclear?((event.x + dist) + 1, event.y)
    event.passable?((event.x + dist), event.y, 4)
  end

  #--------------------------------------------------------------------------
  # * A Equals B Pos?                                          # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if event A's position is the same as event B
  #--------------------------------------------------------------------------
  def a_equal_b_pos?(eventa, eventb)
    eventa = get_character(eventa)
    eventb = get_character(eventb)
    eventa.pos?(eventb.x, eventb.y)
  end
end
In all cases, it's the wall issue one. I'm using the collision map to make walls only at the moment, hence my wording. But yes, I'm having the 'Wall Issue' text appear every time, even in open space. However, if I place some passable tiles where I'm working, then the events work. It's odd.

...Wow, I'm a massive idiot! The blank tile I had the entire map covered in was set to impassible, even though the collision map allowed me to walk through it. I feel ridiculous, haha. XD

...Err, it works now, I'll keep testing. :I

Edit: These new methods look amazing! Thank you for these!
No worries, glad it's working! Probably still needs a bit more testing. Give us a yell if there's anything else you need.
Updated script, with correct directions this time:
Spoiler: New and improved goodness
Code:
=begin
#=====================================================================
#   AMN Event Passability Checks - Advanced Version
#   Version 1.9
#   Author: AMoonlessNight
#   Date: 12 Feb 2018
#   Latest: 15 Mar 2018
#=====================================================================#
#   UPDATE LOG
#---------------------------------------------------------------------#
# 12 Feb 2018 - created the original script
# 12 Feb 2018 - fixed an error with calculating distance based on event
#               direction
# 14 Feb 2018 - created advanced version, including checks for blocking
#               events and event comments
# 16 Feb 2018 - fixed an error where blockev wasn't registering player
# 17 Feb 2018 - tidied up some superfluous code and made it so that
#               blockev registers non-'normal priority' events, added
#               some convenience methods for moving events
# 21 Feb 2018 - added compatibility with Hime Collision Maps
# 10 Mar 2018 - checked compatibility with GaryCXJk's Free Movement and
#               added another convenience method
# 14 Mar 2018 - fixed error with directions
# 15 Mar 2018 - added compatibility with GaryCXJk's Free Movement script
#=====================================================================#

This script has a number of convenience script calls for event position
checks.

The advanced version includes:
  - checks for seeing which event is blocking the way and sets to an
    instance variable
  - checks for if the event has a particular comment to designate whether
    it should be ignored (like a 'below-priority' or 'through' event) or
    used for other purposes.
    
You can use the instance variable blockev in a conditional branch to see
which event is blocking the way.
  -2  = a tile / collision map
  -1  = the player
  0   = no event
  1+  = every other number is the ID of the event
    
For example, events with the comment <small_ev> (which can be changed in
the editable region) can be accessed using a script call in a conditional
branch and told to move aside.

As another example, events with the comment <over_ev> (which can also be
changed in the editable region) can be accessed using a script call in a
conditional branch and set to 'through' while the other event moves.

This script also contains some convenience script calls for moving events.

Based on the MV plugin by SumRndmDde: http://sumrndm.site/collision-checker/

Requested by Robert-Character-Creator

#=====================================================================#
          SCRIPT CALLS
#=====================================================================#

You can use the following script calls in conditional branches:

    * xyclear?(x, y)
  #----------------------------------------------------------------#
  # Checks if the tile at coordinates x and y is clear.
  # For example:  xyclear?(1, 2)   will check coordinates 1, 2.
  #----------------------------------------------------------------#


 
  The following script calls can be used with event IDs:
 
  Bear in the mind that event can be replaced with the following:
  -1 = player
  0 = current event
  everything else corresponds to the event ID
 
 
    * leftclear?(event) or leftclear?(event, distance)
  #----------------------------------------------------------------#
  # Checks if the tile to the event's left is clear. This is based
  # on the direction the event is facing.
  # For example:  leftclear?(3)   will check for event 3.
  # For example:  leftclear?(-1, 5)   will check for the player
  # 5 tiles away to the left.
  #----------------------------------------------------------------#
 
 
    * rightclear?(event) or rightclear?(event, distance)
  #----------------------------------------------------------------#
  # Checks if the tile to the event's right is clear. This is based
  # on the direction the event is facing.
  # For example:  rightclear?(3)   will check for event 3.
  # For example:  rightclear?(-1, 5)   will check for the player
  # 5 tiles away to the right.
  #----------------------------------------------------------------#
 
 
    * backclear?(event) or backclear?(event, distance)
  #----------------------------------------------------------------#
  # Checks if the tile behind the event is clear. This is based
  # on the direction the event is facing.
  # For example:  backclear?(3)   will check for event 3.
  # For example:  backclear?(0, 5)   will check for this event
  # 5 tiles away behind.
  #----------------------------------------------------------------#
 
 
    * frontclear?(event) or frontclear?(event, distance)
  #----------------------------------------------------------------#
  # Checks if the tile in front of the event is clear. This is
  # based on the direction the event is facing.
  # For example:  frontclear?(3)   will check for event 3.
  # For example:  frontclear?(0, 5)   will check for this event
  # 5 tiles away in front.
  #----------------------------------------------------------------#
 
 
    * northclear?(event) or northclear?(event, distance)
  #----------------------------------------------------------------#
  # Checks if the tile north of (above) the event is clear.
  # For example:  northclear?(3)   will check for event 3.
  # For example:  northclear?(3, 5)   will check for event 3
  # 5 tiles away.
  #----------------------------------------------------------------#
 
 
    * southclear?(event) or southclear?(event, distance)
  #----------------------------------------------------------------#
  # Checks if the tile south of (below) the event is clear.
  # For example:  southclear?(3)   will check for event 3.
  # For example:  southclear?(3, 5)   will check for event 3
  # 5 tiles away.
  #----------------------------------------------------------------#
 
 
    * eastclear?(event) or eastclear?(event, distance)
  #----------------------------------------------------------------#
  # Checks if the tile east of (right) the event is clear.
  # For example:  eastclear?(3)   will check for event 3.
  # For example:  eastclear?(3, 5)   will check for event 3
  # 5 tiles away.
  #----------------------------------------------------------------#
 
 
    * westclear?(event) or westclear?(event, distance)
  #----------------------------------------------------------------#
  # Checks if the tile west of (left) the event is clear.
  # For example:  westclear?(3)   will check for event 3.
  # For example:  westclear?(3, 5)   will check for event 3
  # 5 tiles away.
  #----------------------------------------------------------------#

 
  * a_equal_b_pos?(eventa, eventb)
  #----------------------------------------------------------------#
  # Checks to see if event A's position is equal to event B's
  # position.
  # For example:  a_equal_b_pos?(-1, 2)   will check if the player's
  #               position is equal to event 2's position.
  #----------------------------------------------------------------#

 
  The following script calls can be used in conditional branches to
  gather information for the user:
 

  * blockev
  #----------------------------------------------------------------#
  # blockev is an instance variable that stores the ID of the event
  # that is blocking the path.
  #
  # You can use the instance variable blockev in a conditional branch
  # or script call to see which event is blocking the way.
  #     -2    = a tile / collision map
  #     -1    = the player
  #     0     = no event
  #     1+    = every other number is the ID of the event
  #
  # For example: blockev == -1   in a conditional branch will check to
  #              see if blockev is equal to -1 (the player).
  #
  # blockev is set every time you use one of these script calls.
  #----------------------------------------------------------------#
 
 
  * eventkind(event)
  #----------------------------------------------------------------#
  # Checks to see the kind of event, or 'eventkind'. Can be used in
  # a conditional branch.
  # For example: eventkind(5) == 1   will check if the eventkind of
  #              event 5 is equal to 1 (small events).
  # For example: eventkind(blockev) == 2  will check if the eventkind
  #              of the blocking event (blockev) is equal to 2 (over
  #              events).
  #
  #     1     = small events || events with the comment <small_ev>
  #                                                      (default)
  #     2     = 'over' events || events with the comment <over_ev>
  #                                                      (default)
  #
  #----------------------------------------------------------------#
 
 
  * check_priority?(event)
  #----------------------------------------------------------------#
  # Checks the priority of event. Can be used in a conditional branch.
  # For example: check_priority?(5) == 1   will check if the priority
  #              of event 5 is equal to 1 (normal priority).
  # For example: check_priority?(blockev) == 2  will check if the
  #              priority of the blocking event (blockev) is equal to 2
  #              (above character).
  #----------------------------------------------------------------# 

 
  The following script calls can be used to move events:
 
    * moveev_rand(event) or moveev_rand(event, dist)
  #----------------------------------------------------------------#
  # Moves the event randomly the specified amount of times.
  # For example: moveev_rand(5)   will move event 5 one random step.
  # For example: moveev_rand(blockev, 2)  will move the blocking
  #              event (blockev) 2 random steps.
  #----------------------------------------------------------------#
 
    * moveev_left(event) or moveev_left(event, dist)
  #----------------------------------------------------------------#
  # Moves the event left the specified amount of times.
  # For example: moveev_left(5)   will move event 5 left one step.
  # For example: moveev_left(blockev, 2)  will move the blocking
  #              event (blockev) left 2 steps.
  #----------------------------------------------------------------#
 
    * moveev_right(event) or moveev_right(event, dist)
  #----------------------------------------------------------------#
  # Moves the event right the specified amount of times.
  # For example: moveev_right(5)   will move event 5 right one step.
  # For example: moveev_right(blockev, 2)  will move the blocking
  #              event (blockev) right 2 steps.
  #----------------------------------------------------------------#
 
    * moveev_down(event) or moveev_down(event, dist)
  #----------------------------------------------------------------#
  # Moves the event down the specified amount of times.
  # For example: moveev_down(5)   will move event 5 down one step.
  # For example: moveev_down(blockev, 2)  will move the blocking
  #              event (blockev) down 2 steps.
  #----------------------------------------------------------------#
 
    * moveev_up(event) or moveev_up(event, dist)
  #----------------------------------------------------------------#
  # Moves the event up the specified amount of times.
  # For example: moveev_up(5)   will move event 5 up one step.
  # For example: moveev_up(blockev, 2)  will move the blocking
  #              event (blockev) up 2 steps.
  #----------------------------------------------------------------#
 
    * ev_move_to(event, x, y)
  #----------------------------------------------------------------#
  # Moves the event to the specified coordinates.
  # For example: ev_move_to(5, 1, 6)   will move event 5 to the
  #              coordinates 1,6.
  # For example: ev_move_to(blockev, $game_variables[1], $game_variables[2])
  #              will move the blocking event (blockev) to the
  #              coordinates set in variables 1 and 2.
  #----------------------------------------------------------------#
 
=end

module AMN_eventpass_setup
 
#==============================================================================
#                               | OPTIONAL |
# ** EDITABLE REGION BELOW
#------------------------------------------------------------------------------
#  Change the values in the area below to suit your needs.
#
#  NOTE: You should have an understanding of regular expression before you
#        change these fields. If you do not, then it is recommended that you
#        leave them as the default.
#==============================================================================


  #--------------------------------------------------------------------------
  Small_Ev_Regex =          /<small_ev>/i          # Default: /<small_ev>/i
  #                                                 DO NOT REMOVE THIS ^ ^ ^
  # Use the regex <small_ev> (default) as a comment in an event to designate
  # 'small' events.
  #
  # This corresponds to the eventkind 1.
  #--------------------------------------------------------------------------
 
  #--------------------------------------------------------------------------
  Over_Ev_Regex =          /<over_ev>/i            # Default: /<over_ev>/i
  #                                                 DO NOT REMOVE THIS ^ ^ ^
  # Use the regex <over_ev> (default) as a comment in an event to designate
  # events that can be ignored or set to 'through'.
  #
  # This corresponds to the eventkind 2.
  #--------------------------------------------------------------------------

 
#==============================================================================
# ** END OF EDITABLE REGION
#------------------------------------------------------------------------------
#  Please do not edit below this point unless you know what you are doing.
#==============================================================================

end

#==============================================================================
# ** Game_Map
#------------------------------------------------------------------------------
#  This class handles maps. It includes scrolling and passage determination
# functions. The instance of this class is referenced by $game_map.
#==============================================================================

class Game_Map

  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_accessor   :blockev                    # ID of event blocking path
  attr_accessor   :eventkind                  # Kind of event

  #--------------------------------------------------------------------------
  # * Object Initialization                                  # ALIAS METHOD #
  #--------------------------------------------------------------------------
  alias amn_eventpos_gamemap_init   initialize
  def initialize
    @blockev = 0
    amn_eventpos_gamemap_init
  end
 
  #--------------------------------------------------------------------------
  # * Parse Event Comments                                     # NEW METHOD #
  #--------------------------------------------------------------------------
  # Parses the event's comments and checks for event kind.
  #--------------------------------------------------------------------------
  def parse_event_comments(event_id)
    return if event_id < 1
    event = @events[event_id]
    @eventkind = 0
    if event.list
      event.list.each do |cmd|
        if cmd.code == 108
          if cmd.parameters[0] =~ AMN_eventpass_setup::Small_Ev_Regex
            @eventkind = 1      # number for 'small' events
          elsif cmd.parameters[0] =~ AMN_eventpass_setup::Over_Ev_Regex
            @eventkind = 2      # number for 'over' events
          else
            @eventkind = 0      # number for all other (impassable) events
          end
        end
      end
    end
  end
 
  #--------------------------------------------------------------------------
  # * XY Passability Clear?                                    # NEW METHOD #
  #--------------------------------------------------------------------------
  # Checks the X and Y coordinates and sees if they are clear. Doesn't
  # consider direction.
  #--------------------------------------------------------------------------
  def amn_xy_pass_clear?(x, y)
    get_blockev(x, y)
    return false if check_passage(x, y, 1) == false
    return false if $game_player.pos?(x, y)     # first checks the player's position
    if event_id_xy(x, y) > 0
      ev = event_id_xy(x, y)
      return false if @events[ev].normal_priority? && !@events[ev].through
      return true if !@events[ev].normal_priority? || @events[ev].through
    end
    return true
  end
 
  #--------------------------------------------------------------------------
  # * Get Blockev?                                             # NEW METHOD #
  #--------------------------------------------------------------------------
  # Checks the X and Y coordinates and gets the value of the blocking event.
  #--------------------------------------------------------------------------
  def get_blockev(x, y)
    if check_passage(x, y, 1) == false
      if $imported["TH_CollisionMaps"] && use_collision_map?
        @blockev = -2
      else
        @blockev = -3
      end
    elsif $game_player.pos?(x, y)
      @blockev = -1
    elsif event_id_xy(x, y) > 0
      ev = event_id_xy(x, y)
      @blockev = @events[ev].id
    else
      @blockev = 0
    end
  end
 
  def event_id_xy_rect(x, y, rect)
    list = events_xy_rect(x, y, rect)
    list.empty? ? 0 : list[0].id
  end
 
  #--------------------------------------------------------------------------
  # * New: Collision Rectangle
  #     Gets the collision rectangle.
  #--------------------------------------------------------------------------
  def default_collision_rect
    collision = CXJ::FREE_MOVEMENT::COLLISION["DEFAULT"]
    return Rect.new(collision[0], collision[1], collision[2], collision[3])
  end
 
  #--------------------------------------------------------------------------
  # * Get Blockev?                                           # ALIAS METHOD #
  #--------------------------------------------------------------------------
  # Checks the X and Y coordinates and gets the value of the blocking event.
  # Aliased so as not to break it if CXJ-FreeMovement isn't used.
  #--------------------------------------------------------------------------
  alias amn_eventpos_getblockev   get_blockev
  def get_blockev(x, y)
    if $imported["CXJ-FreeMovement"]
      if check_passage(x, y, 1) == false
        if $imported["TH_CollisionMaps"] && use_collision_map?
          @blockev = -2
        else
          @blockev = -3
        end
      elsif $game_player.pos_rect?(x, y, rect = $game_player.collision_rect)
        @blockev = -1
      elsif event_id_xy_rect(x, y, default_collision_rect) > 0
        ev = event_id_xy_rect(x, y, default_collision_rect)
        @blockev = @events[ev].id
      else
        @blockev = 0
      end
    else
      amn_eventpos_getblockev(x, y)
    end
  end
    
    
  #--------------------------------------------------------------------------
  # * Check Event Kind                                         # NEW METHOD #
  #--------------------------------------------------------------------------
  # Parses the event's comments for its event kind and returns it.
  #-------------------------------------------------------------------------- 
  def check_eventkind(event_id)
    parse_event_comments(event_id)
    return @eventkind
  end
 
 
end

#==============================================================================
# ** Game_CharacterBase
#------------------------------------------------------------------------------
#  This base class handles characters. It retains basic information, such as
# coordinates and graphics, shared by all characters.
#==============================================================================

#~ class Game_CharacterBase
#~   #--------------------------------------------------------------------------
#~   # * Detect Collision with Event                        # OVERWRITE METHOD #
#~   #--------------------------------------------------------------------------
#~   # Overwrites the method for checking if an event is colliding with another
#~   # event; now it only returns false if both events are normal priority.
#~   #--------------------------------------------------------------------------
#~   def collide_with_events?(x, y)
#~     $game_map.events_xy_nt(x, y).any? do |event|
#~       event.normal_priority? && self.normal_priority?
#~     end
#~   end
#~   
#~ end

#==============================================================================
# ** Game_Interpreter
#------------------------------------------------------------------------------
#  An interpreter for executing event commands. This class is used within the
# Game_Map, Game_Troop, and Game_Event classes.
#==============================================================================

class Game_Interpreter

  #--------------------------------------------------------------------------
  # * XY Clear?                                                # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the coordinates x & y are clear. Returns false if there is an
  # event or player there.
  #--------------------------------------------------------------------------
  def xyclear?(x, y)
    $game_map.amn_xy_pass_clear?(x, y)
  end
 
  #--------------------------------------------------------------------------
  # * Blockev                                                  # NEW METHOD #
  #--------------------------------------------------------------------------
  # Returns the value of the instance variable blockev, or the blocking event.
  #--------------------------------------------------------------------------
  def blockev
    return $game_map.blockev
  end
 
  #--------------------------------------------------------------------------
  # * Check Priority                                           # NEW METHOD #
  #--------------------------------------------------------------------------
  # Convenience method for checking the priority of an event.
  #--------------------------------------------------------------------------
  def check_priority?(event)
    return $game_map.events[event].priority_type
  end
 
  #--------------------------------------------------------------------------
  # * Move To                                                  # NEW METHOD #
  #--------------------------------------------------------------------------
  # Convenience method for moving an event to coordinates.
  #--------------------------------------------------------------------------
  def ev_move_to(event, x, y)
    event = get_character(event)
    event.moveto(x, y)
  end
 
  #--------------------------------------------------------------------------
  # * Eventkind                                                # NEW METHOD #
  #--------------------------------------------------------------------------
  # Returns the eventkind for the event.
  #--------------------------------------------------------------------------
  def eventkind(event)
    $game_map.check_eventkind(event)
  end

  #--------------------------------------------------------------------------
  # * Move Blockev Randomly                                    # NEW METHOD #
  #--------------------------------------------------------------------------
  # Just a convenient way of making the event move in a random
  # direction.
  #--------------------------------------------------------------------------
  def moveev_rand(event, dist = 1)
    event = get_character(event)
    mr = RPG::MoveRoute.new
    mr.repeat = false
    mr.skippable = true
    mr.wait = true
    mr.list = []
    dist.times do
      mr.list.push( RPG::MoveCommand.new(9, []) )
    end
    mr.list.push( RPG::MoveCommand.new )
    event.force_move_route(mr)
  end
 
  #--------------------------------------------------------------------------
  # * Move Blockev Left                                    # NEW METHOD #
  #--------------------------------------------------------------------------
  # Just a convenient way of making the event move left.
  #--------------------------------------------------------------------------
  def moveev_left(event, dist = 1)
    event = get_character(event)
    mr = RPG::MoveRoute.new
    mr.repeat = false
    mr.skippable = true
    mr.wait = true
    mr.list = []
    dist.times do
      mr.list.push( RPG::MoveCommand.new(2, []) )
    end
    mr.list.push( RPG::MoveCommand.new )
    event.force_move_route(mr)
  end
 
  #--------------------------------------------------------------------------
  # * Move Blockev Right                                       # NEW METHOD #
  #--------------------------------------------------------------------------
  # Just a convenient way of making the event move left.
  #--------------------------------------------------------------------------
  def moveev_right(event, dist = 1)
    event = get_character(event)
    mr = RPG::MoveRoute.new
    mr.repeat = false
    mr.skippable = true
    mr.wait = true
    mr.list = []
    dist.times do
      mr.list.push( RPG::MoveCommand.new(3, []) )
    end
    mr.list.push( RPG::MoveCommand.new )
    event.force_move_route(mr)
  end
 
  #--------------------------------------------------------------------------
  # * Move Blockev Down                                        # NEW METHOD #
  #--------------------------------------------------------------------------
  # Just a convenient way of making the event move left.
  #--------------------------------------------------------------------------
  def moveev_down(event, dist = 1)
    event = get_character(event)
    mr = RPG::MoveRoute.new
    mr.repeat = false
    mr.skippable = true
    mr.wait = true
    mr.list = []
    dist.times do
      mr.list.push( RPG::MoveCommand.new(1, []) )
    end
    mr.list.push( RPG::MoveCommand.new )
    event.force_move_route(mr)
  end
 
  #--------------------------------------------------------------------------
  # * Move Blockev Up                                          # NEW METHOD #
  #--------------------------------------------------------------------------
  # Just a convenient way of making the event move left.
  #--------------------------------------------------------------------------
  def moveev_up(event, dist = 1)
    event = get_character(event)
    mr = RPG::MoveRoute.new
    mr.repeat = false
    mr.skippable = true
    mr.wait = true
    mr.list = []
    dist.times do
      mr.list.push( RPG::MoveCommand.new(4, []) )
    end
    mr.list.push( RPG::MoveCommand.new )
    event.force_move_route(mr)
  end
    
  #--------------------------------------------------------------------------
  # * Left Clear?                                              # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile to the event's left is clear. Based on event's
  # direction.
  #--------------------------------------------------------------------------
  def leftclear?(event, dist = 0)
    event = get_character(event)
    dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
    case event.direction
    when 2; left_dir = 6; evx = (event.x + dist); evy = event.y; bevx = evx + 1; bevy = evy
    when 4; left_dir = 2; evy = (event.y + dist); evx = event.x; bevy = evy + 1; bevx = evx
    when 6; left_dir = 8; evy = (event.y - dist); evx = event.x; bevy = evy - 1; bevx = evx
    when 8; left_dir = 4; evx = (event.x - dist); evy = event.y; bevx = evx - 1; bevy = evy
    end
    $game_map.get_blockev(bevx, bevy)
    return false unless xyclear?(bevx, bevy)
    event.passable?(evx, evy, left_dir)
  end
 
  #--------------------------------------------------------------------------
  # * Right Clear?                                             # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile to the event's right is clear. Based on event's
  # direction.
  #--------------------------------------------------------------------------
  def rightclear?(event, dist = 0)
    event = get_character(event)
    dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
    case event.direction
    when 2;  right_dir = 4; evx = (event.x - dist); evy = event.y; bevx = evx - 1; bevy = evy
    when 4;  right_dir = 8; evy = (event.y - dist); evx = event.x; bevy = evy - 1; bevx = evx
    when 6;  right_dir = 2; evy = (event.y + dist); evx = event.x; bevy = evy + 1; bevx = evx
    when 8;  right_dir = 6; evx = (event.x + dist); evy = event.y; bevx = evx + 1; bevy = evy
    end
    $game_map.get_blockev(bevx, bevy)
    return false unless xyclear?(bevx, bevy)
    event.passable?(evx, evy, right_dir)
  end
 
  #--------------------------------------------------------------------------
  # * Back Clear?                                              # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile behind the event is clear. Based on event's direction.
  #--------------------------------------------------------------------------
  def backclear?(event, dist = 0)
    event = get_character(event)
    revdir = event.reverse_dir(event.direction)
    dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
    case event.direction
    when 2;  evy = (event.y - dist); evx = event.x; bevy = evy - 1; bevx = evx
    when 4;  evx = (event.x + dist); evy = event.y; bevx = evx + 1; bevy = evy
    when 6; evx = (event.x - dist); evy = event.y; bevx = evx - 1; bevy = evy
    when 8; evy = (event.y + dist); evx = event.x; bevy = evy + 1; bevx = evx
    end
    $game_map.get_blockev(bevx, bevy)
    return false unless xyclear?(bevx, bevy)
    event.passable?(evx, evy, revdir)
  end
 
  #--------------------------------------------------------------------------
  # * Front Clear?                                             # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile in front of the event is clear. Based on event's
  # direction.
  #--------------------------------------------------------------------------
  def frontclear?(event, dist = 0)
    event = get_character(event)
    dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
    case event.direction
    when 2;  evy = (event.y + dist); evx = event.x; bevy = evy + 1; bevx = evx
    when 4;  evx = (event.x - dist); evy = event.y; bevx = evx - 1; bevy = evy
    when 6; evx = (event.x + dist); evy = event.y; bevx = evx + 1; bevy = evy
    when 8; evy = (event.y - dist); evx = event.x; bevy = evy - 1; bevx = evx
    end
    $game_map.get_blockev(bevx, bevy)
    return false unless xyclear?(bevx, bevy)
    event.passable?(evx, evy, event.direction)
  end
 
  #--------------------------------------------------------------------------
  # * North Clear?                                             # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile above the event (the north) is clear.
  #--------------------------------------------------------------------------
  def northclear?(event, dist = 0)
    event = get_character(event)
    dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
    $game_map.get_blockev(event.x, (event.y - dist) - 1)
    return false unless xyclear?(event.x, (event.y - dist) - 1)
    event.passable?(event.x, (event.y - dist), 8)
  end
 
  #--------------------------------------------------------------------------
  # * South Clear?                                             # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile below the event (the south) is clear.
  #--------------------------------------------------------------------------
  def southclear?(event, dist = 0)
    event = get_character(event)
    dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
    $game_map.get_blockev(event.x, (event.y + dist) + 1)
    return false unless xyclear?(event.x, (event.y + dist) + 1)
    event.passable?(event.x, (event.y + dist), 2)
  end
 
  #--------------------------------------------------------------------------
  # * East Clear?                                              # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile right of the event (the east) is clear.
  #--------------------------------------------------------------------------
  def eastclear?(event, dist = 0)
    event = get_character(event)
    dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
    $game_map.get_blockev((event.x + dist) + 1, event.y)
    return false unless xyclear?((event.x + dist) + 1, event.y)
    event.passable?((event.x - dist), event.y, 6)
  end
 
  #--------------------------------------------------------------------------
  # * West Clear?                                              # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile left of the event (the west) is clear.
  #--------------------------------------------------------------------------
  def westclear?(event, dist = 0)
    event = get_character(event)
    dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
    $game_map.get_blockev((event.x - dist) - 1, event.y)
    return false unless xyclear?((event.x - dist) - 1, event.y)
    event.passable?((event.x + dist), event.y, 4)
  end

  #--------------------------------------------------------------------------
  # * A Equals B Pos?                                          # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if event A's position is the same as event B
  #--------------------------------------------------------------------------
  def a_equal_b_pos?(eventa, eventb)
    eventa = get_character(eventa)
    eventb = get_character(eventb)
    eventa.pos?(eventb.x, eventb.y)
  end
end

I've made it so it checks things based on the default collision_rect set in the Free Movement script. Kinda a lazy fix (otherwise I would have to rewrite all the script calls), but let me know how it goes.
Okay, I decided the write the compatibility stuff as a separate patch, so here you go:

Spoiler: Updated event passability script
Code:
=begin
#=====================================================================
#   AMN Event Passability Checks - Advanced Version
#   Version 1.10
#   Author: AMoonlessNight
#   Date: 12 Feb 2018
#   Latest: 18 Mar 2018
#=====================================================================#
#   UPDATE LOG
#---------------------------------------------------------------------#
# 12 Feb 2018 - created the original script
# 12 Feb 2018 - fixed an error with calculating distance based on event
#               direction
# 14 Feb 2018 - created advanced version, including checks for blocking
#               events and event comments
# 16 Feb 2018 - fixed an error where blockev wasn't registering player
# 17 Feb 2018 - tidied up some superfluous code and made it so that
#               blockev registers non-'normal priority' events, added
#               some convenience methods for moving events
# 21 Feb 2018 - added compatibility with Hime Collision Maps
# 10 Mar 2018 - checked compatibility with GaryCXJk's Free Movement and
#               added another convenience method
# 14 Mar 2018 - fixed error with directions
# 15 Mar 2018 - added compatibility with GaryCXJk's Free Movement script
#=====================================================================#

This script has a number of convenience script calls for event position
checks.

The advanced version includes:
  - checks for seeing which event is blocking the way and sets to an
    instance variable
  - checks for if the event has a particular comment to designate whether
    it should be ignored (like a 'below-priority' or 'through' event) or
    used for other purposes.
    
You can use the instance variable blockev in a conditional branch to see
which event is blocking the way.
  -2  = a tile / collision map
  -1  = the player
  0   = no event
  1+  = every other number is the ID of the event
    
For example, events with the comment <small_ev> (which can be changed in
the editable region) can be accessed using a script call in a conditional
branch and told to move aside.

As another example, events with the comment <over_ev> (which can also be
changed in the editable region) can be accessed using a script call in a
conditional branch and set to 'through' while the other event moves.

This script also contains some convenience script calls for moving events.

Based on the MV plugin by SumRndmDde: http://sumrndm.site/collision-checker/

Requested by Robert-Character-Creator

#=====================================================================#
          SCRIPT CALLS
#=====================================================================#

You can use the following script calls in conditional branches:

    * xyclear?(x, y)
  #----------------------------------------------------------------#
  # Checks if the tile at coordinates x and y is clear.
  # For example:  xyclear?(1, 2)   will check coordinates 1, 2.
  #----------------------------------------------------------------#


 
  The following script calls can be used with event IDs:
 
  Bear in the mind that event can be replaced with the following:
  -1 = player
  0 = current event
  everything else corresponds to the event ID
 
 
    * leftclear?(event) or leftclear?(event, distance)
  #----------------------------------------------------------------#
  # Checks if the tile to the event's left is clear. This is based
  # on the direction the event is facing.
  # For example:  leftclear?(3)   will check for event 3.
  # For example:  leftclear?(-1, 5)   will check for the player
  # 5 tiles away to the left.
  #----------------------------------------------------------------#
 
 
    * rightclear?(event) or rightclear?(event, distance)
  #----------------------------------------------------------------#
  # Checks if the tile to the event's right is clear. This is based
  # on the direction the event is facing.
  # For example:  rightclear?(3)   will check for event 3.
  # For example:  rightclear?(-1, 5)   will check for the player
  # 5 tiles away to the right.
  #----------------------------------------------------------------#
 
 
    * backclear?(event) or backclear?(event, distance)
  #----------------------------------------------------------------#
  # Checks if the tile behind the event is clear. This is based
  # on the direction the event is facing.
  # For example:  backclear?(3)   will check for event 3.
  # For example:  backclear?(0, 5)   will check for this event
  # 5 tiles away behind.
  #----------------------------------------------------------------#
 
 
    * frontclear?(event) or frontclear?(event, distance)
  #----------------------------------------------------------------#
  # Checks if the tile in front of the event is clear. This is
  # based on the direction the event is facing.
  # For example:  frontclear?(3)   will check for event 3.
  # For example:  frontclear?(0, 5)   will check for this event
  # 5 tiles away in front.
  #----------------------------------------------------------------#
 
 
    * northclear?(event) or northclear?(event, distance)
  #----------------------------------------------------------------#
  # Checks if the tile north of (above) the event is clear.
  # For example:  northclear?(3)   will check for event 3.
  # For example:  northclear?(3, 5)   will check for event 3
  # 5 tiles away.
  #----------------------------------------------------------------#
 
 
    * southclear?(event) or southclear?(event, distance)
  #----------------------------------------------------------------#
  # Checks if the tile south of (below) the event is clear.
  # For example:  southclear?(3)   will check for event 3.
  # For example:  southclear?(3, 5)   will check for event 3
  # 5 tiles away.
  #----------------------------------------------------------------#
 
 
    * eastclear?(event) or eastclear?(event, distance)
  #----------------------------------------------------------------#
  # Checks if the tile east of (right) the event is clear.
  # For example:  eastclear?(3)   will check for event 3.
  # For example:  eastclear?(3, 5)   will check for event 3
  # 5 tiles away.
  #----------------------------------------------------------------#
 
 
    * westclear?(event) or westclear?(event, distance)
  #----------------------------------------------------------------#
  # Checks if the tile west of (left) the event is clear.
  # For example:  westclear?(3)   will check for event 3.
  # For example:  westclear?(3, 5)   will check for event 3
  # 5 tiles away.
  #----------------------------------------------------------------#

 
  * a_equal_b_pos?(eventa, eventb)
  #----------------------------------------------------------------#
  # Checks to see if event A's position is equal to event B's
  # position.
  # For example:  a_equal_b_pos?(-1, 2)   will check if the player's
  #               position is equal to event 2's position.
  #----------------------------------------------------------------#

 
  The following script calls can be used in conditional branches to
  gather information for the user:
 

  * blockev
  #----------------------------------------------------------------#
  # blockev is an instance variable that stores the ID of the event
  # that is blocking the path.
  #
  # You can use the instance variable blockev in a conditional branch
  # or script call to see which event is blocking the way.
  #     -2    = a tile / collision map
  #     -1    = the player
  #     0     = no event
  #     1+    = every other number is the ID of the event
  #
  # For example: blockev == -1   in a conditional branch will check to
  #              see if blockev is equal to -1 (the player).
  #
  # blockev is set every time you use one of these script calls.
  #----------------------------------------------------------------#
 
 
  * eventkind(event)
  #----------------------------------------------------------------#
  # Checks to see the kind of event, or 'eventkind'. Can be used in
  # a conditional branch.
  # For example: eventkind(5) == 1   will check if the eventkind of
  #              event 5 is equal to 1 (small events).
  # For example: eventkind(blockev) == 2  will check if the eventkind
  #              of the blocking event (blockev) is equal to 2 (over
  #              events).
  #
  #     1     = small events || events with the comment <small_ev>
  #                                                      (default)
  #     2     = 'over' events || events with the comment <over_ev>
  #                                                      (default)
  #
  #----------------------------------------------------------------#
 
 
  * check_priority?(event)
  #----------------------------------------------------------------#
  # Checks the priority of event. Can be used in a conditional branch.
  # For example: check_priority?(5) == 1   will check if the priority
  #              of event 5 is equal to 1 (normal priority).
  # For example: check_priority?(blockev) == 2  will check if the
  #              priority of the blocking event (blockev) is equal to 2
  #              (above character).
  #----------------------------------------------------------------# 

 
  The following script calls can be used to move events:
 
    * moveev_rand(event) or moveev_rand(event, dist)
  #----------------------------------------------------------------#
  # Moves the event randomly the specified amount of times.
  # For example: moveev_rand(5)   will move event 5 one random step.
  # For example: moveev_rand(blockev, 2)  will move the blocking
  #              event (blockev) 2 random steps.
  #----------------------------------------------------------------#
 
    * moveev_left(event) or moveev_left(event, dist)
  #----------------------------------------------------------------#
  # Moves the event left the specified amount of times.
  # For example: moveev_left(5)   will move event 5 left one step.
  # For example: moveev_left(blockev, 2)  will move the blocking
  #              event (blockev) left 2 steps.
  #----------------------------------------------------------------#
 
    * moveev_right(event) or moveev_right(event, dist)
  #----------------------------------------------------------------#
  # Moves the event right the specified amount of times.
  # For example: moveev_right(5)   will move event 5 right one step.
  # For example: moveev_right(blockev, 2)  will move the blocking
  #              event (blockev) right 2 steps.
  #----------------------------------------------------------------#
 
    * moveev_down(event) or moveev_down(event, dist)
  #----------------------------------------------------------------#
  # Moves the event down the specified amount of times.
  # For example: moveev_down(5)   will move event 5 down one step.
  # For example: moveev_down(blockev, 2)  will move the blocking
  #              event (blockev) down 2 steps.
  #----------------------------------------------------------------#
 
    * moveev_up(event) or moveev_up(event, dist)
  #----------------------------------------------------------------#
  # Moves the event up the specified amount of times.
  # For example: moveev_up(5)   will move event 5 up one step.
  # For example: moveev_up(blockev, 2)  will move the blocking
  #              event (blockev) up 2 steps.
  #----------------------------------------------------------------#
 
    * ev_move_to(event, x, y)
  #----------------------------------------------------------------#
  # Moves the event to the specified coordinates.
  # For example: ev_move_to(5, 1, 6)   will move event 5 to the
  #              coordinates 1,6.
  # For example: ev_move_to(blockev, $game_variables[1], $game_variables[2])
  #              will move the blocking event (blockev) to the
  #              coordinates set in variables 1 and 2.
  #----------------------------------------------------------------#
 
=end

module AMN_eventpass_setup
 
#==============================================================================
#                               | OPTIONAL |
# ** EDITABLE REGION BELOW
#------------------------------------------------------------------------------
#  Change the values in the area below to suit your needs.
#
#  NOTE: You should have an understanding of regular expression before you
#        change these fields. If you do not, then it is recommended that you
#        leave them as the default.
#==============================================================================


  #--------------------------------------------------------------------------
  Small_Ev_Regex =          /<small_ev>/i          # Default: /<small_ev>/i
  #                                                 DO NOT REMOVE THIS ^ ^ ^
  # Use the regex <small_ev> (default) as a comment in an event to designate
  # 'small' events.
  #
  # This corresponds to the eventkind 1.
  #--------------------------------------------------------------------------
 
  #--------------------------------------------------------------------------
  Over_Ev_Regex =          /<over_ev>/i            # Default: /<over_ev>/i
  #                                                 DO NOT REMOVE THIS ^ ^ ^
  # Use the regex <over_ev> (default) as a comment in an event to designate
  # events that can be ignored or set to 'through'.
  #
  # This corresponds to the eventkind 2.
  #--------------------------------------------------------------------------

 
#==============================================================================
# ** END OF EDITABLE REGION
#------------------------------------------------------------------------------
#  Please do not edit below this point unless you know what you are doing.
#==============================================================================

end

$imported = {} if $imported.nil?
$imported["AMN_EventPassChecks"] = true

#==============================================================================
# ** Game_Map
#------------------------------------------------------------------------------
#  This class handles maps. It includes scrolling and passage determination
# functions. The instance of this class is referenced by $game_map.
#==============================================================================

class Game_Map

  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_accessor   :blockev                    # ID of event blocking path
  attr_accessor   :eventkind                  # Kind of event

  #--------------------------------------------------------------------------
  # * Object Initialization                                  # ALIAS METHOD #
  #--------------------------------------------------------------------------
  alias amn_eventpos_gamemap_init   initialize
  def initialize
    @blockev = 0
    amn_eventpos_gamemap_init
  end
 
  #--------------------------------------------------------------------------
  # * Parse Event Comments                                     # NEW METHOD #
  #--------------------------------------------------------------------------
  # Parses the event's comments and checks for event kind.
  #--------------------------------------------------------------------------
  def parse_event_comments(event_id)
    return if event_id < 1
    event = @events[event_id]
    @eventkind = 0
    if event.list
      event.list.each do |cmd|
        if cmd.code == 108
          if cmd.parameters[0] =~ AMN_eventpass_setup::Small_Ev_Regex
            @eventkind = 1      # number for 'small' events
          elsif cmd.parameters[0] =~ AMN_eventpass_setup::Over_Ev_Regex
            @eventkind = 2      # number for 'over' events
          else
            @eventkind = 0      # number for all other (impassable) events
          end
        end
      end
    end
  end
 
  #--------------------------------------------------------------------------
  # * XY Passability Clear?                                    # NEW METHOD #
  #--------------------------------------------------------------------------
  # Checks the X and Y coordinates and sees if they are clear. Doesn't
  # consider direction.
  #--------------------------------------------------------------------------
  def amn_xy_pass_clear?(x, y)
    get_blockev(x, y)
    return false if check_passage(x, y, 1) == false
    return false if $game_player.pos?(x, y)     # first checks the player's position
    if event_id_xy(x, y) > 0
      ev = event_id_xy(x, y)
      return false if @events[ev].normal_priority? && !@events[ev].through
      return true if !@events[ev].normal_priority? || @events[ev].through
    end
    return true
  end
 
  #--------------------------------------------------------------------------
  # * Get Blockev?                                             # NEW METHOD #
  #--------------------------------------------------------------------------
  # Checks the X and Y coordinates and gets the value of the blocking event.
  #--------------------------------------------------------------------------
  def get_blockev(x, y)
    if check_passage(x, y, 1) == false
      @blockev = -2
    elsif $game_player.pos?(x, y)
      @blockev = -1
    elsif event_id_xy(x, y) > 0
      ev = event_id_xy(x, y)
      @blockev = @events[ev].id
    else
      @blockev = 0
    end
  end   
    
  #--------------------------------------------------------------------------
  # * Check Event Kind                                         # NEW METHOD #
  #--------------------------------------------------------------------------
  # Parses the event's comments for its event kind and returns it.
  #-------------------------------------------------------------------------- 
  def check_eventkind(event_id)
    parse_event_comments(event_id)
    return @eventkind
  end
 
 
end

#==============================================================================
# ** Game_CharacterBase
#------------------------------------------------------------------------------
#  This base class handles characters. It retains basic information, such as
# coordinates and graphics, shared by all characters.
#==============================================================================

#~ class Game_CharacterBase
#~   #--------------------------------------------------------------------------
#~   # * Detect Collision with Event                            # ALIAS METHOD #
#~   #--------------------------------------------------------------------------
#~   # Overwrites the method for checking if an event is colliding with another
#~   # event; now it only returns false if both events are normal priority.
#~   #--------------------------------------------------------------------------
#~   alias amn_gamechara_colwithevents?   collide_with_events?
#~   def collide_with_events?(x, y)
#~     $game_map.events_xy_nt(x, y).any? do |event|
#~       event.normal_priority? && self.normal_priority?
#~     end
#~     amn_gamechara_colwithevents?(x, y)
#~   end
#~   
#~ end

#==============================================================================
# ** Game_Interpreter
#------------------------------------------------------------------------------
#  An interpreter for executing event commands. This class is used within the
# Game_Map, Game_Troop, and Game_Event classes.
#==============================================================================

class Game_Interpreter

  #--------------------------------------------------------------------------
  # * XY Clear?                                                # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the coordinates x & y are clear. Returns false if there is an
  # event or player there.
  #--------------------------------------------------------------------------
  def xyclear?(x, y)
    $game_map.amn_xy_pass_clear?(x, y)
  end
 
  #--------------------------------------------------------------------------
  # * Blockev                                                  # NEW METHOD #
  #--------------------------------------------------------------------------
  # Returns the value of the instance variable blockev, or the blocking event.
  #--------------------------------------------------------------------------
  def blockev
    return $game_map.blockev
  end
 
  #--------------------------------------------------------------------------
  # * Check Priority                                           # NEW METHOD #
  #--------------------------------------------------------------------------
  # Convenience method for checking the priority of an event.
  #--------------------------------------------------------------------------
  def check_priority?(event)
    return $game_map.events[event].priority_type
  end
 
  #--------------------------------------------------------------------------
  # * Move To                                                  # NEW METHOD #
  #--------------------------------------------------------------------------
  # Convenience method for moving an event to coordinates.
  #--------------------------------------------------------------------------
  def ev_move_to(event, x, y)
    event = get_character(event)
    event.moveto(x, y)
  end
 
  #--------------------------------------------------------------------------
  # * Eventkind                                                # NEW METHOD #
  #--------------------------------------------------------------------------
  # Returns the eventkind for the event.
  #--------------------------------------------------------------------------
  def eventkind(event)
    $game_map.check_eventkind(event)
  end

  #--------------------------------------------------------------------------
  # * Move Blockev Randomly                                    # NEW METHOD #
  #--------------------------------------------------------------------------
  # Just a convenient way of making the event move in a random
  # direction.
  #--------------------------------------------------------------------------
  def moveev_rand(event, dist = 1)
    event = get_character(event)
    mr = RPG::MoveRoute.new
    mr.repeat = false
    mr.skippable = true
    mr.wait = true
    mr.list = []
    dist.times do
      mr.list.push( RPG::MoveCommand.new(9, []) )
    end
    mr.list.push( RPG::MoveCommand.new )
    event.force_move_route(mr)
  end
 
  #--------------------------------------------------------------------------
  # * Move Blockev Left                                    # NEW METHOD #
  #--------------------------------------------------------------------------
  # Just a convenient way of making the event move left.
  #--------------------------------------------------------------------------
  def moveev_left(event, dist = 1)
    event = get_character(event)
    mr = RPG::MoveRoute.new
    mr.repeat = false
    mr.skippable = true
    mr.wait = true
    mr.list = []
    dist.times do
      mr.list.push( RPG::MoveCommand.new(2, []) )
    end
    mr.list.push( RPG::MoveCommand.new )
    event.force_move_route(mr)
  end
 
  #--------------------------------------------------------------------------
  # * Move Blockev Right                                       # NEW METHOD #
  #--------------------------------------------------------------------------
  # Just a convenient way of making the event move left.
  #--------------------------------------------------------------------------
  def moveev_right(event, dist = 1)
    event = get_character(event)
    mr = RPG::MoveRoute.new
    mr.repeat = false
    mr.skippable = true
    mr.wait = true
    mr.list = []
    dist.times do
      mr.list.push( RPG::MoveCommand.new(3, []) )
    end
    mr.list.push( RPG::MoveCommand.new )
    event.force_move_route(mr)
  end
 
  #--------------------------------------------------------------------------
  # * Move Blockev Down                                        # NEW METHOD #
  #--------------------------------------------------------------------------
  # Just a convenient way of making the event move left.
  #--------------------------------------------------------------------------
  def moveev_down(event, dist = 1)
    event = get_character(event)
    mr = RPG::MoveRoute.new
    mr.repeat = false
    mr.skippable = true
    mr.wait = true
    mr.list = []
    dist.times do
      mr.list.push( RPG::MoveCommand.new(1, []) )
    end
    mr.list.push( RPG::MoveCommand.new )
    event.force_move_route(mr)
  end
 
  #--------------------------------------------------------------------------
  # * Move Blockev Up                                          # NEW METHOD #
  #--------------------------------------------------------------------------
  # Just a convenient way of making the event move left.
  #--------------------------------------------------------------------------
  def moveev_up(event, dist = 1)
    event = get_character(event)
    mr = RPG::MoveRoute.new
    mr.repeat = false
    mr.skippable = true
    mr.wait = true
    mr.list = []
    dist.times do
      mr.list.push( RPG::MoveCommand.new(4, []) )
    end
    mr.list.push( RPG::MoveCommand.new )
    event.force_move_route(mr)
  end
    
  #--------------------------------------------------------------------------
  # * Left Clear?                                              # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile to the event's left is clear. Based on event's
  # direction.
  #--------------------------------------------------------------------------
  def leftclear?(event, dist = 0)
    event = get_character(event)
    dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
    case event.direction
    when 2; left_dir = 6; evx = (event.x + dist); evy = event.y; bevx = evx + 1; bevy = evy
    when 4; left_dir = 2; evy = (event.y + dist); evx = event.x; bevy = evy + 1; bevx = evx
    when 6; left_dir = 8; evy = (event.y - dist); evx = event.x; bevy = evy - 1; bevx = evx
    when 8; left_dir = 4; evx = (event.x - dist); evy = event.y; bevx = evx - 1; bevy = evy
    end
    $game_map.get_blockev(bevx, bevy)
    return false unless xyclear?(bevx, bevy)
    event.passable?(evx, evy, left_dir)
  end
 
  #--------------------------------------------------------------------------
  # * Right Clear?                                             # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile to the event's right is clear. Based on event's
  # direction.
  #--------------------------------------------------------------------------
  def rightclear?(event, dist = 0)
    event = get_character(event)
    dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
    case event.direction
    when 2;  right_dir = 4; evx = (event.x - dist); evy = event.y; bevx = evx - 1; bevy = evy
    when 4;  right_dir = 8; evy = (event.y - dist); evx = event.x; bevy = evy - 1; bevx = evx
    when 6;  right_dir = 2; evy = (event.y + dist); evx = event.x; bevy = evy + 1; bevx = evx
    when 8;  right_dir = 6; evx = (event.x + dist); evy = event.y; bevx = evx + 1; bevy = evy
    end
    $game_map.get_blockev(bevx, bevy)
    return false unless xyclear?(bevx, bevy)
    event.passable?(evx, evy, right_dir)
  end
 
  #--------------------------------------------------------------------------
  # * Back Clear?                                              # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile behind the event is clear. Based on event's direction.
  #--------------------------------------------------------------------------
  def backclear?(event, dist = 0)
    event = get_character(event)
    revdir = event.reverse_dir(event.direction)
    dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
    case event.direction
    when 2;  evy = (event.y - dist); evx = event.x; bevy = evy - 1; bevx = evx
    when 4;  evx = (event.x + dist); evy = event.y; bevx = evx + 1; bevy = evy
    when 6; evx = (event.x - dist); evy = event.y; bevx = evx - 1; bevy = evy
    when 8; evy = (event.y + dist); evx = event.x; bevy = evy + 1; bevx = evx
    end
    $game_map.get_blockev(bevx, bevy)
    return false unless xyclear?(bevx, bevy)
    event.passable?(evx, evy, revdir)
  end
 
  #--------------------------------------------------------------------------
  # * Front Clear?                                             # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile in front of the event is clear. Based on event's
  # direction.
  #--------------------------------------------------------------------------
  def frontclear?(event, dist = 0)
    event = get_character(event)
    dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
    case event.direction
    when 2;  evy = (event.y + dist); evx = event.x; bevy = evy + 1; bevx = evx
    when 4;  evx = (event.x - dist); evy = event.y; bevx = evx - 1; bevy = evy
    when 6; evx = (event.x + dist); evy = event.y; bevx = evx + 1; bevy = evy
    when 8; evy = (event.y - dist); evx = event.x; bevy = evy - 1; bevx = evx
    end
    $game_map.get_blockev(bevx, bevy)
    return false unless xyclear?(bevx, bevy)
    event.passable?(evx, evy, event.direction)
  end
 
  #--------------------------------------------------------------------------
  # * North Clear?                                             # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile above the event (the north) is clear.
  #--------------------------------------------------------------------------
  def northclear?(event, dist = 0)
    event = get_character(event)
    dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
    $game_map.get_blockev(event.x, (event.y - dist) - 1)
    return false unless xyclear?(event.x, (event.y - dist) - 1)
    event.passable?(event.x, (event.y - dist), 8)
  end
 
  #--------------------------------------------------------------------------
  # * South Clear?                                             # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile below the event (the south) is clear.
  #--------------------------------------------------------------------------
  def southclear?(event, dist = 0)
    event = get_character(event)
    dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
    $game_map.get_blockev(event.x, (event.y + dist) + 1)
    return false unless xyclear?(event.x, (event.y + dist) + 1)
    event.passable?(event.x, (event.y + dist), 2)
  end
 
  #--------------------------------------------------------------------------
  # * East Clear?                                              # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile right of the event (the east) is clear.
  #--------------------------------------------------------------------------
  def eastclear?(event, dist = 0)
    event = get_character(event)
    dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
    $game_map.get_blockev((event.x + dist) + 1, event.y)
    return false unless xyclear?((event.x + dist) + 1, event.y)
    event.passable?((event.x - dist), event.y, 6)
  end
 
  #--------------------------------------------------------------------------
  # * West Clear?                                              # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile left of the event (the west) is clear.
  #--------------------------------------------------------------------------
  def westclear?(event, dist = 0)
    event = get_character(event)
    dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
    $game_map.get_blockev((event.x - dist) - 1, event.y)
    return false unless xyclear?((event.x - dist) - 1, event.y)
    event.passable?((event.x + dist), event.y, 4)
  end

  #--------------------------------------------------------------------------
  # * A Equals B Pos?                                          # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if event A's position is the same as event B
  #--------------------------------------------------------------------------
  def a_equal_b_pos?(eventa, eventb)
    eventa = get_character(eventa)
    eventb = get_character(eventb)
    eventa.pos?(eventb.x, eventb.y)
  end
end

Spoiler: Free Movement patch
Code:
=begin
#=====================================================================
#   AMN Event Passability Checks - Free Movement patch
#   Version 1.0
#   Author: AMoonlessNight
#   Date: 18 Mar 2018
#   Latest: 18 Mar 2018
#=====================================================================#
#   UPDATE LOG
#---------------------------------------------------------------------#
# 18 Mar 2018 - wrote add-on patch for GaryCXJk's Free Movement script
#=====================================================================#

This script aliases methods written in A-Moonless-Night's Event Passability
Checks script and makes it compatible with GaryCXJk's Free Movement script.
It will not work without them.

GaryCXJk's Free Movement script checks for passability, etc., based on
a character's collision_rect, so this patch does the same.

Requested by Robert-Character-Creator

#=====================================================================#
          SCRIPT CALLS
#=====================================================================#

You can use the following script calls in conditional branches:

    * xyclear?(x, y)  or  xyclear?(x, y, rect)
  #----------------------------------------------------------------#
  # Checks if the tile at coordinates x and y is clear based on
  # collision_rect.
  # For example:  xyclear?(1, 2)   will check coordinates 1, 2 (based
  # on the default collision rect set in GaryCXJ's script.
  # For example:  xyclear?(3, 1, $game_map.events[4].collision_rect)
  # will check coordinates 3, 1 based on event 4's collision_rect.
  #----------------------------------------------------------------#

 
  The following script calls can be used with event IDs:
 
  Bear in the mind that event can be replaced with the following:
  -1 = player
  0 = current event
  everything else corresponds to the event ID
 
 
  * a_equal_b_rect?(eventa, eventb)
  #----------------------------------------------------------------#
  # Checks to see if event A's position is equal to event B's
  # position, based on their collision rectangles.
  # For example:  a_equal_b_pos?(-1, 2)   will check if the player's
  #               position is equal to event 2's position, based on
  # their collision_rect.
  #----------------------------------------------------------------#

 
  All other script calls are used same as in the original script.
 
=end

if !$imported["AMN_EventPassChecks"]
  msg = "                                      IMPORTANT:\n"
  msg += "            Event Passability Check script add-on by A-Moonless-Night\n"
  msg += " \n"
  msg += "This script requires A-Moonless-Night's Event Passability Check script.\n"
  msgbox(msg)
  exit
end
if !$imported["CXJ-FreeMovement"]
  msg = "                                      IMPORTANT:\n"
  msg += "            Event Passability Check script add-on by A-Moonless-Night\n"
  msg += " \n"
  msg += "This script requires GaryCXJk's Free Movement script.\n"
  msg += "Please download it from http://area91.multiverseworks.com"
  msgbox(msg)
  exit
end

#==============================================================================
# ** Game_Map
#------------------------------------------------------------------------------
#  This class handles maps. It includes scrolling and passage determination
# functions. The instance of this class is referenced by $game_map.
#==============================================================================

class Game_Map

  #--------------------------------------------------------------------------
  # * Event ID XY Rect                                         # NEW METHOD #
  #--------------------------------------------------------------------------
  # Get ID of Events at Designated Coordinates (One Only).
  #--------------------------------------------------------------------------
  def event_id_xy_rect(x, y, rect)
    list = events_xy_rect(x, y, rect)
    list.empty? ? 0 : list[0].id
  end
 
  #--------------------------------------------------------------------------
  # * Default Collision Rectangle                              # NEW METHOD #
  #--------------------------------------------------------------------------
  # Gets the default collision rectangle set in the Free Movement Script.
  #--------------------------------------------------------------------------
  def default_collision_rect
    collision = CXJ::FREE_MOVEMENT::COLLISION["DEFAULT"]
    return Rect.new(collision[0], collision[1], collision[2], collision[3])
  end
 
  #--------------------------------------------------------------------------
  # * Get Blockev?                                           # ALIAS METHOD #
  #--------------------------------------------------------------------------
  # Checks the X and Y coordinates and gets the value of the blocking event.
  #--------------------------------------------------------------------------
  alias amn_eventpos_getblockev   get_blockev
  def get_blockev(x, y, rect)
    if $game_map.free_movement_enabled?
      if !collision_map_passable?((x * 32), (y * 32))
        @blockev = -2
      elsif !collision_map_enabled? && check_passage(x, y, 1) == false
        @blockev = -3
      elsif $game_player.pos_rect?(x, y, rect)
        @blockev = -1
      elsif event_id_xy_rect(x, y, rect) > 0
        ev = event_id_xy_rect(x, y, rect)
        @blockev = @events[ev].id
      else
        @blockev = 0
      end
    else
      amn_eventpos_getblockev(x, y)
    end
  end
   
  #--------------------------------------------------------------------------
  # * XY Passability Rectangle Clear?                          # NEW METHOD #
  #--------------------------------------------------------------------------
  # Checks the X and Y coordinates and sees if they are clear for collision
  # rectangle. Doesn't consider direction.
  #--------------------------------------------------------------------------
  def amn_xy_rect_pass_clear?(x, y, rect)
    get_blockev(x, y, rect = default_collision_rect)
    return false if !collision_map_passable?((x * 32), (y * 32)) || !collision_map_enabled? && check_passage(x, y, 1) == false
    return false if $game_player.pos_rect?(x, y, default_collision_rect)
    if event_id_xy_rect(x, y, default_collision_rect) > 0
      ev = event_id_xy_rect(x, y, default_collision_rect)
      return false if @events[ev].normal_priority? && !@events[ev].through
      return true
    end
    return true
  end
 
end

#==============================================================================
# ** Game_Interpreter
#------------------------------------------------------------------------------
#  An interpreter for executing event commands. This class is used within the
# Game_Map, Game_Troop, and Game_Event classes.
#==============================================================================

class Game_Interpreter

  #--------------------------------------------------------------------------
  # * XY Rect Clear?                                           # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if the coordinates x & y are clear based on event's rect. Returns
  # false if there is an event or player there. Rect is the default collision
  # rect unless specified otherwise.
  #--------------------------------------------------------------------------
  def xy_rect_clear?(x, y, rect = $game_map.default_collision_rect)
    $game_map.amn_xy_rect_pass_clear?(x, y, rect)
  end
   
  #--------------------------------------------------------------------------
  # * Left Clear?                                            # ALIAS METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile to the event's left is clear. Based on event's
  # direction.
  #--------------------------------------------------------------------------
  alias amn_rect_leftclear?   leftclear?
  def leftclear?(event, dist = 0)
    if $game_map.free_movement_enabled?
      event = get_character(event)
      dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
      case event.direction
      when 2; left_dir = 6; evx = (event.x + dist); evy = event.y; bevx = evx + 1; bevy = evy
      when 4; left_dir = 2; evy = (event.y + dist); evx = event.x; bevy = evy + 1; bevx = evx
      when 6; left_dir = 8; evy = (event.y - dist); evx = event.x; bevy = evy - 1; bevx = evx
      when 8; left_dir = 4; evx = (event.x - dist); evy = event.y; bevx = evx - 1; bevy = evy
      end
      $game_map.get_blockev(bevx, bevy, event.collision_rect)
      return false unless xy_rect_clear?(bevx, bevy, event.collision_rect)
      event.passable?(evx, evy, left_dir)
    else
      amn_rect_leftclear?(event, dist)
    end
  end
 
  #--------------------------------------------------------------------------
  # * Right Clear?                                           # ALIAS METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile to the event's right is clear. Based on event's
  # direction.
  #--------------------------------------------------------------------------
  alias amn_rect_rightclear?   rightclear?
  def rightclear?(event, dist = 0)
    if $game_map.free_movement_enabled?
      event = get_character(event)
      dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
      case event.direction
      when 2;  right_dir = 4; evx = (event.x - dist); evy = event.y; bevx = evx - 1; bevy = evy
      when 4;  right_dir = 8; evy = (event.y - dist); evx = event.x; bevy = evy - 1; bevx = evx
      when 6;  right_dir = 2; evy = (event.y + dist); evx = event.x; bevy = evy + 1; bevx = evx
      when 8;  right_dir = 6; evx = (event.x + dist); evy = event.y; bevx = evx + 1; bevy = evy
      end
      $game_map.get_blockev(bevx, bevy, event.collision_rect)
      return false unless xy_rect_clear?(bevx, bevy, event.collision_rect)
      event.passable?(evx, evy, right_dir)
    else
      amn_rect_rightclear?(event, dist)
    end
  end
 
  #--------------------------------------------------------------------------
  # * Back Clear?                                            # ALIAS METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile behind the event is clear. Based on event's direction.
  #--------------------------------------------------------------------------
  alias amn_rect_backclear?   backclear?
  def backclear?(event, dist = 0)
    if $game_map.free_movement_enabled?
      event = get_character(event)
      revdir = event.reverse_dir(event.direction)
      dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
      case event.direction
      when 2;  evy = (event.y - dist); evx = event.x; bevy = evy - 1; bevx = evx
      when 4;  evx = (event.x + dist); evy = event.y; bevx = evx + 1; bevy = evy
      when 6; evx = (event.x - dist); evy = event.y; bevx = evx - 1; bevy = evy
      when 8; evy = (event.y + dist); evx = event.x; bevy = evy + 1; bevx = evx
      end
      $game_map.get_blockev(bevx, bevy, event.collision_rect)
      return false unless xy_rect_clear?(bevx, bevy, event.collision_rect)
      event.passable?(evx, evy, revdir)
    else
      amn_rect_backclear?(event, dist)
    end
  end
 
  #--------------------------------------------------------------------------
  # * Front Clear?                                           # ALIAS METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile in front of the event is clear. Based on event's
  # direction.
  #--------------------------------------------------------------------------
  alias amn_rect_frontclear?   frontclear?
  def frontclear?(event, dist = 0)
    if $game_map.free_movement_enabled?
      event = get_character(event)
      dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
      case event.direction
      when 2;  evy = (event.y + dist); evx = event.x; bevy = evy + 1; bevx = evx
      when 4;  evx = (event.x - dist); evy = event.y; bevx = evx - 1; bevy = evy
      when 6; evx = (event.x + dist); evy = event.y; bevx = evx + 1; bevy = evy
      when 8; evy = (event.y - dist); evx = event.x; bevy = evy - 1; bevx = evx
      end
      $game_map.get_blockev(bevx, bevy, event.collision_rect)
      return false unless xy_rect_clear?(bevx, bevy, event.collision_rect)
      event.passable?(evx, evy, event.direction)
    else
      amn_rect_frontclear?(event, dist)
    end
  end
 
  #--------------------------------------------------------------------------
  # * North Clear?                                           # ALIAS METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile above the event (the north) is clear.
  #--------------------------------------------------------------------------
  alias amn_rect_northclear?   northclear?
  def northclear?(event, dist = 0)
    if $game_map.free_movement_enabled?
      event = get_character(event)
      dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
      $game_map.get_blockev(event.x, (event.y - dist) - 1, event.collision_rect)
      return false unless xy_rect_clear?(event.x, (event.y - dist) - 1, event.collision_rect)
      event.passable?(event.x, (event.y - dist), 8)
    else
      amn_rect_northclear?(event, dist)
    end
  end
 
  #--------------------------------------------------------------------------
  # * South Clear?                                           # ALIAS METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile below the event (the south) is clear.
  #--------------------------------------------------------------------------
  alias amn_rect_southclear?   southclear?
  def southclear?(event, dist = 0)
    if $game_map.free_movement_enabled?
      event = get_character(event)
      dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
      $game_map.get_blockev(event.x, (event.y + dist) + 1, event.collision_rect)
      return false unless xy_rect_clear?(event.x, (event.y + dist) + 1, event.collision_rect)
      event.passable?(event.x, (event.y + dist), 2)
    else
      amn_rect_southclear?(event, dist)
    end
  end
 
  #--------------------------------------------------------------------------
  # * East Clear?                                            # ALIAS METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile right of the event (the east) is clear.
  #--------------------------------------------------------------------------
  alias amn_rect_eastclear?   eastclear?
  def eastclear?(event, dist = 0)
    if $game_map.free_movement_enabled?
      event = get_character(event)
      dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
      $game_map.get_blockev((event.x + dist) + 1, event.y, event.collision_rect)
      return false unless xy_rect_clear?((event.x + dist) + 1, event.y, event.collision_rect)
      event.passable?((event.x - dist), event.y, 6)
    else
      amn_rect_eastclear?(event, dist)
    end
  end
 
  #--------------------------------------------------------------------------
  # * West Clear?                                            # ALIAS METHOD #
  #--------------------------------------------------------------------------
  # Check if the tile left of the event (the west) is clear.
  #--------------------------------------------------------------------------
  alias amn_rect_westclear?   westclear?
  def westclear?(event, dist = 0)
    if $game_map.free_movement_enabled?
      event = get_character(event)
      dist -= 1 unless dist == 0  # minus 1 from dist so it doesn't include event
      $game_map.get_blockev((event.x - dist) - 1, event.y, event.collision_rect)
      return false unless xy_rect_clear?((event.x - dist) - 1, event.y, event.collision_rect)
      event.passable?((event.x + dist), event.y, 4)
    else
      amn_rect_westclear?(event, dist)
    end
  end

  #--------------------------------------------------------------------------
  # * A Rect Equals B Rect?                                    # NEW METHOD #
  #--------------------------------------------------------------------------
  # Check if event A's position is the same as event B using their collision
  # rectangles.
  #--------------------------------------------------------------------------
  def a_equal_b_rect?(eventa, eventb)
    eventa = get_character(eventa)
    eventb = get_character(eventb)
    eventa.pos_rect?(eventb.x, eventb.y, eventa.collision_rect)
  end
end
My Internet's down until Tuesday; I had to borrow a phone to type this. I can't work on this much until then, but I see all the hard work you've done. 🙂
The events will need a little tweaking now- you can still place the stool into walls if you stand a little away from them first- but that was expected. It seems to work beautifully!

Edit: Ooh, wait. My game crashes with an "Argument Error" on "Line 370" of your main script if I try to drop items anywhere. Rip.
Ah, whoops. Replace line 520 of the Hime Map Drops addon script I wrote with the following:
Code:
    return true if $game_map.amn_xy_rect_pass_clear?(evx, evy, event.collision_rect)

It should currently be:
Code:
    return true if $game_map.amn_xy_pass_clear?(evx, evy)
B-But... your Map Drops add-on script only has 410 lines (In fact, only your collision script contains that many lines, but line 520 isn't relevant in that case.)! And it doesn't contain that phrase; so I'm unsure how to proceed.
This one:
Spoiler
Code:
=begin
#=====================================================================
#   AMN Hime Map Drops - Add-on
#   Version 1.2
#   Author: AMoonlessNight
#   Date: 18 Feb 2018
#   Latest: 13 Mar 2018
#=====================================================================#
#   UPDATE LOG
#---------------------------------------------------------------------#
# 18 Feb 2018 - created the add-on script for HimeWorks' Map Drops
# 21 Feb 2018 - added compatibility for Efeberk's Combine Scene script
#               and Theo's Limited Inventory
# 13 Mar 2018 - added additional functionality, such as setting events'
#               direction, speed and frequency
#=====================================================================#

This script was requested as an add-on to HimeWorks' Map Drops script.
It will not work without it.

The original script sets the character graphic to the item's icon in the
database. There is now the ability to set whether the script uses icons
or character graphics.

Set the default character graphics in the editable region below and use
the following notetag: <dropsprite: graphic index>
where graphic is the name of the character graphic (e.g. !Chest) and
index is the index number (e.g. 4).
NOTE: Do not use quotation marks! (so !Chest rather than "!Chest")

Row 1
0 is the first character, 1 is the second, 2 is the third, 3 is the fourth
Row 2
4 is the first character, 5 is the second, 6 is the third, 7 is the fourth

This script also works in conjunction with A-Moonless-Night's Advanced
Event Passability Checks script. If an item has the notetag <small_item>
then when it is discarded onto the map, it will act as a 'small event'.
See the Advanced Event Passability Checks script for more info.

Use the following notetags to change the drop item event:

<stepping_anim>   = Makes the event have stepping animation on
<norm_priority>   = Makes the event normal priority / same as character
<front_of_chara>  = Drops the item in front of the character
<dir_fix>         = Makes the event have direction fix on
<same_dir>        = Makes the event face the same direction as player when placed
<set_dir: #>      = Sets the event's direction to # (either 2, 4, 6 or 8)
                    2 = down, 4 = left, 6 = right, 8 = up
<set_speed: #>    = Sets the event's speed to # (single digit number)
<set_freq: #>     = Sets the event's frequency to # (single digit number)


Requested by Robert-Character-Creator

#=====================================================================#
          SCRIPT CALLS
#=====================================================================#

You can use the following script calls:

    * mapdrop_useicons(true | false)
  #----------------------------------------------------------------#
  # Sets whether to use icons for map drops or sprites.
  # For example:  mapdrop_useicons(false)   will make it so map drops
  # use character sprites.
  #----------------------------------------------------------------#

 
=end

if !$imported["TH_MapDrops"]
  msg = "                                      IMPORTANT:\n"
  msg += "            HimeWorks Map Drops script add-on by A-Moonless-Night\n"
  msg += " \n"
  msg += "This script requires HimeWork's Map Drops script.\n"
  msg += "Please download it from http://himeworks.com/rmvxa-scripts/"
  msgbox(msg)
  exit
end

module TH
  module Map_Drops

#==============================================================================
# ** EDITABLE REGION BELOW
#------------------------------------------------------------------------------
#  Change the values in the area below to suit your needs.
#==============================================================================


  #--------------------------------------------------------------------------
    Use_Icon    =   false                   # set to true or false
  # Whether to use the item's icon for map drops. If false, will use character
  # sprites.
  #--------------------------------------------------------------------------
 
  #--------------------------------------------------------------------------
    Default_Sheet = "!Flame"                # default character sheet
    Default_Index = 4                       # default index
  # The default character sheet and index to use for map drops (if Use_Icon
  # is set to false. This is unless you specify them in the item's notetags.
  #--------------------------------------------------------------------------

  #--------------------------------------------------------------------------
    Deny_Message = "My hands are too full to carry this."
  # Message displayed if the player cannot pick the item up (uses Theo's
  # Limited Inventory script).
  #--------------------------------------------------------------------------
 
 
#==============================================================================
# ** END OF EDITABLE REGION
#------------------------------------------------------------------------------
#  Please do not edit below this point unless you know what you are doing.
#==============================================================================

    Small_Item_Regex = /<small_item>/i
    Sprite_Name_Index_Regex = /<(?:drop_sprite):[ ](.*)[ ](\d+)>/i
    Stepping_Anim_Ev_Regex =  /<stepping_anim>/i
    Normal_Priority_Ev_Regex = /<norm_priority>/i
    Front_Chara_Ev_Regex = /<front_of_chara>/i
    Dir_Fix_Regex = /<dir_fix>/i
    Same_Dir_Regex = /<same_dir>/i
    Set_Dir_Regex = /<(?:set_dir): ([\d])>/i
    Set_Ev_Speed_Regex = /<(?:set_speed): ([\d])>/i
    Set_Ev_Freq_Regex = /<(?:set_freq): ([\d])>/i
    
  end
end

module RPG
  class EquipItem < BaseItem
    
    def small_item?
      return @small_item unless @small_item.nil?
      res = self.note.match(TH::Map_Drops::Small_Item_Regex)
      return @small_item = !res.nil?
    end
    
    def amn_chosensprite
      self.note.split(/[\r\n]+/).each { |line|
      case line
      when TH::Map_Drops::Sprite_Name_Index_Regex
        @chosen_sprite = true
        @chosen_sprite_name = $1.to_s
        @chosen_sprite_index = $2.to_i
      else
        @chosen_sprite = nil
      end
      }
    end
  
    def has_chosen_sprite?
      amn_chosensprite if @chosen_sprite.nil?
      return @chosen_sprite
    end
    
    def stepping_ev_anim?
      return @stepping__anim unless @stepping__anim.nil?
      res = self.note.match(TH::Map_Drops::Stepping_Anim_Ev_Regex)
      return @stepping__anim = !res.nil?
    end
    
    def normal_ev_priority?
      return @normal__priority unless @normal__priority.nil?
      res = self.note.match(TH::Map_Drops::Normal_Priority_Ev_Regex)
      return @normal__priority = !res.nil?
    end
    
    def front_of_chara?
      return @front__chara unless @front__chara.nil?
      res = self.note.match(TH::Map_Drops::Front_Chara_Ev_Regex)
      return @front__chara = !res.nil?
    end
    
    def dir_fix_event?
      return @dir_fix_event unless @dir_fix_event.nil?
      res = self.note.match(TH::Map_Drops::Dir_Fix_Regex)
      return @dir_fix_event = !res.nil?
    end
    
    def same_dir_event?
      return @same_dir_event unless @same_dir_event.nil?
      res = self.note.match(TH::Map_Drops::Same_Dir_Regex)
      return @same_dir_event = !res.nil?
    end
    
    def amn_setspritedir
      self.note.split(/[\r\n]+/).each { |line|
      case line
      when TH::Map_Drops::Set_Dir_Regex
        @sprite_dir = true
        @set_sprite_dir = $1
      else
        @sprite_dir = nil
      end
      }
    end
  
    def has_setspritedir?
      amn_setspritedir if @sprite_dir.nil?
      return @set_sprite_dir
    end
    
    def amn_setspritespeed
      self.note.split(/[\r\n]+/).each { |line|
      case line
      when TH::Map_Drops::Set_Ev_Speed_Regex
        @sprite_spd = true
        @set_sprite_spd = $1
      else
        @sprite_spd = nil
      end
      }
    end
  
    def has_setspritespeed?
      amn_setspritespeed if @sprite_spd.nil?
      return @set_sprite_spd
    end
    
    def amn_setspritefreq
      self.note.split(/[\r\n]+/).each { |line|
      case line
      when TH::Map_Drops::Set_Ev_Freq_Regex
        @sprite_freq = true
        @set_sprite_freq = $1
      else
        @sprite_freq = nil
      end
      }
    end
  
    def has_setspritefreq?
      amn_setspritefreq if @sprite_freq.nil?
      return @set_sprite_freq
    end
    
  end
 
  class Item < UsableItem
    attr_reader   :chosen_sprite_name
    attr_reader   :chosen_sprite_index
    attr_reader   :chosen_sprite
    attr_reader   :stepping__anim
    attr_reader   :normal__priority
    attr_reader   :front__chara
    attr_reader   :dir_fix_event
    attr_reader   :same_dir_event
    attr_reader   :sprite_dir
    attr_reader   :set_sprite_dir
    attr_reader   :sprite_spd
    attr_reader   :set_sprite_spd
    attr_reader   :sprite_freq
    attr_reader   :set_sprite_freq
    
    def small_item?
      return @small_item unless @small_item.nil?
      res = self.note.match(TH::Map_Drops::Small_Item_Regex)
      return @small_item = !res.nil?
    end
    
    def amn_chosensprite
      self.note.split(/[\r\n]+/).each { |line|
      case line
      when TH::Map_Drops::Sprite_Name_Index_Regex
        @chosen_sprite = true
        @chosen_sprite_name = $1
        @chosen_sprite_index = $2
      end
      }
    end
  
    def has_chosen_sprite?
      amn_chosensprite if @chosen_sprite.nil?
      return @chosen_sprite
    end
    
    def stepping_ev_anim?
      return @stepping__anim unless @stepping__anim.nil?
      res = self.note.match(TH::Map_Drops::Stepping_Anim_Ev_Regex)
      return @stepping__anim = !res.nil?
    end
    
    def normal_ev_priority?
      return @normal__priority unless @normal__priority.nil?
      res = self.note.match(TH::Map_Drops::Normal_Priority_Ev_Regex)
      return @normal__priority = !res.nil?
    end
    
    def front_of_chara?
      return @front__chara unless @front__chara.nil?
      res = self.note.match(TH::Map_Drops::Front_Chara_Ev_Regex)
      return @front__chara = !res.nil?
    end
    
    def dir_fix_event?
      return @dir_fix_event unless @dir_fix_event.nil?
      res = self.note.match(TH::Map_Drops::Dir_Fix_Regex)
      return @dir_fix_event = !res.nil?
    end
    
    def same_dir_event?
      return @same_dir_event unless @same_dir_event.nil?
      res = self.note.match(TH::Map_Drops::Same_Dir_Regex)
      return @same_dir_event = !res.nil?
    end
    
    def amn_setspritedir
      self.note.split(/[\r\n]+/).each { |line|
      case line
      when TH::Map_Drops::Set_Dir_Regex
        @sprite_dir = true
        @set_sprite_dir = $1
      else
        @sprite_dir = nil
      end
      }
    end
  
    def has_setspritedir?
      amn_setspritedir if @sprite_dir.nil?
      return @set_sprite_dir
    end
    
    def amn_setspritespeed
      self.note.split(/[\r\n]+/).each { |line|
      case line
      when TH::Map_Drops::Set_Ev_Speed_Regex
        @sprite_spd = true
        @set_sprite_spd = $1
      else
        @sprite_spd = nil
      end
      }
    end
  
    def has_setspritespeed?
      amn_setspritespeed if @sprite_spd.nil?
      return @set_sprite_spd
    end
    
    def amn_setspritefreq
      self.note.split(/[\r\n]+/).each { |line|
      case line
      when TH::Map_Drops::Set_Ev_Freq_Regex
        @sprite_freq = true
        @set_sprite_freq = $1
      else
        @sprite_freq = nil
      end
      }
    end
  
    def has_setspritefreq?
      amn_setspritefreq if @sprite_freq.nil?
      return @set_sprite_freq
    end
    
  end

end

class Game_System
 
  attr_accessor :mapdrop_useicons
 
  alias :amn_mapdrop_gamesystem_init :initialize
  def initialize
    amn_mapdrop_gamesystem_init
    @mapdrop_useicons = TH::Map_Drops::Use_Icon
  end
 
end


class Game_MapDrop < Game_Drop
 
  def setup_event(x, y)
    if @item.front_of_chara?
      case $game_player.direction
      when 2;  y = ($game_player.y + 1); x = $game_player.x
      when 4;  x = ($game_player.x - 1); y = $game_player.y
      when 6; x = ($game_player.x + 1); y = $game_player.y
      when 8; y = ($game_player.y - 1); x = $game_player.x
      end
    end
    @event = RPG::Event.new(x, y)
    event.pages[0].trigger = 0
    if @item.dir_fix_event?
      event.pages[0].direction_fix = true
    else
      event.pages[0].direction_fix = false
    end
    if @item.stepping_ev_anim?
      event.pages[0].step_anime = 1
    end
    if @item.normal_ev_priority?
      event.pages[0].priority_type = 1
    else
      event.pages[0].priority_type = 0
    end
    if $game_system.mapdrop_useicons == false
      if @item.has_chosen_sprite?
        event.pages[0].graphic.character_name = @item.chosen_sprite_name.to_s
        event.pages[0].graphic.character_index = @item.chosen_sprite_index.to_i
      else
        event.pages[0].graphic.character_name = TH::Map_Drops::Default_Sheet
        event.pages[0].graphic.character_index = TH::Map_Drops::Default_Index
      end
      if @item.same_dir_event?
        event.pages[0].graphic.direction = $game_player.direction
      elsif @item.has_setspritedir?
        event.pages[0].graphic.direction = @item.set_sprite_dir.to_i
      end
      if @item.has_setspritespeed?
        event.pages[0].move_speed = @item.set_sprite_spd.to_i
      end
      if @item.has_setspritefreq?
        event.pages[0].move_frequency = @item.set_sprite_freq.to_i
      end
    end
    event.pages[0].list = []
    add_event_commands(event.pages[0].list)
  end
 

  alias amn_hime_gamemapdrop_addeventcommands   add_event_commands
  def add_event_commands(list)
    if @item.small_item?
      list << RPG::EventCommand.new(108, 0, ["<small_ev>"])
    end
    if $imported[:Theo_LimInventory]
      if @item.is_a?(RPG::Item)
        cmd = 126
      elsif @item.is_a?(RPG::Weapon)
        cmd = 127
      elsif @item.is_a?(RPG::Armor)
        cmd = 128
      end
      case @item.inv_size
      when 0
        list << RPG::EventCommand.new(111, 0, [12, "$game_party.free_slot >= 0"])
      when 1
        list << RPG::EventCommand.new(111, 0, [12, "$game_party.free_slot >= 1"])
      when 2
        list << RPG::EventCommand.new(111, 0, [12, "$game_party.free_slot >= 2"])
      when 3
        list << RPG::EventCommand.new(111, 0, [12, "$game_party.free_slot >= 3"])
      when 4
        list << RPG::EventCommand.new(111, 0, [12, "$game_party.free_slot >= 4"])
      when 5
        list << RPG::EventCommand.new(111, 0, [12, "$game_party.free_slot >= 5"])
      when 6
        list << RPG::EventCommand.new(111, 0, [12, "$game_party.free_slot >= 6"])
      when 7
        list << RPG::EventCommand.new(111, 0, [12, "$game_party.free_slot >= 7"])
      when 8
        list << RPG::EventCommand.new(111, 0, [12, "$game_party.free_slot >= 8"])
      when 9
        list << RPG::EventCommand.new(111, 0, [12, "$game_party.free_slot >= 9"])
      when 10
        list << RPG::EventCommand.new(111, 0, [12, "$game_party.free_slot >= 10"])
      end
      list << RPG::EventCommand.new(250, 1, [RPG::SE.new(TH::Map_Drops::Obtain_SE, 100, 80)])
      list << RPG::EventCommand.new(cmd, 1, [@item.id, 0, 0, @count, false])
      list << RPG::EventCommand.new(101, 1, ["", 0, 0, 2])
      list << RPG::EventCommand.new(401, 1, [sprintf(TH::Map_Drops::Found_Message, display)])
      list << RPG::EventCommand.new(215, 1, [])
      list << RPG::EventCommand.new(411, 0, [])
      list << RPG::EventCommand.new(101, 1, ["", 0, 0, 2])
      list << RPG::EventCommand.new(401, 1, [sprintf(TH::Map_Drops::Deny_Message, display)])
      list << RPG::EventCommand.new
    else
      amn_hime_gamemapdrop_addeventcommands(list)
    end
  end
 
end

class Window_ItemListe < Window_Selectable # Window_ItemList
 
  alias :th_map_drops_process_handling :process_handling
  def process_handling
    return unless open? && active
    return process_drop_item if handle?(:drop) && Input.trigger?(TH::Map_Drops::Drop_Item_Key)
    th_map_drops_process_handling
  end
 
  def process_drop_item
    Sound.play_cursor
    Input.update
    deactivate
    call_handler(:drop)
  end
end

class Scene_Combine < Scene_ItemBase # Scene_Item
 
  alias :th_map_drops_item_window :create_item_window
  def create_item_window
    th_map_drops_item_window
    @item_window.set_handler(:drop, method(:on_item_drop))
  end
 
  def on_item_drop
    # should give confirmation and input
    drop_item
  end
 
  def playerfrontclear?
    event = $game_player
    case event.direction
    when 2;  evy = (event.y + 1); evx = event.x;
    when 4;  evx = (event.x - 1); evy = event.y;
    when 6; evx = (event.x + 1); evy = event.y;
    when 8; evy = (event.y - 1); evx = event.x;
    end
    return true if $game_map.amn_xy_rect_pass_clear?(evx, evy, event.collision_rect)
  end
 
  def drop_item
    item = @item_window.item
    if $game_party.can_drop?(item) && @item_window.combining == false
      if playerfrontclear?
        $game_party.drop_item(item)
        @item_window.refresh
        @freeslot.refresh if $imported[:Theo_LimInventory]
      else
        Sound.play_buzzer
      end
    else
      Sound.play_buzzer
    end
    @item_window.activate
  end
 
end

#==============================================================================
# ** Game_Interpreter
#------------------------------------------------------------------------------
#  An interpreter for executing event commands. This class is used within the
# Game_Map, Game_Troop, and Game_Event classes.
#==============================================================================

class Game_Interpreter

  def mapdrop_useicons(toggle = true)
    $game_system.mapdrop_useicons = toggle
    $game_map.need_refresh = true
  end
 
end


class Sprite_Character < Sprite_Base
    
  alias :amn_th_map_drop_update_char_bitmap :update_bitmap
  def update_bitmap
    
    if $game_system.mapdrop_useicons
      if @character.is_a?(Game_DropEvent)
        set_drop_item_bitmap
      else
        th_map_drop_update_char_bitmap
      end
    else
      th_map_drop_update_char_bitmap
    end
  end
 
 
end

This version has the changed line.
Hmm, I'm not sure how I ended up using an older version, but thanks. It seems to work now, but it'll require more testing, of course, to be sure. 🙂
No worries. Let me know how you get on.
I'm at college right now, so I can't test until I get home. Should be 2:30-3:30 pm your time. 1:30 if I'm lucky.

Original thread: https://forums.rpgmakerweb.com/threads/conversion-of-a-collision-checking-plugin-from-mv.90661/