
Leknaat;183476 said:I have one quick question. If I remove the beginning and ending little SDK tag things, will it be compatible with normal RMXP scripting?
Tempus;223931 said:Is it possible to just have one screentone for day, one for night, one for evening and one for morning, and specify what screentones you want?
I dislike the screentones that are now, and i just want 4.![]()
def tone
period_length = Math::PI * (hours.to_f / Day)
red_shift = -100 + 115 * Math.sin(period_length)
green_shift = -140 + 155 * Math.sin(period_length)
blue_shift = -150 + 165 * Math.sin(period_length)
return Tone.new(red_shift, green_shift, blue_shift, 0)
end
def tone
case hours
when 0...somenumber
r, g, b, gy = RED, GREEN, BLUE, GRAY
when somenumber...anothernumber
r, g, b, gy = RED, GREEN, BLUE, GRAY
end
return Tone.new(r, g, b, gy)
end
alexanderpas;224323 said:uhm... you forgot to implement leap seconds, and don't forget that leap years don't happen if year is devidable to 400
Introduction:
-------------
This script allows your game to have time. Also includes a simple Day Night
System. And Also you can setup events that happen at a certain time
(ex. at 0 to 6 minutes past each hour, or on Tuesday March 20, 2007 at
3:00 PM to 4:00 the same day and year), [B]This script wasn't meant to be an exact
copy of our calendar as it is not accurate[/B]
Draken;224379 said:This gives me an urge to make some sort of Animal Crossing game. Go Trixi!
Time_Setup
start_hour 19
end_hour 5