FANDOM


This structure is used to represent a character. The MAZE.CHR file consists solely of these structures, with one structure representing each available character slot.

OffsetGroupNameLengthDescription
0x00 General name 16 bytes The character's name (ASCIIZ). The name is limited to ten characters in length, but the field is padded out with null bytes.
0x10 sex 1 byte Index into the SexNames array, eg. 0 = Male, 1 = Female.
0x11 race 1 byte Index into the RaceNames array, eg. 0 = Human, 1 = Elf, etc. Used to look up values from other tables as well, eg. base HP mod, resistances, base thievery, base skills, base SP/level modifiers, etc.
0x12 saveSide 1 byte Unexplored
0x13 class 1 byte Index into the ClassNames array, eg. 0 = Knight, 1 = Paladin, etc. Used to look up values from other tables as well, eg. base HP gained per level, number of levels to gain an attack, default skills, available spells, etc.
0x14 Statistics mgt 2 bytes Each of these 2-byte structures represents the base statistic value (1 byte) and the temporary statistic value (1 byte), which is added to the base value to get the "real" value. The base represents the character's innate Might (for example), and the temporary value represents any bonuses or penalties applied through drinking from fountains, scripted events, etc. For more information, see the Statistics page.
0x16 int 2 bytes
0x18 pers 2 bytes
0x1A end 2 bytes
0x1C spd 2 bytes
0x1E acc 2 bytes
0x20 luck 2 bytes
0x22 General ac_temp 1 byte? Temporary AC bonus
0x23 level 2 bytes Character's level; two bytes, first byte is base level, second byte is temporary level bonus (same storage method as any of the statistics, above).
0x25 db_day 1 byte The character's birthday (Day of the year)
0x26 age_temp 1 byte The character's temporary age (unnatural aging)
0x27 skills 18 bytes The skills the character possesses. See: Skills
0x39 awards 64 bytes The awards the character has received. See: Awards
0x79 spells 39 bytes The spells the character can cast. See: Spells
0xA0 lloydmap 1 byte The Map ID the character's Lloyd's Beacon spell is set to.
0xA1 lloydx 1 byte The X-coordinate for the saved Lloyd's Beacon position.
0xA2 lloydy 1 byte The Y-coordinate for the saved Lloyd's Beacon position.
0xA3 hasspells 1 byte 0 = character cannot cast spells, 1 = character can cast spells
0xA4 currentspell 1 byte The character's last-selected spell
0xA5 quickoption 1 byte The character's last-selected quick option
0xA6 Items weapon 9 * 4 bytes The character's weapons
0xCA armor 9 * 4 bytes The character's armor
0xEE acces 9 * 4 bytes The character's accessories
0x112 misc 9 * 4 bytes The character's miscellaneous items
0x136 General lloydsSide 1 byte The side of the world the Lloyd's Beacon is set to (ie. Clouds or Darkside)
0x137 Resistance fire 2 bytes Each of these fields represents the character's resistance to the specified element. The first byte is their base permanent resistance, the second byte is the temporary modifier.
0x139 cold 2 byte
0x13B elec 2 byte
0x13D poison 2 bytes
0x13F energy 2 bytes
0x141 magic 2 bytes
0x143 Conditions conditions 16 bytes The character's conditions (Drunk, Unconscious, Dead, Eradicated, etc.) are stored here. See: Conditions
0x153 General  ? uint16 Possibly "town"? Purpose unknown.
0x155  ? 1 byte  ?
0x156 cur_hp uint16 Current HP
0x158 cur_sp uint16 Current SP
0x15A yb_day uint16 The character's birth year
0x15C experience dword Current amount of experience
0x160 currentspelladv 1 byte Index to the character's currently selected adventuring (ie. non-combat) spell.
0x161 currentspellcom 1 byte Index to the character's currently selected combat spell.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.