How to change weapon/armour stats in-game

So I'm trying to add a feature in my game where you can change your weapon/armour to have increased defence or more attack, but I can't figure out how to do it, if anyone could tell me if there's a way in the event editor or if there's a data pack that would be greatly appreciated.
the entire database is static by default.

there are two ways around this:
1) making different weapons and pretend to the player they improved when switching inventory from one weapon to another

2) using a plugin to reprogram the engine. This requires you to either learn programming yourself, or submit to the limits of one of the existing plugins which usually work like "socketing", which means adding an item to another.
For an example of a plugin like Andar was describing, check out Yanfly's Attachable Augments.
So I'm trying to add a feature in my game where you can change your weapon/armour to have increased defence or more attack, but I can't figure out how to do it, if anyone could tell me if there's a way in the event editor or if there's a data pack that would be greatly appreciated.

What I did was write a Parallel Common Event that checks what the player has equipped and then adds or subtracts stats based on that. Then I added an Else Branch to subtract the stats if the player doesn't have said item equipped. I also needed to make a switch that turns ON or OFF so the process wouldn't repeat endlessly.


For example:

If Actor1 has equipped Sword1
If Sword1 Equipped is Off
Control Switches: Sword1 Equipped = ON
Change Parameter : Actor1, Attack + 1
End
Else
If Sword1 Equipped is ON
Change Parameter : Actor1, Attack - 1
Control Switches: Sword1 Equipped = OFF
End
End

It works. Only bad thing is the stat comparisons won't show up during the equip screen. So players will have to look at their stats after they exit the menu to see what changed.
If you happen to be using Yanfly's Equip Core, you can tie a variable to each piece of equipment and increase or decrease their stats that way.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-change-weapon-armour-stats-in-game.146898/