Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Equipment won't update with Multi-Slot Script

I have implemented DerVVulfman's Multi-Slot Equipment script into my game and everything works fine with that. When I equip items in those extra slots everything shows up under the Status window as being equipped. On my main menu screen I also have the players equipment displayed but for some reason it doesn't show the other slots. It is the exact same definition as the one in Window_Status except for I changed one little positioning variable. Here is my Equipment window:
Code:
#==============================================================================
# ** Window_Equipments
#------------------------------------------------------------------------------
#  This window displays the players current equipment.
#==============================================================================

class Window_Equipments < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #     x : window X coordinate
  #     y : window Y coordinate
  #--------------------------------------------------------------------------
  def initialize(x, y)
    super(x, y, 384, 200)
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    @actor = $game_actors[1]
    draw_equipments(0, 0)
  end
end
  #--------------------------------------------------------------------------
  # * Draw Equipment
  #     x : Draw spot X coordinate
  #     y : Draw spot Y coordinate
  #--------------------------------------------------------------------------
  def draw_equipments(x, y)
    self.contents.font.color = system_color
    self.contents.font.size = 20
    self.contents.draw_text(x, y, 120, 24, 'Equipment')
    for i in 0..4
      draw_item_name(@actor.equips[i], x + 16, y + 24 * (i + 1))
    end
  end

I call it as a window in Scene_Menu. It only displays the default equipment slots and not the extra ones like in Window_Status. I'm so confused. Thanks in advance for any help.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top