Timer During The Battle!

Hello Makers!

I'm with a doubt in my project. I'm wanting to put a TIMER during the Battle and at the end would be GAME OVER.

But I'm not getting do it for events. Can you help me?

Example: The battle against Ifrit - Final Fantasy VIII
It would be better if you actually showed us how you set it up so we can see why yours is not working.
It's in Portuguese 

<>Timer options: Begin 0 Minutes 30 Seconds

<>Conditional structure: Timer 0 Minutes 30 Seconds or less than

<> Call Game Over

Exception

<>

END

timer eng.png
What you have here should be working. I get the timer and game over when I Battle Test and call the battle through an event. 

It's deceptive because it will just close the test battle and not show the game over screen; same with event calling the battle; it's perplexing;  I make another event that just gives game over and that shows the game over screen and returns to title.

There's something we're not doing; I'll tinker more and maybe someone else has an idea why this happens.

Edit: I've tried doing a Parallel Process controlled by Switch outside the battle and it ends the battle, but still doesn't show the game over screen; trying more things. I'm thinking it has something to do with the Span being only Battle but Moment and Turn didn't change anything.
No, what is the span? If that event happens at the START of battle only, it will set the timer, then do ONE SINGLE CHECK to see if the timer has reached 0. Of course it won't have. Your setting of the timer, and checking if time has expired, must be done on different pages. This is also the case when using a timer outside of battle.


You need to start the timer at the start of battle, then have the conditional branch on ANOTHER event page set to run continuously throughout battle (I think the span is "moment"?) to detect when the timer expires.


Keep in mind the selecting of actions will also be happening during this time. So you wouldn't want to make it so fast that the timer runs out without giving a chance to make selections.
Shaz got it.

You'd have the first page start the timer, then the second page with the Conditional Branch that gives the game over, set to Moment, both pages starting from Turn 0.

How basically elusive. -.-
I set to Moment, the batlle froze and the Timer stopped nor decreases =O
Did you set the first page to Moment instead of Battle? That first page needs to span the entirety of the battle; the second only the moment the timer hits zero.

So your first page would just have the timer display and the amount, from turn 0, and Span Battle. The second would Span Moment, start turn 0, and be the Conditional Branch where the timer hits zero and goes to game over.

You can fill more event pages with the enemy attack patterns as you deem fit if you need them to do things based on their HP, etc but keep the game over page as the last one so it has the highest priority.
Show us both of your pages. And translate the condition and the span for us for each one.
ok

Page 1

Condition: Turn 0  -   Span: Battle

<>Timer options: Begins 0 Minutes 31 Seconds

Page 2

Condition: Not execute    - Span: Moment

<>Conditional structure: Timer 0 Minutes 0 Seconds or less than

<> Call Game Over

Exception

<> Timer Options: STOP

END

---------------------------------------------

In the end of battle, the call for Game Over didn't work! The characters came back to map. Like nothing has happened. 

----------------------------------------

But I tried on page 2 - Condition Turn 0 but the Timer and battle options (Attack, Magic..) didn't appear. The battle froze!

page1.png

page2.png
You don't want the condition to be not execute. That is telling it not to execute.


What have you done with the timer in the second page? Are you telling it to stop the timer? You don't want to do that - you're saying "if it's reached 0, then do gameover, otherwise stop the timer" - that means it'll never get executed either, because it won't be 0 on the first test, so you just stop it, so it'll never reach 0.


You're doing what we tell you to do, but you're also doing a lot of stuff that we don't tell you to do, and that's what's messing things up. You don't need an ELSE clause in there.
Man, I tried what you said. It didn't work here. That's why I was trying other things...

Why don't you show a picture how it should be? It would be easier.
I've tested this to be working:

Page1.png

Page2.png
I've tested this to be working:
Good for you Chiakster. I did the same thing you did... But here I tried it on two projects (Mine and a new one)

And the battle froze but the Timer is running out. See picture below

new.png
I'm assuming the new project has nothing added to it except for this battle test; no events that would interfere?

Did you happen to fill the Else portion of the Conditional Branch with something instead of leaving it blank? Having that interact with the timer would  cause it to clash.
Nope. I just did what you did. The same thing. I left it blank.

I don't know why is this happening 'cause I created a new project without anything! Initially, I thought that was my project, but this happens even in other projects...
Could you post the event pages as you have them?
Download this demo. See what I did. This is a new project, ok?

TIME TEST.rar
Chiakster, is yours working? I'm having the same problems. Even starting a new project in my own Ace and adding those two pages to a battle troop, it's freezing the game.


I tried adding a Wait 1 Frame in the ELSE section, but it made no difference.


It's the tab with the conditional branch that's the problem - remove that and it works fine, showing the timer.


There is nothing in the help file about using (or not using) timers in battle.
This is so odd... the timer and battle works perfectly  for me and I edited nothing. It works as it should, game over and everything...

I'm running the Trial Version of Ace as downloaded from here.

Original thread: https://forums.rpgmakerweb.com/threads/timer-during-the-battle.43541/