Stat Steal State

Hello all,


I'm currently working on a tank style character, and I wanted one of the skills to put a debuff on enemies that lowers their attack/magic attack and buffs my character by the amount that the enemy has lost.


eg. Enemy has 100 attack and 50 magic, my character debuffs them (10%) -> Enemy has 90 attack 45 magic, my character gains 10 attack and 5 magic.


I would like this to be a state ideally so that when it is removed the stat changes are also removed.


I have Yanfly's Buffs & States Core, which can hopefully do this, but I don't have much java/scripting knowledge.


If anyone can offer help that would be great!


HatJump
a.addState(n) ; damage formula and put the debuff in the effects box


n is the number of the state that has the buff
I believe you're looking for this.


https://alistairengine.wordpress.com/2016/01/11/eval-collection-devour/


Alistair shared this eval, be sure to read through it carefully. In your case, you just need to change which stats to 'steal'.

Original thread: https://forums.rpgmakerweb.com/threads/stat-steal-state.56574/