Cool script, but yeah, variables will be useful. And in both - time changes variable, and variable changes time.
Also it's incompatible with Khas Awesome Light Effects. I mean - there's no lights.
Variables!? You can do that! If you wanted to set a variable to the current time you can use the script call:
$game_variables[]=(variable id, GameTime::hour?) to set variable id to the hour
$game_variables[]=(variable id, GameTime::minute?) to set variable id to the minute
$game_variables[]=(variable id, $game_time) to set variable id to the minute of the day (range of 0-1440)
To change time with a variable? Just as complimicated! Script calls:
GameTime::set($game_variables[](variable id)) to set time to the number of the variable, in minutes
GameTime::change($game_variables[](variable id)) to increment time in minutes by the variable (available in the most recent version only)
As for the Khas Awesome Lighting Effects business, that's a pretty fancy script! And no not compatible straight off the bat.
But here, if you put this at the end of my script, or in a new block anywhere below it, you can achieve that... to some degree.
Might have to edit tones a bit... I suggest more blue. Everyone likes blue.
Spoiler
Code:module GameTime
def self.init
$game_time = 0
$game_time_surface = $game_map.effect_surface
end
def self.tint(tint = 60)
if USE_TINT != true then return end
for i in NOTINTMAPS
if $game_map.map_id == i
$game_map.effect_surface.change_color(0,10,10,10,25)
return
end
end
if SceneManager::scene_is?(Scene_Map) then else return end
case $game_time
when PRESUNRISE_TIME .. SUNRISE_TIME
$game_map.effect_surface.change_color(tint,PRESUNRISE_TONE.red,PRESUNRISE_TONE.green,PRESUNRISE_TONE.blue,PRESUNRISE_TONE.gray)
when SUNRISE_TIME .. NOONSTART_TIME
$game_map.effect_surface.change_color(tint,SUNRISE_TONE.red,SUNRISE_TONE.green,SUNRISE_TONE.blue,SUNRISE_TONE.gray)
when NOONSTART_TIME .. NOONEND_TIME
$game_map.effect_surface.change_color(tint,NOONSTART_TONE.red,NOONSTART_TONE.green,NOONSTART_TONE.blue,NOONSTART_TONE.gray)
when NOONEND_TIME .. PRESUNSET_TIME
$game_map.effect_surface.change_color(tint,NOONEND_TONE.red,NOONEND_TONE.green,NOONEND_TONE.blue,NOONEND_TONE.gray)
when PRESUNSET_TIME .. SUNSET_TIME
$game_map.effect_surface.change_color(tint,PRESUNSET_TONE.red,PRESUNSET_TONE.green,PRESUNSET_TONE.blue,PRESUNSET_TONE.gray)
when SUNSET_TIME .. 1440
$game_map.effect_surface.change_color(tint,SUNSET_TONE.red,SUNSET_TONE.green,SUNSET_TONE.blue,SUNSET_TONE.gray)
when 0 .. MIDNIGHT_TIME
$game_map.effect_surface.change_color(tint,SUNSET_TONE.red,SUNSET_TONE.green,SUNSET_TONE.blue,SUNSET_TONE.gray)
when MIDNIGHT_TIME .. PRESUNRISE_TIME
$game_map.effect_surface.change_color(tint,MIDNIGHT_TONE.red,MIDNIGHT_TONE.green,MIDNIGHT_TONE.blue,MIDNIGHT_TONE.gray)
end
end
end