[Solved] Block movements on message window if using only movement routes

Hi all! I'm trying to "block" movements of the character when a message box comes up. Normally the message windows blocks the character's movements BUT in my game the character can only move by Movement routes events.

The Movement routes event is a parallel event: if Right is pressed then Set Movement Route Player (Move right)... and so on for the other directions...

And that's why the name of the title is that...I think I can achieve this goal by putting a "if message window is visible" then Movement routes event is possible, but I'm open for other solutions!

Please help me 🙁
You can make a conditional branch based on a switch, so when conversations happen you turn a switch on or off. Example, conditional branch makes it so movement only happens if switch 1 in off, then every conversation turns 1 on and ends with 1 off.
It worked perfectly, thanks @Celestrium!
@senku Glad I could help
If you want to minimize trouble of controlling switches again and again, this conditional check works too:
$gameMessage.isBusy()
If this returns true, block movement. If it's false, allow movement.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-block-movements-on-message-window-if-using-only-movement-routes.129968/