|
|
| Line 209: |
Line 209: |
| |} | | |} |
| === 0x8 - back_SetDungeonBanner === | | === 0x8 - back_SetDungeonBanner === |
| Displays a specific string using the <code>FONT/banner.bin:FONT/b_pal.bin</code> font, editable in the Misc. Graphics tab of SkyTemple. The text chosen is defined in Dungeons tab as a dungeon's <code>back_SetDungeonBanner</code> string. This opcode will delete any actors, objects, and performers that are currently loaded. | | Displays a specific string using the <code>FONT/banner.bin:FONT/b_pal.bin</code> font, editable in the Misc. Graphics tab of SkyTemple. The text chosen is defined in Dungeons tab as a dungeon's <code>back_SetDunegonBanner</code> string. This opcode will delete any actors, objects, and performers that are currently loaded. |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 230: |
Line 230: |
| |} | | |} |
| === 0x9 - back_SetGround === | | === 0x9 - back_SetGround === |
| Sets the Map Background from a Level. Upon using this opcode, the variable <code>$GROUND_MAP</code> will be updated to match the ID of the chosen Level. This opcode will delete any actors, objects, and performers that are currently loaded. | | Sets the Map Background from a Level. Upon using this opcode, the variable $GROUND_MAP will be updated to match the ID of the chosen Level. This opcode will delete any actors, objects, and performers that are currently loaded. |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 327: |
Line 327: |
| |String | | |String |
| |title | | |title |
| |The title displayed on the Touch Screen. | | |The title displayed onscreen. |
| |} | | |} |
| === 0xe - back_SetWeather === | | === 0xe - back_SetWeather === |
| Line 580: |
Line 580: |
| |1 | | |1 |
| |sint | | |sint |
| |mode | | |mode_id |
| |A value of 0 is no mode. A negative value seems to set the Top Screen to the overworld's current Top Screen setting. | | |A value of 0 is no mode. A negative value seems to set the Top Screen to the overworld's current Top Screen setting. |
|
| |
|
| Line 779: |
Line 779: |
| |uint | | |uint |
| |duration | | |duration |
| |The number of frames used to change the BGM's volume. | | |The number of frames to change the BGM's volume. |
| |- | | |- |
| |2 | | |2 |
| Line 836: |
Line 836: |
| |uint | | |uint |
| |duration | | |duration |
| |The number of frames used to fade in the BGM. | | |The number of frames to fade in the BGM. |
| |- | | |- |
| |3 | | |3 |
| Line 1,674: |
Line 1,674: |
| |GameVar | | |GameVar |
| |var | | |var |
| |One of the 115 possible script variables. A two-indexed variable (e.g., <code>$SCENARIO_MAIN</code>) is encouraged to use. | | |One of the 115 possible script variables. A two-indexed variable (e.g., $SCENARIO_MAIN) is encouraged to use. |
| |- | | |- |
| |2 | | |2 |
| Line 1,925: |
Line 1,925: |
| |uint | | |uint |
| |duration | | |duration |
| |The number of frames used to fade out the screens. | | |The number of frames to fade out the screens. |
| |} | | |} |
| === 0x8e - main_EnterGround === | | === 0x8e - main_EnterGround === |
| Line 1,955: |
Line 1,955: |
| |uint | | |uint |
| |duration | | |duration |
| |The number of frames used to fade out the screens. | | |The number of frames to fade out the screens. |
| |} | | |} |
| === 0x8f - main_EnterGroundMulti === | | === 0x8f - main_EnterGroundMulti === |
| Line 1,985: |
Line 1,985: |
| |uint | | |uint |
| |duration | | |duration |
| |The number of frames used to fade out the screens. | | |The number of frames to fade out the screens. |
| |- | | |- |
| |3 | | |3 |
| Line 2,006: |
Line 2,006: |
| |uint | | |uint |
| |duration | | |duration |
| |The number of frames used to fade out the screens. | | |The number of frames to fade out the screens. |
| |} | | |} |
| === 0x91 - main_EnterTraining === | | === 0x91 - main_EnterTraining === |
| Line 2,120: |
Line 2,120: |
| No parameters. | | No parameters. |
| === 0x98 - message_Explanation === | | === 0x98 - message_Explanation === |
| Displays the string defined in the ''txt'' parameter centered in the middle of the Touch Screen. The string will appear without any frame defined in <code>FONT/frameX.wte</code> (as seen in the Misc. Graphics tab of SkyTemple). This opcode does not need <code>message_Close</code> to suspend the routine. | | Displays the string defined in the ''txt'' parameter centered in the middle of the Touch Screen. The string will appear without any frame defined in FONT/frameX.wte (as seen in the Misc. Graphics tab of SkyTemple). This opcode does not need <code>message_Close</code> to suspend the routine. |
|
| |
|
| This opcode does not support displaying a portrait. No sound will emit from the text scrolling. | | This opcode does not support displaying a portrait. No sound will emit from the text scrolling. |
| Line 2,159: |
Line 2,159: |
| |} | | |} |
| === 0x9a - message_ImitationSound === | | === 0x9a - message_ImitationSound === |
| Displays the string defined in the ''txt'' parameter at the bottom of the Touch Screen. The string will appear surrounded by a player-chosen frame defined in <code>FONT/frameX.wte</code> (as seen in the Misc. Graphics tab of SkyTemple). | | Displays the string defined in the ''txt'' parameter at the bottom of the Touch Screen. The string will appear surrounded by a player-chosen frame defined in FONT/frameX.wte (as seen in the Misc. Graphics tab of SkyTemple). |
|
| |
|
| This opcode does not support displaying a portrait. No sound will emit from the text scrolling. | | This opcode does not support displaying a portrait. No sound will emit from the text scrolling. |
| Line 2,190: |
Line 2,190: |
| No parameters. | | No parameters. |
| === 0x9c - message_Mail === | | === 0x9c - message_Mail === |
| Displays the string defined in the ''txt'' parameter at the bottom of the Touch Screen. The string will appear surrounded by a player-chosen frame defined in <code>FONT/frameX.wte</code> (as seen in the Misc. Graphics tab of SkyTemple). | | Displays the string defined in the ''txt'' parameter at the bottom of the Touch Screen. The string will appear surrounded by a player-chosen frame defined in FONT/frameX.wte (as seen in the Misc. Graphics tab of SkyTemple). |
|
| |
|
| This opcode does not support displaying a portrait. No sound will emit from the text scrolling. | | This opcode does not support displaying a portrait. No sound will emit from the text scrolling. |
| Line 2,224: |
Line 2,224: |
| |} | | |} |
| === 0x9e - message_Monologue === | | === 0x9e - message_Monologue === |
| Displays the string defined in the ''txt'' parameter at the bottom of the Touch Screen. The string will appear surrounded by a player-chosen frame defined in <code>FONT/frameX.wte</code> (as seen in the Misc. Graphics tab of SkyTemple). | | Displays the string defined in the ''txt'' parameter at the bottom of the Touch Screen. The string will appear surrounded by a player-chosen frame defined in FONT/frameX.wte (as seen in the Misc. Graphics tab of SkyTemple). |
|
| |
|
| This opcode supports displaying a portrait. No sound will emit from the text scrolling. | | This opcode supports displaying a portrait. No sound will emit from the text scrolling. |
| Line 2,242: |
Line 2,242: |
| |} | | |} |
| === 0x9f - message_Narration === | | === 0x9f - message_Narration === |
| Fades in the screen and instantly displays the string defined in the ''txt'' parameter centered in the middle of the Touch Screen. The string will appear without any frame defined in <code>FONT/frameX.wte</code> (as seen in the Misc. Graphics tab of SkyTemple). This opcode does not need <code>message_Close</code> to suspend the routine. Once the routine is resumed (by pressing the A Button, B Button, or text via the Touch Screen), the screen will fade out, including the string. | | Fades in the screen and instantly displays the string defined in the ''txt'' parameter centered in the middle of the Touch Screen. The string will appear without any frame defined in FONT/frameX.wte (as seen in the Misc. Graphics tab of SkyTemple). This opcode does not need <code>message_Close</code> to suspend the routine. Once the routine is resumed (by pressing the A Button, B Button, or text via the Touch Screen), the screen will fade out, including the string. |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 2,255: |
Line 2,255: |
| |uint | | |uint |
| |duration | | |duration |
| |The number of frames used to fade in/out the Touch Screen. | | |The number of frames to fade in/out the Touch Screen. |
| |- | | |- |
| |2 | | |2 |
| Line 2,263: |
Line 2,263: |
| |} | | |} |
| === 0xa0 - message_Notice === | | === 0xa0 - message_Notice === |
| Instantly displays the string defined in the ''txt'' parameter at the bottom of the Touch Screen. The string will appear surrounded by a player-chosen frame defined in <code>FONT/frameX.wte</code> (as seen in the Misc. Graphics tab of SkyTemple). | | Instantly displays the string defined in the ''txt'' parameter at the bottom of the Touch Screen. The string will appear surrounded by a player-chosen frame defined in FONT/frameX.wte (as seen in the Misc. Graphics tab of SkyTemple). |
|
| |
|
| This opcode does not support displaying a portrait. | | This opcode does not support displaying a portrait. |
| Line 2,383: |
Line 2,383: |
| |} | | |} |
| === 0xa7 - message_SetFacePosition === | | === 0xa7 - message_SetFacePosition === |
| Re-positions an actor's portrait.
| | Repositions an actor's portrait. |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 2,399: |
Line 2,399: |
| |} | | |} |
| === 0xa8 - message_SetWaitMode === | | === 0xa8 - message_SetWaitMode === |
| Makes strings displayed with a <code>message_</code> opcode auto-scroll. For both parameters, a value of -1 means the auto-scroll will stop.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 2,410: |
Line 2,410: |
| |- | | |- |
| |1 | | |1 |
| |sint | | |uint |
| |duration0 | | |unk0 |
| |Sets the frame count for a textbox auto-advancing, once the end of the string has been displayed. | | | |
| |- | | |- |
| |2 | | |2 |
| |sint | | |uint |
| |duration1 | | |unk1 |
| |Sets the frame count for text tags such as [K] auto-advancing. | | | |
| |} | | |} |
| === 0xa9 - message_SpecialTalk === | | === 0xa9 - message_SpecialTalk === |
| Displays a random Text String based off of the actor ACTOR_TALK_SUB's Talk Group.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 2,432: |
Line 2,432: |
| |1 | | |1 |
| |uint | | |uint |
| |category | | |unk0 |
| |A category of Text String. | | | |
| | |
| * 0 seems to use Text Strings while not in a dungeon (e.g., teammates waiting at Spinda's Cafe).
| |
| * 1 seems to be use Text Strings while mid-dungeon (e.g., teammates at Amp Plains).
| |
| |} | | |} |
| === 0xae - message_Talk === | | === 0xae - message_Talk === |
| Displays the string defined in the ''txt'' parameter at the bottom of the Touch Screen. The string will appear surrounded by a player-chosen frame defined in <code>FONT/frameX.wte</code> (as seen in the Misc. Graphics tab of SkyTemple). | | Displays text in the dialog box. |
| | |
| This opcode supports displaying a portrait. The sound effect 16133 will emit from the each character scrolling in the text.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 2,454: |
Line 2,449: |
| |String | | |String |
| |txt | | |txt |
| |Text to be displayed on the Touch Screen. | | | |
| |} | | |} |
| === 0xaf - Move2Position === | | === 0xaf - Move2Position === |
| Moves an entity (i.e., an actor, object, or performer) to a specific pixel position without restricting the angles used.
| | <TO DO: Opcode description> |
| | |
| This opcode does not have a parameter for an entity, as it must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 2,471: |
Line 2,464: |
| |1 | | |1 |
| |uint | | |uint |
| |speed | | |unk0 |
| |Movement speed. Higher values result in a faster speed. 0 will result in an instant movement. | | | |
| Values starting at 32770 and above will be slower than a value of 1.
| |
| |- | | |- |
| |2 | | |2 |
| |uint | | |uint |
| |x | | |x |
| |The pixel position on the X-axis. | | | |
| |- | | |- |
| |3 | | |3 |
| |uint | | |uint |
| |y | | |y |
| |The pixel position on the Y-axis. | | | |
| |} | | |} |
| === 0xb0 - Move2PositionLives === | | === 0xb0 - Move2PositionLives === |
| Moves an entity (i.e., an actor, object, or performer) to an actor without restricting the angles used.
| | <TO DO: Opcode description> |
| | |
| This opcode must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 2,500: |
Line 2,490: |
| |1 | | |1 |
| |uint | | |uint |
| |speed | | |unk0 |
| |Movement speed. Higher values result in a faster speed. 0 will result in an instant movement. | | | |
| Values starting at 32770 and above will be slower than a value of 1.
| |
| |- | | |- |
| |2 | | |2 |
| |Entity | | |uint |
| |actor_id | | |unk1 |
| |An entry in the Actor List. | | | |
| |} | | |} |
| === 0xb1 - Move2PositionMark === | | === 0xb1 - Move2PositionMark === |
| Moves an entity (i.e., an actor, object, or performer) to a Position Mark without restricting the angles used.
| | <TO DO: Opcode description> |
| | |
| This opcode does not have a parameter for an entity, as it must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 2,525: |
Line 2,512: |
| |uint | | |uint |
| |num_parameters | | |num_parameters |
| |The number of parameters to read from this opcode. | | | |
| |- | | |- |
| |2+ | | |2+ |
| |PositionMark | | |PositionMark |
| |pos_marker | | |pos_marker |
| |A structure consisting of a name, X unit, and Y unit. Units are defined as 8 pixels. | | |This parameter may be repeated multiple times |
| This parameter may be repeated multiple times. | |
| |} | | |} |
| === 0xb2 - Move2PositionMark === | | === 0xb2 - Move2PositionMark === |
| Moves an entity (i.e., an actor, object, or performer) to a Position Mark without restricting the angles used. | | Moves an actor to the position marker defined by the user. The speed of the movement is defined by the first parameter, with the actor moving faster with higher numbers. Notably, there exists numbers that will cause the actor to move slower than the speed of 1, generally these are around 32000, such as 32896. The actor will not be bound by the grid and can walk diagonally to reach the position defined. |
| | |
| This opcode does not have a parameter for an entity, as it must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 2,548: |
Line 2,532: |
| |1 | | |1 |
| |uint | | |uint |
| |speed | | |unk0 |
| |Movement speed. Higher values result in a faster speed. 0 will result in an instant movement. | | | |
| Values starting at 32770 and above will be slower than a value of 1.
| |
| |- | | |- |
| |2 | | |2 |
| |PositionMark | | |PositionMark |
| |pos_marker | | |pos_marker |
| |A structure consisting of a name, X unit, and Y unit. Units are defined as 8 pixels. | | | |
| |} | | |} |
| === 0xb3 - Move2PositionOffset === | | === 0xb3 - Move2PositionOffset === |
| Offsets an entity (i.e., an actor, object, or performer) from its current position across both axes without restricting the angles used.
| | <TO DO: Opcode description> |
| | |
| This opcode does not have a parameter for an entity, as it must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 2,573: |
Line 2,554: |
| |uint | | |uint |
| |num_parameters | | |num_parameters |
| |The number of parameters to read from this opcode. | | | |
| |- | | |- |
| |2+ | | |2+ |
| |sint | | |sint |
| |x, y | | |x |
| |The pixel offset to shift the entity across the X or Y-axis. | | |This parameter may be repeated multiple times |
| This parameter may be repeated multiple times. | |
| |} | | |} |
| === 0xb4 - Move2PositionOffset === | | === 0xb4 - Move2PositionOffset === |
| Offsets an entity (i.e., an actor, object, or performer) from its current position across both axes without restricting the angles used.
| | Moves an actor to a position that is x and y units away from their current x and y position respectively. The speed of the movement is defined by the first parameter, with the actor moving faster with higher numbers. Notably, there exists numbers that will cause the actor to move slower than the speed of 1, generally these are around 32000, such as 32896. The actor will not be bound by the grid and can walk diagonally to reach the position defined. |
| | |
| This opcode does not have a parameter for an entity, as it must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 2,596: |
Line 2,574: |
| |1 | | |1 |
| |uint | | |uint |
| |speed | | |unk0 |
| |Movement speed. Higher values result in a faster speed. 0 will result in an instant movement. | | | |
| Values starting at 32770 and above will be slower than a value of 1.
| |
| |- | | |- |
| |2 | | |2 |
| |sint | | |sint |
| |x | | |x |
| |The pixel offset to shift the entity across the X-axis. | | | |
| |- | | |- |
| |3 | | |3 |
| |sint | | |sint |
| |y | | |y |
| |The pixel offset to shift the entity across the Y-axis. | | | |
| |} | | |} |
| === 0xb5 - Move2PositionOffsetRandom === | | === 0xb5 - Move2PositionOffsetRandom === |
| Continuously and randomly offsets an entity (i.e., an actor, object, or performer) from its current position across both axes without restricting the angles used.
| | <TO DO: Opcode description> |
| | |
| This opcode does not have a parameter for an entity, as it must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 2,625: |
Line 2,600: |
| |1 | | |1 |
| |uint | | |uint |
| |speed | | |unk0 |
| |Movement speed. Higher values result in a faster speed. 0 will result in an instant movement. | | | |
| Values starting at 32770 and above will be slower than a value of 1.
| |
| |- | | |- |
| |2 | | |2 |
| |sint | | |sint |
| |x | | |x |
| |Determines something about the random pixel value chosen to apply to the X-axis; somewhat unknown. | | | |
| |- | | |- |
| |3 | | |3 |
| |sint | | |sint |
| |y | | |y |
| |Determines something about the random pixel value chosen to apply to the Y-axis; somewhat unknown. | | | |
| |} | | |} |
| === 0xb6 - Move3Position === | | === 0xb6 - Move3Position === |
| Moves an entity (i.e., an actor, object, or performer) to a specific pixel position in a rapid, strange motion.
| | <TO DO: Opcode description> |
| | |
| This opcode does not have a parameter for an entity, as it must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 2,654: |
Line 2,626: |
| |1 | | |1 |
| |uint | | |uint |
| |speed | | |unk0 |
| |Movement speed. Higher values result in a faster speed. 0 will result in an instant movement. | | | |
| Values starting at 32770 and above will be slower than a value of 1.
| |
| |- | | |- |
| |2 | | |2 |
| |uint | | |uint |
| |x | | |x |
| |The pixel position on the X-axis. | | | |
| |- | | |- |
| |3 | | |3 |
| |uint | | |uint |
| |y | | |y |
| |The pixel position on the Y-axis. | | | |
| |} | | |} |
| === 0xb7 - Move3PositionLives === | | === 0xb7 - Move3PositionLives === |
| Moves an entity (i.e., an actor, object, or performer) to an actor in a rapid, strange motion.
| | <TO DO: Opcode description> |
| | |
| This opcode must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 2,683: |
Line 2,652: |
| |1 | | |1 |
| |uint | | |uint |
| |speed | | |unk0 |
| |Movement speed. Higher values result in a faster speed. 0 will result in an instant movement. | | | |
| Values starting at 32770 and above will be slower than a value of 1.
| |
| |- | | |- |
| |2 | | |2 |
| |Entity | | |uint |
| |actor_id | | |unk1 |
| |An entry in the Actor List. | | | |
| |} | | |} |
| === 0xb8 - Move3PositionMark === | | === 0xb8 - Move3PositionMark === |
| Moves an entity (i.e., an actor, object, or performer) to a Position Mark in a rapid, strange motion.
| | <TO DO: Opcode description> |
| | |
| This opcode does not have a parameter for an entity, as it must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 2,708: |
Line 2,674: |
| |uint | | |uint |
| |num_parameters | | |num_parameters |
| |The number of parameters to read from this opcode. | | | |
| |- | | |- |
| |2+ | | |2+ |
| |PositionMark | | |PositionMark |
| |pos_marker | | |pos_marker |
| |A structure consisting of a name, X unit, and Y unit. Units are defined as 8 pixels. | | |This parameter may be repeated multiple times |
| This parameter may be repeated multiple times. | |
| |} | | |} |
| === 0xb9 - Move3PositionMark === | | === 0xb9 - Move3PositionMark === |
| Moves an entity (i.e., an actor, object, or performer) to a Position Mark in a rapid, strange motion.
| | <TO DO: Opcode description> |
| | |
| This opcode does not have a parameter for an entity, as it must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 2,731: |
Line 2,694: |
| |1 | | |1 |
| |uint | | |uint |
| |speed | | |num_parameters |
| |Movement speed. Higher values result in a faster speed. 0 will result in an instant movement. | | | |
| Values starting at 32770 and above will be slower than a value of 1.
| |
| |- | | |- |
| |2 | | |2 |
| |PositionMark | | |PositionMark |
| |pos_marker | | |pos_marker |
| |A structure consisting of a name, X unit, and Y unit. Units are defined as 8 pixels. | | | |
| |} | | |} |
| === 0xba - Move3PositionOffset === | | === 0xba - Move3PositionOffset === |
| Offsets an entity (i.e., an actor, object, or performer) from its current position across both axes in a rapid, strange motion.
| | <TO DO: Opcode description> |
| | |
| This opcode does not have a parameter for an entity, as it must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 2,756: |
Line 2,716: |
| |uint | | |uint |
| |num_parameters | | |num_parameters |
| |The number of parameters to read from this opcode. | | | |
| |- | | |- |
| |2+ | | |2+ |
| |sint | | |sint |
| |x, y | | |x |
| |The pixel offset to shift the entity across the X or Y-axis. | | |This parameter may be repeated multiple times |
| This parameter may be repeated multiple times. | |
| |} | | |} |
| === 0xbb - Move3PositionOffset === | | === 0xbb - Move3PositionOffset === |
| Offsets an entity (i.e., an actor, object, or performer) from its current position across both axes in a rapid, strange motion.
| | <TO DO: Opcode description> |
|
| |
|
| This opcode does not have a parameter for an entity, as it must be used in a with-statement or a targeted routine.
| | {| class="wikitable" |
| | |
| {| class="wikitable" | |
| |+Parameters | | |+Parameters |
| |- | | |- |
| Line 2,779: |
Line 2,736: |
| |1 | | |1 |
| |uint | | |uint |
| |speed | | |unk0 |
| |Movement speed. Higher values result in a faster speed. 0 will result in an instant movement. | | | |
| Values starting at 32770 and above will be slower than a value of 1.
| |
| |- | | |- |
| |2 | | |2 |
| |sint | | |sint |
| |x | | |x |
| |The pixel offset to shift the entity across the X-axis. | | | |
| |- | | |- |
| |3 | | |3 |
| |sint | | |sint |
| |y | | |y |
| |The pixel offset to shift the entity across the Y-axis. | | | |
| |} | | |} |
| === 0xbc - Move3PositionOffsetRandom === | | === 0xbc - Move3PositionOffsetRandom === |
| Continuously and randomly offsets an entity (i.e., an actor, object, or performer) from its current position across both axes in a rapid, strange motion.
| | <TO DO: Opcode description> |
| | |
| This opcode does not have a parameter for an entity, as it must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 2,808: |
Line 2,762: |
| |1 | | |1 |
| |uint | | |uint |
| |speed | | |unk0 |
| |Movement speed. Higher values result in a faster speed. 0 will result in an instant movement. | | | |
| Values starting at 32770 and above will be slower than a value of 1.
| |
| |- | | |- |
| |2 | | |2 |
| |sint | | |sint |
| |x | | |x |
| |Determines something about the random pixel value chosen to apply to the X-axis; somewhat unknown. | | | |
| |- | | |- |
| |3 | | |3 |
| |sint | | |sint |
| |y | | |y |
| |Determines something about the random pixel value chosen to apply to the Y-axis; somewhat unknown. | | | |
| |} | | |} |
| === 0xbd - MoveDirection === | | === 0xbd - MoveDirection === |
| Offsets an entity (i.e., an actor, object, or performer) by a certain number of pixels based on a given direction. Movement is performed while restricting movement by eight angles—as if movement was performed using the D-Pad.
| | <TO DO: Opcode description> |
| | |
| This opcode does not have a parameter for an entity, as it must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 2,837: |
Line 2,788: |
| |1 | | |1 |
| |uint | | |uint |
| |speed | | |unk0 |
| |Movement speed. Higher values result in a faster speed. 0 will result in an instant movement. | | | |
| |- | | |- |
| |2 | | |2 |
| |sint | | |uint |
| |offset | | |unk1 |
| |The pixel offset to shift the entity relative to the entity's direction. | | | |
| |- | | |- |
| |3 | | |3 |
| |Direction | | |uint |
| |direction | | |unk2 |
| |The type of direction, the list of which can be seen by typing DIR_ in SkyTemple's Script Engine Debugger. | | | |
| |} | | |} |
| === 0xbe - MoveHeight === | | === 0xbe - MoveHeight === |
| Moves an entity (i.e., an actor, object, or performer) to a certain pixel height, displacing it from its shadow. When used, the entity's animation and direction will not change.
| | <TO DO: Opcode description> |
| | |
| This opcode does not have a parameter for an entity, as it must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 2,865: |
Line 2,814: |
| |1 | | |1 |
| |uint | | |uint |
| |speed | | |unk0 |
| |Movement speed. Higher values result in a faster speed. 0 will result in an instant movement. | | | |
| |- | | |- |
| |2 | | |2 |
| |sint | | |uint |
| |height | | |unk1 |
| |The pixel height to set the entity relative to their shadow. | | | |
| |} | | |} |
| === 0xbf - MovePosition === | | === 0xbf - MovePosition === |
| Moves an entity (i.e., an actor, object, or performer) to a specific pixel position while restricting movement by eight angles—as if movement was performed using the D-Pad.
| | <TO DO: Opcode description> |
| | |
| This opcode does not have a parameter for an entity, as it must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 2,888: |
Line 2,835: |
| |1 | | |1 |
| |uint | | |uint |
| |speed | | |unk0 |
| |Movement speed. Higher values result in a faster speed. 0 will result in an instant movement. | | | |
| Values starting at 32770 and above will be slower than a value of 1.
| |
| |- | | |- |
| |2 | | |2 |
| |uint | | |uint |
| |x | | |x |
| |The pixel position on the X-axis. | | | |
| |- | | |- |
| |3 | | |3 |
| |uint | | |uint |
| |y | | |y |
| |The pixel position on the Y-axis. | | | |
| |} | | |} |
| === 0xc0 - MovePositionLives === | | === 0xc0 - MovePositionLives === |
| Moves an entity (i.e., an actor, object, or performer) to an actor while restricting movement by eight angles—as if movement was performed using the D-Pad.
| | <TO DO: Opcode description> |
| | |
| This opcode must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 2,917: |
Line 2,861: |
| |1 | | |1 |
| |uint | | |uint |
| |speed | | |unk0 |
| |Movement speed. Higher values result in a faster speed. 0 will result in an instant movement. | | | |
| Values starting at 32770 and above will be slower than a value of 1.
| |
| |- | | |- |
| |2 | | |2 |
| |Entity | | |uint |
| |actor_id | | |unk1 |
| |An entry in the Actor List. | | | |
| |} | | |} |
| === 0xc1 - MovePositionLivesTime === | | === 0xc1 - MovePositionLivesTime === |
| Moves an entity (i.e., an actor, object, or performer) to an actor while restricting movement by eight angles—as if movement was performed using the D-Pad. Movement will end once either the entity reaches the actor or after a certain number of frames have passed—whichever comes first.
| | <TO DO: Opcode description> |
| | |
| This opcode must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 2,941: |
Line 2,882: |
| |1 | | |1 |
| |uint | | |uint |
| |speed | | |unk0 |
| |Movement speed. Higher values result in a faster speed. 0 will result in an instant movement. | | | |
| Values starting at 32770 and above will be slower than a value of 1.
| |
| |- | | |- |
| |2 | | |2 |
| |Entity | | |uint |
| |actor_id | | |unk1 |
| |An entry in the Actor List. | | | |
| |- | | |- |
| |3 | | |3 |
| |uint | | |uint |
| |duration | | |unk2 |
| |The number of frames used to move the entity. | | | |
| |} | | |} |
| === 0xc2 - MovePositionMark === | | === 0xc2 - MovePositionMark === |
| Moves an entity (i.e., an actor, object, or performer) to a Position Mark while restricting movement by eight angles—as if movement was performed using the D-Pad.
| | <TO DO: Opcode description> |
| | |
| This opcode does not have a parameter for an entity, as it must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 2,971: |
Line 2,909: |
| |uint | | |uint |
| |num_parameters | | |num_parameters |
| |The number of parameters to read from this opcode. | | | |
| |- | | |- |
| |2+ | | |2+ |
| |PositionMark | | |PositionMark |
| |pos_marker | | |pos_marker |
| |A structure consisting of a name, X unit, and Y unit. Units are defined as 8 pixels. | | |This parameter may be repeated multiple times |
| This parameter may be repeated multiple times. | |
| |} | | |} |
| === 0xc3 - MovePositionMark === | | === 0xc3 - MovePositionMark === |
| Moves an entity (i.e., an actor, object, or performer) to a Position Mark while restricting movement by eight angles—as if movement was performed using the D-Pad. | | Moves an actor to the position marker defined by the user. The speed of the movement is defined by the first parameter, with the actor moving faster with higher numbers. Notably, there exists numbers that will cause the actor to move slower than the speed of 1, generally these are around 32000, such as 32896. The actor is bound by the grid and will move in cardinal directions and diagonally, but only in directions 45 degrees from the cardinal directions. |
| | |
| This opcode does not have a parameter for an entity, as it must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 2,994: |
Line 2,929: |
| |1 | | |1 |
| |uint | | |uint |
| |speed | | |unk0 |
| |Movement speed. Higher values result in a faster speed. 0 will result in an instant movement. | | | |
| Values starting at 32770 and above will be slower than a value of 1.
| |
| |- | | |- |
| |2 | | |2 |
| |PositionMark | | |PositionMark |
| |pos_marker | | |pos_marker |
| |A structure consisting of a name, X unit, and Y unit. Units are defined as 8 pixels. | | | |
| |} | | |} |
| === 0xc4 - MovePositionMarkTime === | | === 0xc4 - MovePositionMarkTime === |
| Moves an entity (i.e., an actor, object, or performer) to an Position Mark while restricting movement by eight angles—as if movement was performed using the D-Pad. Movement will end once either the entity reaches the Position Mark or after a certain number of frames have passed—whichever comes first.
| | <TO DO: Opcode description> |
| | |
| This opcode does not have a parameter for an entity, as it must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 3,018: |
Line 2,950: |
| |1 | | |1 |
| |uint | | |uint |
| |speed | | |unk0 |
| |Movement speed. Higher values result in a faster speed. 0 will result in an instant movement. | | | |
| Values starting at 32770 and above will be slower than a value of 1.
| |
| |- | | |- |
| |2 | | |2 |
| | |uint |
| | |unk1 |
| | | |
| | |- |
| | |3 |
| |PositionMark | | |PositionMark |
| |pos_marker | | |pos_marker |
| |A structure consisting of a name, X unit, and Y unit. Units are defined as 8 pixels. | | | |
| |-
| |
| |3
| |
| |uint
| |
| |duration
| |
| |The number of frames used to move the entity.
| |
| |} | | |} |
| === 0xc5 - MovePositionOffset === | | === 0xc5 - MovePositionOffset === |
| Offsets an entity (i.e., an actor, object, or performer) from its current position across both axes while restricting movement by eight angles—as if movement was performed using the D-Pad.
| | <TO DO: Opcode description> |
| | |
| This opcode does not have a parameter for an entity, as it must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 3,048: |
Line 2,977: |
| |uint | | |uint |
| |num_parameters | | |num_parameters |
| |The number of parameters to read from this opcode. | | | |
| |- | | |- |
| |2+ | | |2+ |
| |sint | | |sint |
| |x, y | | |x |
| |The pixel offset to shift the entity across the X or Y-axis. | | |This parameter may be repeated multiple times |
| This parameter may be repeated multiple times. | |
| |} | | |} |
| === 0xc6 - MovePositionOffset === | | === 0xc6 - MovePositionOffset === |
| Offsets an entity (i.e., an actor, object, or performer) from its current position across both axes while restricting movement by eight angles—as if movement was performed using the D-Pad.
| | Moves an actor to a position that is x and y units away from their current x and y position respectively. The speed of the movement is defined by the first parameter, with the actor moving faster with higher numbers. Notably, there exists numbers that will cause the actor to move slower than the speed of 1, generally these are around 32000, such as 32896. The actor is bound by the grid and will move in cardinal directions and diagonally, but only in directions 45 degrees from the cardinal directions. |
| | |
| This opcode does not have a parameter for an entity, as it must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 3,071: |
Line 2,997: |
| |1 | | |1 |
| |uint | | |uint |
| |speed | | |unk0 |
| |Movement speed. Higher values result in a faster speed. 0 will result in an instant movement. | | | |
| Values starting at 32770 and above will be slower than a value of 1.
| |
| |- | | |- |
| |2 | | |2 |
| |sint | | |sint |
| |x | | |x |
| |The pixel offset to shift the entity across the X-axis. | | | |
| |- | | |- |
| |3 | | |3 |
| |sint | | |sint |
| |y | | |y |
| |The pixel offset to shift the entity across the Y-axis. | | | |
| |} | | |} |
| === 0xc7 - MoveSpecial === | | === 0xc7 - MoveSpecial === |
| Currently unknown. Seems to move an entity (i.e., an actor, object, or performer) based on some hardcoded behaviors.
| | <TO DO: Opcode description> |
| | |
| This opcode does not have a parameter for an entity, as it must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 3,100: |
Line 3,023: |
| |1 | | |1 |
| |uint | | |uint |
| |mode | | |unk0 |
| |Determines the kind of action. | | | |
| | |
| # Spin and move in a circular motion.
| |
| # Spin and move in a circular motion.
| |
| # Currently unknown.
| |
| # Currently unknown.
| |
| # Currently unknown. Seems to be the most commonly-used value, as a part of the Unionall Coroutine CORO_LIVES_REPLY_NOMRAL.
| |
| |- | | |- |
| |2 | | |2 |
| |uint | | |uint |
| |unk1 | | |unk1 |
| |Currently unknown. Seems to affect how far the entity will move? | | | |
| |- | | |- |
| |3 | | |3 |
| |uint | | |uint |
| |unk2 | | |unk2 |
| |Currently unknown. | | | |
| |} | | |} |
| === 0xc8 - MoveTurn === | | === 0xc8 - MoveTurn === |
| Moves an entity (i.e., an actor, object, or performer) based on a certain pattern. Unlike other <code>Move</code> opcodes, this opcode will make the entity interact with the currently loaded Map Background's collision (i.e., the entity stops when hitting a wall).
| | <TO DO: Opcode description> |
| | |
| This opcode does not have a parameter for an entity, as it must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 3,134: |
Line 3,049: |
| |1 | | |1 |
| |uint | | |uint |
| |distance | | |unk0 |
| |How far the entity will move. Higher values result in greater distance being covered. | | | |
| |- | | |- |
| |2 | | |2 |
| |uint | | |uint |
| |speed | | |unk1 |
| |Movement speed. Higher values result in a faster speed. 0 will result in an instant movement. | | | |
| Values starting at 32770 and above will be slower than a value of 1.
| |
| | |
| This parameter also seems to affect the distance traveled.
| |
| |- | | |- |
| |3 | | |3 |
| |uint | | |uint |
| |pattern | | |unk2 |
| |A hardcoded pattern to move in. | | | |
| | |
| # Moves in a circle clockwise.
| |
| # Moves in a circle counterclockwise.
| |
| # Moves in a square clockwise.
| |
| # Moves in a square counterclockwise.
| |
| # Zig-zags back and forth.
| |
| | |
| Values 6 and above seem to be variations of random movement.
| |
| |} | | |} |
| === 0xca - PauseEffect === | | === 0xca - PauseEffect === |
| Instantly pauses the current graphical effect of an entity (i.e., an actor, object, or performer). The effect will freeze mid-frame.
| | <TO DO: Opcode description> |
| | |
| This opcode does not have a parameter for an entity, as it must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 3,172: |
Line 3,074: |
| |- | | |- |
| |1 | | |1 |
| |Effect | | |uint |
| |effect_id | | |unk0 |
| |A graphical effect to display relative to an entity. | | | |
| |} | | |} |
| === 0xcc - ProcessSpecial === | | === 0xcc - ProcessSpecial === |
| Executes one of the game's Special Processes. The return value of a Special Process can be checked by encasing this opcode in a <code>switch</code> statement. A negative return value is not acceptable and will cause the game to suspend indefinitely.
| | <TO DO: Opcode description> |
| | |
| This opcode cannot be used in targeted routines.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 3,192: |
Line 3,092: |
| |ProcessSpecial | | |ProcessSpecial |
| |process_id | | |process_id |
| |One of the game's Special Processes. | | | |
| |- | | |- |
| |2 | | |2 |
| |sint | | |uint |
| |process_param1 | | |unk1 |
| |The first parameter used by the Special Process. | | | |
| |- | | |- |
| |3 | | |3 |
| |sint | | |uint |
| |process_param2 | | |unk2 |
| |The first parameter used by the Special Process. | | | |
| |} | | |} |
| === 0xcd - PursueTurnLives === | | === 0xcd - PursueTurnLives === |
| Causes an entity (i.e., an actor, object, or performer) to continuously turn toward an actor for a certain number of frames.
| | <TO DO: Opcode description> |
| | |
| This opcode must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 3,219: |
Line 3,117: |
| |1 | | |1 |
| |uint | | |uint |
| |duration | | |unk0 |
| |The number of frames used to make the entity turn. A value of 0 will make the entity turn forever. | | | |
| |- | | |- |
| |2 | | |2 |
| |uint | | |uint |
| |speed | | |unk1 |
| |Turning speed. Higher values result in a slower speed. | | | |
| |- | | |- |
| |3 | | |3 |
| |Entity | | |uint |
| |actor_id | | |unk2 |
| |The actor to turn toward. | | | |
| |- | | |- |
| |4 | | |4 |
| |uint | | |uint |
| |rotation | | |unk3 |
| | | | | |
| # Clockwise.
| |
| # Counterclockwise.
| |
|
| |
| A value of 10 will make the entity choose the nearest rotation.
| |
| |} | | |} |
| === 0xce - PursueTurnLives2 === | | === 0xce - PursueTurnLives2 === |
| Causes an entity (i.e., an actor, object, or performer) to continuously turn toward an actor for a certain number of frames.
| | <TO DO: Opcode description> |
| | |
| This opcode must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 3,256: |
Line 3,148: |
| |1 | | |1 |
| |uint | | |uint |
| |duration | | |unk0 |
| |The number of frames used to make the entity turn. A value of 0 will make the entity turn forever. | | | |
| |- | | |- |
| |2 | | |2 |
| |uint | | |uint |
| |speed | | |unk1 |
| |Turning speed. Higher values result in a slower speed. | | | |
| |- | | |- |
| |3 | | |3 |
| |Entity | | |uint |
| |actor_id | | |unk2 |
| |The actor to turn toward. | | | |
| |- | | |- |
| |4 | | |4 |
| |uint | | |uint |
| |rotation | | |unk3 |
| | | | | |
| # Clockwise.
| |
| # Counterclockwise.
| |
|
| |
| A value of 10 will make the entity choose the nearest rotation.
| |
| |} | | |} |
| === 0xcf - ResetAttribute === | | === 0xcf - ResetAttribute === |
| Currently unknown. Seems to get ignored when parsed in the scripting engine.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 3,292: |
Line 3,180: |
| |uint | | |uint |
| |unk0 | | |unk0 |
| |Currently unknown. | | | |
| |} | | |} |
| === 0xd0 - ResetFunctionAttribute === | | === 0xd0 - ResetFunctionAttribute === |
| Sets certain bits of an entity's (i.e., an actor, object, or performer) "function" attribute to 0.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 3,307: |
Line 3,195: |
| |1 | | |1 |
| |uint | | |uint |
| |function_bitfield | | |unk0 |
| |Most bits' purposes are unknown. Bit 1 appears to be the bit used for allowing an entity to follow a Type 1 actor, like the actor ACTOR_ATTENDANT1 in the overworld. | | | |
| |} | | |} |
| === 0xd1 - ResetHitAttribute === | | === 0xd1 - ResetHitAttribute === |
| Sets certain bits of an entity's (i.e., an actor, object, or performer) "hit" attribute to 0.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 3,323: |
Line 3,211: |
| |1 | | |1 |
| |uint | | |uint |
| |hit_bitfield | | |unk0 |
| |Most bits' purposes are unknown. | | | |
| | |
| * 2: Entity collision.
| |
| * 6: Talk Script upon collision.
| |
| * 7: Talk Script upon pressing the A Button near the entity.
| |
| |} | | |} |
| === 0xd2 - ResetOutputAttribute === | | === 0xd2 - ResetOutputAttribute === |
| Sets certain bits of an entity's (i.e., an actor, object, or performer) "output" attribute to 0.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 3,343: |
Line 3,227: |
| |1 | | |1 |
| |uint | | |uint |
| |output_bitfield | | |unk0 |
| | | | | |
| # Underlay below entities.
| |
| # Overlay above entities.
| |
| # Overlay above the current Map Background's Layer 2.
| |
| # Overlay above the game's canvas system, which includes the textbox, portrait, and some <code>screen_</code> commands that do not end in <code>All</code>.
| |
| # Flicker.
| |
| # Transparency.
| |
| # Invisibility.
| |
| # Displays shadow.
| |
| |} | | |} |
| === 0xd3 - ResetReplyAttribute === | | === 0xd3 - ResetReplyAttribute === |
| Sets certain bits of an entity's (i.e., an actor, object, or performer) "reply" attribute to 0.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 3,367: |
Line 3,243: |
| |1 | | |1 |
| |uint | | |uint |
| |reply_bitfield | | |unk0 |
| |Most bits' purposes are unknown. | | | |
| | |
| * 1: Talk Script upon collision.
| |
| * 2: Talk Script upon pressing the A Button near the entity.
| |
| * 6: Underlay below entities.
| |
| * 7: Overlay above entities.
| |
| |} | | |} |
| === 0xd4 - ResumeEffect === | | === 0xd4 - ResumeEffect === |
| Resumes the current graphical effect of an entity (i.e., an actor, object, or performer) that has been paused with <code>PauseEffect</code> prior to using this opcode.
| | <TO DO: Opcode description> |
| | |
| This opcode does not have a parameter for an entity, as it must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 3,389: |
Line 3,258: |
| |- | | |- |
| |1 | | |1 |
| |Effect | | |uint |
| |effect_id | | |unk0 |
| |A graphical effect to display relative to an entity. | | | |
| |} | | |} |
| === 0xd6 - SavePosition === | | === 0xd6 - SavePosition === |
| Saves various attributes of an entity (i.e., an actor, object, or performer) to the following script variables:
| | <TO DO: Opcode description> |
| | |
| * <code>$POSITION_X</code>: The pixel position of the entity on the X-axis multiplied by 256.
| |
| * <code>$POSITION_Y</code>: The pixel position of the entity on the Y-axis multiplied by 256.
| |
| * <code>$POSITION_HEIGHT</code>: The pixel height (i.e., displacement of the entity from their shadow) of the entity multiplied by 256.
| |
| * <code>$POSITION_DIRECTION</code>: The direction the entity is facing.
| |
| | |
| This opcode does not have a parameter for an entity, as it must be used in a with-statement or a targeted routine.
| |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 3,413: |
Line 3,275: |
| |1 | | |1 |
| |uint | | |uint |
| |index | | |unk0 |
| |Index used by all <code>$POSITION_</code> script variables, ranged from 0-2 (inclusive). | | | |
| |} | | |} |
| === 0xd7 - screen_FadeChange === | | === 0xd7 - screen_FadeChange === |
| Changes the brightness of the screen across a certain number of frames. This opcode will not affect: | | Changes the brightness level of the screen. |
| | |
| * 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,433: |
Line 3,291: |
| |1 | | |1 |
| |bool | | |bool |
| |suspension_flag | | |wait |
| |Determines whether the script will suspend until this opcode's operation is complete. 0 is false and 1 is true. | | |If true, the game will wait for the brightness operation to finish before continuing |
| |- | | |- |
| |2 | | |2 |
| |uint | | |uint |
| |duration | | |frames |
| |The number of frames used to change the Touch Screen's brightness. | | |Number of frames taken to change the brightness |
| |- | | |- |
| |3 | | |3 |
| |uint | | |uint |
| |start_brightness | | |start_brightness |
| |The brightness level the opcode will begin at. | | |Starting brightness level. Default brightness is 256. |
| | |
| * The minimum brightness is 0, which results in a black screen.
| |
| * The default brightness is 256.
| |
| * The maximum brightness is 512, which results in a white screen.
| |
| |- | | |- |
| |4 | | |4 |
| |uint | | |uint |
| |end_brightness | | |end_brightness |
| |The brightness level the opcode will end at. | | |Final brightness level. Default brightness is 256. |
| | |
| * The minimum brightness is 0, which results in a black screen.
| |
| * The default brightness is 256.
| |
| * The maximum brightness is 512, which results in a white screen.
| |
| |} | | |} |
| === 0xd8 - screen_FadeChangeAll === | | === 0xd8 - screen_FadeChangeAll === |
| Changes the brightness of the screen across a certain number of frames. This opcode will affect everything on the Touch Screen.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 3,471: |
Line 3,321: |
| |- | | |- |
| |1 | | |1 |
| |bool | | |uint |
| |suspension_flag | | |unk0 |
| |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 | | |unk1 |
| |The number of frames used to change the Touch Screen's brightness. | | | |
| |- | | |- |
| |3 | | |3 |
| |uint | | |uint |
| |start_brightness | | |unk2 |
| |The brightness level the opcode will begin at. | | | |
| | |
| * The minimum brightness is 0, which results in a black screen.
| |
| * The default brightness is 256.
| |
| * The maximum brightness is 512, which results in a white screen.
| |
| |- | | |- |
| |4 | | |4 |
| |uint | | |uint |
| |end_brightness | | |unk3 |
| |The brightness level the opcode will end at. | | | |
| | |
| * The minimum brightness is 0, which results in a black screen.
| |
| * The default brightness is 256.
| |
| * The maximum brightness is 512, which results in a white screen.
| |
| |} | | |} |
| === 0xd9 - screen_FadeIn === | | === 0xd9 - screen_FadeIn === |
| Changes the brightness of the screen to its default state across a certain number of frames. This opcode will not affect:
| | <TO DO: Opcode description> |
| | |
| * 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,515: |
Line 3,353: |
| |1 | | |1 |
| |bool | | |bool |
| |suspension_flag | | |unk0 |
| |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 | | |duration |
| |The number of frames used to change the Touch Screen's brightness. | | | |
| |} | | |} |
| === 0xda - screen_FadeInAll === | | === 0xda - screen_FadeInAll === |
| Changes the brightness of the screen to its default state across a certain number of frames. This opcode will affect everything on the Touch Screen.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 3,536: |
Line 3,374: |
| |1 | | |1 |
| |bool | | |bool |
| |suspension_flag | | |unk0 |
| |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 | | |duration |
| |The number of frames used to change the Touch Screen's brightness. | | | |
| |} | | |} |
| === 0xdb - screen_FadeOut === | | === 0xdb - screen_FadeOut === |
| Changes the brightness of the screen to its minimum (i.e., a black screen) across a certain number of frames. This opcode will not affect:
| | <TO DO: Opcode description> |
| | |
| * 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,561: |
Line 3,395: |
| |1 | | |1 |
| |bool | | |bool |
| |suspension_flag | | |unk0 |
| |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 | | |duration |
| |The number of frames used to change the Touch Screen's brightness. | | | |
| |} | | |} |
| === 0xdc - screen_FadeOutAll === | | === 0xdc - screen_FadeOutAll === |
| Changes the brightness of the screen to its minimum (i.e., a black screen) across a certain number of frames. This opcode will affect everything on the Touch Screen.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 3,582: |
Line 3,416: |
| |1 | | |1 |
| |bool | | |bool |
| |suspension_flag | | |unk0 |
| |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 | | |duration |
| |The number of frames used to change the Touch Screen's brightness. | | | |
| |} | | |} |
| === 0xdd - screen_FlushChange === | | === 0xdd - screen_FlushChange === |
| Does nothing.
| | <TO DO: Opcode description> |
| | |
| {| class="wikitable" | | {| class="wikitable" |
| |+Parameters | | |+Parameters |
| | |- |
| !# | | !# |
| !Type | | !Type |
| Line 3,602: |
Line 3,438: |
| |uint | | |uint |
| |unk0 | | |unk0 |
| |Does nothing. | | | |
| |- | | |- |
| |2 | | |2 |
| |uint | | |uint |
| |unk1 | | |unk1 |
| |Does nothing. | | | |
| |- | | |- |
| |3 | | |3 |
| |uint | | |uint |
| |unk2 | | |unk2 |
| |Does nothing. | | | |
| |- | | |- |
| |4 | | |4 |
| |uint | | |uint |
| |unk3 | | |unk3 |
| |Does nothing. | | | |
| |- | | |- |
| |5 | | |5 |
| |uint | | |uint |
| |unk4 | | |unk4 |
| |Does nothing. | | | |
| |- | | |- |
| |6 | | |6 |
| |uint | | |uint |
| |unk5 | | |unk5 |
| |Does nothing. | | | |
| |- | | |- |
| |7 | | |7 |
| |uint | | |uint |
| |unk6 | | |unk6 |
| |Does nothing. | | | |
| |- | | |- |
| |8 | | |8 |
| |uint | | |uint |
| |unk7 | | |unk7 |
| |Does nothing. | | | |
| |} | | |} |
|
| |
| === 0xde - screen_FlushIn === | | === 0xde - screen_FlushIn === |
| Changes the color of the screen from a specific state (given by the opcode's parameters, which affect the Touch Screen instantly) to its default state across a certain number of frames. This opcode will affect everything on the Touch Screen.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 3,652: |
Line 3,487: |
| |- | | |- |
| |1 | | |1 |
| |bool | | |uint |
| |suspension_flag | | |unk0 |
| |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 | | |unk1 |
| |The number of frames used to change the Touch Screen's color. | | | |
| |- | | |- |
| |3 | | |3 |
| |uint | | |uint |
| |mode | | |unk2 |
| | | | | |
| # Completely darkens the Touch Screen.
| |
| # Completely turns the Touch Screen to a certain color.
| |
| # Instantly darkens the Touch Screen?
| |
| # Overlays the Touch Screen with a certain color.
| |
| # Instantly darkens the Touch Screen?
| |
| # Overlays the Touch Screen with hardcoded color bytes: 144, 144, and 255.
| |
| # Instantly darkens the Touch Screen?
| |
| # Overlays the Touch Screen with hardcoded color bytes: 255, 192, and 128.
| |
| # Instantly darkens the Touch Screen?
| |
| # Overlays the Touch Screen with hardcoded color bytes: All 255. The Touch Screen is not turned completely white.
| |
| # Instantly overlays the Touch Screen with hardcoded color bytes: All 255. The Touch Screen is not turned completely white.
| |
| |- | | |- |
| |4 | | |4 |
| |uint | | |uint |
| |r | | |unk3 |
| |Unused if ''mode'' is not 2 or 4. Byte used for the color red. Has a minimum of 0 and a maximium of 255. | | | |
| |- | | |- |
| |5 | | |5 |
| |uint | | |uint |
| |g | | |unk4 |
| |Unused if ''mode'' is not 2 or 4. Byte used for the color green. Has a minimum of 0 and a maximium of 255. | | | |
| |- | | |- |
| |6 | | |6 |
| |uint | | |uint |
| |b | | |unk5 |
| |Unused if ''mode'' is not 2 or 4. Byte used for the color blue. Has a minimum of 0 and a maximium of 255. | | | |
| |} | | |} |
| === 0xdf - screen_FlushOut === | | === 0xdf - screen_FlushOut === |
| Changes the color of the screen across a certain number of frames. This opcode will affect everything on the Touch Screen.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 3,704: |
Line 3,528: |
| |- | | |- |
| |1 | | |1 |
| |bool | | |uint |
| |suspension_flag | | |unk0 |
| |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 | | |unk1 |
| |The number of frames used to change the Touch Screen's color. | | | |
| |- | | |- |
| |3 | | |3 |
| |uint | | |uint |
| |mode | | |unk2 |
| | | | | |
| # Completely darkens the Touch Screen.
| |
| # Completely turns the Touch Screen to a certain color.
| |
| # Instantly darkens the Touch Screen?
| |
| # Overlays the Touch Screen with a certain color.
| |
| # Instantly darkens the Touch Screen?
| |
| # Overlays the Touch Screen with hardcoded color bytes: 144, 144, and 255.
| |
| # Instantly darkens the Touch Screen?
| |
| # Overlays the Touch Screen with hardcoded color bytes: 255, 192, and 128.
| |
| # Instantly darkens the Touch Screen?
| |
| # Overlays the Touch Screen with hardcoded color bytes: All 255. The Touch Screen is not turned completely white.
| |
| # Instantly overlays the Touch Screen with hardcoded color bytes: All 255. The Touch Screen is not turned completely white.
| |
| |- | | |- |
| |4 | | |4 |
| |uint | | |uint |
| |r | | |unk3 |
| |Unused if ''mode'' is not 2 or 4. Byte used for the color red. Has a minimum of 0 and a maximium of 255. | | | |
| |- | | |- |
| |5 | | |5 |
| |uint | | |uint |
| |g | | |unk4 |
| |Unused if ''mode'' is not 2 or 4. Byte used for the color green. Has a minimum of 0 and a maximium of 255. | | | |
| |- | | |- |
| |6 | | |6 |
| |uint | | |uint |
| |b | | |unk5 |
| |Unused if ''mode'' is not 2 or 4. Byte used for the color blue. Has a minimum of 0 and a maximium of 255. | | | |
| |} | | |} |
| === 0xe0 - screen_WhiteChange === | | === 0xe0 - screen_WhiteChange === |
| Changes the brightness of the screen across a certain number of frames. This opcode will not affect:
| | <TO DO: Opcode description> |
| | |
| * 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,760: |
Line 3,569: |
| |- | | |- |
| |1 | | |1 |
| |bool | | |uint |
| |suspension_flag | | |unk0 |
| |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 | | |unk1 |
| |The number of frames used to change the Touch Screen's brightness. | | | |
| |- | | |- |
| |3 | | |3 |
| |uint | | |uint |
| |start_brightness | | |unk2 |
| |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 | | |unk3 |
| |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.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 3,799: |
Line 3,600: |
| |- | | |- |
| |1 | | |1 |
| |bool | | |uint |
| |suspension_flag | | |unk0 |
| |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 | | |unk1 |
| |The number of frames used to change the Touch Screen's brightness. | | | |
| |- | | |- |
| |3 | | |3 |
| |uint | | |uint |
| |start_brightness | | |unk2 |
| |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 | | |unk3 |
| |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 === |
| Does nothing. 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!
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 3,840: |
Line 3,633: |
| |uint | | |uint |
| |unk0 | | |unk0 |
| |Does nothing. | | | |
| |- | | |- |
| |2 | | |2 |
| |uint | | |uint |
| |unk1 | | |unk1 |
| |Does nothing. | | | |
| |} | | |} |
| === 0xe3 - screen_WhiteInAll === | | === 0xe3 - screen_WhiteInAll === |
| Does nothing. 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!
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 3,861: |
Line 3,654: |
| |uint | | |uint |
| |unk0 | | |unk0 |
| |Does nothing. | | | |
| |- | | |- |
| |2 | | |2 |
| |uint | | |uint |
| |unk1 | | |unk1 |
| |Does nothing. | | | |
| |} | | |} |
| === 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:
| | <TO DO: Opcode description> |
| | |
| * 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,884: |
Line 3,673: |
| |- | | |- |
| |1 | | |1 |
| |bool | | |uint |
| |suspension_flag | | |unk0 |
| |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 | | |unk1 |
| |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.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 3,905: |
Line 3,694: |
| |- | | |- |
| |1 | | |1 |
| |bool | | |uint |
| |suspension_flag | | |unk0 |
| |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 | | |unk1 |
| |The number of frames used to change the Touch Screen's brightness. | | | |
| |} | | |} |
| === 0xe6 - screen2_FadeChange === | | === 0xe6 - screen2_FadeChange === |
| Changes the brightness of the screen across a certain number of frames. This opcode will affect everything on the Top Screen.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 3,926: |
Line 3,715: |
| |- | | |- |
| |1 | | |1 |
| |bool | | |uint |
| |suspension_flag | | |unk0 |
| |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 | | |unk1 |
| |The number of frames used to change the Top Screen's brightness. | | | |
| |- | | |- |
| |3 | | |3 |
| |uint | | |uint |
| |start_brightness | | |unk2 |
| |The brightness level the opcode will begin at. | | | |
| | |
| * The minimum brightness is 0, which results in a black screen.
| |
| * The default brightness is 256.
| |
| * The maximum brightness is 512, which results in a white screen.
| |
| |- | | |- |
| |4 | | |4 |
| |uint | | |uint |
| |end_brightness | | |unk3 |
| |The brightness level the opcode will end at. | | | |
| | |
| * The minimum brightness is 0, which results in a black screen.
| |
| * The default brightness is 256.
| |
| * The maximum brightness is 512, which results in a white screen.
| |
| |} | | |} |
| === 0xe7 - screen2_FadeChangeAll === | | === 0xe7 - screen2_FadeChangeAll === |
| Does nothing.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 3,967: |
Line 3,748: |
| |uint | | |uint |
| |unk0 | | |unk0 |
| |Does nothing. | | | |
| |- | | |- |
| |2 | | |2 |
| |uint | | |uint |
| |unk1 | | |unk1 |
| |Does nothing. | | | |
| |- | | |- |
| |3 | | |3 |
| |uint | | |uint |
| |unk2 | | |unk2 |
| |Does nothing. | | | |
| | |
| | |
| |- | | |- |
| |4 | | |4 |
| |uint | | |uint |
| |unk3 | | |unk3 |
| |Does nothing. | | | |
| | |
| | |
| |} | | |} |
| === 0xe8 - screen2_FadeIn === | | === 0xe8 - screen2_FadeIn === |
| Changes the brightness of the screen to its default state across a certain number of frames. This opcode will affect everything on the Top Screen.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 4,001: |
Line 3,778: |
| |1 | | |1 |
| |bool | | |bool |
| |suspension_flag | | |unk0 |
| |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 | | |duration |
| |The number of frames used to change the Top Screen's brightness. | | | |
| |} | | |} |
| === 0xe9 - screen2_FadeInAll === | | === 0xe9 - screen2_FadeInAll === |
| Does nothing.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 4,021: |
Line 3,798: |
| |- | | |- |
| |1 | | |1 |
| |uint | | |bool |
| |unk0 | | |unk0 |
| |Does nothing. | | | |
| |- | | |- |
| |2 | | |2 |
| |uint | | |uint |
| |unk1 | | |duration |
| |Does nothing. | | | |
| |} | | |} |
| === 0xea - screen2_FadeOut === | | === 0xea - screen2_FadeOut === |
| Changes the brightness of the screen to its minimum (i.e., a black screen) across a certain number of frames. This opcode will affect everything on the Top Screen.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 4,043: |
Line 3,820: |
| |1 | | |1 |
| |bool | | |bool |
| |suspension_flag | | |unk0 |
| |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 | | |duration |
| |The number of frames used to change the Top Screen's brightness. | | | |
| |} | | |} |
| === 0xeb - screen2_FadeOutAll === | | === 0xeb - screen2_FadeOutAll === |
| Does nothing.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 4,063: |
Line 3,840: |
| |- | | |- |
| |1 | | |1 |
| |uint | | |bool |
| |unk0 | | |unk0 |
| |Does nothing. | | | |
| |- | | |- |
| |2 | | |2 |
| |uint | | |uint |
| |unk1 | | |duration |
| |Does nothing. | | | |
| |} | | |} |
| === 0xec - screen2_FlushChange === | | === 0xec - screen2_FlushChange === |
| Does nothing.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 4,086: |
Line 3,863: |
| |uint | | |uint |
| |unk0 | | |unk0 |
| |Does nothing. | | | |
| |- | | |- |
| |2 | | |2 |
| |uint | | |uint |
| |unk1 | | |unk1 |
| |Does nothing. | | | |
| |- | | |- |
| |3 | | |3 |
| |uint | | |uint |
| |unk2 | | |unk2 |
| |Does nothing. | | | |
| |- | | |- |
| |4 | | |4 |
| |uint | | |uint |
| |unk3 | | |unk3 |
| |Does nothing. | | | |
| |- | | |- |
| |5 | | |5 |
| |uint | | |uint |
| |unk4 | | |unk4 |
| |Does nothing. | | | |
| |- | | |- |
| |6 | | |6 |
| |uint | | |uint |
| |unk5 | | |unk5 |
| |Does nothing. | | | |
| |- | | |- |
| |7 | | |7 |
| |uint | | |uint |
| |unk6 | | |unk6 |
| |Does nothing. | | | |
| |- | | |- |
| |8 | | |8 |
| |uint | | |uint |
| |unk7 | | |unk7 |
| |Does nothing. | | | |
| |} | | |} |
| === 0xed - screen2_FlushIn === | | === 0xed - screen2_FlushIn === |
| The same as <code>screen_FlushIn</code>, but for the Top Screen.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 4,135: |
Line 3,912: |
| |- | | |- |
| |1 | | |1 |
| |bool | | |uint |
| |suspension_flag | | |unk0 |
| |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 | | |unk1 |
| |The number of frames used to change the Top Screen's color. | | | |
| |- | | |- |
| |3 | | |3 |
| |uint | | |uint |
| |mode | | |unk2 |
| | | | | |
| # Completely darkens the Top Screen.
| |
| # Completely turns the Top Screen to a certain color.
| |
| # Instantly darkens the Top Screen?
| |
| # Overlays the Top Screen with a certain color.
| |
| # Instantly darkens the Top Screen?
| |
| # Overlays the Top Screen with hardcoded color bytes: 144, 144, and 255.
| |
| # Instantly darkens the Top Screen?
| |
| # Overlays the Top Screen with hardcoded color bytes: 255, 192, and 128.
| |
| # Instantly darkens the Top Screen?
| |
| # Overlays the Top Screen with hardcoded color bytes: All 255. The Top Screen is not turned completely white.
| |
| # Instantly overlays the Top Screen with hardcoded color bytes: All 255. The Top Screen is not turned completely white.
| |
| |- | | |- |
| |4 | | |4 |
| |uint | | |uint |
| |r | | |unk3 |
| |Unused if ''mode'' is not 2 or 4. Byte used for the color red. Has a minimum of 0 and a maximium of 255. | | | |
| |- | | |- |
| |5 | | |5 |
| |uint | | |uint |
| |g | | |unk4 |
| |Unused if ''mode'' is not 2 or 4. Byte used for the color green. Has a minimum of 0 and a maximium of 255. | | | |
| |- | | |- |
| |6 | | |6 |
| |uint | | |uint |
| |b | | |unk5 |
| |Unused if ''mode'' is not 2 or 4. Byte used for the color blue. Has a minimum of 0 and a maximium of 255. | | | |
| |} | | |} |
| === 0xee - screen2_FlushOut === | | === 0xee - screen2_FlushOut === |
| The same as <code>screen_FlushOut</code>, but for the Top Screen.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 4,187: |
Line 3,953: |
| |- | | |- |
| |1 | | |1 |
| |bool | | |uint |
| |suspension_flag | | |unk0 |
| |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 | | |unk1 |
| |The number of frames used to change the Top Screen's color. | | | |
| |- | | |- |
| |3 | | |3 |
| |uint | | |uint |
| |mode | | |unk2 |
| | | | | |
| # Completely darkens the Top Screen.
| |
| # Completely turns the Top Screen to a certain color.
| |
| # Instantly darkens the Top Screen?
| |
| # Overlays the Top Screen with a certain color.
| |
| # Instantly darkens the Top Screen?
| |
| # Overlays the Top Screen with hardcoded color bytes: 144, 144, and 255.
| |
| # Instantly darkens the Top Screen?
| |
| # Overlays the Top Screen with hardcoded color bytes: 255, 192, and 128.
| |
| # Instantly darkens the Top Screen?
| |
| # Overlays the Top Screen with hardcoded color bytes: All 255. The Top Screen is not turned completely white.
| |
| # Instantly overlays the Top Screen with hardcoded color bytes: All 255. The Top Screen is not turned completely white.
| |
| |- | | |- |
| |4 | | |4 |
| |uint | | |uint |
| |r | | |unk3 |
| |Unused if ''mode'' is not 2 or 4. Byte used for the color red. Has a minimum of 0 and a maximium of 255. | | | |
| |- | | |- |
| |5 | | |5 |
| |uint | | |uint |
| |g | | |unk4 |
| |Unused if ''mode'' is not 2 or 4. Byte used for the color green. Has a minimum of 0 and a maximium of 255. | | | |
| |- | | |- |
| |6 | | |6 |
| |uint | | |uint |
| |b | | |unk5 |
| |Unused if ''mode'' is not 2 or 4. Byte used for the color blue. Has a minimum of 0 and a maximium of 255. | | | |
| |} | | |} |
| === 0xef - screen2_WhiteChange === | | === 0xef - screen2_WhiteChange === |
| Changes the brightness of the screen across a certain number of frames. This opcode will affect everything on the Top Screen.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 4,239: |
Line 3,994: |
| |- | | |- |
| |1 | | |1 |
| |bool | | |uint |
| |suspension_flag | | |unk0 |
| |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 | | |unk1 |
| |The number of frames used to change the Top Screen's brightness. | | | |
| |- | | |- |
| |3 | | |3 |
| |uint | | |uint |
| |start_brightness | | |unk2 |
| |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 | | |unk3 |
| |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.
| |
| |} | | |} |
| === 0xf0 - screen2_WhiteChangeAll === | | === 0xf0 - screen2_WhiteChangeAll === |
| Does nothing.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 4,280: |
Line 4,027: |
| |uint | | |uint |
| |unk0 | | |unk0 |
| |Does nothing. | | | |
| |- | | |- |
| |2 | | |2 |
| |uint | | |uint |
| |unk1 | | |unk1 |
| |Does nothing. | | | |
| |- | | |- |
| |3 | | |3 |
| |uint | | |uint |
| |unk2 | | |unk2 |
| |Does nothing. | | | |
| | |
| | |
| |- | | |- |
| |4 | | |4 |
| |uint | | |uint |
| |unk3 | | |unk3 |
| |Does nothing. | | | |
| |} | | |} |
| === 0xf1 - screen2_WhiteIn === | | === 0xf1 - screen2_WhiteIn === |
| Does nothing. Do not be deceived by this opcode's name: After using <code>screen2_WhiteOut</code>, use <code>screen2_FadeIn</code> to restore the Top Screen's brightness level!
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 4,313: |
Line 4,058: |
| |uint | | |uint |
| |unk0 | | |unk0 |
| |Does nothing. | | | |
| |- | | |- |
| |2 | | |2 |
| |uint | | |uint |
| |unk1 | | |unk1 |
| |Does nothing. | | | |
| |} | | |} |
| === 0xf2 - screen2_WhiteInAll === | | === 0xf2 - screen2_WhiteInAll === |
| Does nothing.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 4,334: |
Line 4,079: |
| |uint | | |uint |
| |unk0 | | |unk0 |
| |Does nothing. | | | |
| |- | | |- |
| |2 | | |2 |
| |uint | | |uint |
| |unk1 | | |unk1 |
| |Does nothing. | | | |
| |} | | |} |
| === 0xf3 - screen2_WhiteOut === | | === 0xf3 - screen2_WhiteOut === |
| 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 Top Screen.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 4,353: |
Line 4,098: |
| |- | | |- |
| |1 | | |1 |
| |bool | | |uint |
| |suspension_flag | | |unk0 |
| |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 | | |unk1 |
| |The number of frames used to change the Top Screen's brightness. | | | |
| |} | | |} |
| === 0xf4 - screen2_WhiteOutAll === | | === 0xf4 - screen2_WhiteOutAll === |
| Does nothing.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 4,376: |
Line 4,121: |
| |uint | | |uint |
| |unk0 | | |unk0 |
| |Does nothing. | | | |
| |- | | |- |
| |2 | | |2 |
| |uint | | |uint |
| |unk1 | | |unk1 |
| |Does nothing. | | | |
| |} | | |} |
| === 0xf5 - se_ChangePan === | | === 0xf5 - se_ChangePan === |
| Currently unknown.
| | <TO DO: Opcode description> |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 4,397: |
Line 4,142: |
| |uint | | |uint |
| |unk0 | | |unk0 |
| |Currently unknown. | | | |
| |- | | |- |
| |2 | | |2 |
| |uint | | |uint |
| |unk1 | | |unk1 |
| |Currently unknown. | | | |
| |- | | |- |
| |3 | | |3 |
| |uint | | |uint |
| |unk2 | | |unk2 |
| |Currently unknown. | | | |
| |} | | |} |
| === 0xf6 - se_ChangeVolume === | | === 0xf6 - se_ChangeVolume === |