It's quite simple to do actually, and could be done with yanfly's equip requirements plugin and variables.
Just make a variable for each actor and weapon type proficiency.
Like actor1 sword proficiency = variable 101, spear proficiency = variable 102,...
actor2 sword prof = variable 111, spear = var 112,
Then you'll need to modify variable number: weapon type + 100 + actorId*10 instead of a fixed variable number.
If you have more than 10 weapon types then use actorId * 20 instead.
An example of a damage formula to raise proficiency could be:
Code:
$gameVariables.setValue(100+ a.actorId() * 10 + Your_Weapon_Type_Id_Here, $gameVariables.value(100+ a.actorId() * 10 + Your_Weapon_Type_Id_Here) + 1)
Use the variables as equip requirements then:
Code:
<custom requirement eval>
condition = $gameVariables.value( 100 + user.actorId() * 10 + Your_Weapon_Type_Id_Here) >= your_proficiency
</custom requirement eval>
The tags are probably wrong, It's been a while since I've looked at that plugin, but the js should be right.
Note that this asssumes the user of the spell is always an actor, it will crash your game if an enemy casts that because enemy don't have actorId properties. You could easily do that by using a user.isActor() check.
If you want to get weapon type ids dynamically here you go:
$dataWeapons[user._equips[0]._itemId].wtypeId
This assumes that weapons can only go into the first slot and that a weapon is always equipped. You could bypass that with a user.hasWeapon() check.
It's going to use a lot of variables, for what could easily be done using an array and a proper plugin, but it'll work.