how to make a skill that lowers accuracy?

what the title says. how can i make a skill that lowers accuracy? i've been looking all across the forums and couldn't find one thread about this surprisingly. i've tried using states to achieve this but i want it to be like in pokemon for example, every time a pokemon uses a move that lowers their opponent's accuracy, it actually decreases even more each time where if i were to use states, it'd just stay the same value even if the skill is used multiple times.
it's a debuff and could be found in the traits state I think.
You'd need to use a plugin that allows for dynamic (changing) values on a state.

Quasi's Param Plus or Hakuen Studios Dynamic Parameters would both work.

it's a debuff and could be found in the traits state I think.
You could do that, if you're okay with the predefined amount the debuff affects the parameters by. If you want to have different values depending on the skill, you'd need to use one of the plugins above.
@ShadowDragon @ATT_Turan

The OP asked about accuracy, not agility - there is no debuff for HIT%

@undeadpup
Theoretically you can use a state to reduce HIT%, but as already said not only does this has the problem of not stacking, there is also a problem with what you call accuracy and the engine:
Only with physical skills there is a chance of missing, magical skills automatically hit.

The following topic might help you to understand what HIT% does and possibly find out if skill success% can replace that for you:

If that doesn't help, please describe the effects you want that change in accuracy to have on the player
The OP asked about accuracy, not agility - there is no debuff for HIT%
Oops, good point. 😛

You can use Yanfly's Buffs and States Core to apply a variable to the target that increases the more you apply the state, then factor that variable into the hit rate using Yanfly's Hit Accuracy.
MV right? This threads will do exactly what you wanted

You can use Yanfly's Buffs and States Core to apply a variable to the target that increases the more you apply the state, then factor that variable into the hit rate using Yanfly's Hit Accuracy.
could you provide an example of what you mean? i downloaded yanfly's buffs n states core (i already had the hit accuracy plugin) n looked at both plugins' instructions and can't find how to do that
Sure.

You want to track how many times the state has been added, so you use the notetag from Buffs & States that runs when the state is added.

Then inside you put the code from the documentation to add a state counter.

Code:
<Custom Apply Effect>
user.addStateCounter(stateId, 1);
</Custom Apply Effect>

Then you use the code from the documentation to check that state counter in the formula for Hit Accuracy.

The default User Hit Rate for Physical Hits is simply user.hit

So you could change that to user.hit - user.getStateCounter(42) * .1
and each counter of state ID 42 (or whatever the ID of your state should be) will decrease the hit chance by 10%.
You want to track how many times the state has been added, so you use the notetag from Buffs & States that runs when the state is added.

Then inside you put the code from the documentation to add a state counter.

With the above, would you be able to do something like;
<hit Flat: -(user.getStateCounter(42) * .1)%>

I can't remember if that has to use regular numbers or if it can use a formula (I'm not in a place I can test it myself). If so, then everything can stay contained within the state.
I can't remember if that has to use regular numbers or if it can use a formula
It can't. Those notetags will only accept numeric values.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-skill-that-lowers-accuracy.174049/