PLAYER APPARENCE IN MENU

This data is a structure : it is divided into many sub-datas. The 32 bytes of this structure are composing the look of your player while in file menu. Changing some of them may product various effect, but you must remember : all of them are only esthetic, because when you begining to play, your player looks like always, and when you SAVE AND QUIT, the look that you have choose is replaced by the normal one. This REAL look, as you may have notice, is determine by only 4 items you are wearing :
  • Helm
  • Weapon(s)
  • Shield
  • Armor

At this point, you must known that some sprites in the game are, in fact, composed of many smaller sprite. That's the case for the characters you played, the monsters, and the missiles. The first half of the structure is used for the parts of the body, while the second half is used for their colors (it will be more exact to speak of TINT).

All datas are 1 byte size, exept for the reserved parts, which are 6 bytes size each. You can check d2data.mpq/data/global/excel/composit.txt file, and the d2char.mpq/data/global/chars/am/ directory. If you wonder how you can do this, check the CV5 program. Here is the structure sub-datas (along with their offsets), in the exact order they appeared in the file :

  • 026h : Head
  • 027h : Torso
  • 028h : Legs
  • 029h : Right arm
  • 02Ah : Left arm
  • 02Bh : Right hand
  • 02Ch : Left hand
  • 02Dh : Shield
  • 02Eh : Right shoulder
  • 02Fh : Left shoulder
  • 030h : Reserved (6 bytes)

  • 036h : Head tint
  • 037h : Torso tint
  • 038h : Legs tint
  • 039h : Right arm tint
  • 03Ah : Left arm tint
  • 03Bh : Right hand tint
  • 03Ch : Left hand tint
  • 03Dh : Shield tint
  • 03Eh : Right shoulder tint
  • 03Fh : Left shoulder tint
  • 040h : Reserved tint (6 bytes)
There are some constraints. The Left hand (offset 02Ch) and the Shield (offset 02Dh) couldn't be present at the same time. Some configuration for a player class may not work for another class. Some values do nothing...

All the following example values are valid with the amazon (and before the patch 1.08) :

  • Some value for the Head (offset 026h) : 03h make the Head invisible, 04h, 06h, 08h, 09h, 0Ah are different helms.

  • Some value for the Torso (offset 027h) : 01h, 02h, 03h are different armors, 04h make the Torso invisible.

  • For the 02Ch and 02Dh offsets (Left hand and Shield), a value of FFh means "nothing". If you put a value in offset 02Ch, you must put FFh in offset 02Dh (reverse is true too). Here are some examples for the offsets 02Bh, 02Ch and 02Dh :
      • 67h FFh 1Dh : broadsword and triangular shield
      • 67h FFh 1Eh : broadsword and rectangular shield
      • 01h 4Ch FFh : an arc (stand in both hand)

Here is a strange effect that you can easily make :
Invisible man An invisible man ! With only his weapon, shield, helm and left shoulder visible. It's fun, but when you go out of the file menu, as said before, all the apparence come back to normal.


Back to Part 1