Modification of Tsukihime's Map Drops Script

Hello! Thanks to @A-Moonless-Night 's excellent work, I now have the ability to check collision around events. Of particular relevance is a feature they tacked on for me: the ability to add a comment <small> to any event, making it so that they are pushed out of the way by the event having its collision checked, and then moving. I'm also using Tsukihime's Map Drops Script (https://www.rpgmakercentral.com/topic/4179-map-drops/), which allows the player to drop items out of their inventory, which are represented as the item's icon, that you can retrieve the item from.

I'd like 2 modifications to Tsukihime's script, if possible (or a separate script, if modifications are against his Terms of Use) .
-The ability to have a <small> notetag on individual items, designating if events can push them, once dropped, out of the way.
-The ability to have a notetag specifying a sprite for each item. As it stands, they all use their icon, which is problematic, as I wished to have in-game graphics and menu icons for items differ.

Thank you in advance. Any help, as always, is appreciated.
Hey, figured I'd give this one a go as well! Just wondering: for the notetag specifying the sprite, is that a different icon index or is it a character sprite?
*cheers internally*

I'd prefer if it specifies a character sprite. My game has a mechanic which rotates the perspective of the map, so unless the item is perfectly rotationally symmetrical (like, say, a ball) , it should look different from the sides and back. All other events go by the same system, so I'd like these to be consistent.

Thanks so much for your efforts so far! The converted script you made is working very smoothly as well, though I still need one more feature for it. >.< I'll see if I can't work it out myself before asking you, haha.
No worries, mate. Let me know and I'll see what I can do. Did you get the updated version I posted yesterday?

All right, give this a go:

Spoiler
Code:
=begin
#=====================================================================
#   AMN Hime Map Drops - Add-on
#   Version 1.0
#   Author: AMoonlessNight
#   Date: 18 Feb 2018
#   Latest: 18 Feb 2018
#=====================================================================#
#   UPDATE LOG
#---------------------------------------------------------------------#
# 18 Feb 2018 - created the add-on script for HimeWorks' Map Drops
#=====================================================================#

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).

1 is the first row (down-facing sprite)
2 is the second row (left-facing sprite)
3 is the third row (right-facing sprite)
4 is the fourth row (up-facing sprite)

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.


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 = "!Chest"                # 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.
  #--------------------------------------------------------------------------

 
#==============================================================================
# ** 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
    
  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
        @chosen_sprite_index = $2
      else
        @chosen_sprite = nil
      end
      }
    end
  
    def has_chosen_sprite?
      amn_chosensprite if @chosen_sprite.nil?
      return @chosen_sprite
    end
    
  end
 
  class Item < UsableItem
    attr_reader   :chosen_sprite_name
    attr_reader   :chosen_sprite_index
    attr_reader   :chosen_sprite
    
    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
      else
        @chosen_sprite = nil
      end
      }
    end
  
    def has_chosen_sprite?
      amn_chosensprite if @chosen_sprite.nil?
      return @chosen_sprite
    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)
    @event = RPG::Event.new(x, y)
    event.pages[0].trigger = 0
    event.pages[0].direction_fix = true
    event.pages[0].priority_type = 0
    if $game_system.mapdrop_useicons == false
      if @item.has_chosen_sprite?
        event.pages[0].graphic.character_name = @item.chosen_sprite_name
        event.pages[0].graphic.character_index = @item.chosen_sprite_index
      else
        event.pages[0].graphic.character_name = TH::Map_Drops::Default_Sheet
        event.pages[0].graphic.character_index = TH::Map_Drops::Default_Index
      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
    amn_hime_gamemapdrop_addeventcommands(list)
  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
No, I hadn't! I didn't know you had updated it; I'll have to take a look. Also, thank you for this- I can't test either of them yet, since I have family over, but I'll start testing ASAP.

If I end up needing that last feature (script checking collision maps as well, eeewww), then I'll make a new post on the other thread.

Edit: Hmm, unfortunately, I've found a couple limits to the Map Drops script. The main issue is that the created events are too limited. I can't specify it to have a stepping animation if I want one, or if they should be 'Same as Character' and drop in front of the player, instead of 'Below Character', dropping under them. I can't add my processing to check if the inventory is full (an entirely separate script), and I certainly can't add any flavor text. Honestly, with this many things needed, it'd be better if I designed a couple kinds of item events, and had the script reference them and fill in the blanks with the item's name as needed.

