Barebones function 115

From Unofficial QEdit Wiki Guide
Revision as of 19:15, 26 March 2013 by Japanaman2 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Barebones function 115

Function 115: 115:

  • Function 115 = Part of count up timer code.

Count up timer code.

Count up timer code.

(In Barebones function 80. where it says sync_register 115, xxxxxxxx is the time limit / amount of time to give the clock in seconds. Default is 10 hours. You may edit this to suit the needs of your quest.)

Barebones function 110 = Function 110 - Gets the current number of frames in the day and stores it in register 113.

Barebones function 111 = Function 111 - Threaded in function 10500. Stays in function 115 until register 110 equals 00000001, If not makes register 111 equal 0000000, then continue on to function 112, and function 113.

Barebones function 112 = Function 112 - Counts 30 frames in register 111. Then Gets the current number of frames in the day and stores it in register 114. Subtracts the value of register 113 from register R114. Continue to function 113.

Barebones function 113 = Function 113 - Register 114 will be used to a the time to display. wait 1 frame. Display the clock. If register 112 is equal to 00000001 jump to function 114. If register 114 is greater then register 115 jump to function 114. If register 110 equals 00000001 jump to function 111. Jump to function 113.

Barebones function 114 = Function 114 - Turn off the display clock. Make register 112 equal 00000001 for all players. Make register 110 equal 00000000. Jump to function 115.

Barebones function 115 = Function 115 - Waits 1 frame. If register 110 equals 00000001 jump to function 111. Jump to function 115.

Use

Function 115 - Waits 1 frame. If register 110 equals 00000001 jump to function 111. Jump to function 115.

How the function appears in the script


115:     sync  //Waits 1 frame.
         jmpi_= R110, 00000001, 111 //If register 110 equals 00000001 jump to function 111.
         jmp 115 //Jumps to function 115.

Also see

sync, sync_register, jmpi_=, jmp, Barebones function 80,

Barebones function 110, Barebones function 111, Barebones function 112,

Barebones function 113, Barebones function 114