How to read the .prf files

A typical entry in a graf-xxx.prf file looks like this:

# Novice ranger
R:114:0x9C/0x83

The second line is the important one. The R means it is in r_info.txt. The 114 is the index number. The next two entries are hex numbers. Convert them to decimal and subtract 128. In this case 9C = 156 so subtracting 128 yields 28. 83 = 131 so subtracting 128 yields 3. The first number is the row number, the second one is the column number. Remember that arrays start at zero, so the tile should be in the 29th row, 4th column.


Back to the Angband graphics page.

Back to my Home Page.