Mother 3/Enemy data: Difference between revisions

From Data Crystal
Jump to navigation Jump to search
No edit summary
Line 30: Line 30:
* <tt>1E-1E (01)</tt> = <tt>{{color2|#000000|#ADD8E6|[ J ]}}</tt> IQ
* <tt>1E-1E (01)</tt> = <tt>{{color2|#000000|#ADD8E6|[ J ]}}</tt> IQ
* <tt>1F-1F (01)</tt> = <tt>{{color2|#FFFFFF|#00008B|[ K ]}}</tt> Speed
* <tt>1F-1F (01)</tt> = <tt>{{color2|#FFFFFF|#00008B|[ K ]}}</tt> Speed
* <tt>20-23 (04)</tt> = ''Unclassified data''
* <tt>20-23 (04)</tt> = ''Unclassified data''                    
* <tt>24-24 (01)</tt> = <tt>{{color2|#FFFFFF|#006400|[ L ]}}</tt> Offense (surprise attack)
* <tt>24-24 (01)</tt> = <tt>{{color2|#FFFFFF|#006400|[ L ]}}</tt> Offense (surprise attack)
* <tt>25-25 (01)</tt> = <tt>{{color2|#FFFFFF|#8B0000|[ M ]}}</tt> Defense (surprise attack)
* <tt>25-25 (01)</tt> = <tt>{{color2|#FFFFFF|#8B0000|[ M ]}}</tt> Defense (surprise attack)
* <tt>26-26 (01)</tt> = <tt>{{color2|#FFFFFF|#B8860B|[ N ]}}</tt> IQ (surprise attack)
* <tt>26-26 (01)</tt> = <tt>{{color2|#FFFFFF|#B8860B|[ N ]}}</tt> IQ (surprise attack)
* <tt>27-27 (01)</tt> = <tt>{{color2|#FFFFFF|#483D8B|[ O ]}}</tt> Speed (surprise attack)
* <tt>27-27 (01)</tt> = <tt>{{color2|#FFFFFF|#483D8B|[ O ]}}</tt> Speed (surprise attack)
* <tt>28-2B (04)</tt> = ''Unclassified data''
* <tt>28-2B (04)</tt> = ''Unclassified data''                    
* <tt>2C-53 (28)</tt> = <tt>{{color2|#FFFFFF|#A9A9A9|[ P ]}}</tt> [[#Weakness table|Weakness table]]
* <tt>2C-53 (28)</tt> = <tt>{{color2|#FFFFFF|#A9A9A9|[ P ]}}</tt> [[#Weakness table|Weakness table]]
* <tt>54-63 (10)</tt> = <tt>{{color2|#FFFFFF|#000000|[ Q ]}}</tt> [[#Action table|Action table]]
* <tt>54-63 (10)</tt> = <tt>{{color2|#FFFFFF|#000000|[ Q ]}}</tt> [[#Action table|Action table]]
* <tt>64-65 (02)</tt> = ''Unclassified data''
* <tt>64-65 (02)</tt> = <tt>{{color2|#FFFFFF|#008B8B|[ R ]}}</tt> Attack sound number
* <tt>66-66 (01)</tt> = <tt>{{color2|#FFFFFF|#008B8B|[ R ]}}</tt> [[#Encounter and death text|Encounter text number]]
* <tt>66-66 (01)</tt> = <tt>{{color2|#FFFFFF|#FF8C00|[ S ]}}</tt> [[#Encounter and death text|Encounter text number]]
* <tt>67-67 (01)</tt> = <tt>{{color2|#FFFFFF|#FF8C00|[ S ]}}</tt> [[#Encounter and death text|Death text number]]
* <tt>67-67 (01)</tt> = <tt>{{color2|#FFFFFF|#8B008B|[ T ]}}</tt> [[#Encounter and death text|Death text number]]
* <tt>68-77 (10)</tt> = ''Unclassified data''
* <tt>68-77 (10)</tt> = ''Unclassified data''                    
* <tt>78-83 (0C)</tt> = <tt>{{color2|#FFFFFF|#8B008B|[ T ]}}</tt> [[#Item drop table|Item drop table]]
* <tt>78-83 (0C)</tt> = <tt>{{color2|#FFFFFF|#9932CC|[ U ]}}</tt> [[#Item drop table|Item drop table]]
* <tt>84-87 (04)</tt> = <tt>{{color2|#FFFFFF|#9932CC|[ U ]}}</tt> Experience
* <tt>84-87 (04)</tt> = <tt>{{color2|#FFFFFF|#BDB76B|[ V ]}}</tt> Experience
* <tt>88-8B (04)</tt> = <tt>{{color2|#FFFFFF|#BDB76B|[ V ]}}</tt> Money
* <tt>88-8B (04)</tt> = <tt>{{color2|#FFFFFF|#556B2F|[ W ]}}</tt> Money
* <tt>8C-8F (04)</tt> = ''Unclassified data''
* <tt>8C-8F (04)</tt> = ''Unclassified data''


Line 56: Line 56:
  40  | {{color2|#FFFFFF|#A9A9A9|<-                                    P                                    ->}}
  40  | {{color2|#FFFFFF|#A9A9A9|<-                                    P                                    ->}}
  50  | {{color2|#FFFFFF|#A9A9A9|<-        P      ]}} {{color2|#FFFFFF|#000000|[                            Q                          ->}}
  50  | {{color2|#FFFFFF|#A9A9A9|<-        P      ]}} {{color2|#FFFFFF|#000000|[                            Q                          ->}}
  60  | {{color2|#FFFFFF|#000000|<-        Q      ]}} [  ?   ] {{color2|#FFFFFF|#008B8B|[ R]}} {{color2|#FFFFFF|#FF8C00|[ S]}} [                  ?                ->
  60  | {{color2|#FFFFFF|#000000|<-        Q      ]}} {{color2|#FFFFFF|#008B8B|R   ]}} {{color2|#FFFFFF|#FF8C00|[ S]}} {{color2|#FFFFFF|#8B008B|[ T]}} [                  ?                ->
  70  | <-                  ?                ] {{color2|#FFFFFF|#8B008B|[                  T                 ->}}
  70  | <-                  ?                ] {{color2|#FFFFFF|#9932CC|[                  U                 ->}}
  80  | {{color2|#FFFFFF|#8B008B|<-        T       ]}} {{color2|#FFFFFF|#9932CC|[        U       ]}} {{color2|#FFFFFF|#BDB76B|[        V       ]}} [        ?        ]
  80  | {{color2|#FFFFFF|#9932CC|<-        U       ]}} {{color2|#FFFFFF|#BDB76B|[        V       ]}} {{color2|#FFFFFF|#556B2F|[        W       ]}} [        ?        ]


==Battle background==
==Battle background==

Revision as of 06:55, 5 September 2013

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.

Note: 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.

Format

Each entry in the table uses 144 bytes.

Field listing

  • 00-09 (0A) = Unclassified data
  • 0A-0B (02) = [ A ] Battle background number
  • 0C-0D (02) = [ B ] Swirl music number
  • 0E-0F (02) = [ C ] Battle music number
  • 10-11 (02) = [ D ] Win music number
  • 12-13 (02) = [ E ] Level
  • 14-17 (04) = [ F ] HP
  • 18-1B (04) = [ G ] PP
  • 1C-1C (01) = [ H ] Offense
  • 1D-1D (01) = [ I ] Defense
  • 1E-1E (01) = [ J ] IQ
  • 1F-1F (01) = [ K ] Speed
  • 20-23 (04) = Unclassified data
  • 24-24 (01) = [ L ] Offense (surprise attack)
  • 25-25 (01) = [ M ] Defense (surprise attack)
  • 26-26 (01) = [ N ] IQ (surprise attack)
  • 27-27 (01) = [ O ] Speed (surprise attack)
  • 28-2B (04) = Unclassified data
  • 2C-53 (28) = [ P ] Weakness table
  • 54-63 (10) = [ Q ] Action table
  • 64-65 (02) = [ R ] Attack sound number
  • 66-66 (01) = [ S ] Encounter text number
  • 67-67 (01) = [ T ] Death text number
  • 68-77 (10) = Unclassified data
  • 78-83 (0C) = [ U ] Item drop table
  • 84-87 (04) = [ V ] Experience
  • 88-8B (04) = [ W ] Money
  • 8C-8F (04) = Unclassified data

Table view

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

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.

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