Difference between revisions of "Barebones function 100"
Japanaman2 (Talk | contribs) |
Japanaman2 (Talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
==Count down timer code.== | ==Count down timer code.== | ||
Count down timer code. | Count down timer code. | ||
+ | |||
(In [[Barebones function 60]]. where it says sync_register 105, xxxxxxxx is the time limit / amount of time to give the clock in seconds. Default is 30 minutes. You may edit this to suit the needs of your quest.) | (In [[Barebones function 60]]. where it says sync_register 105, xxxxxxxx is the time limit / amount of time to give the clock in seconds. Default is 30 minutes. You may edit this to suit the needs of your quest.) | ||
[[Barebones function 100]] = Function 100 - Gets the current number of frames in the day and stores it in register 103. | [[Barebones function 100]] = Function 100 - Gets the current number of frames in the day and stores it in register 103. | ||
− | [[Barebones function 101]] = Function 101 - Threaded. Stays in function 105 until register 100 equals 00000001, If not makes register 101 equal 0000000, then continue on to function 102, and function 103. | + | [[Barebones function 101]] = Function 101 - Threaded in function 10500. Stays in function 105 until register 100 equals 00000001, If not makes register 101 equal 0000000, then continue on to function 102, and function 103. |
− | [[Barebones function 102]] = Function 102 - Counts 30 frames in register 101. Then Gets the current number of frames in the day and stores it in register 104. Subtracts the value of register 103 from register R104. Makes register 102 equal register 105. | + | [[Barebones function 102]] = Function 102 - Counts 30 frames in register 101. Then Gets the current number of frames in the day and stores it in register 104. Subtracts the value of register 103 from register R104. Makes register 102 equal register 105. Subtracts the value of register 104 from register 102. Continue to function 103. |
[[Barebones function 103]] = Function 103 - Register 102 will be used to a the time to display. wait 1 frame. Display the clock. If register 102 is less then or equal to 00000000 jump to function 104. If register 100 equals 00000001 jump to function 101. Jump to function 103. | [[Barebones function 103]] = Function 103 - Register 102 will be used to a the time to display. wait 1 frame. Display the clock. If register 102 is less then or equal to 00000000 jump to function 104. If register 100 equals 00000001 jump to function 101. Jump to function 103. |
Latest revision as of 13:00, 22 March 2013
Contents
Barebones function 100
Function 100: 100:
- Function 100 = Part of count down timer code.
Count down timer code.
Count down timer code.
(In Barebones function 60. where it says sync_register 105, xxxxxxxx is the time limit / amount of time to give the clock in seconds. Default is 30 minutes. You may edit this to suit the needs of your quest.)
Barebones function 100 = Function 100 - Gets the current number of frames in the day and stores it in register 103.
Barebones function 101 = Function 101 - Threaded in function 10500. Stays in function 105 until register 100 equals 00000001, If not makes register 101 equal 0000000, then continue on to function 102, and function 103.
Barebones function 102 = Function 102 - Counts 30 frames in register 101. Then Gets the current number of frames in the day and stores it in register 104. Subtracts the value of register 103 from register R104. Makes register 102 equal register 105. Subtracts the value of register 104 from register 102. Continue to function 103.
Barebones function 103 = Function 103 - Register 102 will be used to a the time to display. wait 1 frame. Display the clock. If register 102 is less then or equal to 00000000 jump to function 104. If register 100 equals 00000001 jump to function 101. Jump to function 103.
Barebones function 104 = Function 104 - Turn off the display clock. Make register 105 equal 00000000 for all players. Make register 100 equal 00000000. Jump to function 105.
Barebones function 105 = Function 105 - Waits 1 frame. If register 100 equals 00000001 jump to function 101. Jump to function 105.
Use
Function 100 - Gets the current number of frames in the day and stores it in register 103.
How the function appears in the script
100: gettime R103 //gets the current number of frames in the day and stores it in register 103.
ret
Also see
gettime, ret, Barebones function 60, Barebones function 101,
Barebones function 102, Barebones function 103, Barebones function 104,