...How quaint.

I also discovered a year-old item in my game's to-do list, that I had forgotten about: "-Fix drop button not functioning." ...Yeah. I can't even drop any items until I find the cause. (Edit 2: I found the cause. Dang crafting script is causing the issue.) This is just a massive can of worms here; it's no wonder I put it off a year ago...

@A-Moonless-Night Thanks so much for your help so far, but unless you're a Ruby miracle worker, I don't think this even CAN be solved.
Wow, yeah, that's a lot of things. Setting the stepping animation, whether they're same as character, etc., should be easy enough to do (she says). I'll see what I can do. I'll also look into the collision maps thing.

Do you mind sending me the link to the crafting script? I'm in no way a Ruby miracle worker, but I'll read through and see if anything pops out to me.
Oh, I was going to handle the crafting script thing myself. They don't get along because they both modify the inventory menu.

Good luck with the rest of that, though. May Rob have mercy on your soul. -o-

Edit: I won't look a gift horse in the mouth, I suppose. Maybe you'll find something. https://www.rpgmakercentral.com/topic/20235-scene-combine/

Edit 2: Here's the Inventory script. https://www.rpgmakercentral.com/topic/24050-theo-limited-inventory/

To go with it, here's the coding I use to check if there's room in the inventory (The player is limited to carry items in their hands, with 10 "item_size" slots. Small items like keys take 1 slot, with larger ones needing 5 or even all 10 slots. This is why a drop script is necessary. The key here takes 1, as specified in a notetag: <inv size: 1>. The word being cut off is "true".

Code_16.png
All right, here are the updated scripts. Let me know how you go. I've updated the other topic with the updated Event Passability script.

Spoiler: Hime Map Drops Addon
Code:
=begin
#=====================================================================
#   AMN Hime Map Drops - Add-on
#   Version 1.1
#   Author: AMoonlessNight
#   Date: 18 Feb 2018
#   Latest: 21 Feb 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
#=====================================================================#

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).

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

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
    
  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
    
  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
    
    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
    
  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
    event.pages[0].direction_fix = true
    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
    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_pass_clear?(evx, evy)
  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


Spoiler: Theo Limited Inventory
Code:
=begin
#=====================================================================
#   AMN Theo Limited Inventory - Add-on
#   Version 1.0
#   Author: AMoonlessNight
#   Date: 21 Feb 2018
#   Latest: 21 Feb 2018
#=====================================================================#
#   UPDATE LOG
#---------------------------------------------------------------------#
# 21 Feb 2018 - created the add-on script for Theo's Limited Inventory
#=====================================================================#

This script was requested as an add-on to Theo's Limited Inventory script.
It will not work without it. It adds compatibility with Efeberk's
Combine Items script and will also not work without that.


Requested by Robert-Character-Creator
 
=end

if !$imported[:Theo_LimInventory]
  msg = "                                      IMPORTANT:\n"
  msg += "            Theo Limited Inventory script add-on by A-Moonless-Night\n"
  msg += " \n"
  msg += "This script requires Theo's Limited Inventory script.\n"
  msg += "Please download it from https://www.rpgmakercentral.com/topic/24050-theo-limited-inventory/"
  msgbox(msg)
  exit
end

# =============================================================================
# ▼ Window_ItemList
# =============================================================================
class Window_ItemListe < Window_Selectable # Window_ItemList
  attr_reader :item_size_window
 
  def item_size_window=(window)
    @item_size_window = window
    @item_size_window.set_item(item)
  end
 
  alias theo_liminv_update_help update_help
  def update_help
    theo_liminv_update_help
    @item_size_window.set_item(item) if @item_size_window
  end
 
  alias theo_liminv_height= height=
  def height=(height)
    self.theo_liminv_height = height
    refresh
  end
 
  def enable?(item)
    return !item.nil?
  end
 
end

