Mother 3/Enemy data: Difference between revisions

From Data Crystal
Jump to navigation Jump to search
Line 66: Line 66:
  50  | {{color2|#FFFFFF|#A9A9A9|<-        Q      ]}} {{color2|#FFFFFF|#000000|[                            R                          ->}}
  50  | {{color2|#FFFFFF|#A9A9A9|<-        Q      ]}} {{color2|#FFFFFF|#000000|[                            R                          ->}}
  60  | {{color2|#FFFFFF|#000000|<-        R      ]}} {{color2|#FFFFFF|#008B8B|[  S  ]}} {{color2|#FFFFFF|#FF8C00|[ T]}} {{color2|#FFFFFF|#8B008B|[ U]}} [          ?          ] {{color2|#000000|#8BD08B|[ V]}} [  ?  ->
  60  | {{color2|#FFFFFF|#000000|<-        R      ]}} {{color2|#FFFFFF|#008B8B|[  S  ]}} {{color2|#FFFFFF|#FF8C00|[ T]}} {{color2|#FFFFFF|#8B008B|[ U]}} [          ?          ] {{color2|#000000|#8BD08B|[ V]}} [  ?  ->
  70  | <-                 ?                 ] {{color2|#FFFFFF|#9932CC|[                  W                ->}}
  70  | <- ?   ] {{color2|#000000|#8BD08B|[ V]}} {{color2|#000000|#8BD08B|[ V]}} [        ?        ] {{color2|#FFFFFF|#9932CC|[                  W                ->}}
  80  | {{color2|#FFFFFF|#9932CC|<-        W      ]}} {{color2|#FFFFFF|#BDB76B|[        X        ]}} {{color2|#FFFFFF|#556B2F|[        Y        ]}} {{color2|#FFFFFF|#A56B2F|[        Z        ]}}
  80  | {{color2|#FFFFFF|#9932CC|<-        W      ]}} {{color2|#FFFFFF|#BDB76B|[        X        ]}} {{color2|#FFFFFF|#556B2F|[        Y        ]}} {{color2|#FFFFFF|#A56B2F|[        Z        ]}}



Revision as of 14:44, 29 September 2016

This is a sub-page of Mother 3.

Enemy data table
Game MOTHER 3
Start Address 0xD0D28
End Address 0xD9D27
# of Entries 256 (0x100)
Entry Length 144 bytes (0x90)
Total Length 36864 bytes (0x9000)
Back to the ROM map

Overview

The enemy data table contains the stats for each enemy in the game. It does not include the enemy names; for that, see the enemy names table.

Notes: for whatever stupid freaking reason, at least one enemy (the Minor Robot) has its battle actions hard-coded. Changing its battle actions in this table seems to have no effect. Also, some enemy have hard-coded weakness text too (Miracle Fassad).

Format

Each entry in the table uses 144 bytes.

Field listing

Table view

       00   01   02   03   04   05   06   07   08   09   0A   0B   0C   0D   0E   0F
    +--------------------------------------------------------------------------------
00  | [          ?           ] [ A] [        ?        ] [   B   ] [   C   ] [   D   ]
10  | [   E   ] [   F   ] [        G        ] [        H        ] [ I] [ J] [ K] [ L]
20  | [        ?        ] [ M] [ N] [ O] [ P] [        ?        ] [        Q       ->
30  | <-                                     Q                                     ->
40  | <-                                     Q                                     ->
50  | <-        Q       ] [                            R                           ->
60  | <-        R       ] [   S   ] [ T] [ U] [           ?           ] [ V] [  ?  ->
70  | <-  ?   ] [ V] [ V] [        ?        ] [                  W                 ->
80  | <-        W       ] [        X        ] [        Y        ] [        Z        ]

Smell type

Every enemy has a type that's revealed when you smell them. What the game does is simply taking this value and adding it 01F2 to get the pointer to the correct line from the battle text.

Battle background

Each enemy has a battle background associated with it. This number corresponds to the battle background master table.

Music numbers

Each enemy has three songs associated with it:

  • The swirl music plays when you first touch the enemy, and the swirl animates
  • The battle music plays throughout the battle
  • The win music plays when you win the battle

These numbers correspond to the song pointer table, and not to the sound player songlist.

Weakness table

Each enemy has a table of 20 different weakness values. Each value is 16 bits. The higher the value is, the weaker the enemy is to that particular ailment/ability. The weaknesses are:

00: Poison 0A: Numbness?
01: Paralysis 0B: DCMC
02: Sleep 0C: Wall staple
03: Strange 0D: Apologize
04: Cry 0E: Make laugh
05: Forgetful 0F: PK Love, Starstorm, Ground
06: Nausea 10: PK Fire
07: Fleas 11: PK Freeze
08: Burned 12: PK Thunder
09: Solidified 13: Bomb

Action table

Each enemy has eight battle actions; each action value is 16 bits. The values correspond to the battle actions table.

Encounter and death text

A particular line of text is shown when you encounter and defeat an enemy; for example, "X suddenly attacked!" and "X became tame!". These values are one byte each, and they correspond to the battle text table.

In battle sprite height

One byte that tells the game where to print the enemy sprite in battle. If 00, it will be near the center of the screen, if 01 it will be lower, if 02 it will be at the bottom.

Item drop table

This table has three entries, with four bytes each:

  • 00-00 (01) = Item number
  • 01-03 (03) = Percent chance of being dropped

Smell weaknesses pointers

Two values of two bytes each. They are pointers to the battle text that should be printed. Value "E6 01" is used to prevent printing one or both weakness lines.