timer not working like I want it too

1646274245516.png






hi this is my event sheet what I want it to do is when my char interacts with the barricade I want a timer to start for five min ( I have been using 1 min for testing purposes) I need the switch "hord" on to activate monster spawning on the overworld map and when the timer runs out I want switch "hord " to shut down the timer to stop then erase the event so the player can walk though the barricade to the next area and this would stop the timer the barricaded and hord but when the timer hits 0:00 it doesn't go off the screen the barricade doesn't open and the hord is not gone so what am I doing wrong here?
Ok, so I am still new and I could be completely wrong, but since no one else has responded, I will give it a shot.

I think the problem is that you need to put your Conditional Timer statement on a new page and make that a parallel event. The way you have it with one page as an action button, it starts the timer, flips a switch, and then immediately checks to see if the timer is at 0. It won't be and the page event ends so it never rechecks. If you set a self switch and move to page 2 as a parallel event, it will continuously check the timer and turn if off once it reaches 0.

I made a sample event quickly and it seems to work fine. The monster appears on the map when the timer starts on the screen and 15 seconds later the monster disappears.

Here are the screen shots. I hope this is what you are looking for. If not, maybe someone else can help. Let us know if this solved it for you.

Timer Switch Page 1.jpgTimer Switch Page 2.jpgMonster.jpg
I have been using this timer for years now. I love how easy it is to use and set up. However, lately it has been acting up. When I turn it on, it does not start counting down from 0 until it reaches zero. Instead, it starts at 10 minutes and counts down from there. This makes it impossible to time my lights correctly. Is there any way to fix this?
I have been using this timer for years now. I love how easy it is to use and set up. However, lately it has been acting up. When I turn it on, it does not start counting down from 0 until it reaches zero. Instead, it starts at 10 minutes and counts down from there. This makes it impossible to time my lights correctly. Is there any way to fix this?
I have limited experience, but didn't have any problem when I just tested the event above. You would probably have to specify the version you are using and post a screenshot of your event so people can try to help.
I have been using this timer for years now.
What timer? You're posting in someone else's thread and not showing any of your event code. Do you just mean the Control Timer event command?
When I turn it on, it does not start counting down from 0 until it reaches zero.
This also doesn't make sense. Something can't count down from 0 to zero, that's the same number. Whatever you type into Control Timer will be what it starts at, whether that's 10 minutes, 10 seconds. Is there some possibility that you're trying to set the timer while it's already running?
Is there any way to fix this?
Sure! But you need to show your event, because how can anyone help you fix something without seeing what you have?

The only suggestion I would add to @kvngreeley 's post is to add a Wait command at the bottom. Any time we can prevent parallel/autorun events from running every frame, we should, to optimize the game's performance. And since we're only checking the timer in increments of seconds, it can't hurt anything to put a Wait: 60 command at the bottom.
What timer? You're posting in someone else's thread and not showing any of your event code. Do you just mean the Control Timer event command?

This also doesn't make sense. Something can't count down from 0 to zero, that's the same number. Whatever you type into Control Timer will be what it starts at, whether that's 10 minutes, 10 seconds. Is there some possibility that you're trying to set the timer while it's already running?

Sure! But you need to show your event, because how can anyone help you fix something without seeing what you have?

The only suggestion I would add to @kvngreeley 's post is to add a Wait command at the bottom. Any time we can prevent parallel/autorun events from running every frame, we should, to optimize the game's performance. And since we're only checking the timer in increments of seconds, it can't hurt anything to put a Wait: 60 command at the bottom.
Thanks for pointing that out! I have to remember that!
Ok, so I am still new and I could be completely wrong, but since no one else has responded, I will give it a shot.

I think the problem is that you need to put your Conditional Timer statement on a new page and make that a parallel event. The way you have it with one page as an action button, it starts the timer, flips a switch, and then immediately checks to see if the timer is at 0. It won't be and the page event ends so it never rechecks. If you set a self switch and move to page 2 as a parallel event, it will continuously check the timer and turn if off once it reaches 0.

I made a sample event quickly and it seems to work fine. The monster appears on the map when the timer starts on the screen and 15 seconds later the monster disappears.

Here are the screen shots. I hope this is what you are looking for. If not, maybe someone else can help. Let us know if this solved it for you.

View attachment 218080View attachment 218081View attachment 218082
ok I Got it partway working following your instructions but the player transfer thing will not work in a way that is immersive I can add a conditional branch on the second page but it makes my char go to the next map when they are anywhere on the map not back where the event started. so it looks like my char is some sort of wizard, not a normal person so this is what I have for my code now events go right to left so this should work right? PS: thanks for the help bro
1646331763219.png
1646331804499.png

