Page 1 of 1

Force nighttime

Posted: Fri Oct 31, 2014 6:46 pm
by Karinas23
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

Posted: Fri Oct 31, 2014 6:50 pm
by NutJob
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).

Re: Force nighttime

Posted: Fri Oct 31, 2014 7:01 pm
by Doridion
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).
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 :

Code: Select all

function CatchTheNight()
   if GameMode.getTimeOfDay() < 1.04 or GameMode.getTimeOfDay() > 1.97 then
      GameMode.setTimeOfDay(1.041)
   end
end