Hello! So I've done a bit of looking around and have found similar concepts to what I'm trying to find, and was curious if anybody knew a script that does what I'm looking for or knows how to make one. In short it's kind of like DND Proficiency.
Basically, lets say ALL classes can equip ALL weapons. Knights can equip swords, so can a Thief or Mage and Ranger. Mages can equip staves, well so can Knights, Thieves and Rangers and so on and so on. However, each class gets a +1-3 bonus for equipping certain weapons for certain properties.
Like let's say there's a Long Sword that adds +3 attack. The Long Sword in the description is labelled as "Melee, Martial.", and the Knight class has a +1 Bonus for Melee weapons, +2 for Heavy, Two-Handed and Martial weapons. If the Knight equipped the Short Sword they'd get +6 attack when equipping it due to having the melee and martial weapon bonus. Though, if a mage were to equip it, they'd only get +3 attack since Mages aren't proficient with Melee or Martial weapons.
I hope I make since and I'm not just making a wall of text lol, thanks in advance!
If you want that exact mechanic, then you'll likely have to use scripts to rewrite most of the battlesystem.
If you only want the concept done in the regular battlesystem, this can be handled although in a different way.
The regular battlesystem is build on a fixed HIT%, and the available skills are more variable.
You can easily make a system where everyone can use every weapon but gets different skills from the weapons (mage has only basic attack with a sword, knight has an improved basic attack and many other sword skills and so on)
So which way you want to go?
The tutorial I once wrote for this is long lost to forum updates (it's still somewhere but impossible to find), but I can tell you the basics.
The key is to use multiple skill groups with the same name, hidden by the fact that you have them use different names through development and rename them just before distribution to hide their existance from the player.
Basically you make skill types named "sword - mage", "sword - thief", "sword - knight", "dagger - mage", "dagger - thief", "staff - mage" and so on. yes, that is a lot of skill groups.
Then you fill those groups with the appropiate skills, sometimes one or two or none, other times many.
Every class gets the skill types for it assigned, and you develop the game that way.
Then after the work is done and just before distribution, you go and rename all skill types to contain only the weapon part - "sword - mage", "sword - thief" and "sword - knight" would become only "sword".
After that the player would no longer be able to detect that the different classes use different skills (especially if all skills are named similar as well).
However it is very important to only rename that for distribution - if you lose the different names it would be a hell of a work to correctly edit the skills with dozens of same-named skill types.
If you want to make a demo before finishing, make a copy of the project and edit the names in the copy for demo-creation instead of the main project.
There are a few more tricks possible with this, but I don't have the time to write a long tutorial now
What Andar described is one avenue of implementation. Another is to classify each weapon type as a type of "element". So, you might have... "fire, ice, earth, wind, dark, water, light" as traditional elements stacking with the weapon elements of "sword, axe, staff, whip, bow, gun, spear, wand, hammer"... etc. You could even drop the classic difference between physical and magic attacks and go physical for close range skills, and magic for long range skills.
The next step is to give each class or character different weapon "elemental" modifiers according to how proficient you think they should be. Next, assign a weapon element to every skill. For some skills, you might want to require the weapon. For others you wont need to cause it will inherently modify the damage of the skill. You can also assign a base weapon element modifier to each weapon to balance things out better. In other words, you might have a barbarian that has 80% proficiency with axes, but if an axe is actually equipped they will gain 20% more Axe proficiency. In the end, this gives a weapon based dynamic system of skills and classes without throttling the skills down to a small list assigned to each.