How to create 'spiked shield'?

Firstly is it possible to create an item which hurts the attacker? Or to set it so only when the holder of the shield Guards, this state of damaging the attacker is in effect?

Secondly how do I create a state which damages physical attackers, like a spiked shield/shell state for bosses?

The problem seems to be that I can only choose one target - but I want the defender to have the state on themselves and the specific attacker to take the damage.

Thanks in advance 🙂
About the item i don't test. But for the shield... The only thing i can did was:

First: Create a new state, for example named Spikes

Second:Set in Ex-Parameter: HP Regeneration -X% (-1%, -5%, -10%...) but careful! set a negative number, be sure is under the 0%!!

Third: Set in elimination conditions or well for damage (For example, 50%) or well for turns (for example you can set that the state will be eliminate inter 2 and 5 turns on the battle)

Fourth: Go to Armors. Create a "Spiky Shield" and set Attack State: Spikes + X% (10%, 50%, 100%...)

The bad thing is the state can only be added for your enemy when you attack him, not when he attacks him. I don't know how to do that. Later i'm going to search for that.
About the item yes, is very simple. Just create an item, and in range (i don't know how is it in English, i use it in Spanish) when you see "One ally" scroll and set "One Enemy" (or 2,3, all...) Then go at the right, and in Damage set "HP Damage". Then, in the formula, put, if you want to create a non-variable damage item, what you want (300, 400, 500...) If you want you can make that to give poison or any state, just setting it in the Effects apart. 

For the shield... The only thing i can did was:

First: Create a new state, for example named Spikes

Second:Set in Ex-Parameter: HP Regeneration -X% (-1%, -5%, -10%...) but careful! set a negative number, be sure is under the 0%!!

Third: Set in elimination conditions or well for damage (For example, 50%) or well for turns (for example you can set that the state will be eliminate inter 2 and 5 turns on the battle)

Fourth: Go to Armors. Create a "Spiky Shield" and set Attack State: Spikes + X% (10%, 50%, 100%...)

The bad thing is the state can only be added for your enemy when you attack him
Unless there is a way to check in the damage formula if the target has a specific item equipped, this would require a plug-in of some sort

Original thread: https://forums.rpgmakerweb.com/threads/how-to-create-spiked-shield.52438/