Difference between revisions of "Barebones function 21"

From Unofficial QEdit Wiki Guide
Jump to: navigation, search
Line 16: Line 16:
 
  <span style='color:red'>        sync_register </span>R22, 00000001 <span style='color:orange'>//Makes register 22 equal 1 for all players.</span>
 
  <span style='color:red'>        sync_register </span>R22, 00000001 <span style='color:orange'>//Makes register 22 equal 1 for all players.</span>
 
  <span style='color:green'>        jmpi_= </span>R20, 00000001, 24 <span style='color:orange'>//If Register 20 equals 1 jump to function 24.</span>
 
  <span style='color:green'>        jmpi_= </span>R20, 00000001, 24 <span style='color:orange'>//If Register 20 equals 1 jump to function 24.</span>
<span style='color:green'>        ret </span>
 
 
  </span>
 
  </span>
  
 
==Also see==
 
==Also see==
[[sync]], [[jmpiue|jmpi_=]], [[leti]], [[sync_register]] [[ret]],
+
[[sync]], [[jmpiue|jmpi_=]], [[leti]], [[sync_register]],
  
 
[[Barebones function 1]], [[Barebones function 24]]
 
[[Barebones function 1]], [[Barebones function 24]]

Revision as of 00:09, 17 March 2013

Barebones function 21

Function 21: 21:

  • Function 21

Use

Ending console for count down timer.

Function 21 goes on your ending forest console when using the count down timer.

How the function appears in the script


21:      sync  //waits 1 frame.
         jmpi_= R21, 00000001, 1 //If Register 21 equals 1 jump to function 1.
         leti R20, 00000001 //Makes register 20 equal 1.
         sync_register R22, 00000001 //Makes register 22 equal 1 for all players.
         jmpi_= R20, 00000001, 24 //If Register 20 equals 1 jump to function 24.

Also see

sync, jmpi_=, leti, sync_register,

Barebones function 1, Barebones function 24