Is There A Way To Reduce A Target's Attack State Rate?

Hi, quick question. I wanted to make state that when applied to the battler, prevents them from applying states of any kind to allies or enemies. I know you can reduce a chance of receiving states by lowering the state rate using traits, but is there a way to reduce a target's attack state rate to lower their chance of applying states?
I'm not sure if this can be done using the base rpg maker mv system, so would I need a plugin?
Hmmm... The way I'd do it is via action sequencing. You can have a conditional within your sequence of every skill that applies a status effect and have that check for this state. If user isStateaffected X > Don't apply state.

There could be a scripting solution with Buffs and States core too.
Hmmm... The way I'd do it is via action sequencing. You can have a conditional within your sequence of every skill that applies a status effect and have that check for this state. If user isStateaffected X > Don't apply state.

There could be a scripting solution with Buffs and States core too.
My original plan was to have a post damage eval and put the states in there with math.random so they have a chance to apply, then put if user.isStateAffected() so it wouldn't apply the states, but I have almost 0 knowledge of JavaScript. So trying to put apply multiple different states, each with individual chances into a notetag seems a little out of my reach at the moment.

The action sequence solution doesn't seem to bad, but not all of my skills have an action sequence since it's not really necessary for them to have one(mainly ones that only apply states) also I think it would become slightly tedious to go into all my skills and code that in if I hypothetically could.
Not in the editor, that's only capable of adding a value for attack states.

You could use a dynamic traits plugin to inflict a state and at the time you look at whatever attack states the target has and create a trait that subtracts a percentage from each.

Or you could do what @SGHarlekin suggested, not use the attack state trait, and put it all into code.

I, too, would suggest a Yanfly Skill Core notetag rather than putting it directly into an action sequence.

If you do that, then it will still work with any skills that do use action sequences, but it won't require you to have one for every skill.

trying to put apply multiple different states
Why is a single battler's attack inflicting multiple states? Your system sounds kinda crazy 😛

But there's not anything different about inflicting more than one state.

Code:
if (Math.random() < user.isStateAffected(69) ? .5 : .8)
    target.addState(14);

Put inside a Skill Core notetag, that gives the skill an 80% chance to inflict state 14 on the target. If the attacker has state 69 (your state-debuffing-state) on, then the chance decreases to 50%.

You just copy and paste those two lines as many times as you want and change the state IDs or the percentages or whatever. It doesn't require advanced coding knowledge 😉
Not in the editor, that's only capable of adding a value for attack states.

You could use a dynamic traits plugin to inflict a state and at the time you look at whatever attack states the target has and create a trait that subtracts a percentage from each.

Or you could do what @SGHarlekin suggested, not use the attack state trait, and put it all into code.

I, too, would suggest a Yanfly Skill Core notetag rather than putting it directly into an action sequence.

If you do that, then it will still work with any skills that do use action sequences, but it won't require you to have one for every skill.


Why is a single battler's attack inflicting multiple states? Your system sounds kinda crazy 😛

But there's not anything different about inflicting more than one state.

Code:
if (Math.random() < user.isStateAffected(69) ? .5 : .8)
    target.addState(14);

Put inside a Skill Core notetag, that gives the skill an 80% chance to inflict state 14 on the target. If the attacker has state 69 (your state-debuffing-state) on, then the chance decreases to 50%.

You just copy and paste those two lines as many times as you want and change the state IDs or the percentages or whatever. It doesn't require advanced coding knowledge 😉
That's actually the preferred solution, just wasn't sure if it'd actually work, nice to know it doesn't require complex coding:LZSsmile:.
Also I'm a big fan of rpg's where skill complexity increases with difficulty, so I'd like some skills to have a chance to apply maybe 2 or 3 states at a time to compensate for the increase challenge. Becomes a little hard to balance though.
Also thank you.
Why is a single battler's attack inflicting multiple states? Your system sounds kinda crazy 😛
Sometimes it's the battler's gimmick
@AquaEcho Ehn, I bet the Joe Camel could beat him 😉

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-reduce-a-targets-attack-state-rate.162682/