Custom Weapon Creation

I have an idea for a gameplay mechanic for an RPG I'm making, but I suck at javascript. Namely, I have an idea for customizing weapons.

Here's how it works: Each weapon would have 4 ability slots and 1 element slot. For example:

Firebrand
Element: Fire
Ability 1: Attack +5
Ability 2: Accuracy +5
Ability 3: -empty-
Ability 4: -empty-

At weapon shops, you will be able to take up to 3 other weapons (Components) and transfer abilities from them to the Base weapon. For example:

Poison Dagger
Element: None
Ability 1: Inflict Poison
Ability 2: Critical +2
Ability 3: -empty-
Ability 4: -empty-

Defender
Element: None
Ability 1: Vitality +1
Ability 2: Block +5
Ability 3: -empty-
Ability 4: -empty-

Once you have your Base and Components selected, you can then choose which abilities the Base Weapon will have. Then you can rename the weapon if you so desire. Here's a potential end result:

Firebrand+
Element: Fire
Ability 1: Attack +5
Ability 2: Accuracy +5
Ability 3: Inflict Poison
Ability 4: Block +5

If you want to remove abilities from a weapon, you have to do it all at once by selecting the "Reforge" option when talking to the weapon customization guy. (This also lets you change the name) And if possible, I want the ultimate weapons to be unchangeable.

Is this being overly ambitious? Would it be easier to just have a Materia-esque system where you simply equip little gems to weapons that give them abilities or elements?
Are you asking for feedback on the mechanic, or are you asking for a plugin to be written (or if one already exists)? Seems if you're not sure on how the mechanic will go, it would be better to sort that out first, and only ask for a plugin when you're certain how the system will work.
Looks like exactly what Yanfly's Attach Augment plugin and Yanfly's Item Rename plugin can do. All seems very easy to implement with that plugin. Just make the augment menu only show up when speaking to an NPC instead of having it in the main menu.
Okay, I gotcha. I wasn't sure if with that script I'd be able to apply the effects to weapons or if I had to make specific items for it. Sorry 'bout that!

Original thread: https://forums.rpgmakerweb.com/threads/custom-weapon-creation.84181/