RPG Maker Forums

Hello there,
before we start please dont reply with you are in the wrong section if it is and you know how to fix it please do otherwise i didnt know where to post it.

So i'm trying to make a new day event reset
I already created three variables minutes hours and days to control my game flow but i want to reset my events when it is a new day

in script i want to apply the following:
***************************************
var LastDay = $gameVariables.value(3);
if(hours >= 8){
if($gameVariables.value(3) > LastDay){
//self switch ('A') of current event = false;

}
}
********************************************
because i want to reset multiple events yet almost 90% of these events will be on different map so even if i run parallel event, the player might not go there before 8 am and he might go after and thus the events won't reset

so my idea was to use a parallel common event and write the following code in it but all i found is
var key = [mapId, eventId, A-D]
$gameSelfSwitches.setValue(key, true);
which is useless cuz i'm using common event and it would run on each even individually
and i cant resest all game self switches to false cuz this will ruin the entire game


so any help?

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,837
Latest member
Dabi
Top