Day/Night encounters

Beniwa

Villager
Member
Joined
Dec 24, 2012
Messages
23
Reaction score
0
First Language
English
Primarily Uses
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
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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...
 
Last edited by a moderator:

Beniwa

Villager
Member
Joined
Dec 24, 2012
Messages
23
Reaction score
0
First Language
English
Primarily Uses
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! 
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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... 
 
Last edited by a moderator:

Beniwa

Villager
Member
Joined
Dec 24, 2012
Messages
23
Reaction score
0
First Language
English
Primarily Uses
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)
 

Beniwa

Villager
Member
Joined
Dec 24, 2012
Messages
23
Reaction score
0
First Language
English
Primarily Uses
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)
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Ahh... I see... XD
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,977
Members
137,563
Latest member
cexojow
Top