This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
paper_mario:dialog_system [2017/06/30 05:32] shygoo created |
paper_mario:dialog_system [2025/10/18 21:21] (current) |
||
|---|---|---|---|
| Line 5: | Line 5: | ||
| ===== Dialog Banks ===== | ===== Dialog Banks ===== | ||
| - | The US and Japanese NTSC ROMs each use a single dialog bank while the PAL ROM uses four for English, German, French, and Spanish. | + | The US and Japanese NTSC ROMs each use a single dialog bank while the PAL ROM uses four banks for English, German, French, and Spanish. |
| Each bank is roughly 1MB in size. | Each bank is roughly 1MB in size. | ||
| Line 39: | Line 39: | ||
| === 2. Sections === | === 2. Sections === | ||
| - | Each section contains dialog data for a given area of the game. | + | Each section contains dialog data for a given area of the game. They are aligned to 16-byte boundaries in the original ROMs. |
| === 2a. Sequences === | === 2a. Sequences === | ||
| Sequences consist of text with a custom encoding mixed in with some basic bytecode that controls attributes such as style, color, and timing. | Sequences consist of text with a custom encoding mixed in with some basic bytecode that controls attributes such as style, color, and timing. | ||
| - | In the original rom, each sequence is aligned to a 4 byte boundary. | + | In the original ROMs, each sequence is aligned to a 4 byte boundary. |
| === 2b. Sequence Offsets === | === 2b. Sequence Offsets === | ||
| Line 154: | Line 154: | ||
| | CHR_TAB_16 | 0xA8 | - | | | | CHR_TAB_16 | 0xA8 | - | | | ||
| | CHR_TAB_6 | 0xA9 | - | | | | CHR_TAB_6 | 0xA9 | - | | | ||
| - | | CHR_LINE_BREAK | 0xF0 | - | | | + | | CHR_LINE_BREAK | 0xF0 | - | | |
| | CHR_BELL | 0xF1 | - | Makes a bell sound and waits for player input | | | CHR_BELL | 0xF1 | - | Makes a bell sound and waits for player input | | ||
| | CHR_DELAY | 0xF2 | yes | Pauses the dialog sequence for specified number of frames | | | CHR_DELAY | 0xF2 | yes | Pauses the dialog sequence for specified number of frames | | ||
| - | | (Space) | 0xF7 | - | | | + | | (Space) | 0xF7 | - | | |
| | CHR_NEXT_BUBBLE | 0xFB | - | Advances to the next bubble in the dialog sequence | | | CHR_NEXT_BUBBLE | 0xFB | - | Advances to the next bubble in the dialog sequence | | ||
| | CHR_STYLE | 0xFC | yes | Sets the style of the dialog box | | | CHR_STYLE | 0xFC | yes | Sets the style of the dialog box | | ||