Weapon/armor + Classes Showing

I need some help to know if there is a way to show what type of armor and weapons can be used by specific classes while in game. For example: Sage can wear magic armor only, but solder can wear heavy armor, light armor, and magic armor. Thanks for the help.
a way to show what type of armor and weapons can be used by specific classes
where do you need to show this?
By default the shop scene gives the indicator that only specific characters can use specific armours and weapons which are set on the class. So I don't know what else you want.
the shop scene
It is only for shops. If the player gets something from a chest or something then they don't know who can use it. I was thinking about maybe having it on the classes or something of that sort.
It is only for shops. If the player gets something from a chest or something then they don't know who can use it. I was thinking about maybe having it on the classes or something of that sort.
Yes, I think you repeated what I said.
But to clarify, why does your shop not show who can use what armor?
Yes, I think you repeated what I said.
But to clarify, why does your shop not show who can use what armor?
It does, but that is only for the shop. That doesn't count the armor and weapons that the player randomly gets from drops, finds, or crafting.
So there MUST be a language barrier here.

I'll ask one more time.

WHERE do you need to see this information? And no you did not answer the question. You gave an example of how you could get items and said the information doesn't show.
Because if you want the information to be shown when you collect a weapon or armour from a chest, then put it in the text box. If you want the player to see it after they collected the item, WHERE do you want the player to see this?
So there MUST be a language barrier here.

I'll ask one more time.

WHERE do you need to see this information? And no you did not answer the question. You gave an example of how you could get items and said the information doesn't show.
Because if you want the information to be shown when you collect a weapon or armor from a chest, then put it in the text box. If you want the player to see it after they collected the item, WHERE do you want the player to see this?
My bad was confused by the wording. Sorry about that. I would like the info to show in either the class section of the menu or in the items sections of the menu when the player goes to look at weapons/armor they have to see what classes can use what. Hope this is a bit better.
Sorry if I might still be misunderstanding this.
When you go to the equip menu, it will only show equipment that character can use. If you really want, you can put the info in the armor/weapon description. Eg Sword - used by fighters
either the class section of the menu or in the items sections
I see those as being two different things.
The class would work by showing what the class can equip
The item would work by showing who can equip the item when selected/highlighted?
Are you wanting both?

I can also see the item section done with a already made script.
## Effects Box Script v1.0
## Created by Neon Black

and the addon I wrote
Effect Box Feature Hide.

For the class, if I remember correctly you have a class menu with subclass.
So when highlighting the class you would want to see
Soldier - can equip
Swords
Heavy Armour
Heavy Helmet
etc..

or something else?

I did have a demo from you before correct? Do you have an updated one I can work from? The scripts file would be fine.
scripts file
The class one would work better.
Try this. Let me know if you want some changes.
Put below yanfly class system
Ruby:
#==============================================================================
#
# ▼ Yanfly Engine Ace - Class System v1.10 - addon
# -- Last Updated: 2021.02.19
# -- Requires: Yanfly Class System
# -- addon created by: Roninator2
#==============================================================================
# ▼ Updates
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# 2021.02.17 - Started Script
# 2021.02.19 - Finished Script
#==============================================================================
# ▼ Introduction
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# for showing class equip types in the class scene
#==============================================================================

class Window_ClassList < Window_Selectable
  alias r2_equip_update_help    update_help
  def update_help
    r2_equip_update_help
    draw_equip_class
  end
  def draw_equip_class
    class_equip = []
    actor_class = @data[index]
    actor_class.features.each do |set|
      next if set.data_id == 0
      case set.code
      when 51 # weapon
        class_equip.push($data_system.weapon_types[set.data_id])
      when 52 # armour
        class_equip.push($data_system.armor_types[set.data_id])
      else
        next
      end
    end
    change_color(normal_color)
    contents.clear_rect(110, 0, 150, 200)
    if class_equip != []
      draw_text(110, 0, 150, 24, "Can Equip", 1)
      y = 24
      for equip_id in class_equip
        draw_text(110, y, 150, 24, equip_id, 1)
        y += 24
      end
    end
  end
end
Try this. Let me know if you want some changes.
Put below yanfly class system
Ruby:
#==============================================================================
#
# ▼ Yanfly Engine Ace - Class System v1.10 - addon
# -- Last Updated: 2021.02.19
# -- Requires: Yanfly Class System
# -- addon created by: Roninator2
#==============================================================================
# ▼ Updates
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# 2021.02.17 - Started Script
# 2021.02.19 - Finished Script
#==============================================================================
# ▼ Introduction
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# for showing class equip types in the class scene
#==============================================================================

