So in this cave I'm inventing, I provided an optional quest for the player to choose to take. What it is, is a Time Attack quest that the player has to beat at a certain time. Knowing how to use timers, the timer starts and under parallel the conditional branch will check if the timer is less than or equal to 0. That said, lets say the player was able to beat the boss before the time expires. Is there a way I can call the timer that the player had left under the NPC that the player accepted? Just for bells and whistles is all. Thought it be neat.
Time Attack question
RPG Maker MV SupportUse the "Control Timer" under events. You can start AND stop the time. 🙂👍
Yea, but I'm talking telling the player how much the player had left time wise through dialogue convo
You can set a variable to equal the time left on the timer, as such:
◆Control Variables:#0001 Time Left = Timer
"Timer" is found under Game Data in Control Variable. Then you can call it in a message box using \v[1] (or whatever your variable number is)
Hope that helps you! 😀
◆Control Variables:#0001 Time Left = Timer
"Timer" is found under Game Data in Control Variable. Then you can call it in a message box using \v[1] (or whatever your variable number is)
Hope that helps you! 😀
Perfect! Thank you so much!
Never knew this tbh, so learn something new!
Never knew this tbh, so learn something new!
Is there also a way to pause a time, and resume the same time?
Edit: Also have an issue with checking the timer if it's 0 after battles. Sometimes battles can take long, and the timer goes to 0. After battle is over, it is not recognized. Hence why I ask if there's a way to pause it while knowing the player is in battle or to track whether the timer is 0 after battle.
Edit: Also have an issue with checking the timer if it's 0 after battles. Sometimes battles can take long, and the timer goes to 0. After battle is over, it is not recognized. Hence why I ask if there's a way to pause it while knowing the player is in battle or to track whether the timer is 0 after battle.
I'll just post a link to an old thread, since @Tsukihime offers two different methods to solving this particular issue.
https://forums.rpgmakerweb.com/index.php?threads/pause-timer.50872/
https://forums.rpgmakerweb.com/index.php?threads/pause-timer.50872/
Alright, so that can work, but how? Like how can I use this method to check if player is in battle or not, so the timer can pause if player is in battle or resume if player isn't in battle? Only method I can think of is the troop event, but then I am unable to check if player is out of combat to resume the current timer.
If it's a random encounter, you may need another plugin to handle pausing the timer before battle. I think that SumRndmDde has a battle transition common event plugin that you might be able to tweak to suit your needs. As far as resuming the timer, just make a parallel common event that resumes the timer, as it won't run when you're in battle anyway.
I have tried everything and can't seem to solve the problem. I have been using his plugin, from abort battle to without it, and it seems as though the only time the timer is acknowledged in troop event is when I have the event under moment, which unables the player to fight. I am out of options, and really need help on this
Really, I want the timer pausing while in battle be a last resort thing to come by. What I want to do really is the timer to continue while in battle. When the timer hits to 0, the battle aborts, and then one of my events processes stating time is up and forces the player to try again. I don't know why this is complicated with MV. I use to know how to do this off Ace, but it seems like my ideas are too complex for MV's system.
If I'm not mistaken, having the timer boot you from battle is something you can do with the default engine. I have something like that in my game actually, and it was discovered by accident.
I'm out of town right now, but I'll try to post how my event is set up once I get back. That is if you haven't figured it out already.
EDIT: Without being able to pull it up, I can try to explain. Having the timer boot you from battle involves a parallel event on the map that checks if time is less than or equal to 0 seconds and does "Abort Battle" if so. But again I will check for you when I can. See if that works for you in the meantime.
I'm out of town right now, but I'll try to post how my event is set up once I get back. That is if you haven't figured it out already.
EDIT: Without being able to pull it up, I can try to explain. Having the timer boot you from battle involves a parallel event on the map that checks if time is less than or equal to 0 seconds and does "Abort Battle" if so. But again I will check for you when I can. See if that works for you in the meantime.
Well, I did a debug test. I can see why Yanfly no longer supported ATB, for that's what I used. I decided to make a debugTest map for these kind of purposes now. I switch the Battle Engine from ATB to DTB, DTB known to be default turn base. I decided to setup a timer on a actor, and a battle commence option too. Under the battle commence, I was using bats which had the battle event of if timer is <= to 0, abort battle. This feature never worked under ATB; however, in the DTB process, it did work.
So something tells me in ATB, it doesn't acknowledge turn base at all. Whether it be under the turn end condition or turn option
So something tells me in ATB, it doesn't acknowledge turn base at all. Whether it be under the turn end condition or turn option
Original thread: https://forums.rpgmakerweb.com/threads/time-attack-question.79349/