Barebones function 122
Contents
Barebones function 122
Function 122: 122:
- Function 122 = 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 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.
How the function appears in the script
122: window_msg Current UTC time = <r67>:<r68>:<r69>.<cr>Current seconds in the day = <r66>.<cr>Current frames in the day = <r64>. //Displays a window message. Informing the player of the current UTC time, seconds in the day, and frames in the day.(This is just here to remind the quest editor what registers are used for what part of the UTC clock.)
winend //closes the window message.
ret
Also see
window_msg, winend, ret,