The milestone values used in the game for the star milestone messages (1 star, 3 stars, 8 stars, 30 stars, etc.) are stored in an array of unsigned bytes in 8032db54/0e8b54 - 8032db59/0e8b59.
Each milestone value displays text dialog 141 + i
(i = its array 0-index) when Mario collects that amount of stars.
RAM address | Default value | Maps to dialog number |
---|---|---|
8032db54 | 1 | 141 |
8032db55 | 3 | 142 |
8032db56 | 8 | 143 |
8032db57 | 30 | 144 |
8032db58 | 50 | 145 |
8032db59 | 70 | 146 |
If you want to rearrange the dialogs in your hack, you can change the offset from 141 by editing the immediate of the assembly instruction in 802572f8/0122f8 (addiu $t2, $t1, 141
)
By default, the array contains six values, though it can be extended to seven or eight values without colliding with other data by editing the immediate of the assembly instruction 80257310/012310 (slti $at, $t4, 6
). The numbers of the new dialogs will naturally be 147 and 148 (unless you changed the offset).