Making a weapon that gives the owner a state/status effect.

What I want to make is a energy shield weapon that always gives out a physical shield and a magic shield to the User of the weapon. Not the target of the attack. How must I do this?
You mean, change the normal attack?
I think he means passive states. If that is the case just create a common event parallel process that checks if the said weapon is equipped. If it is, add those states to the player, if it is not, remove them. You can use states that do not wear off, as long as you do not create skills capable of removing them you should be fine.
If you want it done smoothly you can use Yanfly's Passive State script. This will allow you to apply states to weapons and armor and as long as that equipment is equipped the actor will be inflicted with the state.

Original thread: https://forums.rpgmakerweb.com/threads/making-a-weapon-that-gives-the-owner-a-state-status-effect.108777/