MZ Looking for help (Battle system wait freeze)

I'm not sure if this is the right spot to post this but uhhh, yeah as the header says I've been having an issue with the battle system in RPG maker MZ where the wait command causes the entire battle to halt until it's over. Normally this would be fine however I am attempting to make a battle where certain events happen at key intervals, i.e. the boss attacking on certain beats of a song or visual effects that happen at certain points of a timer.

I've searched far and wide across the internet and it seems like I'm the only one who is having this issue, I'm unsure if this has already been solved but I'm at the point where I'm honestly desperate enough to learn coding so that I can make my own plugin to solve this. (It is not going very well.) So this is my last resort, to ask the forums. Again if this is not where this is meant to be posted please do let me know, I am quite new here.
how and where are you using the wait command?

most people don't understand how the wait event command works at all.
It simply tells the main game loop to "skip processing this event for x frames" - which results in something that looks like waiting to the player in case of an action button event, but has other effects under other circumstances like reducing lag for a parallel process.

and from your description I can't even tell if you used the event command wait or the script command wait (which would be wrong almost everywhere)

so we need more details on what you have done before anyone can help
how and where are you using the wait command?

most people don't understand how the wait event command works at all.
It simply tells the main game loop to "skip processing this event for x frames" - which results in something that looks like waiting to the player in case of an action button event, but has other effects under other circumstances like reducing lag for a parallel process.

and from your description I can't even tell if you used the event command wait or the script command wait (which would be wrong almost everywhere)

so we need more details on what you have done before anyone can help
Hello, thank you for the reply, (wasn't sure I was going to get one.)

But it's clear I need to elaborate more so I shall. Yes the wait command I had a hunch that's how the wait event worked but where normally a wait event(yes I am using the build in wait event), would allow the player to move (during a parallel event) while the wait is processing in the background on the overworld map, however I am trying to use the wait command during battle which pauses everything preventing the players ability to select menu options.

What I'm trying to accomplish is having it so I can use the wait event in the middle of a battle that'll allow me to keyframe events to play at certain intervals. I've already tried to use a common event that are parallel but that yielded no dice.

BTW I am using every Visustella T1 plugin including battle core. I tried to turn off all the Visustella plugins but the vanilla engine still has the same issue.


Example: (Battle begins > Fade out screen for the beginning of the song > song kicks in allowing me to do my special effects > enemy does not rely on the traditional turn system but is puppeteer'd by the force action event. > unable to do anything during this entire time.)

(If this has proven to be unhelpful I apologize, explaining these sorts of things is not exactly a specialty of mine, I'm still quite new to all this.)
((Also I would send a video file to help show it, but I do not know which format this site uses ;w😉)
There's a japanese plugin that allows you to run parallel events in battle.


That might work for timing your visual effects, but how are you going to make your enemy attack at the correct times, when at any time the game might be running a player's skill sequence? This is a turn based system, not an ABS.

If you're using ATB no wait (EDIT: well, I think ATB no wait only matters if you do it with proper enemy skills), maybe you can try if it allows you to use Battle Core plugin commands in the parallel common event to move the enemy around and play animations and then you can use gainHp to make hits against the players. But at the very least I'd think it can become a mess if your players are moving in their own skill action sequences at the same time. You could do it normally with enemy skill too, but same thing, you'd need to put a lot of conditionals in your player action sequences to "abort" their skill and throw them back to home spot if the song position was approaching. And like give them restriction states if you want them not being able to input, or something. You can check the position of the song with AudioManager._bgmBuffer.seek()

Don't know, maybe someone else has something better.
as you can assume from the post above, there are no parallels during default battles - but I'm not sure that adding them will solve your problem.

Just from your description it is difficult to tell what you want to do - a screenshot of the event even defective as it is now would be better.

I think it sounds as if you either want to time action sequences (which functions on an entirely different base) or that you try to introduce some time effects into battle.
But the second option depends on what kind of battlesystem you're using, because time works differently in a turn-based combat as compared to ATB or CTB systems.
Because time is defined differently in each battlesystem and that needs to be taken into account for that option.

Original thread: https://forums.rpgmakerweb.com/threads/looking-for-help-battle-system-wait-freeze.178451/