Barebones function 35

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

Barebones function 35

Function 35: 35:

  • Function 35 = Part of jump sequence. Forest console count up timer winning.

Jump sequence

Jump sequence name: Forest console count up timer winning.

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

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

Barebones function 35, = Second phase of time attack information conversion. Calls function 36

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

Barebones function 37, = Threaded when the quest began in function 10500. Constantly checks register 36 and register 37. Option to turn off threaded function 37. Jumps to function 38.

Barebones function 38, = Calls function 39. Sets register to turn off threaded function 37.

Barebones function 39, = 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 35 is used for the second phase of time attack information conversion. Calls function 36

How the function appears in the script


35:      divi R116, 00000E10 //Divides the value of register 116 by 3600 and stores the value in register 116.
         sync_register R116, R116 //Makes register 116 equal register 116 for all players.
         modi R117, 00000E10 //Preforms modular math on register 117 by 3600 and stores the value in register 117.
         divi R117, 0000003C //Divides the value of register 117 by 60 and stores the value in register 117.
         sync_register R117, R117 //Makes register 117 equal register 117 for all players.
         modi R118, 0000003C //Preforms modular math on register 118 by 60 and stores the value in register 118.
         sync_register R118, R118 //Makes register 118 equal register 118 for all players.
         call 36 //calls function 36.
         ret 

Also see

divi, sync_register, modi, call, ret, Barebones function 1,

Barebones function 31, Barebones function 34, Barebones function 36,

Barebones function 10500, Barebones function 37, Barebones function 38,

Barebones function 39