View Single Post
  #171    
Old July 29th, 2010, 01:38 PM
colcolstyles's Avatar
colcolstyles
Yours truly
 
Join Date: May 2008
Location: The Bay Area
Gender: Male
Nature: Lonely
Quote:
Originally Posted by Aljam View Post
Is there a way to set the clock in fire red? Or do you have to have ruby to do it.
You could do it but it wouldn't be easy. When the player sets the time on the clock in-game, an offset between the system time (what is read from the RTC) and the time entered by the player is calculated. Whenever the game needs to access the time again, it first reads the time from the RTC (which is the time on your computer) and then uses the offset to figure out what time it really is. If you created a clock script, you could compare the time that the player entered with the system time, calculate the difference, save it somewhere, and then, whenever the player accesses the time again, add the offset to the system time.

Pragmatically, though, it would be best to simply use the system time. Unless the player lies and enters some different time during the clock script, the two should be very similar.
__________________

Brother of Vrai