If you are still using the old URL (datacrystal.romhacking.net), please update your bookmarks! The old URL may stop working at any time.
The current URL is datacrystal.tcrf.net.
The current URL is datacrystal.tcrf.net.
EarthBound/NPC Battle AI Table: Difference between revisions
Jump to navigation
Jump to search
(Changed "Categories" to "Category") |
m (Xkeeper moved page EarthBound:NPC Battle AI Table to EarthBound/NPC Battle AI Table: normalize subpages and titles) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{subpage|game=EarthBound:ROM map}} | |||
{{Infobox table|name=NPC Battle AI Table | {{Infobox table|name=NPC Battle AI Table | ||
|game= | |game=EarthBound | ||
|loc=ROM | |||
|start=0x15912D | |start=0x15912D | ||
|end=0x159147 | |end=0x159147 | ||
|numentries=13 | |numentries=13 (0xD) | ||
|entrylength=2 | |entrylength=2 | ||
|totallength=26 bytes (0x1A) | |totallength=26 bytes (0x1A) | ||
Line 13: | Line 16: | ||
[AA BB] | [AA BB] | ||
'' | ==Targetability== | ||
{{table el|len=1 byte|loc=0 (0x00)|valrange=0x01, 0x06, or 0x07}} | |||
'''Targetability''' of the AI entry. There are three known values. | |||
*0x01 - Untargetable. Enemies will not be able to attack this NPC. | *0x01 - Untargetable. Enemies will not be able to attack this NPC. | ||
*0x06 - Forced targeting. All attacks from enemies will be directed at this NPC. | *0x06 - Forced targeting. All attacks from enemies will be directed at this NPC. | ||
*0x07 - Variable targeting. Attacks from enemies will be directed at this NPC randomly, as with [[Player Characters]]. | *0x07 - Variable targeting. Attacks from enemies will be directed at this NPC randomly, as with [[Player Character|Player Characters]]. | ||
==Enemy Number== | |||
{{table el|len=1 byte|loc=1 (0x01)|valrange=0-255 (0x00-0xFF) (Must be a valid index in the [[EarthBound:Enemy Configuration Table|enemies table]])}} | |||
[[EarthBound:Enemy Configuration Table|Enemy Configuration]] entry to be used for this AI. The NPC acts like it is the referenced enemy, except on the player's side. | |||
=See Also= | =See Also= | ||
[[Non-Player | *[[Non-Player Character]] | ||
[[ | *[[EarthBound:Enemy Configuration Table|Enemy Configuration Table]] | ||
[[Category:EarthBound]] | [[Category:EarthBound|NPC Battle AI Table]] |
Latest revision as of 02:41, 24 January 2024
This is a sub-page of EarthBound.
NPC Battle AI Table | |
Game | EarthBound |
Start Address | 0x15912D |
End Address | 0x159147 |
# of Entries | 13 (0xD) |
Entry Length | 2 |
Total Length | 26 bytes (0x1A) |
Back to the ROM map |
The NPC Battle AI Table controls how Non-Player Characters behave in battle. It designates Enemy Configuration AI entries to each NPC and controls how they are targeted by enemy attacks.
Format
[AA BB]
Targetability
- Length: 1 byte
- Offset within entry: 0 (0x00)
- Range of values: 0x01, 0x06, or 0x07
Targetability of the AI entry. There are three known values.
- 0x01 - Untargetable. Enemies will not be able to attack this NPC.
- 0x06 - Forced targeting. All attacks from enemies will be directed at this NPC.
- 0x07 - Variable targeting. Attacks from enemies will be directed at this NPC randomly, as with Player Characters.
Enemy Number
- Length: 1 byte
- Offset within entry: 1 (0x01)
- Range of values: 0-255 (0x00-0xFF) (Must be a valid index in the enemies table)
Enemy Configuration entry to be used for this AI. The NPC acts like it is the referenced enemy, except on the player's side.