abcode.htm

abcode.htm · 9.1 KB

From the archive ab.zip

Download the archive   « Back to the archive contents

<html>
 <head>
  <title>Dizzy Mud Area Builder's Guide - Area Coding</title>
 </head>
 <body BGCOLOR="#FFFFFF">
  <h2 ALIGN="center">
   Area Coding
  </h2>
  <small>
   This page of the Dizzy MUD Area Builder's Guide is an introduction and overview to the
   coding process. Some information is given about the technical process of creating an
   area file. The area skeleton below contains links to all the pages dealing with
   individual area sections.
  </small>
  <!-- BEGIN Navigator -->
  <HR NOSHADE>
  <table WIDTH="100%">
   <tr>
    <td ALIGN="left">
     <small>
      &lt;&lt; Back to 
      <a HREF="abdesign.htm">
       Area Design
      </a>
     </small>
    </td>
    <td ALIGN="right">
     <small>Forward to <a HREF="abarea.htm">The #AREA Section</a> &gt;&gt;</small>
    </td>
   </tr>
  </table>
  <HR NOSHADE>
  <!-- END Navigator -->
  <ol>
   <li>
    <b><a NAME="tech">Technology</a></b><br>
    To code an area, you have to create a text file as described below and submit
    it to an implementor on your MUD. If you are unsure of how to create a plain
    ASCII text file on your system, check out 
    <a HREF="abtext.htm">How to edit a plain text file</a>.
   </li>
   <p>
   <li>
    <b>Rules of the Game</b><br>
    An area file is an ASCII text file containing lines of text which describe your
    area to the MUD program in painstaking and rigid detail. The syntax description
    which follows is not a style guide; consider it <b>THE LAW!</b> Any deviations from
    the requirements will cause the MUD program to fail to boot if it tries to load
    your area.
   </li>
   <p>
   <li>
    <b>Name That File</b><br>
    Your area will need a name. Several, in fact. For game purposes, you may
    call it something like 'The Caverns of Chaos'. The MUD program is not impressed
    by long, scary names and wants a short name, all lowercase letters, and preferrably
    not more than 8 characters long before the extension. Area files have an extension 
    of '<b>.are</b>'.
    So a good file name for your 'Caverns of Chaos' would be '<b>cavchaos.are</b>' .
    <p>
   </li>
   <li>
    <b>The Bare Bones</b>
    <p>
    The following is an example of an area file with all area headers and enders 
    in it but absolutely no information. I call this a 'skeleton'. Your job in coding
    an area is to fill in the information between the section headers and enders.
    Take a peek at the file structure, then move on to the explanations below that.
    <p>
    <table BORDER=2 CELLPADDING=20 WIDTH="90%">
     <tr>
      <td>
       <code>
        <b>
         <br>#AREA
         <br>#MOBILES
         <br>#0
         <br>#OBJECTS
         <br>#0
         <br>#ROOMS
         <br>#0
         <br>#RESETS
         <br>S
         <br>#SHOPS
         <br>0
         <br>#SPECIALS
         <br>S
         <br>#$
        </b>
       </code>
      </td>
     </tr>
    </table>
    Here is a quick overview of what all these thingies mean. You can click on the
    section header names to get to the in-depth information you will need to code
    each section.
    <p>
    <blockquote>
     <dl>
      <dt><b><a HREF="abarea.htm">#AREA</a></b></dt>
      <dd>You will add some general descriptive data about your area after this header.</dd>
      <p>
      <dt><b><a HREF="abmob.htm">#MOBILES</a></b></dt>
      <dd>Each of your mobiles will be described in this section.</dd>
      <p>
      <dt><b>#0</b></dt>
      <dd>(hash-<b>zero</b>, not hash-oh!) ends the <b>#MOBILES</b> section.</dd>
      <p>
      <dt><b><a HREF="abobj.htm">#OBJECTS</a></b></dt>
      <dd>Each of your objects will be described in this section.</dd>
      <p>
      <dt><b>#0</b></dt>
      <dd>(hash-<b>zero</b>, not hash-oh!) ends the <b>#OBJECTS</b> section.</dd>
      <p>
      <dt><b><a HREF="abroom.htm">#ROOMS</a></b></dt>
      <dd>Each of your rooms will be described in this section.</dd>
      <p>
      <dt><b>#0</b></dt>
      <dd>(hash-<b>zero</b>, not hash-oh!) ends the <b>#ROOMS</b> section.</dd>
      <p>
      <dt><b><a HREF="abreset.htm">#RESETS</a></b></dt>
      <dd>
       This section gets information about which objects and which mobiles 
       to put into which rooms, which equipment to give them, and which doors
       to close or lock.
      </dd>
      <p>
      <dt><b>S</b></dt>
      <dd>A plain capital '<b>S</b>' ends the <b>#RESETS</b> section.</dd>
      <p>
      <dt><b><a HREF="abshop.htm">#SHOPS</a></b></dt>
      <dd>
       This section is used to tell the game which mobiles are shopkeepers.
       You only need it (and the following <b>0</b>) if you have shops in your area.
      </dd>
      <p>
      <dt><b>0</b></dt>
      <dd>
       (<b>zero</b>, not oh!) ends the <b>#SHOPS</b> section if there is one.
       If you have no shops, leave out the <b>#SHOPS</b> section header and this 0 as well!
      </dd><p> 
      <dt><b><a HREF="abspec.htm">#SPECIALS</a></b></dt>
      <dd>
       The #SPECIALS section is used to tell the game that one or more mobs in your 
       area have special abilities such as '<b>spec_cast_cleric</b>' or '<b>spec_janitor</b>'.
       If your area has no such specially endowed mobs, you do not need this section
       header and the following '<b>S</b>'.
      </dd>
      <p>
      <dt><b>S</b></dt>
      <dd>
       A plain capital '<b>S</b>' ends the <b>#SPECIALS</b> section.
       Again, if you have no mobs with special ability procedures, you do not need
       the <b>#SPECIALS</b> section and you also don't need the '<b>S</b>'.
      </dd>
      <dt><b>#$</b></dt>
      <dd>
       This sequence (hash-dollar) is <em>very</em> important because it tells the MUD
       that this is the end of your area file. You need to put at least one blank line
       after this marker, too. Disastrous things happen if you forget to put this 
       sequence here, or the following blank line(s).
      </dd>
      <p> 
     </dl>
    </blockquote>
   </li>
  </ol>
  <p>
  <h4>What this overview <em>doesn't</em> show</h4>
  <p>
  There are at least 4 area sections which I have purposely left undocumented.
  Here, briefly, is what they are and why I have left them out.
  <dl>
   <dt><b>#HELPS</b></dt>
   <dd>
    Sections of this name contain the text that players can look at using HELP.
    Other documentation describes how to code this into your area files, but
    Dizzy does not fully support #HELPS in individual area files, and our policy
    discourages area builders from writing them. An area should document itself
    in its room, mob and object descriptions. Any HELP topics of gamewide importance
    are coded into <code>HELP.ARE, ROM.ARE</code> and <code>GROUP.ARE</code>
    by the maintainers of DizzyMUD. The format is obvious to those who work with it, 
    so I see no need to document it here.
    If you feel the urgent need to add to the gamewide HELP information, please 
    submit your HELP text to the Immortals by e-mail.
   </dd>
   <p>
   <dt><b>#MOBPROGS</b></dt>
   <dd>
    A <b>#MOBPROGS</b> section is used by area builders who choose to write their
    MobProgs or collections thereof into separate files and require a MobProg
    section and lines to connect these external MobProgs to multiple different 
    mobiles in their area. This method is documented in detail in the section
    called <a HREF="abmp.htm">MobProgs Explained</a>, but I also point you to
    a simpler, more common and preferrable method which does not require a 
    #MOBPROGS section or separate MobProg files.
   </dd>
   <p>
   <dt><b>#SOCIALS</b></dt>
   <dd>
    At Dizzy, all SOCIALS are maintained in a single separate file called 
    <code>SOCIALS.ARE</code>. The MUD program will not read SOCIALS from other
    area files, and indeed crash on the attempt. If you would like to submit
    a new social to Dizzy, please read <b>HELP MORESOCIALS</b> to learn about 
    the required format for SOCIALS submission, and e-mail your submission to
    the Immortals.
   </dd>
   <p>
   <dt><b>#TOURSTARTS</b></dt>
   <dt><b>#TOURROUTES</b></dt>
   <dd>
    Dizzy MUD proudly operates a system of coach tours through Thera for the
    curious, the footsore and the romantic. The coach routes and appertaining
    other data are coded into a single file called <code>TOURS.ARE</code>
    and maintained there by the Immortals of Dizzy. For those few who ever
    deal with it, the structure of these sections is documented inside the
    file itself.
   </dd>
  </ul>
  <!-- BEGIN Navigator -->
  <HR NOSHADE>
  <table WIDTH="100%">
   <tr>
    <td ALIGN="left">
     <small>
      &lt;&lt; Back to 
      <a HREF="abdesign.htm">
       Area Design
      </a>
     </small>
    </td>
    <td ALIGN="right">
     <small>Forward to <a HREF="abarea.htm">The #AREA Section</a> &gt;&gt;</small>
    </td>
   </tr>
  </table>
  <HR NOSHADE>
  <!-- END Navigator -->
  <table WIDTH="100%">
   <tr>
    <td>
    </td>
    <td ALIGN=right>
     <small>This page was last updated <FONT COLOR="#FF0000">February 7, 1998</FONT>.</small>
    </td>
   </tr>
  </table>
 </body>
</html>

Site Stats

Snippets: 1791
Codebases: 571