List of Opcodes: Difference between revisions
Create list of opcodes |
m Made a few edits to some stuff I knew, mainly some move opcodes and diaglog opcodes |
||
| Line 1,913: | Line 1,913: | ||
No parameters. | No parameters. | ||
=== 0x96 - message_Close === | === 0x96 - message_Close === | ||
Closes the current message box once the player inputs the A button | |||
No parameters. | No parameters. | ||
=== 0x97 - message_CloseEnforce === | === 0x97 - message_CloseEnforce === | ||
Closes the current message box immediately after the game reaches the end of the current text string. | |||
No parameters. | No parameters. | ||
=== 0x98 - message_Explanation === | === 0x98 - message_Explanation === | ||
Displays the string defined in the first parameter, as it does in the opening scene of the game ("Welcome to the World of Pokemon!") etc. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 2,010: | Line 2,010: | ||
|} | |} | ||
=== 0x9e - message_Monologue === | === 0x9e - message_Monologue === | ||
Displays the string defined in the first parameter, as it does with player speech. Notably, no sound is made as the dialog scrolls. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 2,026: | Line 2,026: | ||
|} | |} | ||
=== 0x9f - message_Narration === | === 0x9f - message_Narration === | ||
Similar to message_Explanation, except for the fact that all text displays instantaneously. The first parameter defines how long it takes for the text to fade in and fade out. An example for its use would be in the ending scenes. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 2,047: | Line 2,047: | ||
|} | |} | ||
=== 0xa0 - message_Notice === | === 0xa0 - message_Notice === | ||
Similar to message_Monologue, except for the fact that all text displays instantaneously. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 2,063: | Line 2,063: | ||
|} | |} | ||
=== 0xa1 - message_EmptyActor === | === 0xa1 - message_EmptyActor === | ||
Removes an actor's portrait and name from dialog box. Used before other opcodes that display text (eg. message_Talk) | |||
No parameters. | No parameters. | ||
=== 0xa2 - message_ResetActor === | === 0xa2 - message_ResetActor === | ||
Removes an actor's portrait and name from dialog box. Replaces the name with a white speech bubble. Used before other opcodes that display text (eg. message_Talk) | |||
No parameters. | No parameters. | ||
=== 0xa3 - message_SetActor === | === 0xa3 - message_SetActor === | ||
Sets an actor's name to be used in the dialog box. Does not show the actor's portrait. Used before other opcodes that display text (eg. message_Talk) | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 2,087: | Line 2,087: | ||
|} | |} | ||
=== 0xa4 - message_SetFace === | === 0xa4 - message_SetFace === | ||
Set an actor's name to be used in the dialog box. Shows the actor's portrait in the position defined by the user in the third parameter. Uses the portrait defined in the second parameter. Used before other opcodes that display text (eg. message_Talk) | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 2,113: | Line 2,113: | ||
|} | |} | ||
=== 0xa5 - message_SetFaceEmpty === | === 0xa5 - message_SetFaceEmpty === | ||
Shows the actor's portrait in the position defined by the user in the third parameter. Uses the portrait defined in the second parameter. Does not display the actor's name in the dialog box. Used before other opcodes that display text (eg. message_Talk) | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 2,139: | Line 2,139: | ||
|} | |} | ||
=== 0xa6 - message_SetFaceOnly === | === 0xa6 - message_SetFaceOnly === | ||
Shows the actor's portrait in the position defined by the user in the third parameter. Uses the portrait defined in the second parameter. Displays a white speech bubble in the dialog box. Used before other opcodes that display text (eg. message_Talk) | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 2,165: | Line 2,165: | ||
|} | |} | ||
=== 0xa7 - message_SetFacePosition === | === 0xa7 - message_SetFacePosition === | ||
Changes an actor's portrait to be at the position as defined in the first parameter. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 2,218: | Line 2,218: | ||
|} | |} | ||
=== 0xae - message_Talk === | === 0xae - message_Talk === | ||
Displays text in the dialog box. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 2,302: | Line 2,302: | ||
|} | |} | ||
=== 0xb2 - Move2PositionMark === | === 0xb2 - Move2PositionMark === | ||
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. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 2,344: | Line 2,344: | ||
|} | |} | ||
=== 0xb4 - Move2PositionOffset === | === 0xb4 - Move2PositionOffset === | ||
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. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 2,699: | Line 2,699: | ||
|} | |} | ||
=== 0xc3 - MovePositionMark === | === 0xc3 - MovePositionMark === | ||
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. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 2,767: | Line 2,767: | ||
|} | |} | ||
=== 0xc6 - MovePositionOffset === | === 0xc6 - MovePositionOffset === | ||
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. | |||
{| class="wikitable" | {| class="wikitable" | ||