The second item in the game is the Sword of Hrakel itself. This item description is slightly more complex in that it references one of the common strings.
2C This is the length of the data describing this item, i.e. 44 bytes
0D Inventory code
01 10 Reference to common string 10, which is "Here lies "
28 Marks the start of the inventory short description
D4 48 45 20 "The "
D3 57 4F 52 44 20 "Sword "
4F 46 20 "of "
C8 52 41 4B 45 4C "Hrakel"
29 Marks the end of the inventory short description
20 47 4C 4F 57 49 4E 47 20 " glowing "
42 52 49 47 48 54 4C 59 2E "brightly."
00 The 00 byte is the end of this item's description data
We saw when looking at the location descriptions that an $01 tells the interpreter that the next code is a reference to a common string. We also decoded and listed what the common strings are and therefore we know that $10 is "Here lies ". The full item description is therefore "Here lies The Sword of Hrakel glowing brightly." and the inventory short description is "The Sword of Hrakel".
We now know enough to fully decode the 33 item descriptions.
01 [0C] A golden wrought ring lies in front of me.
02 [0D] Here lies The Sword of Hrakel glowing brightly.
03 [0E] There is a compass here.
04 [0F] I can see a shelf here.
05 [10] On the ground glints a fine cut gem.
06 [11] An old rusty axe lies nearby.
07 [12] I can see a dull iron bar.
08 [13] I can just see a half hidden bronze key.
09 [13] I've noticed a small silver key here.
0A [14] There is a worn scroll with glyphs on it.
0B [17] There is a bottle of weed-o-kill.
0C [17] There is an empty bottle here.
0D [18] I can see and smell a rotting dead horse.
0E [10] Lying on the ground are shards of a shattered crystal.
0F [19] Nearby is a small study hammer.
10 [1A] There is a wooden raft here.
11 [1B] There is an agitated duck here.
12 [1B] There is a dead duck here.
13 [1C] Stuck in the ground is a shovel.
14 [1D] Spread on the ground is an oval rug.
15 [43] Discarded nearby is a lamp.
16 [43] Discarded nearby is a lit lamp.
17 [00] A rabid wolf bars my way.
18 [00] A wolf's hacked up body lies nearby.
19 [00] There's nasty gargoyles here.
1A [00] Nearby are cindered gargoyles.
1B [00] I can see a meditating guru.
1C [00] The evil mage is readying a spell.
1D [00] A man hangs here in chains.
1E [00] Here lies a man clutching his stomach-moaning.
1F [44] I can see a very large nest.
20 [24] I can see a small silver chest in front of me.
21 [16] There is a pack of matches here.
Up to this point we haven't talked about the second byte in the item descriptions. It is fairly obvious from looking over the values for this byte as shown above that it is related to the inventory. A value of $00 must mean that the item cannot be picked up, whereas two items with the same value must mean they are the same inventory object but in a different state. Examples of the later are the dead duck, empty bottle, and lit lamp. Two items that don't quite agree with this observation are the bronze key and silver key. They both have an inventory code of $13 but surely must not be the same object. I wouldn't know for certain; I haven't finished the game yet!
Sword of Hrakel has 33 items, the data for which starts at offset $04A9:
0004A9 2F 0C 28 C1 20 47 4F 4C 44 45 4E 20 57 52 4F 55 /.(. GOLDEN WROU
0004B9 47 48 54 20 52 49 4E 47 29 20 4C 49 45 53 20 49 GHT RING) LIES I
0004C9 4E 20 46 52 4F 4E 54 20 4F 46 20 4D 45 2E 00 2C N FRONT OF ME..,
0004D9 0D 01 10 28 D4 48 45 20 D3 57 4F 52 44 20 4F 46 ...(.HE .WORD OF
0004E9 20 C8 52 41 4B 45 4C 29 20 47 4C 4F 57 49 4E 47 .RAKEL) GLOWING
0004F9 20 42 52 49 47 48 54 4C 59 2E 00 13 0E 01 11 28 BRIGHTLY......(
000509 41 20 43 4F 4D 50 41 53 53 29 01 0E 2E 00 11 0F A COMPASS)......
000519 01 0F 28 41 20 53 48 45 4C 46 29 01 0E 2E 00 29 ..(A SHELF)....)
000529 10 CF 4E 20 54 48 45 20 47 52 4F 55 4E 44 20 47 ..N THE GROUND G
000539 4C 49 4E 54 53 20 28 41 20 46 49 4E 45 20 43 55 LINTS (A FINE CU
000549 54 20 47 45 4D 29 2E 00 1F 11 28 C1 4E 20 4F 4C T GEM)....(.N OL
000559 44 20 52 55 53 54 59 20 41 58 45 29 20 4C 49 45 D RUSTY AXE) LIE
000569 53 20 4E 01 12 2E 00 17 12 01 0F 28 41 20 44 55 S N........(A DU
000579 4C 4C 20 49 52 4F 4E 20 42 41 52 29 2E 00 2D 13 LL IRON BAR)..-.
000589 C9 20 43 41 4E 20 4A 55 53 54 20 53 45 45 20 41 . CAN JUST SEE A
000599 20 48 41 4C 46 20 48 49 44 44 45 4E 20 28 42 52 HALF HIDDEN (BR
0005A9 4F 4E 5A 45 20 4B 45 59 29 2E 00 27 13 C9 27 56 ONZE KEY)..'..'V
0005B9 45 20 4E 4F 54 49 43 45 44 20 28 41 20 53 4D 41 E NOTICED (A SMA
0005C9 4C 4C 20 53 49 4C 56 45 52 20 4B 45 59 29 01 0E LL SILVER KEY)..
0005D9 2E 00 27 14 01 11 28 41 20 57 4F 52 4E 20 53 43 ..'...(A WORN SC
0005E9 52 4F 4C 4C 29 20 57 49 54 48 20 47 4C 59 50 48 ROLL) WITH GLYPH
0005F9 53 20 4F 4E 20 49 54 2E 00 1F 17 01 11 41 20 28 S ON IT......A (
000609 42 4F 54 54 4C 45 20 4F 46 20 57 45 45 44 2D 4F BOTTLE OF WEED-O
000619 2D 4B 49 4C 4C 29 2E 00 19 17 01 11 28 41 4E 20 -KILL)......(AN
000629 45 4D 50 54 59 20 42 4F 54 54 4C 45 29 01 0E 2E EMPTY BOTTLE)...
000639 00 2E 18 C9 20 43 41 4E 20 53 45 45 20 41 4E 44 .... CAN SEE AND
000649 20 53 4D 45 4C 4C 20 28 41 20 52 4F 54 54 49 4E SMELL (A ROTTIN
000659 47 20 44 45 41 44 20 48 4F 52 53 45 29 2E 00 3B G DEAD HORSE)..;
000669 10 CC 59 49 4E 47 20 4F 4E 20 54 48 45 20 47 52 ..YING ON THE GR
000679 4F 55 4E 44 20 41 52 45 20 53 48 41 52 44 53 20 OUND ARE SHARDS
000689 4F 46 20 28 41 20 53 48 41 54 54 45 52 45 44 20 OF (A SHATTERED
000699 43 52 59 53 54 41 4C 29 2E 00 22 19 CE 01 12 20 CRYSTAL).."....
0006A9 49 53 20 28 41 20 53 4D 41 4C 4C 20 53 54 55 52 IS (A SMALL STUR
0006B9 44 59 20 48 41 4D 4D 45 52 29 2E 00 17 1A 01 11 DY HAMMER)......
0006C9 28 41 20 57 4F 4F 44 45 4E 20 52 41 46 54 29 01 (A WOODEN RAFT).
0006D9 0E 2E 00 1A 1B 01 11 28 41 4E 20 41 47 49 54 41 .......(AN AGITA
0006E9 54 45 44 20 44 55 43 4B 29 01 0E 2E 00 15 1B 01 TED DUCK).......
0006F9 11 28 41 20 44 45 41 44 20 44 55 43 4B 29 01 0E .(A DEAD DUCK)..
000709 2E 00 25 1C D3 54 55 43 4B 20 49 4E 20 54 48 45 ..%..TUCK IN THE
000719 20 47 52 4F 55 4E 44 20 49 53 20 28 41 20 53 48 GROUND IS (A SH
000729 4F 56 45 4C 29 2E 00 29 1D D3 50 52 45 41 44 20 OVEL)..)..PREAD
000739 4F 4E 20 54 48 45 20 47 52 4F 55 4E 44 20 49 53 ON THE GROUND IS
000749 20 28 41 4E 20 4F 56 41 4C 20 52 55 47 29 2E 00 (AN OVAL RUG)..
000759 1D 43 C4 49 53 43 41 52 44 45 44 20 4E 01 12 20 .C.ISCARDED N..
000769 49 53 20 28 41 20 4C 41 4D 50 29 2E 00 21 43 C4 IS (A LAMP)..!C.
000779 49 53 43 41 52 44 45 44 20 4E 01 12 20 49 53 20 ISCARDED N.. IS
000789 28 41 20 4C 49 54 20 4C 41 4D 50 29 2E 00 1A 00 (A LIT LAMP)....
000799 C1 20 52 41 42 49 44 20 01 13 20 42 41 52 53 20 . RABID .. BARS
0007A9 4D 59 20 57 41 59 2E 00 22 00 C1 20 01 13 27 53 MY WAY..".. ..'S
0007B9 20 48 41 43 4B 45 44 20 55 50 20 42 4F 44 59 20 HACKED UP BODY
0007C9 4C 49 45 53 20 4E 01 12 2E 00 16 00 D4 48 45 52 LIES N.......HER
0007D9 45 27 53 20 4E 41 53 54 59 20 01 15 01 0E 2E 00 E'S NASTY ......
0007E9 17 00 CE 01 12 20 41 52 45 20 43 49 4E 44 45 52 ..... ARE CINDER
0007F9 45 44 20 01 15 2E 00 17 00 01 0F 41 20 4D 45 44 ED ........A MED
000809 49 54 41 54 49 4E 47 20 47 55 52 55 2E 00 25 00 ITATING GURU..%.
000819 D4 48 45 20 45 56 49 4C 20 4D 41 47 45 20 49 53 .HE EVIL MAGE IS
000829 20 52 45 41 44 59 49 4E 47 20 41 20 53 50 45 4C READYING A SPEL
000839 4C 2E 00 1B 00 C1 20 4D 41 4E 20 48 41 4E 47 53 L..... MAN HANGS
000849 01 0E 20 49 4E 20 43 48 41 49 4E 53 2E 00 29 00 .. IN CHAINS..).
000859 01 10 41 20 4D 41 4E 20 43 4C 55 54 43 48 49 4E ..A MAN CLUTCHIN
000869 47 20 48 49 53 20 53 54 4F 4D 41 43 48 2D 4D 4F G HIS STOMACH-MO
000879 41 4E 49 4E 47 2E 00 19 44 01 0F 28 41 20 56 45 ANING...D..(A VE
000889 52 59 20 4C 41 52 47 45 20 4E 45 53 54 29 2E 00 RY LARGE NEST)..
000899 2B 24 01 0F 28 41 20 53 4D 41 4C 4C 20 53 49 4C +$..(A SMALL SIL
0008A9 56 45 52 20 43 48 45 53 54 29 20 49 4E 20 46 52 VER CHEST) IN FR
0008B9 4F 4E 54 20 4F 46 20 4D 45 2E 00 1B 16 01 11 28 ONT OF ME......(
0008C9 41 20 50 41 43 4B 20 4F 46 20 4D 41 54 43 48 45 A PACK OF MATCHE
0008D9 53 29 01 0E 2E 00 S)....
The item descriptions are stored in a similar way to the location descriptions. As is the case with the location descriptions, a type of compression is used where commonly appearing strings are referenced by code. In addition to this, it marks a smaller snippet of the full description that will be used as the inventory description.
The first item is the golden wrought ring, whose data appears as follows:
2F This is the length of the data describing this item, i.e. 47 bytes
0C Inventory code
28 ( marking the start of the inventory description snippet
C1 20 "A"
47 4F 4C 44 45 4E 20 "golden "
57 52 4F 55 47 48 54 20 "wrought "
52 49 4E 47 "ring"
29 ) marking the end of the inventory description snippet
20 4C 49 45 53 20 " lies "
49 4E 20 "in "
46 52 4F 4E 54 20 "front "
4F 46 20 "of "
4D 45 2E "me."
00 The 00 byte is the end of this item's description data
This is a trivial example in that it doesn't make use of the common strings. It does, however, demonstrate how the inventory description is marked with the opening and closing brackets.
The full description text is used when the item is currently lying in a location. This is demonstrated in the screen shot of the game shown to the left. In this screen shot, the player has just looked in the nest and found something. Whatever it is has fallen out and now appears as an addition to the location description. The player then picks the item up.
When an item is picked up, it is added to the player's inventory. When they type "inventory" or "i" for short, then the items that they are currently carrying will be listed. This list uses the short description of the item, which is the text within the brackets. This is also demonstrated in the screen shot.