Barebones function 120
Contents
Barebones function 120
Function 120: 120:
- Function 120 = Part of UTC time.
UTC time
Coordinated Universal Time (UTC) can be used for several things most commonly used to lock events, or access to cretin parts of a quest, or even access to quests by time of day, or run seconds games it is very useful. And anything else you can think of to base time on be creative.
For conversions from beat time see beat time conversion tool [1]
Barebones function 120 = Function 120 is threaded when the quest begins in Barebones function 10500. Waits 1 frame. Store the current number of frames in a day in register 64. Then jumps to function 121.
Barebones function 121 = Function 121 breaks down the current number of frames in the day into current number of seconds in the day, and current UTC time. Then jumps back to function 120 to re get the time and keep the time moving and current.
Barebones function 122 = Function 122 Displays a window message telling the player the current UTC time (24hour clock) hours register 67 : minutes register 68 : seconds register 69. the current number of seconds in the day register 66, and the current number of frames in the day register 64.
Use
Function 120 is threaded when the quest begins in Barebones function 10500. Waits 1 frame. Store the current number of frames in a day in register 64. Then jumps to function 121.
How the function appears in the script
120: sync //Waits 1 frame.
gettime R64 //Gets the current number of frames in a day and stores it in register 64.
jmp 121 //Jumps to function 121.
Also see
sync, gettime, jmp, Barebones function 121, Barebones function 122