Disable Slots [RMXP]

Unsure if this is the right place to ask but I am looking for a script/workaround that disables equiping of a certain equip slot but still shows the information.

So the Weapon for example will be equipped by annother menu/scene - but will be shown in the regular equip menu, but you can not interact with the slot and can't change the equipment nor unequip it.

Weapon Equip Menu: Weapon Slot (Equipable/Changeable)
Regular Equip Menu Weapon Slot (Greyed out), Armor Slots (Equipable/Changeable)
Sounds like cursed/locked equipment. This script has that feature in it alongside other things.

Sounds like cursed/locked equipment. This script has that feature in it alongside other things.


Yes and no but mostly no. I don't want the option to be locked in general.

I basically Made a Copy of Scene_Equip and Called it Scene_Equip_W for Weapon.

I only need the Scene Equip to have it Locked and only showing the equiped Weapon while Scene_Equip_W only serves for Weapon Equipment.

I tried working with Scene Base instead of Scene Selectable but unfortunatelly the Multi-Slot Script does not work with that Combo and only throws Out Errors.

To be precise the Scene_Equip_W only draws the Weapon Slot, while Scene_Equip draws all available Slots. That's where I would Like to have the Weapon Slot greyed out, similar to the "Load Game" Feature when no file is available.
Saw your same post on Reddit and realized who you are. It's been a while (8 years?) since the Chaos Project days, man. I see you crawled your way back to the RM land again 🙂

Assuming you're still using the default equip scenes and windows, it's going to take some edits.
Ruby:
class Window_Base < Window
  def draw_item_name(item, x, y, color = normal_color)
    if item == nil
      return
    end
    bitmap = RPG::Cache.icon(item.icon_name)
    self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 24, 24))
    self.contents.font.color = color
    self.contents.draw_text(x + 28, y, 212, 32, item.name)
  end
end

class Window_EquipRight < Window_Selectable
  def refresh
    self.contents.clear
    @data = []
    @data.push($data_weapons[@actor.weapon_id])
    @data.push($data_armors[@actor.armor1_id])
    @data.push($data_armors[@actor.armor2_id])
    @data.push($data_armors[@actor.armor3_id])
    @data.push($data_armors[@actor.armor4_id])
    @item_max = @data.size
    self.contents.font.color = disabled_color
    self.contents.draw_text(4, 32 * 0, 92, 32, $data_system.words.weapon)
    self.contents.font.color = system_color
    self.contents.draw_text(4, 32 * 1, 92, 32, $data_system.words.armor1)
    self.contents.draw_text(4, 32 * 2, 92, 32, $data_system.words.armor2)
    self.contents.draw_text(4, 32 * 3, 92, 32, $data_system.words.armor3)
    self.contents.draw_text(5, 32 * 4, 92, 32, $data_system.words.armor4)
    draw_item_name(@data[0], 92, 32 * 0, disabled_color)
    draw_item_name(@data[1], 92, 32 * 1)
    draw_item_name(@data[2], 92, 32 * 2)
    draw_item_name(@data[3], 92, 32 * 3)
    draw_item_name(@data[4], 92, 32 * 4)
  end
end

class Scene_Equip
  alias update_right_for_armors update_right
  def update_right
    if Input.trigger?(Input::C)
      if @right_window.index == 0
        $game_system.se_play($data_system.buzzer_se)
        return
      end
    end
    update_right_for_armors
  end
end
Saw your same post on Reddit and realized who you are. It's been a while (8 years?) since the Chaos Project days, man. I see you crawled your way back to the RM land again 🙂

Assuming you're still using the default equip scenes and windows, it's going to take some edits.
Ruby:
class Window_Base < Window
  def draw_item_name(item, x, y, color = normal_color)
    if item == nil
      return
    end
    bitmap = RPG::Cache.icon(item.icon_name)
    self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 24, 24))
    self.contents.font.color = color
    self.contents.draw_text(x + 28, y, 212, 32, item.name)
  end
end

class Window_EquipRight < Window_Selectable
  def refresh
    self.contents.clear
    @data = []
    @data.push($data_weapons[@actor.weapon_id])
    @data.push($data_armors[@actor.armor1_id])
    @data.push($data_armors[@actor.armor2_id])
    @data.push($data_armors[@actor.armor3_id])
    @data.push($data_armors[@actor.armor4_id])
    @item_max = @data.size
    self.contents.font.color = disabled_color
    self.contents.draw_text(4, 32 * 0, 92, 32, $data_system.words.weapon)
    self.contents.font.color = system_color
    self.contents.draw_text(4, 32 * 1, 92, 32, $data_system.words.armor1)
    self.contents.draw_text(4, 32 * 2, 92, 32, $data_system.words.armor2)
    self.contents.draw_text(4, 32 * 3, 92, 32, $data_system.words.armor3)
    self.contents.draw_text(5, 32 * 4, 92, 32, $data_system.words.armor4)
    draw_item_name(@data[0], 92, 32 * 0, disabled_color)
    draw_item_name(@data[1], 92, 32 * 1)
    draw_item_name(@data[2], 92, 32 * 2)
    draw_item_name(@data[3], 92, 32 * 3)
    draw_item_name(@data[4], 92, 32 * 4)
  end
end

class Scene_Equip
  alias update_right_for_armors update_right
  def update_right
    if Input.trigger?(Input::C)
      if @right_window.index == 0
        $game_system.se_play($data_system.buzzer_se)
        return
      end
    end
    update_right_for_armors
  end
end

More like 10+ years if I recall right...

But this time I am doing it and not playing around. Most of the time I get along just fine with ruby but sometimes my brain just switches to nul.

The code you have provided works 95% - for some reason the disabled color does not get shown. I guess I need to tweak around a little more and probably hard-code the color into the scene/window since It is only needed at that specific point. (My code in general is a mess as per usual so it also may be a fault somewhere between your code and my main code where I, for some reason, overwrite the colors etc. But I have only taken a small look before work and checked how it worked and as I said it basically works but the color won't. So thank you for that!

The idea itself is interessting since you "force" the player to visit a specific location on a map to equip the weapon but thinking about it more it could turn into a chore more than a adventure. I may use this for now but in the future it could change - so maybe someone else can use the principle and split it up into even more Weapon/Armor-Specific Vendors/Equip-Places.

This should also be the last mechanic I need to implement so I can start with the game in general. Mini-Games aside I am very much set with menus, scripts, logic and common events - the idea is set in stone too, so all I need is to sit down and realize the idea based on the baseline I've set up until today.

Original thread: https://forums.rpgmakerweb.com/threads/disable-slots-rmxp.168221/