- Joined
- Aug 14, 2015
- Messages
- 30
- Reaction score
- 33
- First Language
- Dutch
- Primarily Uses
Hello Rpgmakers,
I made a script for changing the tones on specific times of the days. This works on the internal clock on your device. Switches of your choice gets turned on or off depending on the time. So you can make events that only trigger in the night.
It supports 5 tones depending on time that you can set. These tones can be activated between hours you want. You can also turn of the automatic tone system and set those tones yourself. In totaal the script supports 27 different tones!
If you want to use the based on time then set the param:
useTime to 1 if not set it to 0.
You can choice to use the tones in Battle yes or no.
useBattleTone is one of the params that you can set. 1 for true, 0 for false
A lot of things are configurable so you can easy it.
Custom Times:
If you use the automatic time system you can set the the following variables.
The times are based on 00-23 format. All of these are integers and are getting used in the script like this. Midnight runs from MignightStart to MorningStart. Morning runs from MorningStart till NoonStart and so on.
You can create up to 27 different tones.
Tones are an array of 4 numbers. [red,green,blue,gray] Minimum -255 & Maximum 255
Switches:
It is possible to set up to 5 gameSwitches. These switches are meant to use for time depending events. In the variable list you can sign them to a switch.
PluginCommands:
setTone(Tone):
With this pluging command you can set a tone. It need 1 parameter ypi can send it a string.
Example:
You want to use Custom_Tone_12 in an event. Just do setTone(Custom_Tone_12) as a plugin command.
clearTone
With this plugin command you can clear the current tone. Null_Tone gets used for this.
setUseBattleTone
Maybe you want for a certain fight that you need an extra tone in it or not. Well that is possible
you can on the run change if this should happen yes or no.
If call a plugin command wit setUseBattleTone(1) it will turn battletones on. if you use a 0 here it will turn it of.
setUseTime
So your game started and the player was not bound to a time system. But on a certain part you want that this happens. Well no problem you can turn this on!
just call setUseTime(1) for activate and for deactivate use 0.
The Script
Just drop it in your plugin folder and activate it. Set the variables and have fun.
If you have any problems with it just let me know.
PS: I need to work out the help file.
Greetings.
Edit: Link re-added.
Edit: LateMoring to Morning. useTimedZone to useTime. setUseTimedZone to setUseTime
I made a script for changing the tones on specific times of the days. This works on the internal clock on your device. Switches of your choice gets turned on or off depending on the time. So you can make events that only trigger in the night.
It supports 5 tones depending on time that you can set. These tones can be activated between hours you want. You can also turn of the automatic tone system and set those tones yourself. In totaal the script supports 27 different tones!
If you want to use the based on time then set the param:
useTime to 1 if not set it to 0.
You can choice to use the tones in Battle yes or no.
useBattleTone is one of the params that you can set. 1 for true, 0 for false
A lot of things are configurable so you can easy it.
Custom Times:
If you use the automatic time system you can set the the following variables.
The times are based on 00-23 format. All of these are integers and are getting used in the script like this. Midnight runs from MignightStart to MorningStart. Morning runs from MorningStart till NoonStart and so on.
- MidnightStart
- MorningStart
- NoonStart
- AfternoonStart
- NightStart
You can create up to 27 different tones.
Tones are an array of 4 numbers. [red,green,blue,gray] Minimum -255 & Maximum 255
- Null_Tone this tone is used for clearing the tone.
- Midnight_Tone this is the tone it uses for midnight
- Morning_Tone this is the tone it uses for the morning
- Noon_Tone this is the tone it uses for noon
- Afternoon_Tone this is the tone it uses for the afternoon
- Night_Tone this is the tone it uses for the night
- Custom_Tone_0 till Custom_Tone_20 these tones are made for if you want to use a different tone.
Switches:
It is possible to set up to 5 gameSwitches. These switches are meant to use for time depending events. In the variable list you can sign them to a switch.
- MidnightSwitch
- MorningSwitch
- NoonSwitch
- AfternoonSwitch
- NightSwitch
PluginCommands:
setTone(Tone):
With this pluging command you can set a tone. It need 1 parameter ypi can send it a string.
Example:
You want to use Custom_Tone_12 in an event. Just do setTone(Custom_Tone_12) as a plugin command.
clearTone
With this plugin command you can clear the current tone. Null_Tone gets used for this.
setUseBattleTone
Maybe you want for a certain fight that you need an extra tone in it or not. Well that is possible
you can on the run change if this should happen yes or no.
If call a plugin command wit setUseBattleTone(1) it will turn battletones on. if you use a 0 here it will turn it of.
setUseTime
So your game started and the player was not bound to a time system. But on a certain part you want that this happens. Well no problem you can turn this on!
just call setUseTime(1) for activate and for deactivate use 0.
The Script
Just drop it in your plugin folder and activate it. Set the variables and have fun.
If you have any problems with it just let me know.
PS: I need to work out the help file.
Greetings.
Edit: Link re-added.
Edit: LateMoring to Morning. useTimedZone to useTime. setUseTimedZone to setUseTime
Last edited by a moderator:
