<?xml version="1.0" encoding="UTF-8" ?>
<game title="Cloak of Ultimate Darkness" author="Roddy Ramieson">

  <monster number="0">
    <name>player</name>
    <hp>100</hp>
    <loc>1</loc>
    <hitchance>80</hitchance>
    <dodgechance>50</dodgechance>
    <hdamage>10</hdamage>
    <challenge>You leap to the attack!</challenge>
    <attack>You swing wildly!</attack>
    <hitmsg>Your blow connects with a satisfying crunch!</hitmsg>
    <missmsg>You miss completely, and spin round foolishly on the spot
    before you can recover your balance.</missmsg>
    <dodgemsg>You manage to duck in time and escape death by inches!</dodgemsg>
    <painmsg>You scream in pain and fear.</painmsg>
    <death>You howl as the vampire drinks your blood, but your body goes limp
    and you can no longer resist...</death>
    <desc>You're just an everyday opera-lover.</desc>
    <noun>opera-lover</noun>
    <adj>everyday</adj>
  </monster>

  <room number="9999">
    <name>Treasure Room</name>
  </room>

  <instructions>Hurrying through the rainswept November night, you're glad to see
  the bright lights of the Opera House. It's surprising that there aren't more people about but,
  hey, what do you expect in a cheap demo game...</instructions>

  <room number="1">
    <name>Foyer of the Opera House</name>
    <desc>You are standing in a spacious hall, splendidly decorated in red and gold,
    with glittering chandeliers overhead. The entrance the street is to the north,
    and there are doorways south and west.</desc>
    <lighted />
    <bgcolor>EEDDFF</bgcolor>
  </room>

  <room number="2">
    <name>Cloakroom</name>
    <desc>The walls of this small room were clearly once lined with hooks though now
    only one remains. The exit is a door to the east.</desc>
    <lighted />
    <bgcolor>DDFFEE</bgcolor>
  </room>

  <room number="3">
    <name>Foyer bar</name>
    <desc>The bar, much rougher than you'd have guessed after the opulence of the
    foyer to the north, is completely empty.</desc>
    <lighted />
    <score>20</score>
    <bgcolor>EEDDFF</bgcolor>
  </room>

  <room number="4">
    <name>Darkness</name>
    <score>1</score>
    <desc>You can't see a thing in here! What's going on?</desc>
    <bgcolor>000000</bgcolor>
    <lighted />
  </room>

  <connection number="5">
    <from>1</from>
    <to>1</to>
    <dir>n</dir>
    <locked />
  </connection>

  <connection number="6">
    <from>1</from>
    <to>2</to>
    <dir>w</dir>
  </connection>

  <connection number="7">
    <from>1</from>
    <to>4</to>
    <dir>s</dir>
  </connection>

  <connection number="8">
    <from>4</from>
    <dir>n</dir>
    <to>1</to>
  </connection>

  <connection number="9">
    <from>3</from>
    <to>1</to>
    <dir>n</dir>
  </connection>

  <connection number="10">
    <from>2</from>
    <to>1</to>
    <dir>e</dir>
  </connection>

  <thing number="11">
    <name>brass hook</name>
    <adj>brass</adj>
    <noun>hook</noun>
    <desc>It's just a small brass hook, screwed to the wall.</desc>
    <visible />
    <box />
    <treasure />
    <loc>2</loc>
    <open />
  </thing>

  <thing number="12">
    <name>foyer bar</name>
    <adj>foyer</adj>
    <noun>bar</noun>
    <desc>This plush bar is stained from long years of gin slings, rum punches
    and other high-class drinks.</desc>
    <flammable />
    <visible />
    <loc>3</loc>
    <box />
    <open />
  </thing>

  <thing number="14">
    <adj>dark</adj>
    <noun>cloak</noun>
    <name>dark cloak</name>
    <desc>A handsome cloak, of velvet trimmed with satin, and slightly spattered with raindrops.
    Its blackness is so deep that it almost seems to suck light from the room.</desc>
    <weight>5</weight>
    <worn />
    <clothing />
    <visible />
    <flammable />
    <pickupable />
    <loc>0</loc>
  </thing>

  <countdown number="15">
    <triggers>
      <onputdown target="14" />
    </triggers>
    <conditions logic="and">
      <isin containee="0" container="2" />
    </conditions>
    <event>
      <desc>On second thoughts, you decide to hang the cloak on the hook.
      That's what it's designed for, after all.</desc>
      <move target="14" loc="11" />
      <changeconnection connection="7" to="3" />
    </event>
    <count>1</count>
  </countdown>

  <countdown number="16">
    <triggers>
      <onputdown firstonly="false" target="14" />
    </triggers>
    <conditions logic="and">
      <isin containee="0" container="2" not="true" />
    </conditions>
    <event>
      <desc>On second thoughts, this isn't the best place to leave a smart cloak
      lying around, so you pick it up again.</desc>
      <move target="14" loc="0" />
    </event>
    <count>1</count>
  </countdown>

  <monster number="13">
    <name>vampire</name>
    <noun>vampire</noun>
    <desc>He's tall, elegant and very very pale. He's wearing a long dark cloak,
    not unlike your own.</desc>
    <value>50</value>
    <challenge>"I need... blood!" the vampire says, grinning evilly.</challenge>
    <hitchance>50</hitchance>
    <dodgechance>25</dodgechance>
    <ldamage>20</ldamage>
    <hdamage>40</hdamage>
    <attack>The vampire lunges for your neck.</attack>
    <hitmsg>The vampire sinks its fangs into your jugular vein!</hitmsg>
    <missmsg>You leap aside desperately.</missmsg>
    <dodgemsg>The vampire shrugs off your attack.</dodgemsg>
    <painmsg>The vampire hisses as you strike home. "You'll pay for that, mortal!"</painmsg>
    <death>With a blood-curdling scream, the vampire shrivels up into a small heap of dust!</death>
    <hp>100</hp>
    <corpse>17</corpse>
    <loc>3</loc>
    <turnstofight>1</turnstofight>
    <visible />
    <flammable />
  </monster>

  <thing number="17">
    <name>dusty heap</name>
    <adj>dusty</adj>
    <noun>heap</noun>
    <desc>That's strange... the dust seems to be reforming into letters!</desc>
    <visible />
    <flammable />
    <loc>9999</loc>
  </thing>

  <winmessage>* * * YOU WON * * *</winmessage>
  <losemessage>* * * YOU LOST * * *</losemessage>

  <newverb oldverb="drop" newverb="hang" />

  <countdown number="18">
    <triggers>
      <onexamine target="17" />
    </triggers>
  <conditions logic="and" />
  <event>
    <move target="11" loc="9999" />
    <desc>The message reads...</desc>
  </event>
  <count>1</count>
  </countdown>

  <thing number="19">
    <name>wooden stake</name>
    <adj>wooden</adj>
    <noun>stake</noun>
    <desc>It's a short spike of wood.</desc>
    <value>5</value>
    <weight>50</weight>
    <weapon />
    <visible />
    <pickupable />
    <loc>12</loc>
  </thing>

</game>