Okay, what I'm trying to do is basically have a text box display at the start of a War Room match in Advance Wars: Dual Strike. Now I've pretty much know how to do this, but I'm unsure how to tell the game which text offset to use. There are actually 255 points which lead to the word "Blank" and don't get used in the game, which is perfect to use as custom text.
Below is the code to display a text box on top with COs mug on the left:
17 00 00 00 00 00 00 00
05 00 00 00 00 00 00 00
39 00 00 00 00 00 00 00
05 00 00 00 00 00 00 00
19 00 00 00 00 00 00 00
00 00 00 00 00 00 00 40
18 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
04 00 00 00 00 00 00 00
The two "05" in bold tell the game which CO image to display. The bit I'm a bit confused with is on "40 18".
I know which pointer that leads to:
Overlay_0000 - 67AE8
RAM - 02315048
Offset at location - B8483102
ASCII Text in RAM - 023148B8
I just don't know how the game calculates to read the offset at the location in the overlay. Any ideas?
Below is the code to display a text box on top with COs mug on the left:
17 00 00 00 00 00 00 00
05 00 00 00 00 00 00 00
39 00 00 00 00 00 00 00
05 00 00 00 00 00 00 00
19 00 00 00 00 00 00 00
00 00 00 00 00 00 00 40
18 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
04 00 00 00 00 00 00 00
The two "05" in bold tell the game which CO image to display. The bit I'm a bit confused with is on "40 18".
I know which pointer that leads to:
Overlay_0000 - 67AE8
RAM - 02315048
Offset at location - B8483102
ASCII Text in RAM - 023148B8
I just don't know how the game calculates to read the offset at the location in the overlay. Any ideas?