Force nighttime
Force nighttime
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
Re: Force nighttime
Step one: Skuggs video tutorial has the hints, info you need to do this.
Step Two: 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).
Step Two: 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).
Re: Force nighttime
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