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?
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?