Help state category(YEP)

Skill and Item Notetags:

<Remove State Category: text>
Causes this action to remove all states from category 'text' from the
action's target. This will not attempt to remove passive states.

<Remove x State Category: text>
Causes this action to remove x states from category 'text' from the
action's target. The states removed will be the front x states of highest
to lowest priority with the matching category text. This will not attempt
to remove passive states.

<Remove State Category: text>
I know this script note, remove every state in "text" category.
ex) <Remove State Category: DEF> then every <Category: DEF> state remove.

but how remove only one state use this <Remove x State Category: text> ???
i tried <Remove 1 State Category: DEF>
but state didn't removed.

Am I using it wrong?
if you're only trying to remove a single state, use:

<State x Turns: -y>

where:

x = State Id
y = turns to decrease by

If y is greater than the remaining turns left on the buff, it will be removed.
if you're only trying to remove a single state, use:

<State x Turns: -y>

where:

x = State Id
y = turns to decrease by

If y is greater than the remaining turns left on the buff, it will be removed.

Ah yeah that can be useable this time
but I mean not only one state, not Specific state, it DEF category state
ex) Enemy has 3 DEF state category.
and i use skill then random or priority state remove one state and 2 left, i want.

umm... understand?
You're wanting to remove a random state from a specific category?
You're wanting to remove a random state from a specific category?

Yes
If category name is DEF or something others too
<Category: DEF>
I want remove this state of enemy with use skill.

Original thread: https://forums.rpgmakerweb.com/threads/help-state-category-yep.120936/