# =============================================================================
# ▼ Scene_Item
# =============================================================================
class Scene_Combine < Scene_ItemBase # Scene_Item
 
  alias theo_liminv_start start
  def start
    theo_liminv_start
    resize_item_window
    create_freeslot_window
    create_itemsize_window
    create_usecommand_window
    create_discard_amount
  end
 
  def resize_item_window
    @item_window.height -= @item_window.line_height * 2
  end
 
  def create_freeslot_window
    wy = @item_window.y + @item_window.height
    wh = Theo::LimInv::Display_ItemSize ? Graphics.width/2 : Graphics.width
    @freeslot = Window_FreeSlot.new(0,wy,wh)
    @freeslot.viewport = @viewport
  end
 
  def create_itemsize_window
    return unless Theo::LimInv::Display_ItemSize
    wx = @freeslot.width
    wy = @freeslot.y
    ww = wx
    @itemsize = Window_ItemSize.new(wx,wy,ww)
    @itemsize.viewport = @viewport
    @item_window.item_size_window = @itemsize
  end
 
  def create_usecommand_window
    @use_command = Window_ItemUseCommand.new
    @use_command.to_center
    @use_command.set_handler(:use, method(:use_command_ok))
    @use_command.set_handler(:discard, method(:on_discard_ok))
    @use_command.set_handler(:cancel, method(:on_usecmd_cancel))
    @use_command.viewport = @viewport
  end
 
  def create_discard_amount
    wx = @use_command.x
    wy = @use_command.y + @use_command.height
    ww = @use_command.width
    @discard_window = Window_DiscardAmount.new(wx,wy,ww)
    @discard_window.cmn_window = @use_command
    @discard_window.itemlist = @item_window
    @discard_window.freeslot = @freeslot
    @discard_window.viewport = @viewport
  end

  def combine_ok
    @item_window.combining = true
    @combine = true
    @category_window.item_window = @item_window
    @options_window.deactivate.unselect
    @category_window.activate.select(0)
  end
 
  def use_ok
    @item_window.combining = false
    @category_window.item_window = @item_window
    @options_window.deactivate.unselect
    @category_window.activate.select(0)
  end
 
  alias theo_liminv_use_item use_item
  def use_item
    @use_command.close
    theo_liminv_use_item
    @freeslot.refresh
  end
 
  def on_item_ok
    k = [@item_window.item.id, :item] if @item_window.item.is_a?(RPG::Item)
    k = [@item_window.item.id, :weapon] if @item_window.item.is_a?(RPG::Weapon)
    k = [@item_window.item.id, :armor] if @item_window.item.is_a?(RPG::Armor)
    if !@item_window.combining
      @options_window.deactivate
      @use_command.set_item(item)
      @use_command.open
      @use_command.activate
      @use_command.select(0)
    else
      if @item_window.accepted_items.include?(k)
        @item_window.accepted_items.delete(k)
      else
        @item_window.accepted_items.push(k)
      end
      if @item_window.accepted_items.size == 2
        check_combinations(@item_window.accepted_items[0], @item_window.accepted_items[1])
        @item_window.refresh
      else
        @item_window.refresh
        @item_window.activate
      end
    end
  end
 
  def theo_liminv_item_ok
    @options_window.deactivate
    $game_party.last_item.object = item
    determine_item
  end
 
  def use_command_ok
    theo_liminv_item_ok
    @use_command.close
  end
 
  def on_discard_ok
    @discard_window.set_item(item)
    @discard_window.open
  end
 
  def on_usecmd_cancel
    @item_window.activate
    @use_command.close
    @use_command.deactivate
  end
 
end
Sorry about the sudden silence; college is in full swing now, and I broke my keyboard, so I have to borrow a USB one in order to type. My game was also corrupted two weeks ago (or three now?), and I'm just now getting everything caught back up. There's not much still missing from the corruption now, so I want to get back to this. I massively appreciate what you've done so far, and I won't ask for anything else from you, unless I find a bug in your code. 🙂
No worries! Let me know if there's anything else you need. I might have another look sometime soon with fresh eyes and see if I can improve any of my code.
After I finished writing that, I realized that there's one more feature I would like (Large two-handed items displaying on the player's sprite) but I think I'll wait until I've reimplemented blinking (I removed it temporarily when I upgraded to the Demo version), and finish cleaning things up to request it.

Also, I'm typing on the broken keyboard, and every time I want to type an 's', a 't', a ',', or a '?', I have to copy-paste. Very annoying...
Since I'm now ready to begin work on items again (had to get a couple other things fixed first), I was attempting to get the new item graphics feature working. While the default graphic can be chosen and functions, putting a custom graphic in the notetags does not seem to.

