Battle Events without interrupting battle

To explain what I want to do in a simple way - I'm trying to get the battle background to sync up with the background music, so it will change once the beat drops.
Though, adding a "wait" command stops all input, and I'd like to make it so it happens while the player is fighting.
Something like [Wait 600 frames -> Run command] , without stopping or interrupting player input.
To be clear, what I'm changing here isn't the battleback, it's the visual battle environment from Visustella's plugin of the same name. But my problem isn't related to that part. Just the "wait" command. I'd like to know if there's anything I can do to get this desired effect. I've attached my plugin list as images below. Thanks in advance!
Captura de tela 2024-11-30 064744.png
Captura de tela 2024-11-30 064754.png
Uhh make the event parallel? Maybe put the music in the same event to make sure timing isn't off sometimes.
Battle events can't be parallel. When using the battle event to run a Parallel common event with the "wait" command, it still blocks player input.
Battle events can't be parallel. When using the battle event to run a Parallel common event with the "wait" command, it still blocks player input.
Oh yea... can't you just have a troop tab that runs "moment" with a wait 1 and a counter or something?
Oh yea... can't you just have a troop tab that runs "moment" with a wait 1 and a counter or something?
Wait 1 second? That stops player input, and i'm not sure what you mean by counter, you mean the timer? - Generally speaking the "wait" action stops any kind of player input, wether it's from a battle event, or a common event, parallel common event etc
Wait 1 second? That stops player input, and i'm not sure what you mean by counter, you mean the timer? - Generally speaking the "wait" action stops any kind of player input, wether it's from a battle event, or a common event, parallel common event etc
I meant like wait a frame just to count frames. But yea, don't think that wouldn't work either. You could put a set timeout script on a troop page, have it call a common event after some time.
When using the battle event to run a Parallel common event with the "wait" command, it still blocks player input.
Is this even the case when you use a plugin that allows parallel common events in battle?


@fugahagen
as already mentioned there is no parallel process on the battlescreen, and a troop event with the span of moment is not the same as a parallel process - and the implementation of the wait command works differently depending on the trigger as the wait command is linked to the main game loop which is also changes while on any screen.
So no, the wait is unlikely to be usefull here.

@Canned_Dinosaur
I don't think that is a good idea either - while it does allow for some processing in parallel, there are more problems with sync'ing audio that would not be helped with that, and it can have unwanted sideeffects as well.

@Nynes9
I think your best bet might be to look for a plugin - but even that has problems
It depends on what functions the Visustella plugin you're using makes available to control said background animations - VS obfuscates their plugins and that makes it effectively impossible to link to internal functions in them.
I don't work with MZ and don't know the details of the VS plugins, so can you give a link to the plugin in question? How to handle this depends too much on what commands the plugin provides to solve this otherwise.
@fugahagen
as already mentioned there is no parallel process on the battlescreen, and a troop event with the span of moment is not the same as a parallel process - and the implementation of the wait command works differently depending on the trigger as the wait command is linked to the main game loop which is also changes while on any screen.
So no, the wait is unlikely to be usefull here.
So what about setTimeout() in a troop tab? As long as there is no lag..
@fugahagen
as already mentioned there is no parallel process on the battlescreen, and a troop event with the span of moment is not the same as a parallel process - and the implementation of the wait command works differently depending on the trigger as the wait command is linked to the main game loop which is also changes while on any screen.
So no, the wait is unlikely to be usefull here.

@Canned_Dinosaur
I don't think that is a good idea either - while it does allow for some processing in parallel, there are more problems with sync'ing audio that would not be helped with that, and it can have unwanted sideeffects as well.

@Nynes9
I think your best bet might be to look for a plugin - but even that has problems
It depends on what functions the Visustella plugin you're using makes available to control said background animations - VS obfuscates their plugins and that makes it effectively impossible to link to internal functions in them.
I don't work with MZ and don't know the details of the VS plugins, so can you give a link to the plugin in question? How to handle this depends too much on what commands the plugin provides to solve this otherwise.
Sorry, link to the wiki page of the plugin you mean? I did eventually manage to make it work with a hidden timer, only problem is the action itself won't run if there is dialogue being shown, which completely throws off the sync with the music... I am out of ideas currently
So have it check if a message window is open, $gameMessage.isBusy()
So have it check if a message window is open, $gameMessage.isBusy()
I would want it to work unconditionally though, without waiting for dialogue to go away... How would this work? In simpler terms, the command would execute after a set amount of seconds in battle, without stopping player input, and without waiting for a textbox to go away... I don't know how to write scriptcalls from scratch, though...

Original thread: https://forums.rpgmakerweb.com/threads/battle-events-without-interrupting-battle.173567/