Changing the basic attack command.

In the project I am working on, I want there to be a different basic attack skill based on the weapon the actor has equipped. For example, if the actor has no weapon, then the basic attack command uses the Unarmed Attack Skill (#135 in my skills list), if they have a knife or a club, then it uses the Melee Attack Skill (#136), and if they use a bow or slingshot their basic attack is replaced with Ranged Attack Skill (#137) The reason for this is I have a tabletop rpg style skill system for the main actor based on variables. I want the actor’s Marksman to be used for ranged attacks and Fighting for Melee Attacks.

My googlefu showed that there was a plugin for it in MV, but is there something similar for MZ? I saw something saying it can be done in MZ (Which is what first gave me the idea to do it that way), but can’t for the life of me find any info on how to go about it.

EDIT: Nevermind. Just found another thread asking a slightly different question that provided the answer. Don’t know how to delete this thread, so I guess I have to leave it.
You can find that option inside the traits tab of weapons, armors and states.
@Tsukari You got the link to the thread? I wish they had a similar plugin to MZ.

Edit: Never mind. Also found the answer, the built-in Attack Skill feature.

Original thread: https://forums.rpgmakerweb.com/threads/changing-the-basic-attack-command.126677/