YEP Base Parameters - Weapon/Actor-based Parameter Change

Hello,

I am trying for a certain effect and I think http://yanfly.moe/2016/03/25/yep-86-base-parameter-control/ is the best way to achieve it. I'm not quite sure how to go about it, however.

Basically, I would like different actors to have different abilities with weapon types. For the sake of the example:

Actor 4 should have 80% capability when using weapon type 7, and 65% capability using weapon type 10. So Actor 4's "attack" should be multiplied by 0.8 and 0.65 respectively whenever they have those two weapon types equipped. There are about ten weapon types, and each of my actors has an individual capability with each of them.

What is the best way to code this? I was hoping some code in actor 4's notebox along the lines of:

if $gameActors.actor(4).isWtypeEquipped(7)<a.atk Rate: 80%>;

if $gameActors.actor(4).isWtypeEquipped(10)<atk Rate: 65%>

Obviously this is wrong, but I have no idea how to accomplish what I want. Any pointers?

Original thread: https://forums.rpgmakerweb.com/threads/yep-base-parameters-weapon-actor-based-parameter-change.106371/