MV Help With Mog time system plugin to activate multiple switches

I'm using Mog's time system plugin for my game however it seems that Day/Night shift ID is only able to take in one parameter. It ignores any other parameters if it isn't the first one. Does anyone know if it's just a few lines of code I need to change, Just changing it to take an array does not do anything. Or is there perhaps a way around changing the code?

The two switches that I'm adding are an autorun event that runs once and then shuts off after that event is completed. I used to have it as a parallel event but even though I had it in a conditional branch it still caused a lot of lag. I can't use the other switches either since I need those ones to stay on so I can determine the hours of shops.

Perhaps it is easier to add a parameter to activate a common event at a certain time?
1700942560344.png

If I could add a line after 1291 that calls a common event. I don't really care if it is hardcoded. I already determined that it does not constantly refresh and only activates once per day. So that would do exactly what I need. I just don't know the syntax 🙁


1700940761415.png

1700940601856.png
I'm using Mog's time system plugin for my game however it seems that Day/Night shift ID is only able to take in one parameter. It ignores any other parameters if it isn't the first one. Does anyone know if it's just a few lines of code I need to change, Just changing it to take an array does not do anything. Or is there perhaps a way around changing the code?

The two switches that I'm adding are an autorun event that runs once and then shuts off after that event is completed. I used to have it as a parallel event but even though I had it in a conditional branch it still caused a lot of lag. I can't use the other switches either since I need those ones to stay on so I can determine the hours of shops.

Perhaps it is easier to add a parameter to activate a common event at a certain time?

View attachment 285120
View attachment 285119
The array you wrote is an empty array. However, even with adding values to it, the function is likely coded to only run once with one value. I haven't looked at the code to verify though.

You could just have the first switch run the autorun code, turn on the second switch, then turn itself off
Yeah, that is a simple solution and seems to work fine during playtesting. Messes up the shift switches a bit but I didn't use those for my game in their intended way anyway. Thanks for the help.

Looking at the code it would be a pain to change it just to take more parameters. This way is so much less headache 🙂

Original thread: https://forums.rpgmakerweb.com/threads/help-with-mog-time-system-plugin-to-activate-multiple-switches.163269/