Class Weapon Specialitzations

Hey, I'm new to RPG Maker, so I have a question.

I want to make it so a specific class has a bonus when using certain weapons. For example, a rogue can equip swords and daggers, but I don't want a rogue to always equip the sword since a sword will generally have higher attack. Therefore, I want to give the rogue class a bonus when using daggers.  How would I go about doing this?

Original thread: https://forums.rpgmakerweb.com/threads/class-weapon-specialitzations.15763/