So for my game I've got a lot of things that are dependent on time, for major things I just make a common event that is parallel. However for stuff like a bush or something that I want to grow back even when you are not there is a good way to do something like this? If you are wondering I do have a time plugin installed (orange time system), so if I could use that that would be great. Anyways hopefully theres something I missed and this can be simple to implement.
Best Way to make time pass when not in a scene on a event?
RPG Maker MV SupportHow do you want to achieve it? Growing back at a certain times or how long time has passed?
If you wanted to make the bushes grow back by time has passed, you could create a new event page:
I believe it will revert back to default condition after certain time.
If you wanted to grow back at certain times like midnight for example. You can try making new event page on the bush:
It will revert back at midnight, reverting it back after certain days would be more tricky.
If you wanted to make the bushes grow back by time has passed, you could create a new event page:
I believe it will revert back to default condition after certain time.
If you wanted to grow back at certain times like midnight for example. You can try making new event page on the bush:
It will revert back at midnight, reverting it back after certain days would be more tricky.
Do you know if this will still take affect even if you aren't in that map?
It will not. If you want events that perform counters even when you're on other maps, you either need to do it via a parallel process common event, or set a variable to the current game time when you "start" the event and then have a parallel process event on the map which checks the current game time against that variable to determine state.
I think I'll go with the second option, thanks for the help
Oh wait it isn't? I remember playing some demo with my approach. Might remembered it wrongly tho.
If my approach didn't work, you could make a parallel common event that check if a bushes have a cool down.
On the "Bush event". Set the second page (the page where the bush have been picked) condition to Bush 1 Cooldown >= 1.
When you start the event, set Bush 1 cooldown variable to certain number. I suggest to set it to a master variable to make the setting easier. Just don't forget to set it on an even first tho.
Control Variable: Bush 1 cooldown = Bush Cooldown Master where Bush Cooldown Master value is the master value. Bush 1 Cooldown value could be any number you wanted.You could also make Bush 1 cooldown an array but it needs more advanced understanding in manipulating variables.
Now to the parallel CE.
Code:
IF: Bush 1 Cooldown > 0
Control Variable: Bush 1 Cooldown -= 1
EndIf
IF: Bush 2 Cooldown > 0
Control Variable: Bush 1 Cooldown -= 1
EndIf
...
IF: Bush n Cooldown > 0
Control Variable: Bush 1 Cooldown -= 1
EndIf
Wait 60 Frames
The CE will loop and substract the variable to zero. If the variable reach 0, The second page condition of the bush event will no longer be met, and it will deactivate and reactivate page 1 again.
The only cons I can think is that it needs so many variable to count the cooldown if you have many bushes too. The wait in the end is there to make sure that it waits 1 second before repeating above.
If you have sleep mechanic then it needs more re-adjustment.
Original thread: https://forums.rpgmakerweb.com/threads/best-way-to-make-time-pass-when-not-in-a-scene-on-a-event.138112/