MV Add/Remove state from a player via script call

I'm using a cheat codes plugin but as part of it I need to remove a state from the player, and I really don't want to add a common event for what is essentially setting a variable and removing a state (or adding one)

What script calls do I make in MV to add a state to the character and also remove one?

The only add state or remove state I've found so far is in a game battler and I'm not using battles in this game.
Battler refers to the type of code object - both enemies and actors are derived from battler, so when you see "battler" that means it can be used on enemies or actors.

There's a pinned thread that has a list of MV script calls.
Pinned where exactly? I didn't see any that was about that in this forum.
Well...since I mentioned it, you might have Googled "rpg maker mv script call list" and it's the first result, regardless of which forum it's in 😛

But here's a link for you.

Incidentally, it's addState(ID) and removeState(ID), but you're going to have to figure out how you're getting the reference to the appropriate actor.
Thanks. I found what I was looking for.
This thread is being closed due to being solved. If you need it reopened, report it to let us know why. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/add-remove-state-from-a-player-via-script-call.163400/