Difference between revisions of "Barebones function 25"

From Unofficial QEdit Wiki Guide
Jump to: navigation, search
 
 
(3 intermediate revisions by the same user not shown)
Line 15: Line 15:
 
[[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 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 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 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 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.
 
[[Barebones function 1]], = Used to end threads or functions.
Line 28: Line 28:
 
==How the function appears in the script==
 
==How the function appears in the script==
 
  <span style='font-size:12px;font-family:courier'>
 
  <span style='font-size:12px;font-family:courier'>
  <span style='color:blue'>25:      </span><span style='color:green'>divi </span>R106, 00000E10 <span style='color:orange'>//Divides the value of register 106 by 3600 and stores the value in r106.</span>
+
  <span style='color:blue'>25:      </span><span style='color:green'>divi </span>R106, 00000E10 <span style='color:orange'>//Divides the value of register 106 by 3600 and stores the value in register 106.</span>
 
  <span style='color:red'>        sync_register </span>R106, R106 <span style='color:orange'>//Makes register 106 equal register 106 for all players.</span>
 
  <span style='color:red'>        sync_register </span>R106, R106 <span style='color:orange'>//Makes register 106 equal register 106 for all players.</span>
 
  <span style='color:green'>        modi </span>R107, 00000E10 <span style='color:orange'>//Preforms modular math on register 107 by 3600 and stores the value in register 107.</span>
 
  <span style='color:green'>        modi </span>R107, 00000E10 <span style='color:orange'>//Preforms modular math on register 107 by 3600 and stores the value in register 107.</span>
  <span style='color:green'>        divi </span>R107, 0000003C <span style='color:orange'>//Divides the value of register 107 by 60 and stores the value in r107.</span>
+
  <span style='color:green'>        divi </span>R107, 0000003C <span style='color:orange'>//Divides the value of register 107 by 60 and stores the value in register 107.</span>
 
  <span style='color:red'>        sync_register </span>R107, R107 <span style='color:orange'>//Makes register 107 equal register 107 for all players.</span>
 
  <span style='color:red'>        sync_register </span>R107, R107 <span style='color:orange'>//Makes register 107 equal register 107 for all players.</span>
 
  <span style='color:green'>        modi </span>R108, 0000003C <span style='color:orange'>//Preforms modular math on register 108 by 60 and stores the value in register 108.</span>
 
  <span style='color:green'>        modi </span>R108, 0000003C <span style='color:orange'>//Preforms modular math on register 108 by 60 and stores the value in register 108.</span>
Line 40: Line 40:
  
 
==Also see==
 
==Also see==
[[sync]], [[sync_register]], [[let]], [[call]], [[ret]], [[Barebones function 1]],   
+
[[divi]], [[sync_register]], [[modi]], [[call]], [[ret]], [[Barebones function 1]],   
  
 
[[Barebones function 21]], [[Barebones function 24]], [[Barebones function 26]],
 
[[Barebones function 21]], [[Barebones function 24]], [[Barebones function 26]],

Latest revision as of 07:53, 18 March 2013

Barebones function 25

Function 25: 25:

  • Function 25 = 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 25 is used for the second phase of time attack information conversion. Calls function 26

How the function appears in the script


25:      divi R106, 00000E10 //Divides the value of register 106 by 3600 and stores the value in register 106.
         sync_register R106, R106 //Makes register 106 equal register 106 for all players.
         modi R107, 00000E10 //Preforms modular math on register 107 by 3600 and stores the value in register 107.
         divi R107, 0000003C //Divides the value of register 107 by 60 and stores the value in register 107.
         sync_register R107, R107 //Makes register 107 equal register 107 for all players.
         modi R108, 0000003C //Preforms modular math on register 108 by 60 and stores the value in register 108.
         sync_register R108, R108 //Makes register 108 equal register 108 for all players.
         call 26 //calls function 26.
         ret 

Also see

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

Barebones function 21, Barebones function 24, Barebones function 26,

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

Barebones function 29