If Target has "Spikes" state, then anyone attacking Target with physical damage will a % of receive a % of the damage themselves.
How can we create such a state?
Is there a plugin for it?
Thanks. 🙂
I have a Fire Shield skill that Damages anyone attacking you. I know I used a Yanfly plug-in to do it but don't remember exactly what I did. It wasn't based on the damage dealt but might get you close. I'll check how I set that up when I get a chance.
Awesome, thanks so much guys!
It looks like I used Yanfly's Buffs and States Core along with this in the Note box of a Fire Shield State to achieve the effect.
<Custom Respond Effect>
attacker.gainHp(-1 * (defender.level * attacker.elementRate(4))); // 4 is the element of Fire
if (attacker.hp <= 0) {
attacker.addState(1);
attacker.performCollapse();
}
</Custom Respond Effect>
What this does is deal 1HP per caster level times the fire elemental rate of the attacker when they attack a player with this state active. The numbers are pretty low in my game. You're probably better off with the Thorn Mail thing but just in case you still needed this direction or could use it for something else, I still wanted to follow up. Good luck!