[RMMV] State that makes all damage debuff

Hey everyone!

So basically I'm trying to create a skill that inflicts a state called "Pierced Armor". The part I'm struggling with is that I want the state to make it so every time the afflicted unit takes damage, a defense debuff is applied. If the debuff is already applied, then it adds a stack and refreshes the duration. I know how to do the duration part via the Yanfly Buffs/States plugin.

I'm currently using the following plugins, but I'm newish to them so there may be something I missed.

plugins.PNG



Thanks in advance for any and all suggestions!
Depending on the advice received this thread might have to move to Plugin Support. However, we'll wait and see what emerges.
That piercing armor skill its like poison you need to make a copy, past
then you will need to create a defense debuff state and maybe a stacks state or something.

And look around of skills effects

Create at common event

Try this
If pierce armor state
variable (piercing)= on
variable (stacks) = 0
If actor Hp decreases
add state debuff
If debuffed
variable (stacks) = +1
else
variable (piercing) = off
end if
end if
end if

and put it in Pierce Armor (Skills Effects).

You said, you know how to do the timer so I will not put it in there.

If that code do not work try to go around of it because is only a idea and I do not try it my self.

But I think will work(maybe with your working around xD).

If you want with plugin I dont know how to help you because I do not use plugins.

Good luck.

Original thread: https://forums.rpgmakerweb.com/threads/rmmv-state-that-makes-all-damage-debuff.119514/