Difference between revisions of "Barebones function 21"
From Unofficial QEdit Wiki Guide
Japanaman2 (Talk | contribs) |
Japanaman2 (Talk | contribs) |
||
Line 14: | Line 14: | ||
<span style='color:green'> jmpi_= </span>R21, 00000001, 1 <span style='color:orange'>//If Register 21 equals 1 jump to function 1.</span> | <span style='color:green'> jmpi_= </span>R21, 00000001, 1 <span style='color:orange'>//If Register 21 equals 1 jump to function 1.</span> | ||
<span style='color:green'> leti </span>R20, 00000001 <span style='color:orange'>//Makes register 20 equal 1.</span> | <span style='color:green'> leti </span>R20, 00000001 <span style='color:orange'>//Makes register 20 equal 1.</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 style='color:green'> ret </span> | ||
Line 19: | Line 20: | ||
==Also see== | ==Also see== | ||
− | [[sync]], [[jmpiue|jmpi_=]], [[leti]], [[ret]], | + | [[sync]], [[jmpiue|jmpi_=]], [[leti]], [[sync_register]] [[ret]], |
[[Barebones function 1]], [[Barebones function 24]] | [[Barebones function 1]], [[Barebones function 24]] |
Revision as of 00:08, 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.
ret
Also see
sync, jmpi_=, leti, sync_register ret,