Limited time to choose skill in battle

Hello guys!

So, I've built a battle system where the enemy sprite changes to different images during its attacks, showing various poses while casting its attack. Each attack can be countered with different skills, auto attacks, or defense. Everything works smoothly but, I'd like to add one more thing. A timer, so the player have to choose skill to counter the enemy's attack in a limited time.

I attached two images to show how I tried, but unfortunately, it doesn't work like this because the "moment" is detected as autorun by the game and doesn't allow anything until the time runs out. Does anyone have any ideas on how I could achieve this?

it doesnt really matter if the timer shown or not so if you have solution by variables then that would good too

Thanks for the responses!
This is a little bit of a weird ask. You specifically mentioned that you've built a battle system that does X and Y, but you want to know how to do Z...

It's inherently difficult for anyone to advise you on how to create the final feature for your battle system when we know nothing about the rest of it.

More specifically to your question, though, if you want any kind of timed input in the battle system, I think you'd need a plugin that modifies Scene_Battle's update method.

Looking at your screenshots and just speculating, you'd want a plugin that would allow you to:
  • Initiate a "timed input" phase during battle
  • Display an input GUI/graphic for the player
  • Begin a countdown (in frames, not seconds)
  • Do something if the player inputs correctly before the countdown elapses
  • Do something if the countdown elapses without the correct input
In any case, I'm just kind of speculating since you haven't gotten a reply yet. I'm not an expert with events, but I suspect the above would be the most realistic approach based on what we know so far.

Realistically, to implement any kind of timed input properly, it probably needs to be tightly coupled with the actual battle processing code.
There is a parallel common events in battle plugin you could use, but it's up to you to control the timing with conditional statements.

The plugin file has English instructions.
There is a parallel common events in battle plugin you could use, but it's up to you to control the timing with conditional statements.

The plugin file has English instructions.
Lovely thanks so much for the replys guys!

SOLVED
This thread is being closed due to being reported as solved. If you need it reopened, let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/limited-time-to-choose-skill-in-battle.168319/