Dual Wielding Weapon Types

Is there a way to make it so a class can have access to two different weapon types, but restrict which weapon slot each type goes to? For instance, let's say class X can equip a sword and a dagger. Instead of being able to chose what goes where, can you make it so weapon slot 1 = swords, where as weapon slot 2 = daggers?

Can this be done?
Only with scripts, and then you need to make the second weapon slot different from the first.


There are several equipment scripts available on the master script list.
This can be accomplished with scripts.


There are several approaches


One is to use a script that allows you to set up custom slots. For example, Core Equip Slots allows you to specify slots for each actor/class. You can then use Custom Equip Types to separate swords and daggers into specific equip slots (as opposed to just "Weapon")


Another approach is to find a script that will allow you to assign armor/weapon type restrictions for slots, so that instead of filtering on equip types, you are filtering on weapon/armor type.
This one isn't in the MSL, I think I found it in a random thread about a year ago.  It's pretty simple, you would just notetag your swords with <mainhand> and your daggers with <offhand>

Code:
#There was no header for this so I'll write one.  This script was written#by Zetu.  Weapons can be notetagged with <mainhand> or <offhand> to prevent#unintentional weapon combinations when Dual Wield is active.class RPG::EquipItem < RPG::BaseItem  def offhandrating    self.note.scan(/<offhand\s*exaust[:]*\s*(\d*)>/){return $1.to_f}    return 1.0  end  def mainhand    return true unless self.is_a?(RPG::Weapon)    self.note.scan(/<mainhand>/){return true}    self.note.scan(/<offhand>/){return false}    return true  end  def offhand    return true unless self.is_a?(RPG::Weapon)    self.note.scan(/<offhand>/){return true}    self.note.scan(/<mainhand>/){return false}    return true  endendclass Window_EquipItem < Window_ItemList  alias :zsnipi :include?  def include?(item)    return false unless zsnipi item    return true if item.nil?    return false if !item.mainhand and @slot_id == 0    return false if !item.offhand  and @slot_id == 1    return true  endendclass Game_Actor < Game_Battler  def mainhand_plus(mainhand_id)    sum = 0    for i in 0...equips.size      next if (equip=equips[i]).nil?      rating = (i==1 and equip.is_a? RPG::Weapon) ? equip.offhandrating : 1.0      sum += (equip.params[mainhand_id]*rating).to_i    end    return sum  endendclass NilClass  def id    0  endend
Thank you both. 

Original thread: https://forums.rpgmakerweb.com/threads/dual-wielding-weapon-types.35704/