List of Opcodes: Difference between revisions
m The opcodes never end (up to 0xDF) Tags: Reverted Visual edit |
m Teensy-weensy bit of opcodes (up to 0xE5) Tags: Reverted Visual edit |
||
| Line 3,745: | Line 3,745: | ||
|} | |} | ||
=== 0xe0 - screen_WhiteChange === | === 0xe0 - screen_WhiteChange === | ||
< | Changes the brightness of the screen across a certain number of frames. This opcode will not affect: | ||
* Entities who have had their 4th "output" bit set to 1 (e.g., by using <code>SetOutputAttribute(16);</code> with them). | |||
* Portraits. | |||
* Textboxes. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 3,756: | Line 3,760: | ||
|- | |- | ||
|1 | |1 | ||
| | |bool | ||
| | |suspension_flag | ||
| | |Determines whether the script will suspend until this opcode's operation is complete. 0 is false and 1 is true. | ||
|- | |- | ||
|2 | |2 | ||
|uint | |uint | ||
| | |duration | ||
| | |The number of frames used to change the Touch Screen's brightness. | ||
|- | |- | ||
|3 | |3 | ||
|uint | |uint | ||
| | |start_brightness | ||
| | |The brightness level the opcode will begin at. | ||
* The minimum brightness is 0, which results in a white screen. | |||
* The default brightness is 256. | |||
* The maximum brightness is 512, which results in a black screen. | |||
|- | |- | ||
|4 | |4 | ||
|uint | |uint | ||
| | |end_brightness | ||
| | |The brightness level the opcode will end at. | ||
* The minimum brightness is 0, which results in a white screen. | |||
* The default brightness is 256. | |||
* The maximum brightness is 512, which results in a black screen. | |||
|} | |} | ||
=== 0xe1 - screen_WhiteChangeAll === | === 0xe1 - screen_WhiteChangeAll === | ||
Changes the brightness of the screen across a certain number of frames. This opcode will affect everything on the Touch Screen. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 3,787: | Line 3,799: | ||
|- | |- | ||
|1 | |1 | ||
| | |bool | ||
| | |suspension_flag | ||
| | |Determines whether the script will suspend until this opcode's operation is complete. 0 is false and anything else is true. | ||
|- | |- | ||
|2 | |2 | ||
|uint | |uint | ||
| | |duration | ||
| | |The number of frames used to change the Touch Screen's brightness. | ||
|- | |- | ||
|3 | |3 | ||
|uint | |uint | ||
| | |start_brightness | ||
| | |The brightness level the opcode will begin at. | ||
* The minimum brightness is 0, which results in a white screen. | |||
* The default brightness is 256. | |||
* The maximum brightness is 512, which results in a black screen. | |||
|- | |- | ||
|4 | |4 | ||
|uint | |uint | ||
| | |end_brightness | ||
| | |The brightness level the opcode will end at. | ||
* The minimum brightness is 0, which results in a white screen. | |||
* The default brightness is 256. | |||
* The maximum brightness is 512, which results in a black screen. | |||
|} | |} | ||
=== 0xe2 - screen_WhiteIn === | === 0xe2 - screen_WhiteIn === | ||
< | Currently (and confusingly) unknown. Do not be deceived by this opcode's name: After using <code>screen_WhiteOut</code>, use <code>screen_FadeIn</code> to restore the Touch Screen's brightness level! | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 3,820: | Line 3,840: | ||
|uint | |uint | ||
|unk0 | |unk0 | ||
| | |Currently unknown. | ||
|- | |- | ||
|2 | |2 | ||
|uint | |uint | ||
|unk1 | |unk1 | ||
| | |Currently unknown. | ||
|} | |} | ||
=== 0xe3 - screen_WhiteInAll === | === 0xe3 - screen_WhiteInAll === | ||
< | Currently (and confusingly) unknown. Do not be deceived by this opcode's name: After using <code>screen_WhiteOutAll</code>, use <code>screen_FadeInAll</code> to restore the Touch Screen's brightness level! | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 3,841: | Line 3,861: | ||
|uint | |uint | ||
|unk0 | |unk0 | ||
| | |Currently unknown. | ||
|- | |- | ||
|2 | |2 | ||
|uint | |uint | ||
|unk1 | |unk1 | ||
| | |Currently unknown. | ||
|} | |} | ||
=== 0xe4 - screen_WhiteOut === | === 0xe4 - screen_WhiteOut === | ||
< | Changes the brightness of the screen to its maximum (i.e., a white screen) across a certain number of frames. This opcode will not affect: | ||
* Entities who have had their 4th "output" bit set to 1 (e.g., by using <code>SetOutputAttribute(16);</code> with them). | |||
* Portraits. | |||
* Textboxes. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 3,860: | Line 3,884: | ||
|- | |- | ||
|1 | |1 | ||
| | |bool | ||
| | |suspension_flag | ||
| | |Determines whether the script will suspend until this opcode's operation is complete. 0 is false and anything else is true. | ||
|- | |- | ||
|2 | |2 | ||
|uint | |uint | ||
| | |duration | ||
| | |The number of frames used to change the Touch Screen's brightness. | ||
|} | |} | ||
=== 0xe5 - screen_WhiteOutAll === | === 0xe5 - screen_WhiteOutAll === | ||
Changes the brightness of the screen to its maximum (i.e., a white screen) across a certain number of frames. This opcode will affect everything on the Touch Screen. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 3,881: | Line 3,905: | ||
|- | |- | ||
|1 | |1 | ||
| | |bool | ||
| | |suspension_flag | ||
| | |Determines whether the script will suspend until this opcode's operation is complete. 0 is false and anything else is true. | ||
|- | |- | ||
|2 | |2 | ||
|uint | |uint | ||
| | |duration | ||
| | |The number of frames used to change the Touch Screen's brightness. | ||
|} | |} | ||
=== 0xe6 - screen2_FadeChange === | === 0xe6 - screen2_FadeChange === | ||