Barebones function 24

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

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

Barebones function 24

Function 24: 24:

  • Function 24 = Part of jump sequence. Forest console count down timer winning.

Jump sequence

Jump sequence name: Forest console count down timer winning.

Barebones function 21, = Function 21 goes on the forest console when using a count down timer for winning console. Has a disable console use to start with after being used once, Sets register 22 which disables quest failure message count down timer. Jumps to function 24.

Barebones function 24, = Disables the use for the forest console for a count down timer winning. Begins the first phase of time attack info conversion. Call function 25.

Barebones function 25, = Second phase of time attack information conversion. Calls function 26

Barebones function 26, = Turns off the clock. Tells the quest giver to now say the winning cinematic speech when encountered. Sets the register choice for threaded function 27.

Barebones function 27, = Threaded when the quest began in function 10500. Constantly checks Register 26 and register 27. option to turn off threaded function 27. Jumps to function 28.

Barebones function 28, = Calls function 29. Sets register to turn off threaded function 27.

Barebones function 29, = Enters cinematic mode stopping players. Unlocks a door (Usually this will be to turn off a laser fence or open a door to a room containing teleporter leading back to pioneer 2/labo.) Displays winning console message. Closes winning console message. Displays time attack information. exits cinematic mode returning control to the player.

Barebones function 1, = Used to end threads or functions.

Use

Function 24 is used to disable the use for the forest console for a count down timer winning. Begins the first phase of time attack info conversion. Call function 25.

How the function appears in the script


24:      sync  //Waits 1 frame.
         sync_register R21, 00000001 //Makes register 21 equal 1 for all players.
         sync_register R20, 00000000 //Makes register 20 equal 0 for all players.
         sync_register R102, R102 //Makes register 102 equal register 102 for all players.
         let R106, R102 //Copies register 102's value to register 106.
         let R107, R102 //Copies register 102's value to register 107.
         let R108, R102 //Copies register 102's value to register 108.
         call 25 //Calls function 25.
         ret 

Also see

sync, sync_register, let, call, ret, Barebones function 1,

Barebones function 21, Barebones function 25, Barebones function 26,

Barebones function 10500, Barebones function 27, Barebones function 28,

Barebones function 29