Display messages during battles

I'm putting it here in case I don't figure it out soon and there is some battle expert around.

I'm trying to display a message in battle at every turn start (before the player's input) using javascript (and the "$gameMessage.add('bla');" command).
However I can't seem to find the right place or way to do it (ideally after the enemies makeActions have been called). So far all my attempts ended up either in not dislaying the message at all or displaying it but doing so somehow preventing the display of battle commands.
Still working on it. So far I have a working solution that doesn't feel really perfect, So I'm gonna try to dig a bit more.
Anyway, If someone else happens to have the same questions, what I've done, is add the message command in the updateBattleProcess, but that function beeing called every frame, I had to do some custom checks to ensure that the message is displayed only once per turn.
This is a usable solution, however I'm gonna keep looking into the BattleManager to see if I can somehow include the message into it without having to perform my message checks at every frame.

EDIT :
Alright I've figured it out and managed to add my message after the makeActions !
I've added the message into BattleManager.startInput but the key was actually to add a check for $gameMessage.isBusy() in the updateBattleProcess to prevent changeInputWindow to start while a message is displayed.
Not sure However if it's a standard issue or if it's due to the changes made by my plugin.
Yes, you would need to add that check.

By default, you can only show messages in battle during Troop Events and Common Events ran by skill, and while the game interpreter (the "class" that executes events) is running, the battle doesnt proceed + the interpreter itself waits while a message is on. That is why on those scenarios, using the show message command makes the battle wait for the box to close.

Since your message is being shown outside of those scenario (which means its not a behavior that the default engine expects) you need to manually add the check somewhere so that the battle wont proceed while the message is on..

Original thread: https://forums.rpgmakerweb.com/threads/display-messages-during-battles.114581/