Force nighttime
Posted: Fri Oct 31, 2014 6:46 pm
Hi i was wonder how i would force a map to always be nighttime, preferably without screwing up the passing of time for alchemist herb growth and all that
Stupid i am, but what about the steps ? ( Time evolving when party is walking ) Isn't prefering making a loop around the GameMode.getTimeOfDay() ? Something like :NutJob wrote:Setup a global (let's say global_tick_tracker) to keep track of the ticks (movement, progression of time) and at (global_tick_tracker % number == 0) cycle through backpacks and increment the proper inventory (herbs).
Code: Select all
function CatchTheNight()
if GameMode.getTimeOfDay() < 1.04 or GameMode.getTimeOfDay() > 1.97 then
GameMode.setTimeOfDay(1.041)
end
end