class Window_ClassList < Window_Selectable
  alias r2_equip_update_help    update_help
  def update_help
    r2_equip_update_help
    draw_equip_class
  end
  def draw_equip_class
    class_equip = []
    actor_class = @data[index]
    actor_class.features.each do |set|
      next if set.data_id == 0
      case set.code
      when 51 # weapon
        class_equip.push($data_system.weapon_types[set.data_id])
      when 52 # armour
        class_equip.push($data_system.armor_types[set.data_id])
      else
        next
      end
    end
    change_color(normal_color)
    contents.clear_rect(110, 0, 150, 200)
    if class_equip != []
      draw_text(110, 0, 150, 24, "Can Equip", 1)
      y = 24
      for equip_id in class_equip
        draw_text(110, y, 150, 24, equip_id, 1)
        y += 24
      end
    end
  end
end
Works with all the classes except for gunner. It doesn't show the can equip part or the gun part, and when I go up from it then it takes away the can equip and weapons from some of the other classes above gunner.
1613793225841.png
It doesn't show the can equip part or the gun part,
Thats because you have more than 8 classes available
I've fixed that, but this will only work for 16 classes
Ruby:
#==============================================================================
#
# ▼ Yanfly Engine Ace - Class System v1.10 - addon
# -- Last Updated: 2021.02.19
# -- Requires: Yanfly Class System
# -- addon created by: Roninator2
#==============================================================================
# ▼ Updates
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# 2021.02.17 - Started Script
# 2021.02.19 - Finished Script
#==============================================================================
# ▼ Introduction
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# for showing class equip types in the class scene
#==============================================================================
class Window_ClassList < Window_Selectable
  alias r2_equip_update_help    update_help
  def update_help
    r2_equip_update_help
    draw_equip_class
  end
  #--------------------------------------------------------------------------
  # * Move Cursor Up
  #--------------------------------------------------------------------------
  def cursor_up(wrap = false)
    return if index == 0
    if index >= col_max || (wrap && col_max == 1)
      select((index - col_max + item_max) % item_max)
    end
  end
  #--------------------------------------------------------------------------
  # * Move Cursor Down
  #--------------------------------------------------------------------------
  def cursor_down(wrap = false)
    return if index == item_max - 1
    if index == 7
      cursor_pagedown_list
      @index = 8
      cursor_rect.set(item_rect(@index))
      select(8)
    else
    if index < item_max - col_max || (wrap && col_max == 1)
      select((index + col_max) % item_max)
    end
    end
  end
  #--------------------------------------------------------------------------
  # * Move Cursor One Page Down
  #--------------------------------------------------------------------------
  def cursor_pagedown
  end
  #--------------------------------------------------------------------------
  # * Move Cursor One Page Up
  #--------------------------------------------------------------------------
  def cursor_pageup
  end
  #--------------------------------------------------------------------------
  # * Move Cursor One Page Down
  #--------------------------------------------------------------------------
  def cursor_pagedown_list
    if top_row + page_row_max < row_max
      self.top_row += page_row_max
      select([@index + page_item_max, item_max - 1].min)
    end
  end
  #--------------------------------------------------------------------------
  # * Move Cursor One Page Up
  #--------------------------------------------------------------------------
  def cursor_pageup_list
    if top_row > 0
      self.top_row -= page_row_max
      select([@index - page_item_max, 0].max)
    end
  end
  #--------------------------------------------------------------------------
  # * Get Number of Rows Displayable on 1 Page
  #--------------------------------------------------------------------------
  def page_row_max
    return 8
  end
  #--------------------------------------------------------------------------
  # * Get Row Count
  #--------------------------------------------------------------------------
  def row_max
    return 16
  end
  #--------------------------------------------------------------------------
  # * Draw Equipment For The Class
  #--------------------------------------------------------------------------
  def draw_equip_class
    class_equip = []
    actor_class = @data[index]
    actor_class.features.each do |set|
      next if set.data_id == 0
      case set.code
      when 51 # weapon
        class_equip.push($data_system.weapon_types[set.data_id])
      when 52 # armour
        class_equip.push($data_system.armor_types[set.data_id])
      else
        next
      end
    end
    change_color(normal_color)
    contents.clear_rect(110, 0, 150, 400)
    if class_equip != []
      y = 0
      case @index
      when 0..6
      when 7
        spot = @index
        cursor_pageup_list
        @index = spot
        cursor_rect.set(item_rect(@index))
      when 8..16
        y = 8 * 24
      end
      draw_text(110, y, 150, 24, "Can Equip", 1)
      y += 24
      for equip_id in class_equip
        draw_text(110, y, 150, 24, equip_id, 1)
        y += 24
      end
    end
  end
