Weapon Upgrade with Socket Effects

I also added an option to change the vertical line x position.
thanks for the update on that! im currently trying to figure how how to tie the Socket view scene into its own menu section in the Items category as a sub section to all that scene and view all socket gems acquired
One test I didn't do.
line 613 add [0] at the end of the line.
old = self.equips[0].sockets[slot][0]
heres a new issue that came up when buying an item
Screenshot 2024-01-29 224252.png
heres a new issue that came up when buying an item
View attachment 293507
I edited my last post. I basically added in those modules for RPG::Item
Also added a fix for weapons not configured in the script
I edited my last post. I basically added in those modules for RPG::Item
Also added a fix for weapons not configured in the script
cool! lastly, how would i go about adding a sub menu option for the view socket items as if its an inventory category alongside items, armor, ect. i get i have to call the scene but not sure how to add that section in the menu
how to add that section in the menu
what scripts are you using for the menus?
If you have yanfly item menu script then it's fairly easy to do.

If it's the default it will seem strange to me to have it in the category window, but this might be what you want

code added to new script below...
what scripts are you using for the menus?
If you have yanfly item menu script then it's fairly easy to do.

If it's the default it will seem strange to me to have it in the category window, but this might be what you want
Ruby:
module Vocab

  # Socket menu text
  Socket_Data = "Socket Info"
 
end

class Window_ItemCategory < Window_HorzCommand
  #--------------------------------------------------------------------------
  # * Alias method: make_command_list
  #--------------------------------------------------------------------------
  alias :make_command_list_r2_socket_system :make_command_list
  def make_command_list
    make_command_list_r2_socket_system
    add_command(Vocab::Socket_Data, :socket_data, $game_party.socket_items != [])
  end
end

class Scene_Item < Scene_ItemBase
  #--------------------------------------------------------------------------
  # * Alias method: create_category_window
  #--------------------------------------------------------------------------
  alias :socket_system_create_category_window :create_category_window
  #--------------------------------------------------------------------------
  # * Create Category Window
  #--------------------------------------------------------------------------
  def create_category_window
    socket_system_create_category_window
    @category_window.set_handler(:socket_data,   method(:socket_info))
  end
  #--------------------------------------------------------------------------
  # * socket_info
  #--------------------------------------------------------------------------
  def socket_info
    SceneManager.call(Scene_Socket_Data)
  end
end
well i cant get the pieces to show up in the regular inventory so this was the next best way lol. i guess from playing so many rpgs anything i collect i like to see it in my items ya know? But for my menu im using Blackmorning Advance animated menu
show up in the regular inventory
Didn't realize that was the goal.
You could do it like this.

code added to new script below
Didn't realize that was the goal.
You could do it like this.
Ruby:
class Window_ItemList < Window_Selectable
  alias :r2_key_item_socket_list  :make_item_list
  #--------------------------------------------------------------------------
  # * Create Item List
  #--------------------------------------------------------------------------
  def make_item_list
    r2_key_item_socket_list
    $game_party.socket_items.each do |si|
      @data.push(si) if @category == :key_item
    end
    @data.compact!
    @data.push(nil) if include?(nil)
  end
  #--------------------------------------------------------------------------
  # * Draw Item
  #--------------------------------------------------------------------------
  def draw_item(index)
    item = @data[index]
    if item
      rect = item_rect(index)
      rect.width -= 4
      draw_item_name(item, rect.x, rect.y, enable?(item))
      draw_item_number(rect, item) unless item.is_a?(RPG::Armor)
    end
  end
end
sorry about that, i didnt explain well. everything seems to work fine now, i did come across this issue when attempting to sell the item though, thought it was the same as the other issue but when i tried to fix it nothing happened.
Screenshot 2024-01-31 175333.png
i did come across this issue when attempting to sell the item though,
I'm not getting that. buying and selling is working fine.

Updated scripts... Found a bug in the smithing scene where I added the socket window.


Here is the two options for viewing the socket items. Change the setting in the module to have it do the one you want.
Moved to script post page
I'm not getting that. buying and selling is working fine.

im not sure why im encountering the issue then
Are any of your script you are using paid for or custom commissioned?
If not then you can send me in a PM your scripts file and I can test further. Or you can try removing scripts one at a time and see if it works properly after that.
Also you are starting a new game each time you test, correct?
i did come across this issue when attempting to sell the item though
I was not understanding properly. I did not realize you were buying and selling the socket items.
Yes I get the error when selling them.
I'll work on a fix.

Try this. I added a check for items with sockets to recover the socket item if they are sold and remove the error code which wasn't actually required.
Moved to script post page

Original thread: https://forums.rpgmakerweb.com/threads/weapon-upgrade-with-socket-effects.165098/