- Oct 2, 2014
- Reaction score
- First Language
- Java's Crypt
- Primarily Uses
Orange Time System
This plugin provides a Time System framework for your game. You need other plugins to make use of this time system core in order to effectively use it.
If you set this to true, the plugin will load the computer time instead of calculating it's own. All of the *Length params will be ignored.
Default is false
How many real-life milliseconds should an ingame second be?
Default is 1000
You can use a variable ID here to use the value of that variable instead of the fixed value of secondLength.
Default is 0
Every time you change this variable, you have to call the following plugin command:
restart time system
How many ingame seconds should a minute be?
Default is 6
How many ingame minutes should an hour be?
Default is 6
How many ingame hours should a day be?
Default is 24
How many ingame days should a week be?
Default is 7
How many ingame days should a month be?
Default is 31
How many ingame months should a year be?
Default is 4
At what hour does the "morning" day period starts?
Default is 6
At what hour does the "day" day period starts?
Default is 9
At what hour does the "evening" day period starts?
Default is 18
At what hour does the "night" day period starts?
Default is 20
If true, the clock will be paused while text is being displayed with the Show Text command.
If you set the number of a switch here, the screen tint effect of the OrangeDayAndNight will be disabled when the switch is ON (other add-ons will use the same information to determine if the player is inside a closed space or not)
You can set a list of comma separated tilesets that will always be treated as "inside", regardless of the switch value.
Example value: 1, 2, 3
Set this to the number of a switch to be able to pause / unpause the time system with that switch.
If you don't use a switch, you can pause/unpause with the following script calls:
OrangeTimeSystem.paused = true;OrangeTimeSystem.paused = false;
This plugin uses Orange Event Manager to enable event listeners on the passage of time. This is a list of available events:
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:
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
Get it from here
Day and Night
- Free for any game
- No credits required
Last edited by a moderator: