abobj.htm

abobj.htm · 29.3 KB

From the archive ab.zip

Download the archive   « Back to the archive contents

<html>
 <head>
  <title>Dizzy Mud Area Coding Guide - #OBJECTS Section</title>
 </head>
 <body BGCOLOR="#FFFFFF">
  <h3 ALIGN="center">#OBJECTS Section</h3>
  <small>
   This page describes how to code object descriptions within an area file.
  </small>
  <!-- BEGIN Navigator -->
  <HR NOSHADE>
  <table WIDTH="100%">
   <tr>
    <td ALIGN="left">
     <small>
      &lt;&lt; Back to 
      <a HREF="abmob.htm">
       #MOBILES Section
      </a>
     </small>
    </td>
    <td ALIGN="right">
     <small>Forward to <a HREF="abroom.htm">#ROOMS Section</a> &gt;&gt;</small>
    </td>
   </tr>
  </table>
  <HR NOSHADE>
  <!-- END Navigator -->
  The <b>#OBJECTS</b> section describes in detail each different object you want to have in
  your area. Objects have fewer descriptive fields than mobs, so the basic layout of an object 
  is simpler than that of a mob. However, there are some fields whose meanings vary with the
  type of the object, and there are many different types.
  <p>
  The #OBJECTS section consists of the #OBJECTS header, one or more
  <a HREF="#objdesc">object description</a>s (see below) and the #OBJECTS section ender
  <code><b>#0</b></code> as shown here:
  <p>
  <table BORDER=2 CELLPADDING=20 WIDTH="100%">
   <tr>
    <td>
     <code><b>#OBJECTS</b></code>
     <br>
     <a HREF="#objdesc">object descriptions</a>
     <br>
     <b>#0</b>
     <p>
    </td>
   </tr>
  </table>
  <p>
  A <a NAME="objdesc"><b>object description</b></a> looks like this:
  <p>
  <table BORDER=2 CELLPADDING=20 WIDTH="100%">
   <tr>
    <td>
     <code>
      <b>#</b><a HREF="#vnum">vnum</a>
      <br>
      <a HREF="#keywords">keywords</a><strong>~</strong>
      <br>
      <a HREF="#shortdesc">short description</a><strong>~</strong>
      <br>
      <a HREF="#longdesc">long description</a><strong>~</strong>
      <br>
      <a HREF="#material">material</a><strong>~</strong>
      <br>
      <a HREF="#type">type</a>
      <a HREF="#objflags">objectflags</a>
      <a HREF="#wearflags">wearflags</a>
      <br>
      <a HREF="#values">value line</a> (differs with type, see below)
      <br>
      <a HREF="#level">level</a>
      <a HREF="#weight">weight</a>
      <a HREF="#value">value</a>
      <a HREF="#condition">condition</a>
      <br>
      E
      <br>
      <a HREF="#extkwd">extended keywords</a><strong>~</strong>
      <br>
      <a HREF="#extdesc">extended description</a>
      <br>
      <strong>~</strong>
      <br>
      A
      <br>
      <a HREF="#applytype">applytype</a>
      <a HREF="#applyvalue">applyvalue</a>
      <br>
      F
      <br>
      <a HREF="#flagline">flag line</a>
      <br>
     </code>
    </td>
   </tr>
  </table>
  <p>
  There is an <a HREF="#example">example</a> at the end of this page.
  <p>
  Here's what the (<u>underlined</u>) terms mean:
  <dl>
   <dt><a NAME="vnum"><code><b>#vnum</b></code></a></dt>
   <dd>
   Each unique object gets a unique vnum as assigned on your <b>object list</b>. 
   Remember to precede the vnum with the hash sign ('<code><b>#</b></code>')!
   <p>
   Although the MUD program does not care whether the vnums for objects are in 
   ascending order and consecutive, your area file will be very difficult to 
   maintain if this is not so. <b>
   Start with the first vnum you were assigned and number consecutively up to 
   as many as you need for all your objects.</b>
   </dd>
   <p>
   <dt><a NAME="keywords"><code><b>keywords</b></code></a></dt>
   <dd>
    These are all the words by which the player can refer to the object.
    In order for the player to be able to refer to the object in 
    <code>'take object'</code> and other interaction, at least some of the keywords 
    should be words visible in the object's short description (see below), 
    and the long description (see below).
    <p>
    The simplest way to get this right is to code some keywords from the
    'short name' on your object list, then code the long and short descriptions, then
    <b>come back</b> to the keyword list and add any keywords you think the player
    may consider using after having seen the short or long description.
    <p>
    Example: You build a suit of armor. Keyword as per the object list: 'armor'.
    You later build a long description stating 'A shiny green suit of armor lies
    on the ground here'. Unless you're playing some kind of guessing game with the
    player, you MUST add 'suit' to the keywords so as to give the player a chance to call
    it 'suit' as well as 'armor'. You may also add 'green' so the player can refer
    to 'green armor' to keep it separate from other armors.
    For objects of which there are many different kinds in the game,
    several keywords will help single it out when using spells like <b>locate 
    object</b>.
    <p>
    Don't forget the tilde ('<code><strong>~</strong></code>') at the end of the
    keywords line!
   </dd>
   <p>
   <dt><a NAME="shortdesc"><code><b>short description</b></code></a></dt>
   <dd>
    This is the description the player sees when interacting with the object, when
    he sees the object in his inventory, equipment or a container.
    This desc should only take up about half a line and fit into a
    sentence like 'you wear ... on your head'. There should be no period at the
    end of the short description.
    <p>
    Don't forget the tilde ('<code><strong>~</strong></code>') at the end of the
    short description!
   <p>
   <dt><a NAME="longdesc"><code><b>long description</b></code></a></dt>
   <dd>
    This is the description the player sees when he <b>look</b>s <em>in the room</em> 
    or enters the room and the given object is lying on the ground. 
    Example: 'A shining green suit of armor lies here.' This must be a full
    sentence starting with a capital and ending with a period.
    In spite of its name, the long description should not be very long.
    One line should be enough to tell the player what he is looking at.
    The full description and life history of the object go into the
    <b>extended descriptions</b> (see below).
    <p>
    If you are building a puzzle and don't want the player to see an object
    upon entering a room or using LOOK, then you may leave out the long
    description <b>but not the tilde!</b> This is often done with portals
    and containers (containing valuable items) because it makes the most 
    sense in this context. It is absolutely necessary in such cases to 
    mention the hidden object in the room description, though, or
    it will never be found. If you use an empty long description, you must
    still always enter a short description. Otherwise meaningless messages
    result when the object is manipulated.
    <p>
    Note that the tilde ('<code><strong>~</strong></code>') goes at the 
    end of the line containing the long description! This is not consistent
    with the way it's done for #MOBILES, so you will have to remember to do it 
    right.
   </dd> 
   <p>
   <dt><a NAME="material"><code><b>material</b></code></a></dt>
   <dd>
    This is what the object is made of. It seems to be immaterial, (pardon the pun)
    as it's shown by <code>LORE</code> and the <code>IDENTIFY</code> spell but 
    doesn't seem to affect anything. It's there for realism and role play, mainly.
    So you can code any old string here that maintains credibility.
    The tilde, however, is <b>mandatory</b>, as always.
   </dd>
   <p>
   <dt><a NAME="type"><code>type</code></a></dt>
   <dd>
    The single word in this field indicates what kind of object you are describing.
    It <b>must</b> be one of the <b>keywords</b> found in the 
    <a HREF="abitem.htm">Item Type and Value Line Table</a>. Coding the item type 
    correctly is crucial to producing the right object.
   </dd>
   <p>
   <dt><a NAME="objflags"><code><b>objectflags</b></code></a></dt>
   <dd>
    The object flags encode the properties of an object. To code them, you
    enter either a <b>0</b> (for <b>no</b> properties) or an appropriate 
    combination of the letters found in the 
    <a HREF="aboflag.htm">Object Flag Table</a>.
   </dd>
   <p>
   <dt><a NAME="wearflags"><code><b>wearflags</b></code></a></dt>
   <dd>
    Wear flags indicate how the object may be used.
    Most equipment items will have a TAKE flag 
    and may have one (or rarely more) of the others.
    For the rare item that has no flags at all (such as a fountain, which
    cannot be taken, worn or anything), code a <b>0</b> (zero).
    For all others, refer to the <a HREF="abwear.htm">Wear Flag Table</a>.
   </dd> 
   <p>
   <dt><a NAME="values"><code><b>value line</b></code></a></dt>
   <dd>
    The value line must always contain 5 items. These may be keywords,
    single-quoted strings, flag letters or numbers. The contents of the 5
    slots are different for each item type. Consult the <a HREF="abitem.htm">
    Item Type and Value Line Table</a> for details on how to code the value 
    line for your item.
   </dd>
   <p>
   <dt><a NAME="level"><code><b>level</b></code></a></dt>
   <dd>
    The level of the object, as a single number in the range from <b>0</b>
    to MAXLEVEL (currently 100). 
    Trying to equip a mob with an item of level higher than the mob results
    in a bug message at load time. Please don't!
    This would also make valuable equipment too easy to get.
   </dd>
   <p>
   <dt><a NAME="weight"><code><b>weight</b></code></a></dt>
   <dd>
    The weight of the object, expressed in tenths of pounds.
    i.e. you want to code 10 times the weight in pounds.
    Be somewhat realistic.<br>
    Some guidelines:
    <ul>
     <li>The One Ring is a small item weighing 0.3 pounds (coded as 3).</li>
     <li>A necromancer sword weighs 40 pounds and is too heavy for some
         characters to wield as a second weapon.</li>
     <li>A character with 13 STR can carry about 200 pounds total, including
         his money.</li>
     <li>Nothing in the game can weigh more than about 3200 pounds 
      (coded as 32000). This is not a guideline, this is a hard limit.
      Exceeding this limit causes things to have negative weight. That's
      not what you want.
     </li>
    </ul>
   </dd>
   <p> 
   <dt><a NAME="value"><code><b>value</b></code></a></dt>
   <dd>
    The cost of the item, in silver. For Quest Items, i.e. those having
    an <code><a HREF="aboflag.htm#questsell">ITEM_QUESTSELL</a></code> 
    object flag, the cost is in Quest Points.
   </dd>
   <p>
   <dt><a NAME="condition"><code><b>condition</b></code></a></dt>
   <dd>
    The condition of an object is coded as a single letter, as follows:
    <table BORDER=1 WIDTH=50%>
     <tr><td>P</td><td>Perfect</td><td>D</td><td>Damaged</td></tr>
     <tr><td>G</td><td>Good</td><td>B</td><td>Broken</td></tr>
     <tr><td>A</td><td>Average</td><td>R</td><td>Ruined</td></tr>
     <tr><td>W</td><td>Worn</td><td>I</td><td>Indestructible</td></tr>
    </table>
    An indestructive item will not change condition no matter how much it is used.
    Coding an item as ruined makes no sense because the item can still be used but will not deteriorate further.  
    For minimum lifetime, code the item as broken.
    Most items are coded as perfect.
   </dd>
   <p>
   <dt><a NAME="extkwd"><code><b>extended keyword(s)</b></code></a></dt>
   <dt><a NAME="extdesc"><code><b>extended description</b></code></a></dt>
   <dd>
    <b>Extended keywords</b> and an <b>extended description</b>, together with
    the preceding '<b>E</b>' and the two separating tildes ('<strong>~</strong>')
    make up what I'll call a <b>detail description</b>. Detail descriptions
    are optional, that is, the MUD program won't mind if you don't have a single
    one in your object. But to give the players in your area a richer experience,
    all items should have at least one detail description. Each object can have
    as many of these detail descriptions as you want, one after the other, each
    with its own '<b>E</b>', extended keywords, tilde, extended description and
    final tilde.<br>
    Detail descriptions are used to convey additional information
    about an object, which the player accesses by LOOKing or EXAMINEing the keyword.
    <br>
    A sword, for example, may have:
    <p>
    <table BORDER=1>
     <tr><td>keywords: </td><td>sword double edged</td></tr>
     <tr><td>short description: </td><td>a double-edged sword</td></tr>
     <tr><td>long description: </td><td>A double-edged sword gleams evilly on the ground.</td></tr>
     <tr>
      <td COLSPAN=2 ALIGN="center">
       <table WIDTH="95%" BORDER=0>
        <tr>
         <td>first detail description</td>
         <td>
          <table BORDER=1 CELLSPACING=0>
           <tr><td WIDTH=220>extended keyword: </td><td>sword double edged edges</td></tr>
           <tr>
            <td>extended description: </td>
            <td>
             This sword has a very wicked looking blade. 
             Both edges are slightly jagged but appear to be razor sharp!
             Some dark stains mar its surface.
            </td>
           </tr>
          </table>
         </td>
        </tr>
        <tr>
         <td>second detail description</td>
         <td>
          <table BORDER=1 CELLSPACING=0>
           <tr><td WIDTH=220>extended keyword: </td><td>stains surface</td></tr>
           <tr>
            <td>extended description: </td>
            <td>
             Upon closer examination, the stains on the sword's surface
             turn out to be the remnants of old, dried blood. It's obvious
             that this sword was an instrument of deadly utility and no
             polished showpiece.
            </td>
           </tr>
          </table>
         </td>
        </tr>
       </table>
      </td>
     </tr>
    </table>
    <p>
    Here's how all these things interrelate:<br>
    <ul>
     <li>The <b>keywords</b> are used to <b>manipulate</b> (take, wield, put, etc)
      the object.
     </li>
     <li>The <b>short description</b> is seen by the player when he manipulates the
      object ("You take a double-edged sword from your backpack.") or sees it
      in his inventory, equipment or a container.
     </li>
     <li>
      The <b>long description</b> is seen by the player when he enters a room
      where the object is lying on the ground, or does a LOOK there.<br>
      The long description is also what he sees if he does a LOOK &lt;keyword&gt;
      and the object does not have an extended keyword matching the keyword
      he typed in.<br>
     </li>
     <li>
      The <b>extended descriptions</b> are seen by the player if he does a
      LOOK &lt;keyword&gt; and that keyword matches an <b>extended keyword</b>.
      EXAMINE, directed at an object, has the same effect.
     </li>
    </ul>
    <p>
    What this means is that a general-purpose <b>LOOK</b> in the room will always show
    the object's long description <small>("A double-edged sword gleams evilly on 
    the ground here")</small>, but a <b>LOOK SWORD</b> will first try to match
    on an extended keyword. Since, in our case, '<b>sword</b>' is one of the
    keywords for the first extended description, the player will get the story
    about the jagged blade with the razor sharp edges.<br>
    Thus, extended keywords are used to make sure a LOOK at an item will be
    directed at the detailed <b>extended description</b> rather than the relatively
    short so-called <b>long description</b>. To make sure this works no matter
    which keywords the player LOOKs at, your best bet is to duplicate all of
    the object's <b>keywords</b> into the keywords of the first detail description.
    <p>
    If there is no detail description with keywords matching the object's
    keywords, all the player sees is the long description <small>("A double-edged 
    sword gleams evilly on the ground here")</small> yet again. If most objects
    in an area have no detail descriptions, players will be bored by what they
    find and will quickly cease LOOKing at anything.
    <p>
    In our case, the player is curious about the sword and types LOOK SWORD.
    He is shown the first <b>extended description</b>. Note that a clever player
    may deduce that a 'double edged sword' has two <b>edges</b>, and may think to type
    LOOK EDGES. This is why the extra keyword 'edges' was included in the list.
    <p>
    Our inquisitive player is intrigued by the <b>stains</b> on the sword's
    <b>surface</b> (both are words he sees in the first extended description)
    and so he types LOOK STAINS or perhaps LOOK SURFACE. By building a second
    detail description keyed by these two words, we give the player the chance
    to find out more about the item.
    <p>
    Some puzzle or quest items have been known to have long strings of detail
    descriptions, with nouns in one extended description being used as keywords
    in another detail description. By continually LOOKing at words he sees in
    an item's description, the player can thus dive into a long and detailed
    story. Note that, in most cases, <b>nouns</b> are used to link descriptions
    together. Most often, the extended keywords will be one or more of the exact
    words found in another extended description, but for extra difficulty
    synonyms or other words derived from a description may also be used.
    However, try not to expect miracles from the players. If you think players
    may need prodding to dig their way through detail descriptions, you may
    use color coding to highlight those words in a description leading to
    another detail description.
   </dd>
   <p>
   <dt><a NAME="applytype"><code><b>applytype</b></code></a></dt>
   <dt><a NAME="applyvalue"><code><b>applyvalue</b></code></a></dt>
   <dd>
    An object can be given the ability to enhance or worsen a player's stats 
    if equipped. This is done by specifying an <b>Apply Type</b> and an 
    Apply Value</b>, the combination of which I'll call an <b>Apply</b>.<br>
    The <b>Apply Type</b> specifies <b>which stat</b> is changed, in accordance
    with the <a HREF="abapply.htm"><b>Apply Type Table</b></a>. 
    The <b>Apply Value</b> specifies <b>by how much</b> the stat is changed.<br>
    Applies are optional; an object may have none of them, or as many as
    make sense and do not disrupt game balance. Each individual apply is
    coded as two lines, with an <b>A</b> in the first line and an 
    <b>apply type</b> and <b>apply value</b> in the second.<br>
    Apply values are added to the character's stats of that type.
    Negative values can be used to reduce the user's stats. This is 
    <b>beneficial</b> for Armor Class and SAVEs.
    <p>
    <table>
     <tr VALIGN="top">
      <td><b>Example: </b>
      <td>
       <table BORDER=0>
        <tr><td COLSPAN=2><b>A</b></td></tr>
        <tr><td><b>3</td><td>2</td></tr>
       </table>
      </td>
      <td>
       &nbsp;<br>
       Improve INT by 2.
      </td>
     </tr>
     <tr>
      <td>
       &nbsp;
      </td>
      <td>
       <table>
        <tr><td COLSPAN=2><b>A</b></td></tr>
        <tr><td><b>5</td><td>-1</td></tr>
       </table>
      </td>
      <td>
       Decrease CON by 1.
      </td>
     </tr>
     <tr>
      <td>
       &nbsp;
      </td>
      <td>
       <table>
        <tr><td COLSPAN=2><b>A</b></td></tr>
        <tr><td><b>17</td><td>-5</td></tr>
       </table>
      </td>
      <td>
       Improve AC by -5.
      </td>
     </tr>
    </table> 
   </dd>
   <p>
   Lotus, Dizzy MUD's Creator, formulated some guidelines for object
   stats, especially applies, which make good sense and form a sound
   basis for off-the-cuff balancing of your equipment:
   <hr NOSHADE>
   <cite>
    <ul>
     <li>Try not to overload items. Here are a few tables for designing.
     These are by no means carved in stone.</li>
     <li><b>Attributes</b>
      <table>
       <tr>
        <td>Levels 1-30:</td>
        <td>No more than +4 in total, no more than +2 on any single attribute.</td>
       </tr>
       <tr>
        <td>Levels 30-60:</td>
        <td>No more than +5 total, no more than +3 on any single attribute.</td>
       </tr>
       <tr>
        <td>Levels 60-90:</td>
        <td>No more than +6 total, no more than +3 on any single attribute.</td>
       </tr>
      </table>                                                                   
     </li>
     <li><b>Hit/Dam roll:</b><br>
      No more than +1/+1 per every 10 levels. Not to exceed +8 on either side.
     </li>
     <li><b>Hit points/Mana:</b><br>
      No more than +1 per level combined. For example:
      <table>
       <tr><td>Level 80:</td><td>+40 hp, +40 mana</td></tr>
       <tr><td>Level 30:</td><td>+25 hp, +5 mana</td></tr>
       <tr><td>Level 50:</td><td>+50 mana</td></tr>
      </table>
     </li>
     <li><b>Movement:</b><br>
      No more than +1 per level.
     </li>
     <li><b>Saves and AC:</b><br>
      No more than -1 per 10 levels combined. For example:
      <table>
       <tr><td>level 50:</td><td>-2 AC, -3 Sv</td></tr>
       <tr><td>level 90:</td><td>-9 AC</td></tr>
      </table>
     </li>
     <li>
      Finally, don't max out all 5 categories :) Maybe one or two of them.
     </li>
    </ul>
   </cite>
   <hr NOSHADE>
   As Lotus said, the above rules are not carved in stone. You may be flexible
   to some extent in that you may code some (few) objects with stats well in
   excess of these guidelines in individual respects, but that you will need to
   balance these overshoots by making the equipment inferior in other ways.
   If you attempt to do this, you need to be very familiar with the stats
   of other, similar equipment in the game because you MUST stay within the
   limits of game balance or your creations will be turned down.
   <p>
   <dt><a NAME="flagline"><code><b>flagline</b></code></a></dt>
   <dd>
    <b>Flag lines</b> are actually 2 lines each. They serve 3 purposes:
    <ul>
     <li>
      to put spell affects on an object, such as Sanctuary, Haste, Detect
      Hidden, etc.
     </li>
     <li>
      to put immunities, resistances or vulnerabilities on an object.
     </li>
     <li>
     as an alternative means of putting applies on an object (see <b>applies</b>, 
      above)
     </li>
    </ul> 
    In all cases, these changes are applied to a character when that character
    wears, holds or wields the object so flagged.<br>
    <p>
    Like applies, flag lines are optional. Use none or as many as required.
    Each apply must adhere to the syntax shown below, starting with the <b>F</b>
    line and continuing with a <b>A</b>, <b>I</b>, <b>R</b> or <b>V</b> line
    as shown.
    <p>
    <table BORDER=1>
     <caption><b>Flag Line Syntax Table</b></caption>
     <tr>
      <td>
       <table BORDER=0>
        <tr>
         <td><b>Affect flag line (for affects)</b></td>
         <td>
          <table BORDER=1 CELLSPACING=0>
           <tr><td COLSPAN=4><b>F</b></td></tr>
           <tr><td><b>A</b></td><td><b>0</b></td><td><b>0</b></td><td>Affect-flags</td></tr>
          </table>
         </td>
        </tr>
       </table>
       The affect flags are coded as a combination of letter codes as found in the
       <a HREF="abaffect.htm">Affect Flag Table</a>. Although the table speaks of 
       mobs, the same effects can be coded on objects, and will affect a character
       equipping with that item, including the same silly malfunctions mentioned
       for the mob affects. If in doubt, experiment.
       <p>
       <table BORDER=0>
        <caption><b>Example:</b></caption>
        <tr>
         <td>
          <table BORDER=1 CELLSPACING=0>
           <tr><td><b>F</b></tr>
           <tr><td><b>A 0 0 DF</b></td></tr>
          </table>
         </td>
         <td>&nbsp;</td>
         <td>
          An object flagged like this will enable its wearer to DETECT&nbsp;INVIS and 
          DETECT&nbsp;HIDDEN.
         </td>
        </tr>
       </table>
       <p>
       The effects of objects flagged in this manner are PERMANENT, i.e. the
       object will confer the affect on the player whenever it is used, for
       as long as the object exists. Therefore,
       some affects should be coded either only for immortal use or not at all.
       Things like SANCTUARY make an object far too powerful; areas with such
       items coded in them will likely be turned down or returned for correction.
      </td>
     </tr>
     <tr>
      <td>
       <table>
        <tr>
         <td><b>Immunity flag line</b></td>
         <td>
          <table BORDER=1 CELLSPACING=0>
           <tr><td COLSPAN=4><b>F</b></td></tr>
           <tr><td><b>I</b></td><td><b>0</b></td><td><b>0</b></td><td>Immunity-flags</td></tr>
          </table>
         </td>
        </tr>
       </table>
       <p>
       The immunity flags are coded as a combination of letter codes as found in the
       <a HREF="abimmune.htm">Immunity/Resistance/Vulnerability Flag Table</a>. 
       Although the table speaks of mobs, the same effects can be coded on objects, 
       and will affect a character who wears, holds or wields an object so coded.
       <p>
       With possible rare exceptions, immunities should not be coded into any objects.
       Most immunities make the bearer so powerful any objects thus coded are a threat 
       to game balance.
      </td>
     </tr>
     <tr>
      <td>
       <table>
        <tr>
         <td><b>Resistance flag line</b></td>
         <td>
          <table BORDER=1 CELLSPACING=0>
           <tr><td COLSPAN=4><b>F</b></td></tr>
           <tr><td><b>R</b></td><td><b>0</b></td><td><b>0</b></td><td>Resistance-flags</td></tr>
          </table>
         </td>
        </tr>
       </table>
       <p>
       The resistance flags are coded as a combination of letter codes as found in the
       <a HREF="abimmune.htm">Immunity/Resistance/Vulnerability Flag Table</a>. 
       <p>
       Resistance flags confer a big advantage to the bearer of an object so coded,
       therefore these flags should be put on objects only in rare cases which have
       been cleared with the Implementor beforehand.
      </td>
     </tr>
     <tr>
      <td>
       <table>
        <tr>
         <td><b>Vulnerability flag line</b></td>
         <td>
          <table BORDER=1 CELLSPACING=0>
           <tr><td COLSPAN=4><b>F</b></td></tr>
           <tr><td><b>V</b></td><td><b>0</b></td><td><b>0</b></td><td>Vulnerability-flags</td></tr>
          </table>
         </td>
        </tr>
       </table>
       <p>
       The vulnerability flags are coded as a combination of letter codes as found in the
       <a HREF="abimmune.htm">Immunity/Resistance/Vulnerability Flag Table</a>. 
       <p>
       Vulnerability flags are not subject to restrictions. Any player who equips
       an object which makes him vulnerable does so by his own choice and at his own
       risk. A minor vulnerability on an otherwise good object might be considered as
       an interesting way to force a player to weigh his alternatives.
      </td>
     </tr>
     <tr>
      <td>
       <table>
        <tr>
         <td><b>Affect flag line (for applies)</b></td>
         <td>
          <table BORDER=1 CELLSPACING=0>
           <tr><td COLSPAN=4><b>F</b></td></tr>
           <tr><td><b>A</b></td><td><b>applytype</b></td><td><b>applyvalue</b></td><td>0</td></tr>
          </table>
         </td>
        </tr>
       </table>
       <p>
       This kind of coding may be used to put <b>applies</b> on objects.
       The outcome is the same as if <b>applies</b> (using an <b>A</b> line and
       just the two numbers as described above under <b>applytype/applyvalue</b>) 
       are used. This method is just more complicated and more confusing. While 
       it's possible to combine an apply with, say, an affect or an immunity using 
       this syntax, it makes for a hard-to-maintain area to code objects like this, 
       and I strongly advise against doing this.
      </td>
     </tr>
    </table>
   </dd>
  </dl>
  <p>
  <table BORDER=2 WIDTH="100%" CELLPADDING=20>
   <tr>
    <td>
     <a NAME="example">OBJECT example</a>
     <b>
      <pre>
#30015
lantern silver~
a silver lantern ~
A silver lantern spreads some light here.~
silver~
light AG A
0 0 -1 0 0
40 0 4000 P
E
lantern~
The lantern looks quite valuable. The light it spreads
seems to be very special.
~
E
light~
This light does more for you than just lighten the darkness!
It seems to be able to reveal each and everything!
~
A
26 2
A
18 2
A
19 2
F
A 0 0 DF
      </pre>
     </b>
    </td>
   </tr>
  </table>
  <!-- BEGIN Navigator -->
  <HR NOSHADE>
  <table WIDTH="100%">
   <tr>
    <td ALIGN="left">
     <small>
      &lt;&lt; Back to 
      <a HREF="abmob.htm">
       #MOBILES Section
      </a>
     </small>
    </td>
    <td ALIGN="right">
     <small>Forward to <a HREF="abroom.htm">#ROOMS Section</a> &gt;&gt;</small>
    </td>
   </tr>
  </table>
  <HR NOSHADE>
  <!-- END Navigator -->
  <table WIDTH="100%">
   <tr>
    <td>
     &nbsp;
    </td>
    <td ALIGN=right>
     <small>This page was last updated <font COLOR="#FF0000">February 19, 1998</font>.</small>
    </td>
   </tr>
  </table>
 </body>
</html>
      

Site Stats

Snippets: 1791
Codebases: 571