1646331721775.png
From what I can see, your 1st page will never run because neither of your page 1 or page 2 events have conditions. So the game is always going to try to run the highest page of the event where the conditions are respected/met. Therefore the event will always run page 2 of the event instead of page 1.

Unless page 3 can run because self switch A is triggered.
what would you sugest?
what would you sugest?
If you want the transfer to happen after the timer has ended you move your page 1 content to the last page. Page 1 would be starting the timer, page 2 would be stopping the timer, and page 3 would be the transfer. To switch to page 3 you could just activate self switch B and make that your condition for page 3.

I hope that makes sense.
ok I ordered the pages like you said 1 is clack start 2 is clock stop and 3 is this but it will not work
1646344408347.png
ok I ordered the pages like you said 1 is clack start 2 is clock stop and 3 is this but it will not work
View attachment 218226
Any page put "action button" as trigger but should be in parallel?
Otherwise please show us all pages, im sure there is an explanation why it wont work.
ok I ordered the pages like you said 1 is clack start 2 is clock stop and 3 is this but it will not work
View attachment 218226
So, I think this should be a Trigger of Player Touch instead of parallel. You activate self switch B on page two and then self switch B is the condition for page 3. The only thing on page 3 would be the transfer event. You don't need the conditional branch.

So page 1 is Action Button and starts the timer and sets self switch A. The condition for page 2 is self switch A and that is a parallel event that watches the timer to get to zero. Then it turns it off and sets self switch B. The condition for page 3 is self switch B and that can be a player touch event that will automatically transfer the player when they step on the square.

EDIT: I just made the event the way I think you want it to work. It is a cave entrance that is shut when you first touch it, the timer starts and a monster appears to randomly walk around the map, then the timer end and shuts off, the monster disappears, and the cave entrance becomes a transfer event.

Here are the screen shots:

Timer Transfer Page 1.jpgTimer Transfer Page 2.jpgTimer Transfer Page 3.jpgRandom Monster.jpg

I hope this works for you.

EDIT EDIT AGAIN: I forgot to add the Wait part again as previously pointed out by @ATT_Turan before.
So, I think this should be a Trigger of Player Touch instead of parallel. You activate self switch B on page two and then self switch B is the condition for page 3. The only thing on page 3 would be the transfer event. You don't need the conditional branch.

So page 1 is Action Button and starts the timer and sets self switch A. The condition for page 2 is self switch A and that is a parallel event that watches the timer to get to zero. Then it turns it off and sets self switch B. The condition for page 3 is self switch B and that can be a player touch event that will automatically transfer the player when they step on the square.

EDIT: I just made the event the way I think you want it to work. It is a cave entrance that is shut when you first touch it, the timer starts and a monster appears to randomly walk around the map, then the timer end and shuts off, the monster disappears, and the cave entrance becomes a transfer event.

Here are the screen shots:

View attachment 218230View attachment 218231View attachment 218232View attachment 218233

I hope this works for you.

EDIT EDIT AGAIN: I forgot to add the Wait part again as previously pointed out by @ATT_Turan before.
OMG THANK YOU MAN I THOUGHT THIS WOULD BE MORE ORGANIC! YOU GET A COOKIE! WHEN I GET A WORKING DEMO I WILL LET YOU KNOW!
OMG THANK YOU MAN I THOUGHT THIS WOULD BE MORE ORGANIC! YOU GET A COOKIE! WHEN I GET A WORKING DEMO I WILL LET YOU KNOW!
No worries. I hope it does what you want. I am glad to hopefully help. So many people here have helped me.

If you are new, I really recommend watching some tutorial series on YouTube and go through the In Game Tutorials too. I have learned a lot from watching tutorials. You can learn a lot from reading though the posts on this forum and the blog area as well.

And some experienced users have created and shared sample demos that you can download and open in MZ to see what they did.

Good luck!
I have been using this timer for years now. I love how easy it is to use and set up. However, lately it has been acting up. When I turn it on, it does not start counting down from 0 until it reaches zero. Instead, it starts at 10 minutes and counts down from there. This makes it impossible to time my lights correctly. Is there any way to fix this?

Please don't hijack someone else's thread, but start your own.

Original thread: https://forums.rpgmakerweb.com/threads/timer-not-working-like-i-want-it-too.145383/