[MZ]Contidion to check when player is busy?

Good morning to everyone!
Once again I come to ask for your help.
I would like to know if there is any code to check when the player is busy.
Like: message window is active, accessing the menu, some automatic event is active...
Something like: when player is busy...
I noticed that by default when an auto event or message window is on, the touch menu button disappears, so I would like to know what condition there is used.
Thanks again.
that is not a condition check, that is simply that those functions stop all else.
so there is nothing to run in the background that can even check if that condition is met - for example there is no event interpreter in any menu screen, so it's not as if something checks if the player is busy but there simply is nothing else that can work at the same time.
The map's menu button is visible when the in-game Touch UI option is ON and this condition is true (Scene_Map#isMenuEnabled):

$gameSystem.isMenuEnabled() && !$gameMap.isEventRunning()
Like Andar says, the menu is a different scene with no event interpreter.
The map's menu button is visible when the in-game Touch UI option is ON and this condition is true (Scene_Map#isMenuEnabled):

$gameSystem.isMenuEnabled() && !$gameMap.isEventRunning()

Like Andar says, the menu is a different scene with no event interpreter.
thanks
Like: message window is active, accessing the menu, some automatic event is active...
Something like: when player is busy...
You can check for those things, but the method is different for each one. It would probably be best if you tell us exactly what you're trying to do, and maybe we could point you in the right direction.

Original thread: https://forums.rpgmakerweb.com/threads/mz-contidion-to-check-when-player-is-busy.148426/