Simple script for armor to add/take Variables

Hello, just as the title implies I am looking for a script where equipping armor adds whatever amount I want of a specified Variable and un-equipping  said armor would take away from said Variable. 

If possible, weapons being included would be appreciated as well but it is not a priority 🙂

Edit: Geez, still no script for this? I wouldn't imagine it would be that hard.

Original thread: https://forums.rpgmakerweb.com/threads/simple-script-for-armor-to-add-take-variables.35265/