Darklands common structures

These structures are common to a number of different files.

Table of Contents

Structures

attribute_set
coordinates
date
date_reversed
item
money
skill_set

Structures

Structure: date

Size 0x08.

A date.

0x00: hour: word
0x02: day: word
0x04: month: word (enum month)
0x06: year: word
  • Contains the entire value (not just 0 for 1400)

Structure: date_reversed

Size 0x08.

A date stored in reversed format.

0x00: year: word
  • Contains the entire value (not just 0 for 1400)
0x02: month: word (enum month)
0x04: day: word
0x06: hour: word

Structure: money

Size 0x06.

An amount of money.

0x00: florins: word
0x02: groschen: word
0x04: pfenniges: word

Structure: coordinates

Size 0x04.

A world map location (pair of coordinates).

0x00: x_coord: word
X-coordinate.
  • Ranges from 0x0000 - 0x0147.
  • The maximum is the first word of the file "darkland.map".
0x02: y_coord: word
Y-coordinate.
  • Ranges from 0x0000 - 0x03a3.
  • The maximum is the second word of the file "darkland.map".

Structure: item

Size 0x06.

An item.

0x00: code: word
0x02: type: byte
0x03: quality: byte
0x04: quantity: byte
0x05: weight: byte

Structure: attribute_set

Size 0x07.

A set of attribute values.

0x00: end: byte
Endurance.
0x01: str: byte
Strength.
0x02: agl: byte
Agility.
0x03: per: byte
Perception.
0x04: int: byte
Intelligence.
0x05: chr: byte
Charisma.
0x06: df: byte
Divine favor.

Structure: skill_set

Size 0x13.

A set of skill values.

0x00: wEdg: byte
Edged Weapon skill.
0x01: wImp: byte
Impact Weapon skill.
0x02: wFll: byte
Flail Weapon skill.
0x03: wPol: byte
Polearm skill.
0x04: wThr: byte
Thrown Weapon skill.
0x05: wBow: byte
Bow skill.
0x06: wMsl: byte
Missile Weapon skill.
0x07: alch: byte
Alchemy skill.
0x08: relg: byte
Religious skill.
0x09: virt: byte
Virtue skill.
0x0a: spkC: byte
Speak Common skill.
0x0b: spkL: byte
Speak Latin skill.
0x0c: r_w: byte
Read/Write skill.
0x0d: heal: byte
Healing skill.
0x0e: artf: byte
Artifice skill.
0x0f: stlh: byte
Stealth skill.
0x10: strw: byte
Streetwise skill.
0x11: ride: byte
Riding skill.
0x12: wdws: byte
Woodwise skill.