abarea.htm

abarea.htm · 8.0 KB

From the archive ab.zip

Download the archive   « Back to the archive contents

<html>
 <head>
  <title>Dizzy Mud Area Coding Guide - #AREA Section</title>
 </head>
 <body BGCOLOR="#FFFFFF">
  <h3 ALIGN="center">#AREA Section</h3>
  <small>
   This page describes how to code an area description within an area file.
  </small>
  <!-- BEGIN Navigator -->
  <HR NOSHADE>
  <table WIDTH="100%">
   <tr>
    <td ALIGN="left">
     <small>
      &lt;&lt; Back to 
      <a HREF="abcode.htm">
       Area Coding
      </a>
     </small>
    </td>
    <td ALIGN="right">
     <small>Forward to <a HREF="abmob.htm">The #MOBILES Section</a> &gt;&gt;</small>
    </td>
   </tr>
  </table>
  <HR NOSHADE>
  <!-- END Navigator -->
  The #AREA section tells the MUD the file name for your area, the in-game area name,
  the levels it is intended for, your name (as its creator), the area name for
  the summary displayed by the AREAS command, and the range of vnums used in
  its construction. Here's the syntax:
  <p>
   <table BORDER=2 CELLPADDING=20 WIDTH="100%">
    <tr>
     <td>
      <code>
       <b>#AREA</b>
       <br><a HREF="#filename">filename.are</a><strong>~</strong>
       <br><a HREF="#area_name">Area name</a><strong>~</strong>
       <br><b>{H{{</b><a HREF="#fromlevel">fromlevel</a> 
       <a HREF="#tolevel">tolevel</a><b>} {M</b><a HREF="#creator">Creator</a> 
       <b>{T</b><a HREF="#areaname">Areaname</a><strong>~</strong>
       <br><a HREF="#startingvnum">startingvnum</a> <a HREF="#endingvnum">endingvnum</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><code><a NAME="filename">filename.are</a></code></dt>
   <dd>
    is simply the file name of your area file. The game wants it for
    internal housekeeping purposes.
    <b>Do not forget to place a tilde ('~') directly after the end of the file name,
    or your area file will not load!</b>
   </dd>
   <p>
   <dt><code><a NAME="area_name">Area Name</a></code></dt>
   <dd>
    is the full in-game name of your area. This name is rarely seen in
    the game. The creators of ROM intended it to be visible to immortals only, but
    in DizzyMUD anyone can set their prompt to display the name of the area they
    are currently in.
    <b>Do not forget to place a tilde ('~') directly after the end of the area name,
    or your area file will not load!</b>
   </dd>
   <p>
   
   <dt><code><b>{H{{</b>
   <a NAME="fromlevel">fromlevel</a> <a NAME="tolevel">tolevel</a><b>} 
   {M</b>Creator
   <b>{T</b>Areaname
   <b>~</b></code></dt>
   <dd>
    This line looks a lot more complicated than it needs to, thanks to DizzyMUD's
    color coding syntax. There are color codes imbedded to make the level range
    appear in Hunter (dark green), the creator's name in Magenta and the
    area name in Teal (greyish blue). The color codes used to achieve this are
    {H, {M and {T, respectively. There is also a double left brace before the 
    '<code>fromlevel</code>'; this
    is needed to display a single left brace in spite of color coding. If you
    were to remove all these complications, the line would look like this:
    <p>
    <code><b>{</b>fromlevel tolevel<b>}</b> Creator Areaname<b>~</b></code>
   </dd>
   <p>
   <dt><code><b>{</b>fromlevel tolevel<b>}</b></code></dt>
   <dd>
    <code>fromlevel</code> and <code>tolevel</code> are recommended levels for
    players wanting to adventure in your area. The <code>fromlevel</code> should
    be such that a single player of that level should usually be able to find at least
    <em>some</em>thing he can kill in there. The <code>tolevel</code> should be
    such that a player of that level can still make a few points by killing 
    something in your area. Thus, you would code an area suitable for levels
    10 to 20 like this: <code><b>{10&nbsp;20}</b></code>.
    <p>
    There are three special cases where you code a keyword rather than a level
    range between the braces:
    <dl>
     <dt><code><b>{ ALL }</b></code></dt>
     <dd>
      is used to identify an area open to everyone, usually because it is a public
      meeting, recreation or commerce area rather than a hunting area. Midgaard
      and the Player's Playpen have this designation.
     </dd>
     <dt><code><b>{CLANS}</b></code></dt>
     <dd>
      is used to identify an area designated as a clan territory for a single
      clan.
     </dd>
     <dt><code><b>{ IMM }</b></code></dt>
     <dd>
      identifies an area frequented by immortals, possibly imm-only.
     </dd>
    </dl> 
    <p>
    In order to line up with the level specs of other areas in the output from
    the <bold>AREAS</bold> command, your 
    '<code>fromlevel&nbsp;tolevel</code>' should be 5 characters long inside the
    braces. Examples: <b>{10&nbsp;20}</b> or <b>{&nbsp;1&nbsp;30}</b>.
   </dd>
   <p>
   <dt><code><a NAME="creator">Creator</a></code></dt>
   <dd>
    This is where you take credit for your work. Your name goes here. 
    <p>
    In order for your name to line up with others in the output from the 
    <bold>AREAS</bold> command, your name should not be much longer than
    any of the other names you see there.
   </dd>
   <p>
   <dt><code><a NAME="areaname">Areaname</a></code></dt>
   <dd>
    You may wonder about the difference between '<code>Area Name</code>' (see above)
    and '<code>Areaname</code>'. The first one is seen in a player's prompt and the
    second one is seen in the list produced by the <b>AREAS</b> command. That's all.
    In the interest of avoiding confusion, though, you should make the two the same
    or at least similar.
    <b>Do not forget to place a tilde ('~') directly after the end of the areaname,
    or your area file will not load!</b>
   </dd>
   <p>
   <dt><code><a NAME="startingvnum">startingvnum</a> 
   <a NAME="endingvnum">endingvnum</a></code></dt>
   <dd>
    This is the range of vnums in use in your area, including any reserve you may
    want to keep for future expansion. 
    <b>You may not code anything in your area with a vnum outside this range!</b>
    The Dizzy MUD program checks that all vnums used in your area are within the range
    given in the header, and outputs an error message if this is not so.
    <p>
    <b>No</b> tilde follows this last entry in the area section. This may make a
    little more sense to you if you are aware that tildes are used to mark the end
    of text strings only. Names are text strings. Numbers are not. Certain
    letters used as codes are also not text strings. Just remember to be very
    aware of where tildes need to go, and where not. The MUD program is very
    sensitive to missing or extraneous tilde characters.
   </dd>
  </dl>
  <p>
  There is no 'section ender' for the <code><b>#AREA</b></code> section as there
  is for all the others. The reason for this is that the Area section contains
  a fixed number of entries, and there is no need to indicate when a variable
  number of something has ended.
  <p>
  <table BORDER=2 WIDTH="100%" CELLPADDING=20>
   <tr>
    <td>
     <a NAME="example">
      AREA example
     </a>
     <b>
      <pre>
       #AREA
       example.are~
       Example Area~
       {H{{1 100} {MElrac&Sharra {TExample Area~
       6900 6999
      </pre>
     </b>
    </td>
   </tr>
  </table>
  <!-- BEGIN Navigator -->
  <HR NOSHADE>
  <table WIDTH="100%">
   <tr>
    <td ALIGN="left">
     <small>
      &lt;&lt; Back to 
      <a HREF="abcode.htm">
       Area Coding
      </a>
     </small>
    </td>
    <td ALIGN="right">
     <small>Forward to <a HREF="abmob.htm">The #MOBILES 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">January 31, 1998</font>.</small>
    </td>
   </tr>
  </table>
 </body>
</html>

Site Stats

Snippets: 1791
Codebases: 571