MZ Is there a way to add a countdown for battles?

Is there a way to add a countdown for battles? Similar to fighting games and etc

Like there will be a 3-2-1-FIGHT!

Before starting the battle?
There is, actually. And it wouldn't even be too hard.

In the troop section of the database, make an event page with "Turn 0" in the trigger condition.

Then simple make a text message, like this:
1665259134079.png


\{ = larger text
\. = wait 1/4 second
\| = wait 1 second
\^ = Continue without waiting for input

Note that the background is set to transparent and the position is set to middle.

Now it would show the text, without background, before the battle.

Note: You'd have to do this for each troop, or you can use yanfly's BaseTroopEvent plugin, which will automatically copy it over to all other troops. (Edit: Oops, that plugin is for MV... I assume for MZ there would be an equivalent by VisuStella)

Hope this is what you were looking for.
Exactly what JohnDoeNews said.

Also, here's a sound effect... in case you just want to count down and then have the game shout "FIGHT!" XD
dynajinn's fight voiceover on freesound
I tried that, but it isn't the same as what I have in mind.

I want to remove this, and I want the countdown to be similar to this (The countdown before starting a fight)

Is there anyway to do it? What should I look into
Ah, I see what you're going for. Classic style!

First things first, in order to stop RPG Maker from announcing the troops when you launch a battle, you'll want to go to the Terms section in your database. In the "Messages" portion, look for a line that says something along the lines of "emerge". It will contain a string that appears in the dialogue box when an enemy emerges. Erase that string and you should be good to go.
(I'm using a different version of RPG Maker than you are, but MZ and MV probably use the same terminology and basic structure.)

As for the countdown, there may be an easier way to do it that I don't know about, but I wasn't able to find any plugins for it in a quick search, so I'd replicate the effect by using pictures.

You'd essentially just create transparent png images of each number, then use "show picture" and "move picture" commands in a troop event (trigger condition "Turn 0") to make them appear and shrink like you saw in the video.

If you're not sure how to do that, I can give you easy step-by-step instructions to get the exact same effect as the countdown in the video. It's a tiny bit tedious, but it doesn't actually take very long. I might even whip up the images for you so all you've gotta do is set up your event to display them ;D
Play around with the "show picture", "move picture" and "erase picture" commands.

Make 4 images: 1, 2, 3 and fight.

Then show them 1 by 1, move them around a bit, make them zoom. Add some cool sound effects.

This first time this might seem hard, but if you do this one, you will suddenly get 100 other ideas for animation, cause you'll see it is so easy.
I tried it and it worked! But only on the default battle system, anyone can help me try and fix this one though?

- BATTLE Linear System, SAME COMMON EVENT(Attached Image)- The ErasePicture Command doesn't work and its stuck on the first one.

- Map/Overworld, SAME COMMON EVENT (Attached Image)
It works as intended.

- Default Battle System, SAME COMMON EVENT (Attached Image)
It works as intended.

Anyone can help me pinpoint what's causing the error/bug on the Battle Linear System?
I don't know what's causing the bug. Probably something to do with a plugin, or potentially user error, but I'm not savvy enough to trouble shoot that.

You might try adding a 2 frame "wait" command in between the move picture and erase picture commands. I've found that sometimes, when the engine seems to ignore a command, the problem can be solved by placing a very short wait right before the command that failed, thus ensuring that the engine has time to process it.

If that doesn't solve the problem, a simple work around would be to use the "move picture" command to set the picture's opacity to 0. (Delete the erase picture command, as it seems to be freezing the event.) That way, the picture is out of your way for the time being. Then, at the end of the battle, use the erase picture command and it should function normally outside of battle.
First part of what @Asanti said, with the second part you would most likely have the same problem like now.
But your code looks correct, it is strange.

Just to mention it,
alternatively if you dont find a Solution, you could build an Animation in the Database Editor.
That Battle Animation could be shown before Battle.
It seems like it's cause of the Duration [Wait for Completion] 60 of this means 60 seconds LOL
1665413106471.png
Fixed. Thank you.
Uh... no, all of the move picture commands in your screenshots were set for 60 frames.
There are 60 frames in each second, so those commands should have only taken 1 second each.
With that said, I'm not sure why or how you were able to fix the event by altering how many frames the wait time was, but... good job! XD may you enjoy the sweet, sweet taste of success well earned!

Also, I noticed that you were using actor pictures in your examples for the countdown. It makes perfect sense to get the event set up before you worry about visuals, but do you still need images for the numbers?
Uh... no, all of the move picture commands in your screenshots were set for 60 frames.
There are 60 frames in each second, so those commands should have only taken 1 second each.
With that said, I'm not sure why or how you were able to fix the event by altering how many frames the wait time was, but... good job! XD may you enjoy the sweet, sweet taste of success well earned!

Also, I noticed that you were using actor pictures in your examples for the countdown. It makes perfect sense to get the event set up before you worry about visuals, but do you still need images for the numbers?
Yeah its because the Turns on the LMBS is different compared to the normal turns 🙂

Anyways ~ Got the numbers on the countdown, thanks for the thought though! 🙂
Ohh! What an interesting detail you've discovered! Makes a lot more sense to me now haha

Anyway, happy gaming!

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-add-a-countdown-for-battles.151853/