Orange Time System

Hello, I was wondering how to make a common event work on certain days of the week (like a weekend buff, starting Fri and ending on Sunday).

Information: I have real time system turned ON, so I am not using my own time system.

Useless information (maybe): I am using Variables and Event Listener plugin. I already set all store variables (from #21 - #33, IN ORDER).

Thank you!
OrangeTimeSystem.onWeekDay(commonEventId, dayOfTheWeek);

There are more details on the plugin page, but I've copy/pasted the information you seem to be looking for in this spoiler.

Spoiler: Orange Time System
You can also attach a method or a common event to a specific time. The following example will trigger the common event 10 every day at 10:00:00 AM:


var commonEventId = 10;OrangeTimeSystem.onTime(commonEventId, 10, , );


The following example will trigger common event 15 on day 20 of month 2:


var commonEventId = 15;OrangeTimeSystem.onDate(commonEventId, 20, 2, );


You can also attach a common event to a day of the week:


OrangeTimeSystem.onWeekDay(commonEventId, 5);


Now with plugin commands. Some example of commands:


run common event 10 every hour
run common event 1 every minute
run common event 2 every second
run common event 3 every day
run common event 4 every month
run common event 5 every year


New Feature: Run common events after some time.
Those instructions will be saved on the save file, so the common event will be executed even if the player stops plaing and comes back another day.


run common event 6 in 5 minutes
run common event 7 in 2 hours
run common event 8 in 10 seconds
run common event 9 in 20 days


New Feature: Enable / DIsable / Toggle Switches and self switches. Some examples:


toggle self switch A in 10 seconds
toggle self switch B every second
enable switch 40 on hour 10 minute 20
disable self switch D in 1 hour

https://forums.rpgmakerweb.com/index.php?threads/orange-time-system.46509/
OrangeTimeSystem.onWeekDay(commonEventId, dayOfTheWeek);

There are more details on the plugin page, but I've copy/pasted the information you seem to be looking for in this spoiler.

Spoiler: Orange Time System
You can also attach a method or a common event to a specific time. The following example will trigger the common event 10 every day at 10:00:00 AM:


var commonEventId = 10;OrangeTimeSystem.onTime(commonEventId, 10, , );


The following example will trigger common event 15 on day 20 of month 2:


var commonEventId = 15;OrangeTimeSystem.onDate(commonEventId, 20, 2, );


You can also attach a common event to a day of the week:


OrangeTimeSystem.onWeekDay(commonEventId, 5);


Now with plugin commands. Some example of commands:


run common event 10 every hour
run common event 1 every minute
run common event 2 every second
run common event 3 every day
run common event 4 every month
run common event 5 every year


New Feature: Run common events after some time.
Those instructions will be saved on the save file, so the common event will be executed even if the player stops plaing and comes back another day.


run common event 6 in 5 minutes
run common event 7 in 2 hours
run common event 8 in 10 seconds
run common event 9 in 20 days


New Feature: Enable / DIsable / Toggle Switches and self switches. Some examples:


toggle self switch A in 10 seconds
toggle self switch B every second
enable switch 40 on hour 10 minute 20
disable self switch D in 1 hour

https://forums.rpgmakerweb.com/index.php?threads/orange-time-system.46509/

See, where it says "5" got me really confused. The explanation was pretty vauge but I got it now. Thanks!
Ok, so I need more help. When I do the previous post, the common event just repeats over and over again. It contains text so the player wont be able to move.

help?
Okay, I've been at this for a while, and there's probably a better solution to making it work properly and not repeat. For now, a temporary solution I found is making a conditional branch with a variable or a switch that changes everyday. If the proper method is found, it shouldn't be difficult to remove the events from the conditional branch.

My concern with this method is that I don't know how often or why the events keep repeating, but RPG Maker doesn't seem too fussed by it so it's probably okay.

Original thread: https://forums.rpgmakerweb.com/threads/orange-time-system.106986/