Now, this might be another boneheaded mistake on my part, but I have tried default RTP sprites, my own custom sprites, and custom sprites with more than 3 frames (done with: https://victorenginescripts.wordpress.com/rpg-maker-vx-ace/multi-frames/ (These sprites do not work as the default sprite either, but that's minor.)), and I wasn't able to get any of them to function. In all cases, the sprite appears as the default one, or as nothing, if the default sprite is invalid. It now works. The instructions had a typo.

Do you think you could take a look at this? I'm about to test the <small item> functionality, so I'll edit this post (or make a new one, if you've replied by then) if I find anything awry. Here's to hoping it works! 😀

Edit: Updated.
I had a couple of issues with that not working when I was testing it out, so I'll have a look when I can. Thought I'd fixed it but perhaps not!
Hmm, while testing if <small item> worked, I managed to cause a crash. I'll have to take a further look later- I have class at 4:15.

I'm glad I'm not the only one who had issues there, haha. I hope you're able to fix it without too much sweat.
Just had a quick look and it's working fine for me. Just checking that you're notetagging it like <drop_sprite: Monster2 0> (no quotation marks) and using the full file name? I'll look into Victor's script as well. Just realised I didn't include anything to set the event's direction as well, so it'll always be facing down, so I'll look into that, too.
ಠ_ಠ

Set the default character graphics in the editable region below and use
the following notetag: <dropsprite: graphic index>

It works now.

Also, I would appreciate the direction feature. I'd prefer to have control over the move route Speed and Frequency as well, but I can work around that easily enough on my end. I've also confirmed that the crash is caused by your script, though it's the collision one. I'll post the information here, for ease of access, but I can move over to the other thread if requested.

Here are some images regarding the event crashing, and the crash itself. The crash only occurs if I attempt to activate the event with an item blocking it.

Code_19.png

Code_20.png

Game_Bug_022.png
No worries, I'll have a looksie. Perhaps post that in the other thread since it's related to that one, for consistency's sake.

Here's what I've got for 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_pass_clear?(evx, evy)
  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

EDIT: Actually, I see you're using '$game_map.events[$game_variables[#]]' for the movement convenience call (moveev_up, etc.). You just use the number (so I think just $game_variables[#] should work fine. Give that a go. Also, probably not related, but you've got two conditional branches checking for if the event is facing left. I'll see what else I can spot.

Also, the script call should be westclear?(#), no spaces.

If you could let me know why you've set the event up the way you've done, that'd be good too; e.g. why you're checking for certain directions, the labels, etc.
I realized you're in New Zealand, which is 20 hours ahead of me; the day doesn't matter much, so just add 4 hours to your time to get mine. Should explain the odd post times. 🙂

The event we're looking at here is a prototype of the doors in my game. Each floor in the castle in my game is actually a single map, so instead of transferring the player, the doors simply open, and turn their thin hitbox by 90 degrees on the correct axis, allowing the player to move through the opening.

However, the map can rotate by the push of a button, so I need to check which way the map is turned. Normally I would do this differently, but the doors face the same consistent direction until the map turns, meaning that each map direction corresponds to a direction the door can face.

The event can only block the door from opening from the inside, as it is an inward-opening door, so I'm using westclear(#). Once I have this working for the default map orientation, I'll add the others (eastclear(#), northclear(#), etc.).

I want the object to be pushed not randomly, but in the direction the door is moving visually. In all cases, the item should end up behind the door. I have all of this set up, but the game crashes when checking eventkind.

I need to leave for college now, so ask me any questions you have when you get up and I'll try to answer. I'll post in the other thread when I get a chance.

Edit: I have enough time to explain the labels. The event was originally created without that functionality in mind, so when I added your script, I simply added a conditional branch. If the event sees the player, or itself for whatever reason, blocking the way, it continues on it's checking, which requires a label jump to get back to the top.
Okay, cool, thanks. Yes, it's hard being from the future! I also work during the day, so I can really only get a chance to look at this stuff before and after work.

I think I can see why it's throwing an error; something to do with Hime assigning the dropped items as a new type of event. I'll see if I can fix it.
Do you want me to link Hime's script to you? It's a short script that fixes conditional branches for Cidiomar's Full Keyboard Input script. I don't see why it would affect this, but that's code for you.

Original thread: https://forums.rpgmakerweb.com/threads/modification-of-tsukihimes-map-drops-script.91391/