end
Thats because you have more than 8 classes available
I've fixed that, but this will only work for 16 classes
Ruby:
#==============================================================================
#
# ▼ Yanfly Engine Ace - Class System v1.10 - addon
# -- Last Updated: 2021.02.19
# -- Requires: Yanfly Class System
# -- addon created by: Roninator2
#==============================================================================
# ▼ Updates
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# 2021.02.17 - Started Script
# 2021.02.19 - Finished Script
#==============================================================================
# ▼ Introduction
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# for showing class equip types in the class scene
#==============================================================================
class Window_ClassList < Window_Selectable
  alias r2_equip_update_help    update_help
  def update_help
    r2_equip_update_help
    draw_equip_class
  end
  #--------------------------------------------------------------------------
  # * Move Cursor Up
  #--------------------------------------------------------------------------
  def cursor_up(wrap = false)
    return if index == 0
    if index >= col_max || (wrap && col_max == 1)
      select((index - col_max + item_max) % item_max)
    end
  end
  #--------------------------------------------------------------------------
  # * Move Cursor Down
  #--------------------------------------------------------------------------
  def cursor_down(wrap = false)
    return if index == item_max - 1
    if index == 7
      cursor_pagedown_list
      @index = 8
      cursor_rect.set(item_rect(@index))
    else
    if index < item_max - col_max || (wrap && col_max == 1)
      select((index + col_max) % item_max)
    end
    end
  end
  #--------------------------------------------------------------------------
  # * Move Cursor One Page Down
  #--------------------------------------------------------------------------
  def cursor_pagedown
  end
  #--------------------------------------------------------------------------
  # * Move Cursor One Page Up
  #--------------------------------------------------------------------------
  def cursor_pageup
  end
  #--------------------------------------------------------------------------
  # * Move Cursor One Page Down
  #--------------------------------------------------------------------------
  def cursor_pagedown_list
    if top_row + page_row_max < row_max
      self.top_row += page_row_max
      select([@index + page_item_max, item_max - 1].min)
    end
  end
  #--------------------------------------------------------------------------
  # * Move Cursor One Page Up
  #--------------------------------------------------------------------------
  def cursor_pageup_list
    if top_row > 0
      self.top_row -= page_row_max
      select([@index - page_item_max, 0].max)
    end
  end
  #--------------------------------------------------------------------------
  # * Get Number of Rows Displayable on 1 Page
  #--------------------------------------------------------------------------
  def page_row_max
    return 8
  end
  #--------------------------------------------------------------------------
  # * Get Row Count
  #--------------------------------------------------------------------------
  def row_max
    return 16
  end
  #--------------------------------------------------------------------------
  # * Draw Equipment For The Class
  #--------------------------------------------------------------------------
  def draw_equip_class
    class_equip = []
    actor_class = @data[index]
    actor_class.features.each do |set|
      next if set.data_id == 0
      case set.code
      when 51 # weapon
        class_equip.push($data_system.weapon_types[set.data_id])
      when 52 # armour
        class_equip.push($data_system.armor_types[set.data_id])
      else
        next
      end
    end
    change_color(normal_color)
    contents.clear_rect(110, 0, 150, 400)
    if class_equip != []
      y = 0
      case @index
      when 0..6
      when 7
        spot = @index
        cursor_pageup_list
        @index = spot
        cursor_rect.set(item_rect(@index))
      when 8..16
        y = 8 * 24
      end
      draw_text(110, y, 150, 24, "Can Equip", 1)
      y += 24
      for equip_id in class_equip
        draw_text(110, y, 150, 24, equip_id, 1)
        y += 24
      end
    end
  end
end
It works, but there is a small problem now.
1613848233932.png

When I go down to witch for the first time it has gun as something they can equip.
When I go down to witch for the first time it has gun as something they can equip.
Added one line. Script updated.
Added one line. Script updated.
It works wonders, thank you soo much. You are amazing and are definitely getting top priority in the credits of my game.
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/weapon-armor-classes-showing.133490/