Day/Night encounters

This might be confusing to explain, but I'll try my best. 

So, im running into a bit of a problem, one I didn't have at the start. I set up a system to get slimes to appear in the day time, and skeletons to appear on the night time on the same "encounter" event. (which were then duplicated and spread about the map). But, when I introduced a bed which allows you to skip directly to morning or dusk, problems sprung. The same method I use to switch lit and unlit torches cannot be used to switch the slimes and skeletons. The reason is because the encounter event page is a event touch, and not parallel process (otherwise i would be going into battle every split-second). 

Is there a way to make a event run 2 page events at the same time? Such as, page 1 would dictate whether page 2 or 3 would be active, but page 1 would still continue to be active, despite whether page 2 or 3 are running or not? Or would I have to paste everything in just page 1 and hope for the best? /shrug, kinda over mah head on this one...

here is a screenshot with some explanation of page 1 of my encounter event.

Day, Night Cycle.png
It's because your self switches are turned on the first time the map is loaded, according to the time of day THEN, and are probably not turned off again, so this first page never runs again.


You could either use a switch to say whether it's day or night, then use 4 pages of events for each condition (day + hours < 6, day + hours >= 6, night + hours < 7, night + hours >= 7) and the correct one will just be active at the correct time, OR after the battle on each of those pages, if you do an Erase Event, afterwards, turn off the self switch for that page, so next time the map is loaded, the first page will run again.
You should use the variable check in the conditions tab of the pages instead of self switches... using something like what Shaz posted...

BTW, setting that first page as a parallel process is pretty useless... coz when you run it, it will already set the self-switches, effectively stopping the processing of the first page, so that page is working just like an autorun event...
It's because your self switches are turned on the first time the map is loaded, according to the time of day THEN, and are probably not turned off again, so this first page never runs again.

You could either use a switch to say whether it's day or night, then use 4 pages of events for each condition (day + hours < 6, day + hours >= 6, night + hours < 7, night + hours >= 7) and the correct one will just be active at the correct time, OR after the battle on each of those pages, if you do an Erase Event, afterwards, turn off the self switch for that page, so next time the map is loaded, the first page will run again.

You should use the variable check in the conditions tab of the pages instead of self switches... using something like what Shaz posted...

BTW, setting that first page as a parallel process is pretty useless... coz when you run it, it will already set the self-switches, effectively stopping the processing of the first page, so that page is working just like an autorun even
So I took what you both said, and did some mixing with a common event. Rather than having page 1 decide which page to run, I set that first page as a common event to run in the background but instead of using self-switching, its using a switch. Day time Switch and Night Time switch (depending on the hours of the day/night). Then what was page 2/3 are now being required to have either the day or night switch turned on in order to run and voila~ fixed! 

Thanks for the help! 
awesome! But I wouldn't do it as a parallel process common event. You don't need it running the entire game - only once when you enter a map that has monsters. So either make it a part of whatever your day/night system is, so the switches are set as the time advances, or make it a regular common event, then on each monster map, add a parallel process event that calls the common event then erases itself.
why do you even need 3 pages for each monster if you only have either day or night? 2 pages per monster will do it, 1 for day 1 for night...

and make sure you did it like Shaz said, put it as part of the DayNight system... because that's the most viable place to do it... 
Yeah, I made it a regular common event. my "Clock" common event gets the time system started, it also starts the time/night switches (and they then switch back and forth on their own)
why do you even need 3 pages for each monster if you only have either day or night? 2 pages per monster will do it, 1 for day 1 for night...

@Shaz - because time can vary while you're inside a map...
The reason I had alot of pages, is because after a monster is defeated, it switches to another page (which has the switch AM or PM 'dead') the monster disappears for 999x2 frames, (then turns the dead switch off) and respawns the monster back to the field.

(Sorry for the double post, didn't see this post till after I refreshed the page)
Ahh... I see... XD

Original thread: https://forums.rpgmakerweb.com/threads/day-night-encounters.16971/