If you are still using the old URL (datacrystal.romhacking.net), please update your bookmarks! The old URL may stop working soon.
The current URL is datacrystal.tcrf.net.
The current URL is datacrystal.tcrf.net.
Mother 3/Battle actions table: Difference between revisions
< Mother 3
Jump to navigation
Jump to search
Lorenzooone (talk | contribs) |
Lorenzooone (talk | contribs) |
||
Line 34: | Line 34: | ||
==Plays sound== | ==Plays sound== | ||
If these bytes values are 0xFFFF, attack | If these bytes values are 0xFFFF, attack sounds get played, if 0x0000, they do not. | ||
==Info chunk== | ==Info chunk== |
Revision as of 21:19, 16 October 2016
This is a sub-page of Mother 3.
Battle actions table | |
Game | MOTHER 3 |
Start Address | 0xD9D28 |
End Address | 0xE1707 |
# of Entries | 650 (0x28A) |
Entry Length | 48 bytes (0x30) |
Total Length | 31200 bytes (0x79E0) |
Back to the ROM map |
Overview
The battle actions table serves as a lookup table for an enemy's action values; it also contains indices into the battle text table.
Format
There are 650 entries; each entry contains 48 bytes.
Field listing
- 00-03 (04) = [ A ] Battle Action ID
- 04-05 (02) = [ B ] Sprite Recolour Value
- 06-07 (02) = [ C ] Playability of Sound
- 08-2F (28) = [ D ] PSI/Item/Actions Info Chunk
Table view
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F +-------------------------------------------------------------------------------- 00 | [ A ] [ B ] [ C ] [ D -> 10 | <- D -> 20 | <- D ]
Sprite colour
The first byte is either 0x46 or 0x48. If 0x46, the sprite gets white before printing the text (Damaging actions). If 0x48, the sprite gets black before printing the text (Not damaging actions).
Plays sound
If these bytes values are 0xFFFF, attack sounds get played, if 0x0000, they do not.
Info chunk
A group of bytes that's the same for PSI data, Item data, Battle skills table and Battle actions table.
Let's just call it Battle Info chunk.