Yanfly Buff & State Core - Javascript to end turn immediately (cannot move)

Hey, guys!

I am curious if there is a way to have an actor unable to move through javascript using Yanfly's Buff and States Core. Why do I not just use the 'cannot move' command? All of my other states expire by 'action end', which famously does not work with 'cannot move' tagged statuses. Ideally, the input phase is to be skipped as well.

Thank you for your input and advice.

Cheers
Biestmann
Yanfly did something like this in his Tips & Tricks video. Depending on your exact condition, you may need to tweak it a bit, but it's a good starting point.

@shockra Thank you for your response! I was trying to utilize this state as well. Unfortunately, the player input phase isn't skipped using it, as the script works on the assumption that the state might not trigger.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-buff-state-core-javascript-to-end-turn-immediately-cannot-move.109019/