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.
EarthBound/Battle Actions Table: Difference between revisions
Jump to navigation
Jump to search
m (Infobox table change.) |
m (Xkeeper moved page EarthBound:Battle Actions Table to EarthBound/Battle Actions Table: normalize subpages and titles) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{subpage|game=EarthBound:ROM map}} | |||
{{Infobox table|name=Battle Actions Table | {{Infobox table|name=Battle Actions Table | ||
|game=EarthBound | |game=EarthBound | ||
Line 38: | Line 40: | ||
|} | |} | ||
== | ==Action type== | ||
{{table el|len=1 byte|loc=0x02|valrange=0-5 (0x00-0x05) | {{table el|len=1 byte|loc=0x02|valrange=0-5 (0x00-0x05)}} | ||
''' | '''Type''' of action. | ||
{| border="1" cellpadding="1" | |||
!Value !! Action type | |||
|- | |||
|0 || nothing | |||
|- | |||
|1 || physical (damage halved by defending and shields) | |||
|- | |||
|2 || physical (damage unaffected by defending and shields) | |||
|- | |||
|3 || PSI | |||
|- | |||
|4 || item | |||
|- | |||
|5 || other | |||
|} | |||
==PP cost== | ==PP cost== | ||
{{table el|len=1 byte|loc=0x03|valrange=0-255 (0x00-0xFF)}} | {{table el|len=1 byte|loc=0x03|valrange=0-255 (0x00-0xFF)}} | ||
''' | '''Psychic Points cost''' to use this action. | ||
==Text address== | ==Text address== |
Latest revision as of 02:41, 24 January 2024
This is a sub-page of EarthBound.
Battle Actions Table | |
Game | EarthBound |
Start Address | 0x157D68 |
End Address | 0x158C4F |
# of Entries | 318 (?) |
Entry Length | 12 bytes (0x0C) |
Total Length | 3816 bytes (0xee8) |
Back to the ROM map |
The Battle Actions Table stores information about how to execute enemy and item actions.
Format
Direction
- Length: 1 byte
- Offset within entry: 0x00
- Range of values: 0-1
Direction of the attack.
Value | Direction |
---|---|
0 | party |
1 | enemy |
Target
- Length: 1 byte
- Offset within entry: 0x01
- Range of values: 0-4
Target of the attack.
Value | Target |
---|---|
0 | none |
1 | one |
2 | random one |
3 | row |
4 | all |
Action type
- Length: 1 byte
- Offset within entry: 0x02
- Range of values: 0-5 (0x00-0x05)
Type of action.
Value | Action type |
---|---|
0 | nothing |
1 | physical (damage halved by defending and shields) |
2 | physical (damage unaffected by defending and shields) |
3 | PSI |
4 | item |
5 | other |
PP cost
- Length: 1 byte
- Offset within entry: 0x03
- Range of values: 0-255 (0x00-0xFF)
Psychic Points cost to use this action.
Text address
- Length: 4 byte
- Offset within entry: 0x04-0x07
- Range of values: 0x00000000-0x00FFFFFF, but must be a valid text address
SNES address of the text displayed when this action is executed or 0x00000000 for no text displayed. Note that this text may include control codes which execute the action.
ASM address
- Length: 4 byte
- Offset within entry: 0x08-0x0B
- Range of values: 0x00000000-0x00FFFFFF, but must be a valid machine code address
SNES address of the machine code called to execute this action or 0x00000000 for no code called.