My common event ain't working

mine is just daytime and infintly dusk rn. It looks like this btw:
View attachment 251474
Can't do anyhting right somehow 🙁

This:
Code:
If minutes = 60
Should be this:
Code:
If minutes >= 60

This:
Code:
If hours = 24
Should be this:
Code:
If hours >= 24

Instead of:
Code:
Minutes = 0
Hours + 1
and
Code:
Hours = 0

You can use:
Code:
Minutes - 60
Hours + 1
and
Code:
Hours - 24

This way, when you go over 60 minutes or go over 24 hours, it will not lose the extra hours.

Just make sure you never add more than 23 hours or 59 minutes at once!

Spoiler: If you do add more time at once
If you do, you need to loop above process and end that loop when both minutes and hours are back to being under the cap. But best to save that for later and just never add more then 59 minutes or 23 hours at once.
thank you all soo much I finally made it work sorry for not being that good XD sorry
No need to feel bad, man. We all have been beginners at some point.
@JohnDoeNews I suggest >= as well, but it isn't really required
if the wait = 600 (10sec), but still its more as a softlock process
to avoid issues otherwise, but it should work without >=.

@Isaco1 I'm happy you got it to work.
Everyone make mistakes, and double, triple check where the issues is,
so your not the first one making the mistake, you only learn from it.

good luck with your project.
@JohnDoeNews I suggest >= as well, but it isn't really required
if the wait = 600 (10sec), but still its more as a softlock process
to avoid issues otherwise, but it should work without >=.

@Isaco1 I'm happy you got it to work.
Everyone make mistakes, and double, triple check where the issues is,
so your not the first one making the mistake, you only learn from it.

good luck with your project.
It is when he's skipping more than 60 seconds at ones.

For example, I saw it say: "Skip 10 hours" somewhere. If you start at midnight, you get to 10am, then 8pm (20 hours) and 10 hours after that would 6am, however, it will be stuck at 30 hours past midnight.

If you skip 10 hours, you will never end up exactly at the 24. And this is why you don't do "=24" but ">=24".

And I am pretty sure this is exactly what causes the whole eternal darkness in this case.
It is when he's skipping more than 60 seconds at ones.

For example, I saw it say: "Skip 10 hours" somewhere. If you start at midnight, you get to 10am, then 8pm (20 hours) and 10 hours after that would 6am, however, it will be stuck at 30 hours past midnight.

If you skip 10 hours, you will never end up exactly at the 24. And this is why you don't do "=24" but ">=24".

And I am pretty sure this is exactly what causes the whole eternal darkness in this case.
Ahh. I wasn't factoring in the project having something that skips time.
Look, this is their own screenshot. Here it says: Control Variables: #0005 HOURS += 10
(It's in the second like)

Edit: I just realized that this probably should have been minutes +10, not hours.

That is why they are stuck: They skip 10 hours, go past the 24 and go outside the reach of all conditions.

1674663586049.png

Original thread: https://forums.rpgmakerweb.com/threads/my-common-event-aint-working.154378/