MZ Request for a timer to select an action in battle

I know this might sound like an odd request because it is somewhat similar to the real time battle system built into MZ. To clarify what I mean by the title I am looking for a timer for the turn based combat system that makes it so that the player has to select an action on their turn in a specific amount of time. If they fail to do so the character does nothing that turn. I was thinking that I could add like a wait skill that only pops up a message that says the character waited and the timer could select that skill when it hits 0.
I think one clunky way you can do it is just make BattleManager.update add +1 to a variable when the phase is input and then make conditionals to check what window is open and active and use processOk, processCancel and forceSelect to make you select the wait skill automatically and then set the variable back to 0 in like selectNextCommand or whatever. Then you also want to disable being able to go back to the previous actor by pressing cancel.
I think one clunky way you can do it is just make BattleManager.update add +1 to a variable when the phase is input and then make conditionals to check what window is open and active and use processOk, processCancel and forceSelect to make you select the wait skill automatically and then set the variable back to 0 in like selectNextCommand or whatever. Then you also want to disable being able to go back to the previous actor by pressing cancel.
Thank you for your help! I'll try this out when I work on my project later today

Original thread: https://forums.rpgmakerweb.com/threads/request-for-a-timer-to-select-an-action-in-battle.180114/