DT0
This lump was used in all versions older than December 21 2012. It has been replaced with heroes.reld
This lump might still exist in newer games, but is ignored in favor of the data in heroes.reld.
DT0 holds data about each hero. The size of the records are stored in BINSIZE.BIN.
Formal Specs[edit]
Offset | Data | Meaning |
0-16 | VSTR(1i+16i=17i) | Name |
17 | INT | Hero Sprite |
18 | INT | Hero Palette, or -1 for default |
19 | INT | Walkabout Sprite |
20 | INT | Walkabout Palette, or -1 for default |
21 | INT | Default level |
22 | INT | Default weapon |
23 | INT | HP (level 0) |
24 | INT | HP (level 99) |
25 | INT | MP (level 0) |
26 | INT | MP (level 99) |
27 | INT | Strength (level 0) |
28 | INT | Strength (level 99) |
29 | INT | Accuracy (level 0) |
30 | INT | Accuracy (level 99) |
31 | INT | Defense (level 0) |
32 | INT | Defense (level 99) |
33 | INT | Dodge % (level 0) |
34 | INT | Dodge % (level 99) |
35 | INT | Magic (level 0) |
36 | INT | Magic (level 99) |
37 | INT | Will (level 0) |
38 | INT | Will (level 99) |
39 | INT | Speed (level 0) |
40 | INT | Speed (level 99) |
41 | INT | Counter (level 0) |
42 | INT | Counter (level 99) |
43 | INT | Focus (level 0) |
44 | INT | Focus (level 99) |
45 | INT | Extra hits(level 0) |
46 | INT | Extra hits(level 99) |
47-238 | INT * 2 * 24 * 4 | Spell data. Four spell lists. Each list has 24 entries, and each entry has 2 INTs: |
239 | INT | Hero portrait or -1 for none |
240-242 Hero Bitsets |
BIT * 8 | 0 - 7: Weak against elements 1 - 8 #Note 1 |
BIT * 8 | 8 - 15: Strong against elements 1 - 8 #Note 1 | |
BIT * 8 | 16 - 23: Absorbs elements 1 - 8 #Note 1 | |
BIT | 24: Show rename prompt when added to party | |
BIT | 25: Allow renaming from status menu | |
BIT | 26: Do not show empty spell lists | |
BIT * 21 | 27 - 47: Unused | |
243-253 | VSTR(1i+10i=11i) | Spell list 1 name |
254-264 | VSTR(1i+10i=11i) | Spell list 2 name |
265-275 | VSTR(1i+10i=11i) | Spell list 3 name |
276-286 | VSTR(1i+10i=11i) | Spell list 4 name |
287 | INT | Hero portrait palette or -1 for default |
288-291 | INT * 4 | Spell list 1 - 4 type: 0 = MP based |
292 | INT | Have hero tag |
293 | INT | Hero is alive tag |
294 | INT | Hero is leader tag |
295 | INT | Have hero in active party tag |
296 | INT | Max length of hero name when renaming (0 = default (16?)) |
297 | INT | "Attack A" Hand X-coordinate |
298 | INT | "Attack A" Hand Y-coordinate |
299 | INT | "Attack B" Hand X-coordinate |
300 | INT | "Attack B" Hand Y-coordinate |
301-428 | FLOAT * 64 | Damage taken from each element: 1.0 is normal damage. Not all 64 elements are necessarily used by the game. #Note 1 |
Note 1[edit]
If fixHeroElementals is OFF then elemental resistances should be loaded from the absorb/weak/strong bits (default to 1.0, multiply by -1.0 for absorb, 2.0 for weak, 0.12 for strong).
If fixHeroElementals is ON then elemental resistances should be loaded from the array of 64 FLOATs, and the old bits are garbage.
References to other lumps[edit]
Field | Indicating record in lump: |
---|---|
Hero,Walkabout Palette | PAL |
Portrait Palette | PAL |
Hero sprite | PT0 |
Walkabout sprite | PT4 |
Portrait sprite | PT8 |
Spell list | DT6 |
Default Weapon | ITM |
ARCHINYM.LMP . ATTACK.BIN . BINSIZE.BIN . BROWSE.TXT . DEFPAL#.BIN . DEFPASS.BIN . distrib.reld . FIXBITS.BIN . heroes.reld . heroform.reld . LOOKUP1.BIN . MENUS.BIN . MENUITEM.BIN . PALETTES.BIN . PLOTSCR.LST . SFXDATA.BIN . slicetree_#_#.reld . SLICELOOKUP.TXT . SONGDATA.BIN . UICOLORS.BIN . GEN . general.reld . BAM . Map Format . T . P . E . D . L . N . Z . DOR . DOX . DT0 . DT1 . DT6 . EFS . FOR . FNT . HSP . HSZ . ITM . MAP . MAS . MN . MXS . PAL . PT0 . PT1 . PT2 . PT3 . PT4 . PT5 . PT6 . PT7 . PT8 . SAY . SHO . SNG . STF . STT . TAP . TIL . TMN . VEH