Importing Apogee Software's GPL release of Beyond The Titanic into version control
authorJason Self <j@jxself.org>
Sat, 10 May 2014 18:35:39 +0000 (11:35 -0700)
committerJason Self <j@jxself.org>
Sat, 10 May 2014 18:35:39 +0000 (11:35 -0700)
17 files changed:
HELP.TXT [new file with mode: 0644]
INSTRUCT.TXT [new file with mode: 0644]
gpl-2.0.txt [new file with mode: 0644]
src/ADPARSER.PAS [new file with mode: 0644]
src/BEYOND.PAS [new file with mode: 0644]
src/COMMANDS.PAS [new file with mode: 0644]
src/LINE [new file with mode: 0644]
src/LINERITE.PAS [new file with mode: 0644]
src/OBJECTS.PAS [new file with mode: 0644]
src/ROOMRITE.PAS [new file with mode: 0644]
src/ROOMS1 [new file with mode: 0644]
src/ROOMS2 [new file with mode: 0644]
src/SPECIAL.PAS [new file with mode: 0644]
src/SPECIAL1 [new file with mode: 0644]
src/SPECIAL2 [new file with mode: 0644]
src/TURBO.MSG [new file with mode: 0644]
src/WORDLIST.PAS [new file with mode: 0644]

diff --git a/HELP.TXT b/HELP.TXT
new file mode 100644 (file)
index 0000000..329f2ea
--- /dev/null
+++ b/HELP.TXT
@@ -0,0 +1,23 @@
+                             BEYOND THE TITANIC\r
+\r
+To start:   Put the game disk in drive A:, if you have two disk drives put a\r
+            formatted disk (it can contain other files) into drive B:.\r
+            This will be the SAVE/RESTORE disk.  You must use DOS 2.0 or\r
+            later.\r
+\r
+            For game instructions type the following from the DOS A> prompt:\r
+\r
+            INSTRUCT  <enter>\r
+\r
+            This will list the game instructions to the screen.\r
+\r
+Game hints: Try examining things and explore all of the rooms, a map is a\r
+            must.  As you play the game draw out small boxes on of piece of\r
+            grid paper, with lines leading to surrounding boxes (representing\r
+            passages.)\r
+\r
+            If the game is played perfectly, it will take the you at least\r
+            350 moves to solve everything and return home (San Francisco.)\r
+            On average the game will take over 2500 moves to complete!\r
+\r
+\1a
\ No newline at end of file
diff --git a/INSTRUCT.TXT b/INSTRUCT.TXT
new file mode 100644 (file)
index 0000000..21957cb
--- /dev/null
@@ -0,0 +1,184 @@
+\r
+\r
+\r
+\r
+                                 INSTRUCTIONS\r
+\r
+                                     FOR\r
+                             ____________________\r
+                            |                    |\r
+                            | BEYOND THE TITANIC |\r
+                            |____________________|\r
+\r
+                       A Text & Sound Adventure Fantasy\r
+\r
+                          Programmed by Scott Miller\r
+\r
+\r
+                         An Apogee Software Production\r
+                         -----------------------------\r
+\r
+\r
+\r
+\r
+\r
+PLEASE NOTE THAT BEYOND THE TITANIC IS A SHAREWARE GAME.\r
+                                         ---------\r
+\r
+The author asks that those who enjoy the game please pay $5 or $10 to help\r
+compensate the effort that went into programming Beyond the Titanic.  This\r
+small fee will also encourage the author to continue making new games, like\r
+the recently released Supernova and Kingdom of Kroz.\r
+\r
+This payment will also register the payer for telephone support and clues.\r
+\r
+Please make checks payable to:\r
+\r
+                Scott Miller              (214) 240-0614\r
+                4206 Mayflower Dr.\r
+                Garland, TX  75043\r
+\r
+Please support the SHAREWARE concept, it benefits you the most.\r
+\r
+Thank you and enjoy the game...\r
+\r
+Scott Miller\r
+\r
+\r
+\r
+\r
+\r
+\r
+The STORY\r
+------------------------------------------------------------------------------\r
+\r
+    As the game begins you find yourself standing on board the Titanic, on her\r
+maiden voyage.  Of course, that particular voyage was never completed!\r
+    Your goal is to survive and somehow get back to your home in the United\r
+States.\r
+    Most of your time will be spent solving numerous problems and dangers that\r
+arise, like starvation and drowning.  If you've played any of Infocom's famous\r
+text games you will notice that Beyond the Titanic is quite similar to Zork\r
+and Planetfall.\r
+    Hints:  Examine everything and make a map as you move through the many\r
+game locations.  There are not any puzzles that cannot be solved logically;\r
+apply an "If I were really there, I would do this..." type of attitude.\r
+    To add to the game's realism sound effects are used throughout the game.\r
+\r
+\r
+\r
+\r
+\r
+LOADING\r
+------------------------------------------------------------------------------\r
+\r
+Game setup for single disk drive:\r
+\r
+1)  Insert the GAME disk.\r
+2)  Type in BEYOND and press the <enter> button.\r
+3)  When the "Do you have a colr screen?" question appears, press Y or N.\r
+4)  When the "How many disk drives do you have?" question appears, press\r
+    the number 1.\r
+5)  The game will begin.\r
+\r
+Game setup for two disk drives:\r
+\r
+1)  Insert the GAME disk into drive A:\r
+2)  Insert your SAVE/RESTORE disk into drive B:\r
+3)  Type in BEYOND and press the <enter> button.\r
+4)  When the "Do you have a colr screen?" question appears, press Y or N.\r
+4)  When the "How many disk drives do you have?" question appears, press\r
+    the number 2.\r
+6)  The game will begin.\r
+\r
+The VERBS\r
+------------------------------------------------------------------------------\r
+\r
+    Beyond the Titanic has a vocabulary of over 750 words--more than most\r
+text adventures sold commercially.  Here is a sampling of the verbs\r
+understood by the game's parser.\r
+EXAMINE (or EX for short)\r
+INVENTORY (or I)\r
+NORTH, SOUTH, NORTHWEST, UP, DOWN, IN, OUT, etc. (or first letter)\r
+GET, DROP\r
+PUSH, PULL, MOVE, PRESS, TOUCH\r
+LOOK, LOOK INSIDE, LOOK BEHIND, LOOK THROUGH, LOOK UNDER, LOOK ON, etc.\r
+WEAR, TAKE OFF\r
+TIE, UNTIE\r
+PUT, INSERT\r
+OPEN, UNLOCH\r
+TURN, ROTATE\r
+FIND                            CRAWL\r
+SAY                             TYPE\r
+CUT                             HELP\r
+JUMP                            SHAKE\r
+SLEEP                           FLY\r
+DANCE                           FALL\r
+\r
+\r
+\r
+Example structures:\r
+\r
+TIE [object] (TO, AROUND) [object] - usually used with a rope.\r
+EX [object] - used to study an object closely.\r
+GIVE [object] TO [object]\r
+PUT [object] (WITHIN, UNDER, ON, BESIDE, BEHIND, etc.) [object]\r
+SAY [something] - used to converse with other game characters.\r
+TYPE [something] - used to enter data on a keyboard device.\r
+TURN [object] or TURN [object] to [position] - used for dials.\r
+OPEN [object] WITH [object]\r
+\r
+\r
+Example Sentences:\r
+\r
+>> PICK UP THE KNIFE THEN THROW IT AT THE WALL\r
+>> E.N.OPEN HATCH THEN CLIMB DOWN THE LADDER. READ SCREEN. BREAK IT.\r
+>> SHOOT THE CREATURE WITH THE GUN PLEASE, THEN RUN SOUTH!\r
+\r
+\r
+\r
+\r
+The COMMANDS\r
+------------------------------------------------------------------------------\r
+\r
+    Here's a list of the major commands you will need to know in order to play\r
+Beyond the Titanic.\r
+\r
+QUIT - ends the current game.\r
+SAVE - allows you to save your present game location.  Use a separate formatted\r
+       disk.  Up to 26 SAVE files per disk.  SAVE names can be up to eight\r
+       letters long.  To resume a previously SAVED game use the RESTORE\r
+       command.\r
+RESTORE - allows you to restore a SAVED game location.\r
+DIAGNOSE - reveals your health, appetite, etc.\r
+LOOK (or L) - does a brief examination of your current game location.\r
+REPEAT (or R) - repeats your last line of commands.\r
+WAIT (or Z) - lets one move pass without any action.\r
+SCORE - gives you your current ranking.\r
+ROOM DESCRIPTION (or RD) - toggles between full room descriptions or brief\r
+    room descriptions.\r
+\r
+\r
+\r
+\r
+\r
+\r
+\r
+MISCELLANEOUS\r
+------------------------------------------------------------------------------\r
+\r
+    Beyond the Titanic only recognizes the first SEVEN letters of any word or\r
+command.  (Note: Infocom games only use the first SIX letters.)\r
+    The word AND is not understood.  You cannot say, for example, GET GUN\r
+AND ROPE, or PUT ROPE AND KNIFE IN SACK.\r
+    With the verbs GET and DROP you may refer to every object by saying\r
+GET ALL or DROP ALL.  The word ALL is not accepted anywhere else.\r
+    It is a good idea to draw a map as you find new rooms in the game.\r
+Without a map it is easy to get lost, or it might be difficult to find a\r
+room you need to get to in a hurry.\r
+\r
+*** END OF FILE ***\r
+\r
+\r
+\r
+\1a
\ No newline at end of file
diff --git a/gpl-2.0.txt b/gpl-2.0.txt
new file mode 100644 (file)
index 0000000..d159169
--- /dev/null
@@ -0,0 +1,339 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                            NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License along
+    with this program; if not, write to the Free Software Foundation, Inc.,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
diff --git a/src/ADPARSER.PAS b/src/ADPARSER.PAS
new file mode 100644 (file)
index 0000000..1def3ca
--- /dev/null
@@ -0,0 +1,359 @@
+{//-------------------------------------------------------------------------}\r
+{/*                                                                         }\r
+{Copyright (C) 1990, 2009 - Apogee Software, Ltd.                           }\r
+{                                                                           }\r
+{This file is part of Supernova.  Supernova is free software; you can       }\r
+{redistribute it and/or modify it under the terms of the GNU General Public }\r
+{License as published by the Free Software Foundation; either version 2     }\r
+{of the License, or (at your option) any later version.                     }\r
+{                                                                           }\r
+{This program is distributed in the hope that it will be useful,            }\r
+{but WITHOUT ANY WARRANTY; without even the implied warranty of             }\r
+{MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                       }\r
+{                                                                           }\r
+{See the GNU General Public License for more details.                       }\r
+{                                                                           }\r
+{You should have received a copy of the GNU General Public License          }\r
+{along with this program; if not, write to the Free Software                }\r
+{Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.}\r
+{                                                                           }\r
+{Original Source: 1990 Scott Miller                                         }\r
+{Prepared for public release: 03/19/09 - Joe Siegler, Apogee Software, Ltd. }\r
+{*/                                                                         }\r
+{//-------------------------------------------------------------------------}\r
+{*****************************************************************************}\r
+{*                                 ADPARSER                                  *}\r
+{*                             by Scott Miller                               *}\r
+{*      This include file to Adgame contains the word parser commands.       *}\r
+{*                          Copyright 1984 Pending                           *}\r
+{*****************************************************************************}\r
+\r
+\r
+procedure  RR(RoomNum : integer);\r
+    begin FlagSA:='s';\r
+      seek(rooms1,RoomNum);seek(rooms2,RoomNum);\r
+      READ(rooms1,text1);READ(rooms2,text2);\r
+      writeln(text1,text2);\r
+    end; {of RoomRead}\r
+\r
+\r
+procedure  RS(RoomNum : integer);\r
+   begin\r
+     FlagSA:='s';\r
+     seek(Special1,RoomNum);seek(Special2,RoomNum);\r
+     READ(Special1,text1);READ(Special2,text2);\r
+     writeln(text1,text2);\r
+   end;  {of SpecialRead}\r
+\r
+procedure RL(RoomNum : integer);\r
+   var text1 : str80;\r
+   begin\r
+     FlagSA:='s';\r
+     seek(Line1,RoomNum);\r
+     READ(Line1,text1);\r
+     writeln(text1);\r
+   end;  {of LineRead}\r
+\r
+\r
+procedure Format(var input : Str80);\r
+ procedure D(A:str14; B: Byte);\r
+  begin while pos(A,input)<>0 do delete(input,pos(A,input),B) end;\r
+   begin input:=input+' '; insert(' ',input,1);\r
+    d(' of ',3); d(' go ',3); d('''',1); d('"',1); d(',',1);\r
+    d(' a ',2); d('?',1);  d('!',1); d(';',1); d('#',1);\r
+    d(' the ',4); d('fly ',4); d('drive ',6); d('run ',4);\r
+    d('walk ',5); d('travel ',7); d('please ',7); d('room ',5);\r
+    d('crawl se',6); d('crawl nw',6); d('steer ',6); d('crawl n ',6);\r
+    d('crawl s ',6); d('crawl e',6); d('crawl w',6); d('that ',5);\r
+    d('first ',6); d('second ',7); d('number ',7);\r
+    d('this ',5); d('game ',5); d('i want to ',10); d(' my ',3); d('big ',4);\r
+    d('those ',6); d('them ',5); d('broken ',7); d('large ',6);\r
+    d('huge ',5); d('small ',6); d('tiny ',5);d('little ',7); d('within ',4);\r
+    d('yes ',3); d('no ',2); d('wade ',4); d('swim ',4);\r
+    while pos('examine ',input)>0 do delete(input,pos('examine ',input)+2,5);\r
+    while pos('into ',input)>0 do delete(input,pos('into ',input)+2,2);\r
+    while pos('. ',input)>0 do delete(input,pos('. ',input)+1,1);\r
+    while pos('inside ',input)>0 do delete(input,pos('inside ',input)+2,4);\r
+    d(' .',1); d('  ',1); d('..',1);\r
+    if(input[1]='.')then delete(input,1,1);\r
+    while(length(input)>0)and(input[1]=' ')do delete(input,1,1);\r
+    while(length(input)>0)and(input[length(input)]=' ')do\r
+     delete(input,length(input),1);\r
+    if(input='')or(input[1]='.')then writeln('Whoops!')\r
+   end;  {of Format}\r
+\r
+\r
+procedure Chop(var input : Str80);\r
+   var Word : Str80;\r
+       j, l : integer;\r
+   begin\r
+     if length(input) >0 then\r
+       begin\r
+         input:=input+' ';\r
+         j:=1;\r
+         repeat\r
+           Word:='';\r
+           while(input[j]<>' ')and(input[j]<>'.')do begin\r
+             Word:=Word+input[j];\r
+             j:=j+1\r
+           end;\r
+           if length(Word) >7 then\r
+             begin\r
+               l:=pos(Word,input);\r
+               j:=j+(7-length(Word));\r
+               delete(input,l,length(Word));\r
+               delete(Word,8,120);\r
+               insert(Word,input,l)\r
+             end;\r
+           j:=j+1;\r
+         until (j-1)=length(input);\r
+         delete(input,length(input),1)\r
+       end\r
+   end;  {of Chop}\r
+\r
+\r
+procedure LowerCase(var input : Str80);\r
+    var j:byte;\r
+   begin\r
+     if length(input) > 0 then\r
+      for j:=1 to length(input) do\r
+       if(input[j] in ['A'..'Z'])then\r
+        input[j]:=chr(ord(input[j])+32)\r
+   end;   {of LowerCase}\r
+\r
+\r
+procedure FindVerb (var input:Str80;var Word:Str14;var Verb:integer);\r
+   var j, k, r : integer;\r
+   begin\r
+   j:=1;\r
+   input:=input+' ';\r
+   Word:='';\r
+   while input[j]<>' ' do begin\r
+     Word:=Word+input[j];\r
+     j:=j+1\r
+   end;\r
+   if length(Word+' ')<length(input)then begin\r
+     Word:=Word+' '; j:=j+1;\r
+     while input[j]<>' ' do begin\r
+       Word:=Word+input[j];\r
+       j:=j+1\r
+     end\r
+   end;\r
+\r
+   Verb:=Null;\r
+   for r:= 0 to VMax do\r
+     begin\r
+       k:=0;\r
+       repeat\r
+         k:=k+1;\r
+         if v[r,k]=Word then\r
+           Verb:=r;\r
+       until (v[r,k]=Q)or(k=5)\r
+     end;\r
+\r
+   if(pos(' ',Word)<>0)and(Verb=Null)then\r
+     begin\r
+       delete(Word,pos(' ',Word),8);\r
+       for r:=0 to VMax do\r
+         begin\r
+           k:=0;\r
+           repeat\r
+             k:=k+1;\r
+             if v[r,k]=Word then\r
+               Verb:=r;\r
+           until (v[r,k]=Q)or(k=5)\r
+         end\r
+     end;\r
+     delete(input,length(input),1);\r
+     if Verb<>Null then delete(input,1,length(Word));\r
+     if input[1]=' 'then delete(input,1,1)\r
+   end;  {of FindVerb}\r
+\r
+\r
+procedure FindNoun(var input:Str80;var Word:Str14;var Noun:integer);\r
+   var j, k, t  : integer;\r
+   begin\r
+   j:=1;\r
+   input:=input+' ';\r
+   Word:='';\r
+   while input[j]<>' ' do begin\r
+     Word:=Word+input[j];\r
+     j:=j+1\r
+   end;\r
+   if length(Word+' ')<length(input)then begin\r
+     Word:=Word+' ';j:=j+1;\r
+     while input[j]<>' ' do begin\r
+       Word:=Word+input[j];\r
+       j:=j+1\r
+     end\r
+   end;\r
+\r
+   Noun:=Null;\r
+   for t:=0 to NMax do\r
+     begin\r
+       k:=0;\r
+       repeat\r
+         k:=k+1;\r
+         if n[t,k]=Word then\r
+           Noun:=t;\r
+       until (n[t,k]=Q)or(k=5)\r
+     end;\r
+\r
+   if(pos(' ',Word)<>0)and(Noun=Null)then\r
+     begin\r
+       delete(Word,pos(' ',Word),8);\r
+       for t:=0 to NMax do\r
+         begin\r
+           k:=0;\r
+           repeat\r
+             k:=k+1;\r
+             if n[t,k]=Word then\r
+               Noun:=t;\r
+           until (n[t,k]=Q)or(k=5)\r
+         end\r
+     end;\r
+     delete(input,length(input),1);\r
+     if Noun<>Null then delete(input,1,length(Word));\r
+     if input[1]=' 'then delete(input,1,1)\r
+   end;  {of FindNoun}\r
+\r
+\r
+procedure FindSep(var input : Str80; var h : Str14);\r
+   var j  : integer;\r
+   begin\r
+     input:=input+' ';\r
+     j:=1;\r
+     h:='';\r
+     while input[j]<>' ' do begin\r
+       h:=h+input[j];\r
+       j:=j+1\r
+     end;\r
+     if pos(' '+h+' ',' crawl on at to in off with within into '+\r
+            ' above against through beside behind around across '+\r
+            ' inside from by under using near over onto down ') >0 then\r
+       begin\r
+         delete(input,length(input),1);\r
+         delete(input,1,length(h));\r
+         if input[1]=' ' then delete(input,1,1);\r
+         if(h='on')or(h='around')or(h='above')or(h='over')or(h='onto')\r
+           then h:='to';\r
+         if(h='inside')or(h='within')or(h='through')or(h='into')or(h='down')\r
+           then h:='in';\r
+         if(h='using')then h:='with';\r
+         if(h='beside')or(h='by')then h:='near';\r
+         if(h='against')then h:='at';\r
+         if(h='across')then h:='over'\r
+       end\r
+     else\r
+       begin\r
+         h:='s';\r
+         delete(input,length(input),1)\r
+       end\r
+   end;  {of FindSep}\r
+\r
+\r
+procedure Check(var SepWord : Str14);\r
+   var j  : integer;\r
+   begin\r
+   Verb:=Null; Noun:=Null; Noun2:=Null; DialNum:=Null; Flag:='?';\r
+   SepWord:='s';\r
+   if length(input)>0then\r
+    begin\r
+     FindVerb(input,Word,Verb);\r
+     if Verb<>Null then\r
+      if(length(input)>0)and not(Verb in [31,53,63])then\r
+       begin\r
+        FindNoun(input,Word,Noun);\r
+        If(Noun<>Null)then LastNoun:=n[noun,1];\r
+        if Noun<>Null then\r
+         if(Verb in[0,8,9,21,36,6,7,15,17,32,26])and(length(input)=0)then\r
+          begin\r
+           Flag:='g';\r
+           if(Verb in[36,15])then Verb:=9\r
+          end\r
+         else\r
+         if(Verb in[0,8,21,36,37,29,9,39,6,15,7,17,32,26,40])then\r
+          if length(input)>0 then\r
+           begin\r
+            if(Verb=9)then Verb:=29 else ;\r
+            FindSep(input,SepWord);\r
+            if SepWord<>'s' then\r
+             if length(input)>0 then\r
+              if Verb=39 then\r
+               begin\r
+                val(input,DialNum,j);\r
+                Flag:='g'\r
+               end\r
+              else\r
+               begin\r
+                FindNoun(input,Word,Noun2);\r
+                if Noun2<>Null then\r
+                 if length(input)>0 then\r
+                  Flag:='r'\r
+                 else\r
+                  Flag:='g'\r
+                else\r
+                 begin\r
+                  FindVerb(input,Word,Verb);\r
+                   if Verb=Null then Flag:='n'\r
+                   else Flag:='b'\r
+                 end\r
+               end\r
+             else\r
+              if(Verb=39)and((SepWord='to')or(SepWord='off'))then\r
+               Flag:='g' else Flag:='e'\r
+            else\r
+             Flag:='r'\r
+           end\r
+          else\r
+           Flag:='s'\r
+         else\r
+          if length(input)>0 then\r
+           begin FindVerb(input,Word,j);if j<>Null then Flag:='b' else\r
+           begin FindSep(input,SepWord);if SepWord<>'s' then Flag:='b' else\r
+           begin FindNoun(input,Word,j);if j<>Null then Flag:='h' end end;\r
+            if Flag='?' then Flag:='v'\r
+           end\r
+          else\r
+           Flag:='g'\r
+        else\r
+         begin\r
+          FindVerb(input,Word,Verb);\r
+           if Verb=Null then Flag:='n'\r
+           else Flag:='b'\r
+         end\r
+       end\r
+      else\r
+       if Verb in OneWordCommands then Flag:='g'\r
+       else Flag:='m'\r
+     else\r
+      begin\r
+       FindNoun(input,Word,Noun2);\r
+        If Noun2=Null then Flag:='v'\r
+        else Flag:='a'\r
+      end\r
+    end;\r
+   case flag of\r
+   'v','n':if pos(' '+Word+' ',' crawl on at to in off with within into '+\r
+                  ' above against through beside behind around down '+\r
+                  ' inside by under using near over onto top below '+\r
+                  ' from away want across ')>0 then begin\r
+             write('The word ''',Word);RL(393)end\r
+           else writeln('I don''t understand the word ''',Word,'.''');\r
+     'b'  :begin\r
+            if pos(' ',Word)>0 then delete(Word,pos(' ',Word),9);\r
+            writeln('You can''t use the word ''',Word,''' here.')\r
+           end;\r
+     's'  :RL(129);\r
+     'r'  :RL(130);\r
+     'e'  :RL(131);\r
+     'm'  :RL(132);\r
+     'a'  :RL(316);\r
+     'h'  :begin write(Word);RL(392)end\r
+   end;\r
+   Skip:=True;\r
+   if flag<>'g' then begin Attack:=False;Line:='';Skip:=False end\r
+  end;  {of Check}\r
+\r
+{***************************** END OF ADPARSER ******************************}\r
+\1a
\ No newline at end of file
diff --git a/src/BEYOND.PAS b/src/BEYOND.PAS
new file mode 100644 (file)
index 0000000..1610996
--- /dev/null
@@ -0,0 +1,1905 @@
+{//-------------------------------------------------------------------------}\r
+{/*                                                                         }\r
+{Copyright (C) 1990, 2009 - Apogee Software, Ltd.                           }\r
+{                                                                           }\r
+{This file is part of Supernova.  Supernova is free software; you can       }\r
+{redistribute it and/or modify it under the terms of the GNU General Public }\r
+{License as published by the Free Software Foundation; either version 2     }\r
+{of the License, or (at your option) any later version.                     }\r
+{                                                                           }\r
+{This program is distributed in the hope that it will be useful,            }\r
+{but WITHOUT ANY WARRANTY; without even the implied warranty of             }\r
+{MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                       }\r
+{                                                                           }\r
+{See the GNU General Public License for more details.                       }\r
+{                                                                           }\r
+{You should have received a copy of the GNU General Public License          }\r
+{along with this program; if not, write to the Free Software                }\r
+{Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.}\r
+{                                                                           }\r
+{Original Source: 1990 Scott Miller                                         }\r
+{Prepared for public release: 03/19/09 - Joe Siegler, Apogee Software, Ltd. }\r
+{*/                                                                         }\r
+{//-------------------------------------------------------------------------}\r
+{****************************************************************************}\r
+{*                          BEYOND THE TITANIC                              *}\r
+{*    Written by Scott Miller with Turbo Pascal V.2.  Began May 12, '84.    *}\r
+{*                           Shareware Version                              *}\r
+{*                             Copyright 1987                               *}\r
+{$C-,K-,V-,R-****************************************************************}\r
+\r
+{ Last modified: July 23, 1987 }\r
+\r
+const\r
+     Q        = '#';\r
+     VMax     = 65;\r
+     NMax     = 89;\r
+     RMax     = 76;\r
+     Null     = -1;\r
+\r
+type\r
+     ComSet         = set of 0..VMax;\r
+     CharSet        = set of Char;\r
+     PlayersObjects = set of 0..NMax;\r
+     Str14          = string[14];\r
+     Str80          = string[80];\r
+     Str240         = string[240];\r
+     SaveGame       = record\r
+       aInven,\r
+       aKitSet,\r
+       aCabiSet  :PlayersObjects;\r
+       aPanelCon,\r
+       aSlotCon,\r
+       aCompCon,\r
+       aRopeCon,\r
+       aTic,\r
+       aYearDial,\r
+       aPrm,\r
+       aMnRm,\r
+       aSc,\r
+       aShots,\r
+       aShRm,\r
+       aRx       :integer;\r
+       aEv       :CharSet;\r
+       aCode,\r
+       aLoc      :Str14;\r
+       aKeyHole  :boolean;\r
+      end;\r
+\r
+var\r
+     WordList       : file of Str14;\r
+     Things         : file of integer;\r
+     Objects        : file of PlayersObjects;\r
+     GameSave       : file of SaveGame;\r
+     DiskSave       : SaveGame;\r
+     Input,\r
+     Again,\r
+     Line           : Str80;\r
+     V{erb}         : array [0..VMax,1..5] of Str14;\r
+     N{oun}         : array [0..NMax,1..5] of Str14;\r
+     R{oom}         : array [0..NMax] of integer;\r
+     P{lace}        : array [0..RMax] of PlayersObjects;\r
+     RmSh           : set of 0..14;\r
+     OneWordCommands: Comset;\r
+     Mov{able},\r
+     Inven{tory},\r
+     KitSet,\r
+     CabiSet        : PlayersObjects;\r
+     Word,\r
+     LastNoun,\r
+     Drive,\r
+     Code,\r
+     Loc{ation},\r
+     SepWord        : Str14;\r
+     Rooms1, Rooms2,\r
+     Special1, Special2 : file of Str240;\r
+     Text1, Text2   : Str240;\r
+     Line1          : file of Str80;\r
+     Verb,\r
+     Noun, Noun2,\r
+     PanelCon,\r
+     RopeCon,\r
+     CompCon,\r
+     SlotCon,\r
+     RopeOld,\r
+     Tic,\r
+     YearDial,\r
+     DayDial,\r
+     Prm,  {Player Room}\r
+     MnRm, {Monster Room}\r
+     Sc{ore},\r
+     Shots,\r
+     DialNum,\r
+     Stuff,\r
+     ShRm, {Shuttle Room}\r
+     m0,m1,m2,m3,m4,m5,m6,m7,m8,m9,\r
+     Rx, {deserted road}\r
+     Ox, {ocean bottom}\r
+     x, y, o        : integer;\r
+     Flag,\r
+     FlagSA         : char;\r
+     Ev{ent}        : CharSet;\r
+     Attack,\r
+     Skip,\r
+     Back,\r
+     KeyHole,\r
+     Verbose        : boolean;\r
+\r
+\r
+\r
+{$Ia:AdParser.PAS}{  <--- Loads in sentence logic.    <*********************}\r
+\r
+\r
+{$Ia:Commands.PAS}{  <--- Loads in misc. procedures.  <*********************}\r
+\r
+\r
+{$Ia:WordList.PAS }{  <----- CALLS UP THE VERBS & NOUNS <*******************}\r
+\r
+\r
+{$Ia:Objects.PAS }{   <----- CALLS UP THE VERBS & NOUNS <*******************}\r
+\r
+\r
+{===================}\r
+overlay procedure DefaultAnswers1;\r
+var o : integer;\r
+begin\r
+\r
+CASE VERB OF\r
+\r
+22        :begin if(Prm in[59..68])then\r
+                  begin RmSh:=RmSh-[ShRm];RS(84)end;\r
+            if flasoff and (Prm in [6..24])then RL(54) else\r
+             if Verbose then DescribeRm\r
+              else begin Verbose:=true;DescribeRm;Verbose:=false;end;\r
+            if(23 in p[Prm])and(MnRm=Prm)then RL(357);\r
+            if Back then begin Attack:=False; Back:=False;end\r
+           end;\r
+\r
+18        :if inven=[] then RL(116)\r
+             else\r
+               begin\r
+                 writeln('You have in your possession...');\r
+                   for o:= 0 to NMax do\r
+                    begin\r
+                     if(o in inven)then\r
+                      if(o=74)then\r
+                       writeln('an ',n[o,1])else writeln('a ',n[o,1]);\r
+                     if(ropecon in inven)and(o=ropecon)then\r
+                      writeln('  The rope is tied to the ',n[o,1],'.');\r
+                     if(o=74)and(en('p'))then RL(174);\r
+                     if(o=89)and(en('i'))then RL(321);\r
+                    end;\r
+               end;\r
+\r
+11     :case noun of\r
+       60:Diagnose;\r
+       2:if(en('b'))then RL(198) else RL(199);\r
+       29:begin RL(89);if(en('a'))then RL(200) else RL(201);end;\r
+       57:if(ropecon<>Null)then\r
+            writeln('The rope is tied to the ',n[ropecon,1],'.')\r
+          else RL(133);\r
+       65:if(Prm in[59..68])then RS(84)else Line:='l';\r
+       8:RL(202);\r
+       7:RL(163);\r
+       70:RL(164);\r
+       52:RL(165);\r
+       74:RL(166);\r
+       23:RS(70);\r
+       32:RL(253);\r
+       13:RL(167);\r
+       22:RL(226);\r
+       1:if(Prm=42)and(13 in p[42])then RL(167);\r
+       21:RL(227);\r
+       9:if(Prm=49)then RL(228)else if(Prm>62)then RS(68)else RL(229);\r
+       69:RL(355);\r
+       77:RL(403);\r
+       37:RL(295);\r
+       27:RL(394);\r
+       89:RL(338);\r
+       18:if(Prm in[63..70])then RS(68)else RL(348);\r
+       46,66:If(Prm in[58,59,63,69])then begin\r
+       TextColor(12);RS(83);TextColor(m2)end;\r
+       87:RL(230);\r
+       84:RL(231);\r
+       34:begin RL(189);\r
+           if(Shots>0)then writeln('is about ',Shots*10,' percent full.')\r
+           else Writeln('is empty.')end;\r
+       15:if(84 in p[Prm])then RL(180)else If(71 in p[Prm])then RL(182)\r
+          else RL(181);\r
+    56,44:if(en('r'))then RL(51) else RL(52)\r
+       else if not(noun in[1,12,14,15,17,18,19,22,31,36,50,\r
+             54,67,69,73,79,80,84,87,88])and(random(3)=1)then\r
+            case random(3) of\r
+             0  :RL(407);\r
+             1  :writeln('Yea, it''s definitely a ',n[noun,1],'!');\r
+             2  :writeln('It looks like any other ',n[noun,1],'.');\r
+            end\r
+            else writeln('You see nothing special about the ',n[noun,1],'.')\r
+       end;\r
+\r
+41         :begin writeln('Time passes');y:=wherey;for o:=1 to 6 do\r
+              begin gotoxy(11+o,y-1);writeln('.');sound(o*99);delay(30)end;\r
+              if(Prm in[59..68])then sound(20)else nosound end;\r
+\r
+43..52     :if(Prm in[6..24])and(FlasOff)then RL(14)else\r
+             if(Prm=69)then RL(358)else RL(144);\r
+\r
+57,58      :begin Attack:=False;\r
+             if(Prm in[6..24])and(FlasOff)then RL(14)else RL(190);end;\r
+\r
+  end {of case}\r
+end;  {of DefaultAnswers1}\r
+{-------------------}\r
+overlay procedure DefaultAnswers2;\r
+var o : integer;\r
+begin\r
+\r
+CASE VERB OF\r
+\r
+29    :if(noun in Mov)then\r
+        if(noun in inven)then\r
+         begin FlagSA:='r';\r
+          case Noun2 of\r
+        39:if(en('o'))then begin RL(186);Vanish(noun);\r
+            kitset:=kitset+[noun];r[noun]:=Prm;end\r
+           else RL(185);\r
+        68:if(Prm=34)then\r
+            if(SlotCon=Null)then begin RL(186);Vanish(noun);\r
+             SlotCon:=Noun;r[noun]:=Prm;end\r
+            else Say(68,'being used')\r
+           else\r
+            if(noun=63)and(Prm=58)then\r
+             begin RL(337);KeyHole:=True;r[63]:=Prm;inven:=inven-[63];end\r
+            else RL(327);\r
+        88:begin RL(293);vanish(noun);r[noun]:=random(4)+51;end;\r
+        47,53,73:if(Prm in[0..6,9,10,13,41..43])then\r
+           begin RL(307);vanish(noun);end;\r
+        11:if(en('k'))then begin RL(186);Vanish(noun);\r
+            CabiSet:=CabiSet+[noun];r[noun]:=Prm;end\r
+           else RL(187);\r
+        26:if(Prm=76)and(noun=57)then begin RL(409);Vanish(57)end;\r
+        49:if(PanelCon=Null)and(noun in[2,7,8,13,27,32,51,52,63,77])then\r
+            begin RL(186);Vanish(noun);PanelCon:=Noun;r[noun]:=Prm;end\r
+           else RL(188);\r
+        30:if(noun=70)then\r
+            if not(en('d'))then\r
+             begin Ev:=Ev+['d'];RL(69);Vanish(70);r[70]:=Prm;end\r
+            else Say(70,'in the dirt')\r
+           else Crazy\r
+          end;{of case}\r
+\r
+          if(FlagSA<>'s')then\r
+           begin\r
+            if(SepWord='to')then\r
+             if(noun2 in[4,6,9,11,14,16,22,30,50,59,61,64,65,69,75])then\r
+              begin RL(186);Vanish(noun);r[noun]:=Prm;end\r
+             else RL(197);\r
+            if(SepWord='at')or(SepWord='near')or(SepWord='behind')then\r
+             if(noun2 in[0,4,6,9,11,12,14,16,17,20..23,26,28,30,35,39,43,\r
+                         50,53,54,59,61,62,64..69,72,73,75,78..80])then\r
+              begin RL(186);Vanish(noun);r[noun]:=Prm;end\r
+             else RL(197);\r
+            if(SepWord='under')then\r
+             if(noun2 in[4,15,16,20,23,59,60,61,75])then\r
+              begin RL(186);Vanish(noun);r[noun]:=Prm;end\r
+             else RL(197);\r
+            if(SepWord='in')then\r
+             if(noun2 in[6,16,43,47,30,50,59,64,65,72,78,80,84])then\r
+              begin RL(186);Vanish(noun);r[noun]:=Prm;end\r
+             else RL(197);\r
+            if(FlagSA<>'s')then Crazy;\r
+           end\r
+          end\r
+         else writeln('First you must have the ',n[noun,1],'.')\r
+        else Crazy;\r
+\r
+  end {of case}\r
+end;  {of DefaultAnswers2}\r
+{-------------------}\r
+overlay procedure DefaultAnswers3;\r
+var o : integer;\r
+begin\r
+\r
+CASE VERB OF\r
+\r
+31,63      :if(Verb=63)and(Prm<>MnRm)then RL(395)\r
+            else\r
+             if(Prm=MnRm)then\r
+              begin Attack:=False;\r
+               if(input='hi')or(input='hello')or(input='bye')then RL(396)else\r
+               if(copy(input,1,6)='follow')then RL(397)else\r
+                case random(5) of\r
+                 0:RL(365);1:RL(398);2:RL(399);3:RL(400);4:RL(401)\r
+                end\r
+              end\r
+             else RL(123);\r
+\r
+33         :RL(124);\r
+\r
+38         :case noun of\r
+             83:RL(262);\r
+             23:begin RL(366);DropAll;Ev:=Ev+['r'];Attack:=False end\r
+             else RL(125);\r
+            end;\r
+\r
+16         :if(MnRm=Prm)then begin Attack:=False;RL(372)end else\r
+            if(en('r'))then RL(373)else\r
+            if(Prm<15)and(70 in p[12])then RL(374)else  RL(371);\r
+\r
+19         :if(noun=Null)then RL(136)else Crazy;\r
+24         :if(noun=7)then RL(422)else\r
+            if(noun in[26,6,7,22,36,17,50,65,73,74,80,79,30,84])then RL(126)\r
+            else Crazy;\r
+21         :RL(127);\r
+40         :Crazy;\r
+\r
+8          :if(noun in[73,80])or(noun=Null)then\r
+             if(noun<>Null)then RL(36)\r
+             else if(here(73))or(here(80))then RL(36)else RL(37)\r
+            else RL(53);\r
+\r
+12         :RL(38);\r
+2          :if(noun in[4,35,39,8,11,12,14,20,21,30,57,43,59,67,70,75])then\r
+              RL(43)else RL(44);\r
+\r
+15         :if(noun in mov)then\r
+             if(sepword='to')then\r
+              if(noun2=23)then\r
+               begin RL(62);Vanish(noun);Attack:=False end\r
+              else Crazy\r
+             else RL(60)\r
+            else RL(61);\r
+\r
+1          :if(verbose)then\r
+              begin verbose:=false;RL(134);end\r
+             else begin verbose:=true;RL(135);end;\r
+\r
+13         :RL(77);\r
+23         :RL(78);\r
+\r
+60         :case noun of\r
+            43,12:RL(252);\r
+            35:RL(288)\r
+            else RL(78);\r
+            end;\r
+\r
+25         :if(Prm>62)and(Noun in[9,18,19,41])then RL(350)else RL(78);\r
+34         :RL(79);\r
+\r
+  end {of case}\r
+end;  {of DefaultAnswers3}\r
+{-------------------}\r
+overlay procedure DefaultAnswers4;\r
+var o : integer;\r
+begin\r
+\r
+CASE VERB OF\r
+\r
+20         :RL(81);\r
+35         :RL(82);\r
+\r
+6          :if(noun=23)and(here(40))then begin vanish(40);RL(84);end\r
+             else\r
+              if here(40)then\r
+               if(noun2=Null)or(noun2=40)then\r
+                case noun of\r
+                 57:RL(259);\r
+                 60:RL(260)\r
+                 else writeln('At the last moment you decide to spare',\r
+                       ' the ',n[noun,1],'''s life!')\r
+                end\r
+               else Crazy\r
+              else RL(83);\r
+\r
+30         :if(noun in [39,43,12,26,6,22,47,49,68,78,17,11,\r
+               50,65,73,74,80,79,30])then RL(93) else RL(94);\r
+\r
+54         :begin write('Would you like to SAVE your game first (Y or N)?  ');\r
+             read(kbd,flag);if(upcase(flag)<>'N')then SAVE else writeln('No.');\r
+             write('Are you still sure you want to quit? ');\r
+             read(kbd,flag);if(upcase(flag)='Y')then\r
+              begin RL(367);delay(999);window(1,1,80,25);clrscr;close(rooms1);\r
+               close(rooms2);close(special1);close(special2);close(line1);\r
+              HALT end else RL(264)end;\r
+53         :if(Prm in[27,30])then RL(123) else RL(145);\r
+59         :If(noun=23)then RL(368)else Diagnose;\r
+\r
+55         :if(noun=74)then\r
+              if(en('p'))then\r
+                begin Ev:=Ev-['p'];RL(169);end\r
+              else RL(168)\r
+            else\r
+            if(noun=89)then\r
+              if(en('i'))then\r
+                begin\r
+                 Ev:=Ev-['i'];RL(322);\r
+                 if(Prm in[59,63..68])then begin RS(66);DEAD;end;\r
+                end\r
+              else RL(323)\r
+            else Crazy;\r
+\r
+56     :if(noun=Null)or(noun in[60,23])or(noun in Mov)then\r
+         case noun of\r
+          23:RL(369);\r
+          60,Null:RL(193);\r
+          7:RL(194)\r
+          else RL(195);\r
+         end\r
+        else RL(196);\r
+\r
+3       :case noun of\r
+         7:RL(235);\r
+         2:if(en('b'))then RL(236)else RL(237);\r
+         62:RL(238);\r
+         65:RL(239);\r
+         74:RL(240);\r
+         78:RL(241);\r
+         84,40,50,68,85:RL(242)\r
+         else Crazy;\r
+        end;\r
+\r
+7      :begin if(noun=Null)then noun:=30;\r
+         if(noun in[30,36,47,50,71,72,79])then\r
+          case noun of\r
+           30,47,50,71:if(Prm in[5..22,44..49])then RL(247) else RL(248);\r
+           36:RL(249);\r
+           72:RL(250);\r
+           79:RL(251);\r
+          end\r
+         else Crazy;\r
+        end;\r
+\r
+\r
+  end   {of CASE.}\r
+end;    {of DefaultAnswers4}\r
+{-------------------}\r
+overlay procedure DefaultAnswers5;\r
+var o: integer;\r
+begin\r
+\r
+CASE VERB OF\r
+\r
+9         :if noun<>1 then\r
+             if(noun in Inven)then\r
+               if(noun=74)and(en('p'))then RL(170)\r
+          else if(noun=89)and(en('i'))then RL(335)\r
+          else begin\r
+                 inven:=inven-[noun];writeln(n[noun,1],': Dropped.');\r
+                 R[noun]:=Prm;\r
+               end\r
+             else\r
+               writeln('You don''t have the ',n[noun,1],'.')\r
+           else\r
+             begin\r
+              if(74 in inven)and(en('p'))then RL(170)else\r
+              if(89 in inven)and(en('i'))then RL(335)else\r
+              DropAll;\r
+            end;\r
+\r
+26        :case noun of\r
+         2:if not(en('b'))then\r
+              begin\r
+                Ev:=Ev+['b'];\r
+                RL(3);end\r
+            else Say(noun,'peeled');\r
+         7:RL(162);\r
+        57:if(ropecon<>Null)then\r
+              begin\r
+                ropecon:=Null;\r
+                RL(117);end\r
+            else Say(noun,'untied');\r
+        62:RL(238)\r
+         else Crazy;\r
+         end; {end of OPEN }\r
+\r
+  end {of case}\r
+end;  {of DefaultAnswers5}\r
+{-------------------}\r
+overlay procedure DefaultAnswers6;\r
+var o : integer;\r
+begin\r
+\r
+CASE VERB OF\r
+\r
+28,27     :case noun of\r
+           23:RL(369);\r
+           29:if not(en('a'))then\r
+                begin Ev:=Ev+['a'];\r
+                RL(120);end\r
+              else begin Ev:=Ev-['a'];\r
+                RL(121);end;\r
+           57:if(ropecon<>Null)and not(ropecon in inven)\r
+                    and(r[ropecon]<>Prm)then\r
+                  if(ropecon in mov)then begin\r
+                    RL(57);writeln('...it''s a ',n[ropecon,1],'!');\r
+                    r[ropecon]:=Prm;Ev:=Ev-['u'];\r
+                    if(ropecon=29)and not(flasoff)then DescribeRm;end\r
+                  else RL(56)\r
+               else RL(122);\r
+           8:begin RL(243);RL(244);play(9999,3500,0);play(3499,2000,1);\r
+              play(1999,1000,2);play(999,200,5);play(199,8,16);Ev:=Ev+['e'];\r
+              n[36,5]:=Q;n[78,5]:='glass';n[68,1]:='slot';n[66,4]:=Q;\r
+              Ev:=Ev-['j'];\r
+              moveto(30);\r
+              if(MnRm=Prm)then RS(73);\r
+             end;\r
+           81:if not(en('j'))then\r
+               if KeyHole then\r
+                begin Ev:=Ev+['j'];RL(326);play(2000,2001,200);end\r
+               else RL(123)\r
+              else\r
+               begin Ev:=Ev-['j'];\r
+                if Keyhole then begin RL(326);play(2001,2000,200)end\r
+                else RL(123);\r
+                if(Prm in[59..68])then begin nosound;RS(62);DEAD;end;\r
+               end;\r
+           36:begin\r
+               if(Prm > 57)then if(Prm = 58)then RL(123)else\r
+                begin RS(63);DEAD;end;\r
+              end\r
+             else RL(122);\r
+           end; {of case}\r
+\r
+62         :begin write('You have ',Sc,' of 1000 points',\r
+                        ', giving you the rank of ');Tic:=Tic-1;\r
+              case Sc of\r
+              0..99:writeln('beginner.');\r
+              100..249:writeln('novice adventurer.');\r
+              250..399:writeln('adventurer third class.');\r
+              400..549:writeln('adventurer second class.');\r
+              550..699:writeln('adventurer first class.');\r
+              700..849:writeln('expert adventurer.');\r
+              850..999:writeln('master adventurer.')\r
+              else writeln('dead adventurer!')\r
+              end;\r
+            Attack:=False;\r
+            if(MnRm=Prm)then RL(370)\r
+            end;\r
+\r
+  end {of case}\r
+end;  {of DefaultAnswers6}\r
+{-------------------}\r
+overlay procedure DefaultAnswers7;\r
+var o : integer;\r
+begin\r
+\r
+CASE VERB OF\r
+\r
+14      :if(noun<>1)then\r
+          if(noun in Mov)then\r
+           if not(noun in inven)then\r
+            begin\r
+            Stuff:=0;\r
+            for o:=0 to NMax do if(o in inven)then Stuff:=Stuff+1;\r
+            if(Stuff < 6)then\r
+             if(en('r'))and(inven<>[])then RL(87)\r
+             else begin\r
+                   Vanish(Noun);inven:=inven+[noun];\r
+                   writeln(n[noun,1],': Taken.');\r
+                   if(noun=70)then Ev:=Ev-['d'];\r
+                  end\r
+            else RL(234)\r
+            end\r
+           else writeln('You already have the ',n[noun,1],'.')\r
+          else Crazy\r
+         else if(en('r'))then RL(88) else\r
+            begin flag:='0';Stuff:=0;\r
+             for o:=0 to NMax do if(o in inven)then Stuff:=Stuff+1;\r
+             if(Stuff < 7)then\r
+              for o:=0 to NMax do\r
+               begin\r
+                if r[o]=Prm then\r
+                 if(Stuff+1 < 7)then\r
+                  begin\r
+                   vanish(o);inven:=inven+[o];Stuff:=Stuff+1;\r
+                   writeln(n[o,1],':  Taken.');flag:='1';\r
+                   if(o=70)then Ev:=Ev-['d'];\r
+                  end\r
+                 else\r
+                  begin flag:='1';\r
+                  writeln(n[o,1],': You have too many objects already!');end\r
+               end\r
+             else RL(234);\r
+             if(flag='0')then RL(49)\r
+            end; {of 14}\r
+\r
+4,5       :RL(420);\r
+\r
+64        :SAVE;\r
+\r
+  end {of case}\r
+end;  {of DefaultAnswers7}\r
+{-------------------}\r
+overlay procedure DefaultAnswers8;\r
+var o : integer;\r
+begin\r
+\r
+CASE VERB OF\r
+\r
+10         :if(noun in [2,52])then\r
+              if(noun=2)then\r
+                if(en('b'))then begin\r
+                  RL(45); Ev:=Ev+['c'];inven:=inven+[51];\r
+                  Vanish(2);Sc:=Sc+10;end\r
+                else RL(46)\r
+              else begin RL(47);Ev:=Ev+['n'];Sc:=Sc+15;Vanish(52);end\r
+            else writeln('I don''t think the ',n[noun,1],\r
+                         ' would do much for your digestive system!');\r
+\r
+42         :case noun of\r
+            74:if not(en('p'))then\r
+                if not(en('i'))then\r
+                 begin RL(20);inven:=inven+[74];r[74]:=Null;Ev:=Ev+['p'];end\r
+                else RL(320)\r
+               else Say(74,'on');\r
+            89:if not(en('i'))then\r
+                if not(en('p'))then\r
+                 begin RL(319);vanish(89);inven:=inven+[89];Ev:=Ev+['i'];end\r
+                else RL(318)\r
+               else Say(89,'on your head')\r
+            else RL(128);\r
+            end;\r
+\r
+17,0       :if(noun2=Noun)then Crazy else\r
+            if(noun2 in Mov)or(Noun2=Null)then\r
+            case Noun of\r
+             2:begin RL(21);Vanish(2);Sc:=Sc+25;r[51]:=Prm;end;\r
+             60:begin RL(22);DEAD;end;\r
+             52:begin RL(34);Vanish(52);end;\r
+             23:if(noun2=null)then RL(369)\r
+                else begin Vanish(noun2);Attack:=False;\r
+                 writeln('The monster grabs the ',n[noun2,1],' and eats it!');\r
+                     end;\r
+             7:begin RL(35);Vanish(7);r[52]:=Prm;Ev:=Ev+['I'];end\r
+             else if(verb=0)then writeln('At the last moment you decide to',\r
+                 ' spare the ',n[noun,1],'''s life!')\r
+                  else RL(216);\r
+             end{of case}\r
+             else Crazy;\r
+\r
+39         :if((SepWord='to')or(SepWord='off'))and(Noun2=Null)then\r
+             case Noun of\r
+              29:if(SepWord='to')then begin Ev:=Ev+['a'];RL(120);end\r
+                 else begin Ev:=Ev-['a'];RL(121);end;\r
+              13:RL(148);\r
+              20:RL(149);\r
+              65:RL(150)\r
+             else Crazy end\r
+            else RL(80);\r
+\r
+  end {of case}\r
+end;  {of DefaultAnswers8}\r
+{-------------------}\r
+overlay procedure DefaultAnswers9;\r
+var o : integer;\r
+begin\r
+\r
+CASE VERB OF\r
+\r
+32    :if(34 in inven)then\r
+        if(shots>0)then\r
+         begin\r
+         Shots:=Shots-1;\r
+         for x:=1 to (26-(4*(6-Shots))) do\r
+            begin play(300,350,11-Shots*2);play(320,370,11-Shots*2);end;\r
+          if(noun=34)and(noun2<>34)and(noun2<>Null)and(SepWord='at')then\r
+             begin noun:=noun2; noun2:=34; SepWord:='with';end;\r
+          if((noun2=34)and(noun<>34)and(SepWord='with'))or\r
+            ((noun<>34)and(SepWord='s'))then\r
+      case noun of\r
+       1:begin;Crazy;Shots:=Shots+1;end;\r
+       2,7,8,13,27,29,32,40,51,52,63,74,77,89:begin vanish(noun);\r
+          writeln('The ',n[noun,1],' vanishes in an explosion of light!');\r
+            if(noun=74)and(en('p'))then begin RL(232);DEAD;end;\r
+         end;\r
+       48:begin RL(222);RL(223);Ev:=Ev+['g'];p[40]:=p[40]-[48];\r
+           if not(en('P'))then begin Ev:=Ev+['P'];Sc:=Sc+25;end;end;\r
+       12,26:RL(224);\r
+       23:begin case random(4)of 0:RL(375);1:RL(376);2:RL(377);3:RL(378)end;\r
+           Attack:=False;\r
+          end;\r
+       45:RL(315);\r
+       60,56,44:begin RL(233);DEAD;end\r
+       else writeln('A blinding ray strikes the ',n[noun,1],', but it is',\r
+                      ' only slightly blackened.');\r
+      end {of shoot case}\r
+          else if(noun=34)and(noun2=Null)then RL(213)\r
+          else begin;Crazy;Shots:=Shots+1;end;\r
+         end\r
+        else begin writeln('...click!');play(25,32,9);end\r
+       else RL(208);\r
+\r
+  end {of case}\r
+end;  {of DefaultAnswers9}\r
+{-------------------}\r
+overlay procedure DefaultAnswers10;\r
+var o : integer;\r
+begin\r
+\r
+CASE VERB OF\r
+\r
+36         :if(noun in mov)then\r
+             if(noun in inven)then\r
+              if((noun in[2,7,52,29])or\r
+                 (noun2 in[2,7,23,29,47,52,53,73,88]))and(noun<>noun2)then\r
+               begin\r
+                if(noun=2)or(noun2=2)then begin RL(95);vanish(2);\r
+                  r[51]:=Prm;end;\r
+                if(noun=7)or(noun2=7)then begin RL(35);vanish(7);\r
+                  Ev:=Ev+['I'];r[52]:=Prm;end;\r
+                if(noun=29)or(noun2=29)then begin RL(96);vanish(29);end;\r
+                if(noun=52)or(noun2=52)then begin RL(34);vanish(52);end;\r
+                if(noun2=88)then begin RL(293);vanish(noun);\r
+                  if(noun=2)then noun:=51;if(noun=7)then noun:=52;\r
+                  r[noun]:=random(4)+51;end;\r
+                if(Prm in[0..6,9,10,13,41..43])and(noun2 in[73,53,47])then\r
+                  begin RL(306);vanish(noun);end;\r
+                if(noun2=23)then begin Attack:=False;Vanish(noun);RL(379);\r
+                  writeln(n[noun,1],' out of mid-flight and eats it',\r
+                        ' in one giant gulp!')end;\r
+               end\r
+              else begin writeln('The ',n[noun,1],' collides with the ',\r
+                n[noun2,1],' but nothing interesting happens.');\r
+                Vanish(noun);r[noun]:=Prm;end\r
+             else writeln('First you must have the ',n[noun,1],'.')\r
+            else Crazy;\r
+\r
+37         :if(noun=57)then\r
+             if(sepword='to')then\r
+              if not(noun2 in[1,15,17,22,30,46,47,50,52,72,73,79,80,83])then\r
+               if(ropecon=Null)then begin\r
+                ropecon:=noun2;\r
+                writeln('The rope is firmly tied to the ',n[noun2,1],'.');\r
+                if(noun2=57)then RL(48);end\r
+               else writeln('It is already tied to the ',n[ropecon,1],'.')\r
+              else RL(50)\r
+             else Crazy\r
+            else Crazy;\r
+\r
+61         :begin RL(245);read(kbd,flag);\r
+             if(upcase(flag)<>'N')then\r
+              begin RL(380);delay(999);window(1,1,80,25);clrscr;close(rooms1);\r
+               close(rooms2);close(special1);close(special2);close(line1);\r
+               assign(rooms1,'BEYOND.com');execute(rooms1)end\r
+             else RL(264)\r
+            end;\r
+\r
+65        :RESTORE;\r
+\r
+  end {of case}\r
+end;  {of DefaultAnswers10}\r
+{===================}\r
+overlay procedure SpecialAnswers1;\r
+\r
+begin\r
+FlagSA:='r';\r
+if Present then\r
+CASE Prm OF\r
+\r
+3       :case verb of\r
+  44,58 :moveto(1);\r
+  20,52 :if(noun=6)then RL(40);\r
+    14  :if(noun=57)and not(en('o'))then RL(419);\r
+   6    :if(noun=57)and(here(40))and((noun2=Null)or(noun2=40))then\r
+             begin\r
+               RS(4); tic:=15; moveto(4); Ev:=Ev+['A']; Sc:=Sc+25;\r
+               if(en('o'))then\r
+                 for o:= 0 to 57 do begin\r
+                   if(o in kitset)then r[o]:=Prm;\r
+                   if(r[o]=3)then r[o]:=Prm;end\r
+             end;\r
+   26   :if(noun=39)then\r
+             if not(en('o'))then\r
+               begin Ev:=Ev+['o'];RL(328); for o:=2 to 57 do\r
+                 if(o in kitset)then r[o]:=Prm;end\r
+             else Say(noun,'opened');\r
+   3  :if(noun=39)then\r
+             if(en('o'))then\r
+               begin Ev:=Ev-['o'];RL(186); for o:=2 to 57 do\r
+                 if(o in kitset)then r[o]:=Null;end\r
+             else Say(noun,'shut');\r
+  17,28,27 :if(noun in [6,57,39,59])then RL(29);\r
+  24,11   :case noun of\r
+       39  :if(en('o'))then\r
+               if kitset=[] then begin RL(329);end\r
+               else begin RL(330);for o:= 0 to 57 do\r
+                   if(o in kitset)then writeln(' a ',n[o,1]);end\r
+             else RL(331);\r
+       57 :RL(10);\r
+       73 :RL(19);\r
+       6 :DescribeRm;\r
+           end;\r
+         end; {of 3}\r
+\r
+4      :case verb of\r
+   43..52,20:RL(7);\r
+    55  :if(noun=35)then begin RL(332);Ev:=Ev-['B'];end;\r
+  42,3:if noun=35 then begin RL(8); Ev:=Ev+['B'];end\r
+           else if(noun=39)then\r
+             if(en('o'))then\r
+               begin Ev:=Ev-['o'];RL(186); for o:=0 to 57 do\r
+                 if(o in kitset)then r[o]:=Null;end\r
+             else Say(noun,'shut');\r
+  29,37 :if(noun=35)and(noun2=60)then begin\r
+             RL(8);Ev:=Ev+['B'];end;\r
+   26   :if(noun=35)and(en('B'))then begin RL(332);Ev:=Ev-['B'];end\r
+           else if(noun=39)then\r
+             if not(en('o'))then\r
+               begin Ev:=Ev+['o'];RL(328); for o:=0 to 57 do\r
+                 if(o in kitset)then r[o]:=Prm;end\r
+             else Say(noun,'opened');\r
+   19,2:if(noun in[6,64])or(noun=Null)then\r
+             if(en('B'))then RL(9)\r
+             else begin RL(0);DEAD;end;\r
+    24,11:case noun of\r
+       39  :if(en('o'))then\r
+               if kitset=[] then begin RL(329);end\r
+               else begin RL(330);for o:= 0 to 57 do\r
+                   if(o in kitset)then writeln(' a ',n[o,1]);end\r
+             else RL(331);\r
+       35 :RL(12);\r
+       73 :RL(19);\r
+       6 :DescribeRm;\r
+           end;  {of case}\r
+         end; {of 4}\r
+\r
+end {of case}\r
+else SA\r
+end; {of SP1}\r
+{-------------------}\r
+overlay procedure SpecialAnswers2;\r
+\r
+begin\r
+FlagSA:='r';\r
+if Present then\r
+Case Prm of\r
+\r
+5       :case verb of\r
+   45   :moveto(6);\r
+   2    :if(noun=79)then RL(263);\r
+           end;\r
+\r
+6       :case verb of\r
+   46   :moveto(5);\r
+  43..52:if FlasOff then RL(14)\r
+         else case verb of\r
+           43:begin Ox:=0;RL(286);moveto(7);end;\r
+           45:moveto(9); 49:moveto(8);\r
+              end;\r
+             end; {of 6}\r
+\r
+7       :case verb of\r
+  23..25,11:if(noun in[6,36,73,0,15,64,67])then RS(9);\r
+  43..50 :if FlasOff then RL(14)\r
+          else\r
+           begin\r
+            If(Verb in[43,47,48])then Ox:=Ox+1;\r
+            If(Verb in[44,49,50])then Ox:=Ox-1;\r
+            if(Ox<1)then begin RL(286);moveto(6)end\r
+            else\r
+             begin\r
+              RL(333);\r
+              if(random(20)=2)then begin writeln;RS(9);\r
+               if not(en('K'))then begin Ev:=Ev+['K'];Sc:=Sc+15;end;end;\r
+             end;\r
+           end;\r
+  28,17,6:if(noun=36)or(noun=15)then begin RS(10);DEAD;end;\r
+  31   :if(input='help')then begin RL(334);moveto(6)end;\r
+         end;  {of 7}\r
+\r
+8       :case verb of\r
+   48,58:if FlasOff then RL(14) else moveto(6);\r
+  43..52:if FlasOff then RL(14);\r
+  11:if(noun in [46,79])then RS(12)\r
+         else if(noun in [15,30])then RL(28);\r
+   38 :if(noun=46)then begin SA;writeln('It feels jagged.');end;\r
+         end; {of 8}\r
+\r
+9         :case verb of\r
+   43..52 :if FlasOff then RL(14)\r
+         else case verb of\r
+           46:moveto(6);47:moveto(10);49:moveto(11);\r
+              end;\r
+           end; {of 9}\r
+\r
+10        :case verb of\r
+   50,58 :if FlasOff then RL(14)\r
+         else moveto(9);\r
+   43..52:if FlasOff then RL(14);\r
+  19,2:if(noun in[17,80])then begin RL(0);DEAD;end;\r
+           end; {of 10}\r
+\r
+end {of case}\r
+else SA\r
+end; {of SP2}\r
+{-------------------}\r
+overlay procedure SpecialAnswers3;\r
+\r
+begin\r
+FlagSA:='r';\r
+if Present then\r
+Case Prm of\r
+\r
+14       :case verb of\r
+   46,48 :if FlasOff then RL(14)\r
+          else if(verb=46)then moveto(11) else moveto(15);\r
+  43..52 :if FlasOff then RL(14);\r
+          end; {of 14}\r
+\r
+15     :case Verb of\r
+   52,2 :if(en('d'))and(en('t'))then\r
+           begin RL(63);moveto(16);end else RL(64);\r
+  19   :RL(64);\r
+  7    :RL(65);\r
+  14    :if(noun in[57,70])then begin inven:=inven+[noun];r[noun]:=Null;\r
+           if(noun=70)then Ev:=Ev-['d']\r
+           else Ev:=Ev-['t'];SA;writeln(n[noun,1],':  Taken.');end;\r
+  45,49  :if(flasoff)then RL(14) else moveto(14);\r
+   44    :RL(73);\r
+  24,11:if(noun=17)and not(en('u'))then RL(74)\r
+           else if(noun=17)and(en('a'))then RL(75);\r
+  17,36,29,9:case noun of\r
+   70:if((noun2 in[30,42])or(noun2=Null))and(verb<>9)then\r
+         if not(en('d'))then\r
+          begin RL(69);Ev:=Ev+['d'];r[70]:=Prm;inven:=inven-[70];end\r
+         else RL(67)\r
+        else if(verb=9)then begin end else RL(66);\r
+   57:if(noun2=17)and(verb<>17)then begin\r
+          if(here(ropecon))and(ropecon<>57)then begin\r
+            RL(71);inven:=inven-[57];r[57]:=Prm;\r
+            if(ropecon=70)then Ev:=Ev+['t'];end\r
+          else begin RL(70);vanish(57); end;\r
+         end else begin end\r
+   else if(verb in[9,29,36])and(noun2=17)and(noun in mov)then\r
+         if(here(ropecon))and(noun=ropecon)then begin RL(76);\r
+          inven:=inven-[noun];r[noun]:=Null;\r
+          if(ropecon=29)then Ev:=Ev+['u'];end\r
+         else begin RL(72);inven:=inven-[noun];r[noun]:=17;end\r
+      end;{of noun case}\r
+         end;{of 15}\r
+\r
+16       :case verb of\r
+   51,2   :moveto(15);\r
+   52    :RL(85);\r
+  0,3..18,20..21,26..40,42,53,55,56,60:RL(86);\r
+   19,61:begin RS(18);Ev:=Ev-['a'];Ev:=Ev+['r'];Sc:=Sc+60;\r
+          moveto(17);dropall;if(here(2))then begin r[2]:=Null;\r
+          r[51]:=Prm;end;r[57]:=Null;end;\r
+         end;{of 57}\r
+\r
+end  {of Case}\r
+else SA\r
+end; {of SP3}\r
+{-------------------}\r
+overlay procedure SpecialAnswers4;\r
+\r
+begin\r
+FlagSA:='r';\r
+if Present then\r
+Case Prm of\r
+\r
+19      :case verb of\r
+   48,51,58:if(flasoff)then RL(14)else begin RL(311);moveto(18);end;\r
+   47,52,57:if(flasoff)then RL(14)else begin RL(309);moveto(20);end;\r
+         end;{of stairs}\r
+\r
+20      :case verb of\r
+   50,51,58:if(flasoff)then RL(14)else begin RL(310);moveto(19);end;\r
+   11,24,25,23:if(noun=67)then RL(90)\r
+     else if(noun in[12,43])and not(en('E'))then begin RL(92);\r
+            r[32]:=20;Sc:=Sc+15;Ev:=Ev+['E'];end;\r
+  14,38:if(noun in[67,12])then RL(91);\r
+  43..49,57:if(noun=Null)or(noun in[12,43])then RL(215);\r
+        end;{of 20}\r
+\r
+21       :case verb of\r
+    50   :if(flasoff)then RL(14)else moveto(18);\r
+    47   :if(flasoff)then RL(14)else moveto(22);\r
+   2,51:if(flasoff)then RL(14)else\r
+            if(noun=64)or(noun=Null)then moveto(23);\r
+    45   :RL(97);\r
+    49,44,43:RL(258);\r
+  11     :if(noun in[30,64])then begin RL(255);RL(256);RL(257)end;\r
+        end;\r
+\r
+22       :case verb of\r
+    50   :if(flasoff)then RL(14)else moveto(21);\r
+    2,51 :if(flasoff)then RL(14)else\r
+            if(noun=64)or(noun=Null)then moveto(23);\r
+    44   :RL(97);\r
+    47,45,49:RL(258);\r
+    11     :if(noun in[30,64])then begin RL(255);RL(256);RL(257)end;\r
+        end; {of 22}\r
+\r
+23      :case verb of\r
+   46,50 :if(flasoff)then RL(14)else moveto(21);\r
+   43,48 :if(flasoff)then RL(14)else moveto(22);\r
+   44..49:RL(258);\r
+   26,27 :if(noun=26)then\r
+           if(en('l'))then Say(26,'open')\r
+           else begin RL(98);Ev:=Ev+['l'];p[23]:=p[23]+[69];end;\r
+    3    :if(noun=26)then\r
+           if(en('l'))then begin RL(171);Ev:=Ev-['l'];p[23]:=p[23]-[69];end\r
+           else Say(26,'closed');\r
+  2,52,57:if(en('l'))and((noun=69)or(noun=Null))then moveto(24)else RL(99);\r
+  24,25  :if(noun=26)then RL(151);\r
+   11    :if(noun=26)then if(en('l'))then RL(217)else RL(218)\r
+          else if(noun in[30,64])then begin RL(255);RL(256);RL(257)end;\r
+        end; {of 23}\r
+\r
+24      :case verb of\r
+   51,58:if(en('l'))then moveto(23) else RL(99);\r
+   52,57:moveto(25);\r
+  24,25 :if(noun=26)then RL(151);\r
+   3    :if(noun=26)then begin RL(171);Ev:=Ev-['l'];end else\r
+         if(noun=55)then RL(411);\r
+   2    :if(noun=69)then Moveto(25);\r
+   26   :if(noun=26)then begin RL(98);Ev:=Ev+['l'];end else\r
+         if(noun=55)then RL(412);\r
+   11   :if(noun=26)then if(en('l'))then RL(217)else RL(218)else\r
+         if(noun=55)then RL(410);\r
+   27,28:If(noun=55)then RL(411);\r
+       end;\r
+\r
+end   {of case}\r
+else SA\r
+end;  {of SP4}\r
+{-------------------}\r
+overlay procedure SpecialAnswers5;\r
+\r
+begin\r
+FlagSA:='r';\r
+if Present then\r
+Case Prm of\r
+\r
+25     :case verb of\r
+     43:begin writeln('The door slides open...');play(55,70,40);moveto(27);\r
+         writeln('The door slides shut behind you.');play(70,55,40);\r
+         if not(en('Y'))then begin Ev:=Ev+['Y'];Sc:=Sc+30 end end;\r
+     44:moveto(32); 45:moveto(30);\r
+     46:moveto(34); 47:moveto(28); 49:moveto(31);\r
+     48:if(en('v')and not(en('p')))then begin Verbose:=False;moveto(35);\r
+          RS(25);DEAD; end else moveto(35);\r
+     50:moveto(33); 51,58:moveto(24);\r
+     52,2:if(noun=69)or(noun=Null)then moveto(26);\r
+     17,27,28,38:if(noun=26)then\r
+          begin RL(413);play(55,70,45);play(69,54,45)end;\r
+   26,40:if(noun=26)then RL(414);\r
+        end;\r
+\r
+27      :case verb of\r
+   44,58:begin writeln('The door slides open...');play(55,70,40);moveto(25);\r
+          writeln('The door slides shut behind you.');delay(999);play(70,55,40)\r
+         end;\r
+     17,27,28,38:if(noun=26)then\r
+          begin RL(413);play(30,40,25);play(40,30,25)end;\r
+   26,40:if(noun=26)then RL(414);\r
+   11  :if(noun in[20,21])then RL(103)\r
+      else if(noun=58)then case compcon of\r
+        Null:RL(155); 1:RS(21); 2:RS(22); 3:RS(23);\r
+        4:begin RS(24);compcon:=Null;gotoxy(1,wherey-1);\r
+           writeln('. tim. chamb.r c.de: ',Code,'.. ..tel.port...  .  .',\r
+                   '... . .. ime .  p.n.l ....... ...');\r
+           RL(105);play(29,29,40);end;end;{of case}\r
+   53  :begin\r
+         if(input='1')or(input='one')then begin RL(104);compcon:=1;end;\r
+         if(input='2')or(input='two')then begin RL(104);compcon:=2;end;\r
+         if(input='3')or(input='three')then begin RL(104);compcon:=3;end;\r
+         if(input='4')or(input='four')then begin RL(104);compcon:=4;end;\r
+         for y:=1 to random(40)+9 do\r
+          begin x:=random(6000)+99;play(x,x,50);delay(9)end\r
+       end;\r
+   31   :if(compcon=null)then begin\r
+          play(9,999,0);sound(999);RS(20);play(999,9,0);if not(en('J'))then\r
+          begin Ev:=Ev+['J'];Sc:=Sc+40;end;end;\r
+       end;\r
+\r
+28     :case verb of\r
+   50,58:moveto(25);\r
+   45,57:moveto(29);\r
+   28   :if(noun in[33,10])then begin RL(137);play(31,31,450);end;\r
+       end;\r
+\r
+29    :case verb of\r
+   46,58:moveto(28);\r
+   36   :if(noun2 in[33,10])and(noun in Mov)then\r
+           if(en('M'))then\r
+             begin RS(27);Ev:=Ev-['M','r'];Vanish(noun);r[noun]:=28;\r
+               if not(en('N'))then begin Ev:=Ev+['N'];Sc:=Sc+55;end;\r
+             play(28,34,600)end\r
+           else begin Vanish(noun);r[noun]:=28;RL(179);\r
+             if(noun in[7,8,29,34,40,51])then Ev:=Ev+['M'];end;\r
+       end;\r
+\r
+33     :case verb of\r
+   47,58:moveto(25);\r
+    34  :RL(272);\r
+   28,38:if(noun=10)then begin RL(421);x:=random(9999);case random(3) of\r
+          0:play(x,random(9999),random(3));\r
+          1:for y:=1 to random(300)+60 do\r
+             begin x:=random(9999);play(x,x,2);delay(7)end;\r
+          2:begin y:=9999;o:=0;\r
+             repeat x:=random(9999);play(x,y,0);\r
+                    y:=random(9999);play(y,x,0);o:=o+1;\r
+             until o>7 end end end\r
+       end;\r
+\r
+end {of case}\r
+else SA\r
+end; {of SP5}\r
+{-------------------}\r
+overlay procedure SpecialAnswers6;\r
+\r
+begin\r
+FlagSA:='r';\r
+if Present then\r
+Case Prm of\r
+\r
+30   :case verb of\r
+   46,58:if(en('e'))then RL(212) else moveto(25);\r
+   26,27,28,40:if(noun=49)then if(en('h'))then Say(49,'open') else RL(159)\r
+               else\r
+                if(noun in[10,76])and(verb=28)then\r
+                 begin\r
+                 if(MnRm=30)then begin RS(76);DEAD;end;\r
+                  if(en('e'))then\r
+                   begin RS(29);writeln;\r
+                    play(1,700,7);play(701,8000,1);Ev:=Ev-['e'];\r
+       case YearDial of\r
+              1933:begin Loc:='Civilization!';Sc:=Sc+80;RS(78);HOME;END;\r
+        2111..2679:begin\r
+                     Verbose:=False;moveto(41);RS(30);Verbose:=True;\r
+                     if not(en('O'))then begin Sc:=Sc+55;Ev:=Ev+['O'];end;\r
+               n[78,5]:=Q;n[37,5]:='glass';n[72,1]:='fence';\r
+               n[70,1]:='hooded figure';n[70,2]:='hooded';n[70,3]:='figure';\r
+               n[70,4]:='mutant';n[70,5]:=Q;n[3,1]:='footprints';\r
+               n[3,2]:='footpri';n[57,1]:='parachute';n[57,2]:='parachu';\r
+               n[35,1]:='boulder';n[35,2]:='rock';n[35,3]:='rocks';\r
+               n[66,4]:='red';\r
+                   end;\r
+        0..1111   :begin writeln;RS(31);DEAD;end;\r
+        1112..2110:begin writeln;RS(32);DEAD;end;\r
+        2680..3789:begin writeln;RS(33);DEAD;end\r
+             else  begin writeln;RS(34);DEAD;end;\r
+       end; {of YearDial case}\r
+                   end\r
+                  else begin RL(209);play(1,9999,0)end;\r
+                 end;\r
+   33   :if(noun in[16,59])or(noun=Null)then begin Ev:=Ev+['e'];RL(210);end;\r
+   35   :if(en('e'))then begin Ev:=Ev-['e'];RL(211);Attack:=False end;\r
+   17,0,6:if(noun=49)then RL(160);\r
+   53  :if(input=Code)then\r
+         If(en('h'))then Say(49,'open')\r
+         else\r
+          begin Ev:=Ev+['h'];RL(173);play(23,24,250);Sc:=Sc+30;\r
+            if(PanelCon<>Null)then begin r[PanelCon]:=30;Code:='R';\r
+             writeln('Sitting inside the panel compartment is a ',\r
+                      n[PanelCon,1],'.');end\r
+            else RL(183);\r
+          end\r
+        else RL(172);\r
+   3   :If(noun=49)then RL(159);\r
+   39  :if(noun=25)then RL(115) else\r
+        case noun of\r
+        24:if(DialNum>0)and(DialNum<377)then begin RL(176);DayDial:=DialNum;end\r
+           else RL(178);\r
+        82:if(DialNum>-1)and(DialNum<5000)then begin RL(177);\r
+             YearDial:=DialNum;end else RL(178);\r
+        end;\r
+ 11,24:case noun of\r
+   49:begin SA;if(en('h'))then if(PanelCon=Null)then RL(183)\r
+                 else writeln('Inside the compartment is a ',n[PanelCon,1],'.')\r
+               else RL(184);end;\r
+   82:begin SA;writeln('The year dial is set to ',YearDial,'.');end;\r
+   24:begin SA;writeln('The day dial is set to ',DayDial,'.');end;\r
+   16:begin RL(203);RL(204)end;\r
+   25:RL(115);\r
+   38:RL(161);\r
+      end;\r
+       end; {of 30}\r
+\r
+end  {of case}\r
+else SA\r
+end; {of SP6}\r
+{-------------------}\r
+overlay procedure SpecialAnswers7;\r
+\r
+begin\r
+FlagSA:='r';\r
+if Present then\r
+Case Prm of\r
+\r
+26     :case verb of\r
+  51,58,2:if(noun=69)or(noun=Null)then moveto(25);\r
+  43,48 :moveto(36); 44,49 :moveto(38); 45,47 :moveto(39); 46,50 :moveto(37);\r
+        end;\r
+\r
+35      :case verb of\r
+   49,58:moveto(25);\r
+  11:case noun of\r
+    54:RL(100);\r
+    62:if(en('v'))then RL(205)else RL(206);\r
+    end;\r
+  28  :if(noun in[55,10])then\r
+        if(en('v'))then begin RL(101);Ev:=Ev-['v'];play(40,65,80)end\r
+        else\r
+         begin RL(102); Ev:=Ev+['v'];play(65,40,80);\r
+          if not(en('p'))then begin RS(28);DEAD;end\r
+          else if(MnRm=35)then\r
+           begin n[23,1]:='melted monster';n[23,4]:='melted';MnRm:=Null;\r
+            RS(74);p[35]:=p[35]+[77];\r
+            if not(en('W'))then begin Sc:=Sc+65;Ev:=Ev+['W'] end\r
+           end\r
+         end;\r
+  14  :if(noun in[1,77])and(77 in p[35])then begin Sc:=Sc+10;noun:=77;end;\r
+  55  :if(noun=74)then\r
+        if(en('v'))then begin RS(26);DEAD end;\r
+  38 :RL(30);\r
+       end;\r
+\r
+36     :case verb of\r
+  44,49,58:moveto(26);\r
+    45  :moveto(39);\r
+    46  :moveto(37);\r
+    57  :if(noun=12)then RL(215);\r
+        end;\r
+\r
+37     :case verb of\r
+  45,47,58:moveto(26);\r
+    43  :moveto(36);\r
+    44  :moveto(38);\r
+    57  :if(noun=12)then RL(215);\r
+        end;\r
+\r
+38     :case verb of\r
+  43,48,58:moveto(26);\r
+    45  :moveto(39);\r
+    46  :moveto(37);\r
+    57  :if(noun=12)then RL(215);\r
+   0..99:if(noun=28)or(noun2=28)then\r
+          begin RS(35);RL(220);p[40]:=p[40]+[48];moveto(40);Ev:=Ev-['g'];\r
+           if(MnRm=Prm)then begin RS(79);DEAD end\r
+          end;\r
+        end;{of 38}\r
+\r
+39     :case verb of\r
+  46,50,58:moveto(26);\r
+    45  :if(en('g'))then moveto(40);\r
+    3   :if(noun=26)then if(en('g'))then RL(225) else Say(26,'shut');\r
+    43  :moveto(36);\r
+    44  :moveto(38);\r
+    57  :if(noun=12)then RL(215);\r
+        end;\r
+\r
+40     :case verb of\r
+  46,58 :if(en('g'))then moveto(39) else RL(221);\r
+   26   :if(noun=26)then if(en('g'))then Say(26,'open') else RL(221);\r
+   3    :if(noun=26)then if(en('g'))then RL(225) else Say(26,'shut');\r
+  11,14 :if(noun in[12,43,83])then RL(261);\r
+       end;\r
+\r
+end  {of case}\r
+else SA\r
+end; {of SP7}\r
+{-------------------}\r
+overlay procedure SpecialAnswers8;\r
+\r
+begin\r
+FlagSA:='r';\r
+if Present then\r
+Case Prm of\r
+\r
+41     :case verb of\r
+    43  :moveto(42);\r
+    44  :moveto(43);\r
+  2,19  :if(noun in[53,73,87])then\r
+           begin RS(39);RL(287);moveto(46);Rx:=4;end;\r
+       end;\r
+\r
+42     :case verb of\r
+    44  :moveto(41);\r
+    43  :RL(296);\r
+    14  :if(noun in[13,1])and(13 in p[42])then\r
+          begin Sc:=Sc+10;noun:=13;end;\r
+  2,19  :if(noun in[53,73,87])then\r
+           begin RS(39);RL(287);moveto(46);Rx:=4;end;\r
+       end;\r
+\r
+43     :case verb of\r
+    43  :moveto(41);\r
+    44  :moveto(44);\r
+  2,19  :if(noun in[53,73,87])then\r
+           begin RS(39);RL(287);moveto(46);Rx:=4;end;\r
+        end;\r
+\r
+44     :case verb of\r
+    43  :moveto(43);\r
+    46  :moveto(47);\r
+    45  :begin RL(274);Rx:=0;moveto(46);end;\r
+  43..51,2,19:if(noun=Null)or(noun in[41,79])then RL(275);\r
+       end;\r
+\r
+45     :case verb of\r
+    44  :moveto(49);\r
+    46  :begin RL(274);Rx:=8;moveto(46);end;\r
+    45  :begin Rx:=9;RL(274);moveto(46);end;\r
+  43..51,2,19:if(noun=Null)or(noun in[41,79])then RL(275);\r
+        end;\r
+\r
+46     :case verb of\r
+    45  :begin Rx:=Rx+1;RL(274);\r
+          if(Rx=9)then begin\r
+          if not(en('T'))then begin Ev:=Ev+['T'];Sc:=Sc+30;end;\r
+          moveto(45)end;\r
+          if(Rx>86)then begin RL(340);moveto(47)end\r
+         end;\r
+    46  :begin Rx:=Rx-1;RL(274);\r
+          if(Rx=8)then moveto(45);\r
+          if(Rx<1)then moveto(44);\r
+         end;\r
+  43..51,2,19:if(noun=Null)or(noun in[41,79])then RL(275);\r
+        end;\r
+\r
+47     :case verb of\r
+  46,52,2,19:begin if(random(2)=1)then begin RS(37);DropAll;moveto(48)end\r
+                   else begin RL(277);moveto(48)end;end;\r
+    45  :moveto(44);\r
+  43..50:RL(278);\r
+        end;\r
+\r
+48     :case verb of\r
+  45,51,2:if(random(3)=2)and(noun<>35)then begin RS(38);moveto(47)end\r
+          else if(noun<>35)then RL(279);\r
+   43..50:RL(279);\r
+     14  :if(noun in[27,1])and(27 in p[48])then\r
+           begin Sc:=Sc+20;noun:=27;end;\r
+     11 :if(noun=35)then RL(289)\r
+        end;\r
+\r
+end  {of case}\r
+else SA\r
+end; {of SP8}\r
+{-------------------}\r
+overlay procedure SpecialAnswers9;\r
+\r
+begin\r
+FlagSA:='r';\r
+if Present then\r
+Case Prm of\r
+\r
+50     :case verb of\r
+  43,58 :begin RL(290);moveto(49);end;\r
+  44,57 :if(noun=Null)or(noun in[88,26,50])then\r
+          begin RS(41);if not(en('L'))then\r
+           begin Ev:=Ev+['L'];Sc:=Sc+25;end;moveto(51);end;\r
+    11  :case noun of\r
+          35,50:RL(292);\r
+          88,68:RS(42);\r
+          46,66:RS(43);\r
+         end;\r
+  30,28,38,17,14:if(noun=88)then RL(294);\r
+        end;\r
+\r
+51     :case verb of\r
+    44  :moveto(52);\r
+    46  :moveto(52);\r
+    48  :moveto(53);\r
+        end;\r
+\r
+52     :case verb of\r
+    43  :moveto(51);\r
+    47  :moveto(53);\r
+    46  :moveto(51);\r
+        end;\r
+\r
+53     :case verb of\r
+   52,2,57:if(noun=Null)or(noun=69)then begin if not(en('Q'))then\r
+            begin Ev:=Ev+['Q'];Sc:=Sc+30;end;moveto(55);end;\r
+    47  :moveto(52);\r
+    45  :moveto(53);\r
+    49  :moveto(54);\r
+        end;\r
+\r
+54     :case verb of\r
+    43  :moveto(52);\r
+    49  :moveto(53);\r
+    44  :moveto(51);\r
+    50  :begin if not(en('R'))then\r
+          begin Ev:=Ev+['R'];Sc:=Sc+20;end;moveto(56);end;\r
+        end; {verb case}\r
+\r
+55     :case verb of\r
+  51,2,58,44:if(noun=Null)or(noun=69)then moveto(53);\r
+   11   :if(noun in[11,45])then\r
+          begin RL(297);if(en('k'))then RL(298) else RL(299)end;\r
+   26,40:if(noun in[45,26,11,68])and(noun2=27)and(SepWord='with')then\r
+           if not(en('k'))then\r
+            begin Ev:=Ev+['k'];RS(45);for o:=2 to NMax do\r
+             if(o in cabiset)then r[o]:=55;\r
+             if not(en('R'))then begin Ev:=Ev+['R'];Sc:=Sc+55;end;\r
+            end\r
+           else Say(11,'open')\r
+          else if(SepWord='s')then RL(317);\r
+   29   :if(noun=27)and(noun2 in[45,26,11,68])and(SepWord='in')then\r
+          if not(en('k'))then\r
+           begin Ev:=Ev+['k'];RS(45);for o:=2 to NMax do\r
+            if(o in cabiset)then r[o]:=55;\r
+            if not(en('R'))then begin Ev:=Ev+['R'];Sc:=Sc+55;end;\r
+           end\r
+          else RL(216);\r
+   3    :if(noun in[45,26,11])then\r
+          if(en('k'))then\r
+           begin RL(314);play(30,32,30);Ev:=Ev-['k'];\r
+            for o:= 2 to NMax do if(o in cabiset)then r[o]:=Null;\r
+           end\r
+          else Say(11,'shut & locked');\r
+  24,30 :if(noun in[26,11])then\r
+          if(en('k'))then\r
+           begin RL(324);\r
+            if(cabiset=[])then RL(339)else\r
+             for o:=0 to NMax do if(o in Cabiset)then writeln('a ',n[o,1])\r
+           end\r
+          else RL(299);\r
+       end; {of 55}\r
+\r
+\r
+end  {of case}\r
+else SA\r
+end; {of SP9}\r
+{-------------------}\r
+overlay procedure SpecialAnswers10;\r
+\r
+begin\r
+FlagSA:='r';\r
+if Present then\r
+Case Prm of\r
+\r
+56     :case verb of\r
+    47  :moveto(54);\r
+  2,51,58:if(noun=Null)or(noun=69)then moveto(57);\r
+        end;\r
+\r
+57     :case verb of\r
+   46,57,2,33:if(noun=Null)or(noun=65)then\r
+          begin n[68,1]:='keyhole';n[68,4]:='slot';moveto(58)end;\r
+   52   :moveto(56);\r
+        end;\r
+\r
+58     :case verb of\r
+   45,58:moveto(57);\r
+   43..51,20:if(en('i'))and(en('j'))and KeyHole then\r
+         begin sound(38);RS(61);ShRm:=2;moveto(59);sound(20);\r
+         for o:=0 to NMax do if(r[o]=58)then r[o]:=59;\r
+         if not(en('S'))then begin Ev:=Ev+['S'];Sc:=Sc+60 end end else RL(325);\r
+   28   :if(noun=10)then noun:=81;\r
+   11   :if(noun=68)then if KeyHole then RL(336)else RL(404);\r
+        end;\r
+\r
+65     :case verb of\r
+   43,47:moveto(66);\r
+   44,49:moveto(68);\r
+   45,57:begin if not(en('w'))then begin Ev:=Ev+['w'];RL(346);end\r
+               else begin RL(347);DEAD end end;\r
+   46..50:moveto(63);\r
+    58  :if(noun=Null)or(noun=65)then begin RL(342);DEAD;end;\r
+    51  :begin sound(38);RL(344);delay(999);sound(20)end;\r
+    52  :begin sound(30);RL(345);ShRm:=13;moveto(59);sound(20)end;\r
+    14  :if(noun=63)then begin RS(65);DEAD;end;\r
+    28  :if(noun=10)then noun:=81;\r
+        end;\r
+\r
+66     :case verb of\r
+    43  :RL(343);\r
+  46,50 :moveto(65);\r
+  45,49 :moveto(67);\r
+    47  :moveto(64);\r
+    48  :moveto(63);\r
+  57,44 :begin sound(25);if not(en('V'))then begin Ev:=Ev+['V'];Sc:=Sc+30;end;\r
+          RS(67);writeln;moveto(69);nosound;\r
+         end;\r
+    58  :if(noun=Null)or(noun=65)then begin RL(342);DEAD;end;\r
+    51  :begin sound(38);RL(344);delay(999);sound(20)end;\r
+    52  :begin sound(30);RL(345);ShRm:=13;moveto(59);sound(20)end;\r
+    14  :if(noun=63)then begin RS(65);DEAD;end;\r
+    28  :if(noun=10)then noun:=81;\r
+        end; {of 66}\r
+\r
+67     :case verb of\r
+    46  :begin RL(347);DEAD;end;\r
+  43,48 :moveto(66);\r
+  44,50 :moveto(68);\r
+  45..49:moveto(64);\r
+    58  :if(noun=Null)or(noun=65)then begin RL(342);DEAD;end;\r
+    51  :begin sound(38);RL(344);delay(999);sound(20)end;\r
+    52  :begin sound(30);RL(345);ShRm:=13;moveto(59);sound(20)end;\r
+    14  :if(noun=63)then begin RS(65);DEAD;end;\r
+    28  :if(noun=10)then noun:=81;\r
+        end; {of 67}\r
+\r
+end  {of case}\r
+else SA\r
+end; {of SP10}\r
+{-------------------}\r
+overlay procedure SpecialAnswers11;\r
+\r
+begin\r
+FlagSA:='r';\r
+if Present then\r
+Case Prm of\r
+\r
+63     :case verb of\r
+   45   :moveto(65);\r
+   47   :moveto(66);\r
+   49   :moveto(68);\r
+  43..50:RL(343);\r
+    58  :if(noun=Null)or(noun=65)then begin RL(342);DEAD;end;\r
+    51  :begin sound(38);RL(344);delay(999);sound(20)end;\r
+    52  :begin sound(30);RL(345);ShRm:=13;moveto(59);sound(20)end;\r
+    14  :if(noun=63)then begin RS(65);DEAD;end;\r
+    28  :if(noun=10)then noun:=81;\r
+        end;\r
+\r
+64     :case verb of\r
+   46   :moveto(67);\r
+   48   :moveto(66);\r
+   50   :moveto(68);\r
+  43..50:RL(343);\r
+    58  :if(noun=Null)or(noun=65)then begin RL(342);DEAD;end;\r
+    51  :begin sound(38);RL(344);delay(999);sound(20)end;\r
+    52  :begin sound(30);RL(345);ShRm:=13;moveto(59);sound(20)end;\r
+    14  :if(noun=63)then begin RS(65);DEAD;end;\r
+    28  :if(noun=10)then noun:=81;\r
+        end;\r
+\r
+68     :case verb of\r
+    43  :begin RL(347);DEAD;end;\r
+    44  :RL(343);\r
+    50  :moveto(63);\r
+    49  :moveto(64);\r
+  46,48 :moveto(65);\r
+  45,47 :moveto(67);\r
+    58  :if(noun=Null)or(noun=65)then begin RL(342);DEAD;end;\r
+    51  :begin sound(38);RL(344);delay(999);sound(20)end;\r
+    52  :begin sound(30);RL(345);ShRm:=13;moveto(59);sound(20)end;\r
+    14  :if(noun=63)then begin RS(65);DEAD;end;\r
+    28  :if(noun=10)then noun:=81;\r
+        end;\r
+\r
+69     :case verb of\r
+  28,27 :if(noun in[10,21,81,36])then RL(351);\r
+   11   :if(noun in[10,21,81,36,20,25])then RL(352)else\r
+         if(noun=65)then RL(353);\r
+  43,58 :moveto(70);\r
+        end;\r
+\r
+70     :case verb of\r
+  44,57,2,33:if(noun=Null)or(noun=65)then moveto(69)else\r
+         if(noun in[69,50])then moveto(71);\r
+  43,47,48:RL(354);\r
+  49,52 :moveto(71);\r
+    11  :if(noun=65)then RL(353)\r
+         else if(noun=68)then if KeyHole then RL(336)else RL(404);\r
+       end;\r
+\r
+71     :case verb of\r
+  48,51,58:moveto(70);\r
+    45  :moveto(72);\r
+    11  :if(noun=58)then RL(386)else\r
+         if(noun=25)then RL(418);\r
+   28,27:if(noun in[10,36])then begin RL(387);\r
+          for o:=1 to random(12)+4 do play(random(250),random(250),random(30))\r
+         end;\r
+    39  :if(noun=25)then begin RL(387);\r
+          for o:=1 to random(99)+75 do\r
+           begin x:=random(9999);play(x,x,random(19)+10);delay(5)end\r
+         end\r
+        end;{ of 71}\r
+\r
+end  {of case}\r
+else SA\r
+end; {of SP11}\r
+{-------------------}\r
+overlay procedure SpecialAnswers12;\r
+\r
+begin\r
+FlagSA:='r';\r
+if Present then\r
+Case Prm of\r
+\r
+11      :case verb of\r
+   5,45,47,48,50:if FlasOff then RL(14)\r
+          else case verb of\r
+          48:moveto(9);47:moveto(13);\r
+          5:if(29 in inven)or(40 in inven)or(2 in inven)then\r
+                    RL(58)\r
+                  else begin RL(18); moveto(12);end;\r
+          50:RL(17);\r
+          45:if(en('C'))then moveto(14) else RL(144);\r
+            end;\r
+   31   :if(input='nepo egassap')and not(en('C'))then\r
+             begin Ev:=Ev+['C']; RS(11);Sc:=Sc+35;end;\r
+  11 :if(noun in [79,72])then if(en('C'))then RL(270)else RS(13);\r
+  27,28:if(noun in [79,72])then RL(26);\r
+  17,0,6:if(noun in [79,72])then RL(27);\r
+  38  :if(noun in [79,72])then RL(30);\r
+          end; {of 11}\r
+\r
+12     :case verb of\r
+  4,47 :if FlasOff then RL(14)\r
+           else case verb of\r
+             4:begin RL(18); moveto(11);end;\r
+               47   :RL(17);\r
+                end;\r
+  43..52  :if FlasOff then RL(14);\r
+   14  :if(noun in[70,1])and not(en('G'))then\r
+         begin noun:=70;Ev:=Ev+['G'];Sc:=Sc+40;end;\r
+   7   :if not(en('G'))then begin Ev:=Ev+['G'];RL(157);\r
+          FlagSA:='r';verb:=14;noun:=70;Sc:=Sc+40;end;\r
+          end; {of 12}\r
+\r
+13      :case verb of\r
+   50    :if flasoff then RL(14)\r
+            else begin moveto(11); Ev:=Ev-['q'];end;\r
+   43    :if(en('q'))then begin RL(24); DEAD;end\r
+            else begin RL(23); Ev:=Ev+['q'];end;\r
+   52,19,33:RL(42);\r
+  14    :if(noun=47)then RL(25);\r
+  9   :begin RL(68);vanish(noun);end;\r
+          end;{of 13}\r
+\r
+17       :case verb of\r
+   51,19,2:RL(15);\r
+   45    :if(flasoff)then RL(14)else moveto(18);\r
+          end;\r
+\r
+18      :case verb of\r
+   46    :if(flasoff)then RL(14)else moveto(17);\r
+  49,52  :if(flasoff)then RL(14)else begin RL(308);moveto(19);end;\r
+   47    :if(flasoff)then RL(14)else\r
+           if not(en('F'))then begin RS(19);writeln;moveto(21);\r
+            Ev:=Ev+['F'];Sc:=Sc+10;end\r
+           else moveto(21);\r
+  11     :if(noun in[79,50])then RL(254);\r
+         end;{of 18}\r
+\r
+end  {of case}\r
+else SA\r
+end; {of SP12}\r
+{-------------------}\r
+overlay procedure SpecialAnswers13;\r
+\r
+begin\r
+FlagSA:='r';\r
+if Present then\r
+Case Prm of\r
+\r
+2         :case verb of\r
+   46     :moveto(1);\r
+   45, 44 :RL(1);\r
+   19,2   :if(noun in[53,6,64,73])then begin RL(0);DEAD;end;\r
+  14,27 :if noun=14 then RL(2)else\r
+         if(noun in[1,40])and(40 in p[2])then\r
+            begin noun:=40;Sc:=Sc+10;Verb:=14;RL(417);FlagSA:='r' end;\r
+   11   :if(noun in[66,46])then RL(11);\r
+   26   :if noun=14then RL(13);\r
+         end;\r
+\r
+31     :case verb of\r
+   48,58:moveto(25);\r
+   14   :if not(en('I'))and(noun in[7,1])then\r
+           begin Ev:=Ev+['I'];noun:=7;Sc:=Sc+5 end;\r
+ 23,24,11:if(noun=84)then RL(152)else\r
+          if(noun=22)then RL(415);\r
+       end;\r
+\r
+32     :case verb of\r
+   43,58:moveto(25);\r
+ 11,23  :case Noun of\r
+          61:if(en('H'))then RL(153) else begin Ev:=Ev+['H'];r[34]:=32;\r
+               RL(154);Sc:=Sc+15;end;\r
+         end;{of Noun case}\r
+       end;\r
+\r
+34    :case verb of\r
+   45,58:moveto(25);\r
+   14   :if(noun=74)and(74 in P[34])then begin P[34]:=P[34]-[74];\r
+           inven:=inven+[74];RL(138);Sc:=Sc+25;end;\r
+   42   :if(noun=74)and(74 in P[34])then RL(175);\r
+   28,27:if(noun in[10,36])then begin RL(387);\r
+          for o:=1 to random(12)+4 do play(random(250),random(250),random(30))\r
+         end;\r
+   39   :if(noun=25)then begin RL(387);\r
+          for o:=1 to random(99)+75 do\r
+           begin x:=random(9999);play(x,x,random(19)+10);delay(5)end\r
+         end;\r
+   11   :case noun of\r
+          0:RL(139);\r
+          25:RL(418);\r
+          21:begin;RL(140);RL(141);end;\r
+          68:if(SlotCon=Null)then RL(143) else\r
+              begin SA;writeln('The slot contains a ',n[SlotCon,1],'.')end;\r
+          58:if(SlotCon=77)and not(en('x'))then\r
+              begin Ev:=Ev+['x'];Sc:=Sc+5;RS(75)end\r
+             else if(SlotCon=77)then RS(77)else RL(385)\r
+         end\r
+       end;\r
+\r
+0         :case verb of\r
+   45     :MoveTo(1);\r
+   44     :begin TextColor(m8);writeln('Casino Hall');TextColor(m2);RS(0)end;\r
+  19,2    :if(noun in[53,6,64,73])then begin RL(0);DEAD;end;\r
+  11    :if(noun=73)then RL(19);\r
+         end;\r
+\r
+1        :case verb of\r
+   46     :moveto(0);\r
+   45     :moveto(2);\r
+   43,57  :moveto(3);\r
+   6,17   :if(noun=57)and(here(40))and((noun2=40)or(noun2=Null))then\r
+           begin RS(16);Sc:=-500;\r
+            Loc:='Locked Cabin';Verbose:=True;inven:=[];KitSet:=KitSet-[57];\r
+            n[57,1]:='plastic card';n[57,2]:='card';n[57,3]:='plastic';\r
+            n[57,4]:='elevato card';n[57,5]:='elevato';r[57]:=76;moveto(76)\r
+           end;\r
+ 33,19,2  :if(noun in[6,53,64])then moveto(3)\r
+          end;\r
+\r
+end  {of case}\r
+else SA\r
+end; {of SP13}\r
+{-------------------}\r
+overlay procedure SpecialAnswers14;\r
+\r
+begin\r
+FlagSA:='r';\r
+if Present then\r
+Case Prm of\r
+\r
+49     :case verb of\r
+    43  :moveto(45);\r
+  44,57 :begin RL(290);moveto(50);n[36,1]:='lever';n[36,2]:='handle';end;\r
+  45..50:RL(291);\r
+    11  :if(noun in[26,50])then RL(292);\r
+    2   :if(noun=72)then RL(312);\r
+    11  :if(noun=72)then RL(313);\r
+        end;\r
+\r
+59     :case verb of\r
+   43..50:begin o:=random(8)+3;writeln('You travel about ',o,' miles...');\r
+           if(random(4)=2)then ShRm:=13 else ShRm:=Random(15);moveto(59)end;\r
+   52,57:RL(341);\r
+    58  :if(noun=Null)or(noun=65)then begin RL(342);DEAD;end;\r
+    51  :begin sound(30);\r
+          if not(en('U'))then begin RS(64);writeln;Ev:=Ev+['U'];Sc:=Sc+45;end\r
+          else RL(349);moveto(63);sound(20)end;\r
+    14  :if(noun=63)then begin RS(65);DEAD;end;\r
+    28  :if(noun=10)then noun:=81;\r
+        end; {of case 59}\r
+\r
+72     :case verb of\r
+    46  :moveto(71);\r
+  43,44,58:moveto(73);\r
+    45  :moveto(74);\r
+        end;\r
+\r
+73     :case verb of\r
+  43,45,58:moveto(72);\r
+    46  :moveto(73);\r
+    44  :begin moveto(74);if(MnRm=Null)then RL(356);end;\r
+        end;\r
+\r
+74     :case verb of\r
+  43,45 :moveto(73);\r
+  46,58 :moveto(74);\r
+    44  :if(MnRm=Null)then begin Verbose:=False;Moveto(75);Verbose:=True;\r
+          RS(69);MnRm:=75;Attack:=False end else moveto(75);\r
+        end;\r
+\r
+75     :case verb of\r
+  43,58 :moveto(74);\r
+   11   :if(noun in[14,61])then RL(364);\r
+        end;\r
+\r
+76     :case verb of\r
+   43   :RL(114);\r
+   11   :if(noun=26)then RL(271)else\r
+         if(noun=57)then RL(408);\r
+        end;\r
+\r
+end  {of case}\r
+else SA\r
+end; {of SP14}\r
+{===================}\r
+procedure ScreenDraw_PlayerInput;\r
+  begin\r
+   gotoxy(1,23);writeln;TextColor(m5);write(chr(175),' ');\r
+   Window(1,1,80,25);\r
+   gotoxy(1,1);textcolor(m4);TextBackGround(m6);\r
+   gotoxy(10,1); writeln(Tic,'  '); gotoxy(75,1); writeln(Sc,' ');\r
+   gotoxy(35-(length(Loc)div 2),1);writeln('     ',Loc,'     ');\r
+   gotoxy(3,25);TextBackGround(0);Window(1,2,80,25);\r
+   textcolor(m1);BufLen:=77;\r
+   if(Loc<>'Civilization!')then READLN(LINE)else repeat;until false;\r
+   if(Line='r')or(Line='repeat')then Line:=Again\r
+   else Again:=Line;\r
+   gotoxy(1,23);TextColor(m3);writeln(chr(175));TextColor(m2);\r
+  end;\r
+{-------------------}\r
+\r
+\r
+BEGIN\r
+clrscr;\r
+assign0;\r
+assign1;assign2;assign3;assign4;assign5;assign6;assign7;assign8;\r
+Initialize;\r
+\r
+                            {*****} repeat {*****}\r
+\r
+if Skip then Time; writeln;\r
+\r
+if(length(Line)=0)then begin\r
+ ScreenDraw_PlayerInput;\r
+ while pos(' then ',Line)>0 do\r
+  begin x:=pos('then ',Line);delete(Line,x,4);insert('.',Line,x)end;\r
+ LowerCase(Line);\r
+ Format(Line);\r
+ Chop(Line);\r
+end;\r
+if(pos('.',Line)>0)then begin\r
+  Input:=copy(Line,1,pos('.',Line));\r
+  delete(Line,1,pos('.',Line));\r
+  delete(Input,pos('.',Input),1);\r
+end else\r
+ begin\r
+  Input:=Line;\r
+  Line:=''\r
+ end;\r
+Input:=Input+' ';\r
+while pos(' it ',Input)>0 do\r
+ begin x:=pos(' it ',Input)+1;delete(Input,x,2);insert(LastNoun,Input,x);\r
+ Format(Input);Chop(Input)end;\r
+if(Input[length(Input)]=' ')then delete(Input,length(Input),1);\r
+\r
+\r
+\r
+Check(SepWord);\r
+\r
+if Flag = 'g' then\r
+  begin\r
+    case Prm of\r
+      3..4                :SpecialAnswers1;\r
+      5..10               :SpecialAnswers2;\r
+      14..16              :SpecialAnswers3;\r
+      19..24              :SpecialAnswers4;\r
+      25,27..29,33        :SpecialAnswers5;\r
+      30                  :SpecialAnswers6;\r
+      26,35..40           :SpecialAnswers7;\r
+      41..48              :SpecialAnswers8;\r
+      50..55              :SpecialAnswers9;\r
+      56..58,60..62,65..67:SpecialAnswers10;\r
+      63,64,68..71        :SpecialAnswers11;\r
+      11..13,17,18        :SpecialAnswers12;\r
+      0..2,31,32,34       :SpecialAnswers13;\r
+      49,59,72..76        :SpecialAnswers14\r
+    end;\r
+\r
+    if FlagSA <> 's' then\r
+      case Verb of\r
+       11,18,22,41,43..52,57,58    :DefaultAnswers1;\r
+       29                          :DefaultAnswers2;\r
+       1,2,8,12,13,15,16,19,21,\r
+        23..25,31,33,34,38,40,60,63:DefaultAnswers3;\r
+       3,6,7,20,30,35,53..56,59    :DefaultAnswers4;\r
+       9,26                        :DefaultAnswers5;\r
+       27,28,62                    :DefaultAnswers6;\r
+       14,64,4,5                   :DefaultAnswers7;\r
+       0,10,17,42,39               :DefaultAnswers8;\r
+       32                          :DefaultAnswers9;\r
+       36,37,61,65                 :DefaultAnswers10;\r
+      end;\r
+  end;\r
+\r
+                         {*****} until False {*****}\r
+\r
+END. {of program}\r
+\1a
\ No newline at end of file
diff --git a/src/COMMANDS.PAS b/src/COMMANDS.PAS
new file mode 100644 (file)
index 0000000..42e4e88
--- /dev/null
@@ -0,0 +1,646 @@
+{//-------------------------------------------------------------------------}\r
+{/*                                                                         }\r
+{Copyright (C) 1990, 2009 - Apogee Software, Ltd.                           }\r
+{                                                                           }\r
+{This file is part of Supernova.  Supernova is free software; you can       }\r
+{redistribute it and/or modify it under the terms of the GNU General Public }\r
+{License as published by the Free Software Foundation; either version 2     }\r
+{of the License, or (at your option) any later version.                     }\r
+{                                                                           }\r
+{This program is distributed in the hope that it will be useful,            }\r
+{but WITHOUT ANY WARRANTY; without even the implied warranty of             }\r
+{MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                       }\r
+{                                                                           }\r
+{See the GNU General Public License for more details.                       }\r
+{                                                                           }\r
+{You should have received a copy of the GNU General Public License          }\r
+{along with this program; if not, write to the Free Software                }\r
+{Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.}\r
+{                                                                           }\r
+{Original Source: 1990 Scott Miller                                         }\r
+{Prepared for public release: 03/19/09 - Joe Siegler, Apogee Software, Ltd. }\r
+{*/                                                                         }\r
+{//-------------------------------------------------------------------------}\r
+{****************************************************************************}\r
+{*                                COMMANDS                                  *}\r
+{*                            by Scott Miller                               *}\r
+{*  These are misc procedures and functions used with the main file: AdGame *}\r
+{*                        Copyright 1984 Pending                            *}\r
+{****************************************************************************}\r
+\r
+procedure SA;\r
+   begin FlagSA:='s' end;\r
+\r
+function En(c : char) : boolean;\r
+   begin\r
+     if(c in Ev)then En:=True else En:=False\r
+   end;\r
+\r
+function Here(noun : integer): Boolean;\r
+   begin\r
+     if(noun in Inven)or(r[noun]=Prm)or(noun in p[Prm])then Here:=True\r
+     else Here:=False\r
+   end;\r
+\r
+overlay procedure Crazy;\r
+   begin SA;\r
+    if(random(2)=1)then RL(107+random(7))else RL(300+random(6));\r
+   end;\r
+\r
+overlay procedure DEAD;\r
+    var b,c:byte;\r
+    FileName : file;\r
+   begin SA; NoSound;\r
+     gotoxy(1,25);for x:=1 to 7 do writeln;\r
+     Textcolor(1);Textbackground(m9);\r
+     gotoxy(1,18);\r
+     write('*********************************************************',\r
+           '***********************');writeln;\r
+     gotoxy(1,19); for x:=1 to 3 do\r
+     write('*                                                        ',\r
+             '                      *');writeln;\r
+     gotoxy(1,22);\r
+     write('*********************************************************',\r
+           '***********************');writeln;\r
+     TextColor(m0);gotoxy(32,20);writeln('YOU HAVE DIED!!!');\r
+     Textcolor(m2);Textbackground(0);\r
+     for c:=700 downto 20 do for b:=70 downto 1 do sound(b*c);nosound;\r
+     close(Rooms1);close(rooms2);close(special1);close(special2);close(line1);\r
+     gotoxy(1,23);DelLine;DelLine;writeln;write('Do you wish to play again? ');\r
+     read(kbd,flag);\r
+     if(upcase(flag)<>'N')then\r
+      begin\r
+       writeln('Restarting...');window(1,1,80,25);\r
+       assign(rooms1,'BEYOND.com');execute(rooms1)end\r
+     else\r
+      begin\r
+       textcolor(7);\r
+       textbackground(0);\r
+       window(1,1,80,25);\r
+       clrscr;\r
+       writeln('    Beyond the Titanic');\r
+       writeln('A Scott Miller Production');\r
+       writeln('    Have a nice day...');\r
+       delay(2000);\r
+       assign(FileName,'MENU.COM');\r
+       {$I-}\r
+       execute(FileName);\r
+       {$I+}\r
+       if IOResult <> 0 then HALT;\r
+      end\r
+   end;\r
+\r
+overlay procedure Home;\r
+  var b,c:byte;\r
+   begin SA;\r
+     gotoxy(1,25);for x:=1 to 7 do writeln;\r
+     Textcolor(25);Textbackground(m7);\r
+     gotoxy(1,18);\r
+     write('#########################################################',\r
+           '#######################');writeln;\r
+     gotoxy(1,19); for x:=1 to 3 do\r
+     write('#                                                        ',\r
+             '                      #');writeln;\r
+     gotoxy(1,22);\r
+     write('#########################################################',\r
+           '#######################');writeln;\r
+     TextColor(31);gotoxy(25,20);writeln('Y O U   H A V E   W O N ! ! !');\r
+     Textcolor(m2);Textbackground(0);\r
+     gotoxy(1,23);DelLine;DelLine;writeln;\r
+     for x:=150 downto 1 do begin sound(x*55);delay(8);nosound;delay(20)end;\r
+     if(Sc>1000)then Sc:=1000;\r
+     write('You finished with a score of ',Sc,', which makes you a ');\r
+     if(Sc=1000)then\r
+      begin writeln('Perfect Adventurer!!!');\r
+        for y:=1 to 7 do\r
+         for o:=0 to 20 do\r
+           for x:= 99+(o*430)to 998+(o*430)do begin sound(25);sound(x)end\r
+      end\r
+     else writeln('Master Adventurer!');\r
+     for c:=1 to 999 do for b:=1 to 61 do sound(b*c);nosound;\r
+     writeln;nosound;\r
+     writeln('Reboot your computer to regain control...')\r
+  end;\r
+\r
+overlay procedure Say(o : integer; p : str14);\r
+   begin\r
+     writeln('The ',n[o,1],' is already ',p,'.'); SA\r
+   end;\r
+\r
+overlay procedure Diagnose;\r
+   begin\r
+     RL(191);\r
+     if((tic>42)and not(en('c')))or((tic>146)and not(en('n')))or(en('r'))then\r
+      begin\r
+       if(tic>42)and (not(en('c')))then RL(192)\r
+        else if(tic>146)and not(en('n'))then RL(192);\r
+       if(en('r'))then RL(51)\r
+      end\r
+     else RL(207)\r
+   end;\r
+\r
+overlay procedure Monster(var NewRm : integer);\r
+   begin\r
+    if(NewRm=MnRm)and(MnRm=25)then begin Attack:=False;RL(384)end else\r
+    if(NewRm<>35)or not(en('v'))then\r
+     begin\r
+      p[Prm]:=p[Prm]-[23];p[NewRm]:=p[NewRm]+[23];MnRm:=NewRm;Attack:=False;\r
+       if not((NewRm=30)and(Verb in[27,28]))then\r
+        case random(7) of\r
+         0:RS(71);1:RS(72);2:RL(359);3:RL(360);4:RL(361);5:RL(362);6:RL(363)\r
+        end\r
+     end\r
+    else begin RL(383);Attack:=False end\r
+   end;\r
+\r
+overlay procedure DescribeRm;\r
+   var o : integer;\r
+  procedure s(r : str14);\r
+     begin TextColor(m8);writeln(r);TextColor(m2);loc:=r;end;\r
+   begin SA;\r
+if((en('a'))and(here(29)))or not(Prm in [6..24])then begin\r
+     case Prm of\r
+0:s('Ship''s Fore');1:s('Ship Mid-Deck');2:s('Rear of Ship');\r
+3:s('Life Boat');4:s('Ocean Surface');5:s('Huge Cavern');\r
+6:s('Cave of Pins');7:s('Ocean Bottom');8:s('Squeaky Cave');\r
+9:s('Stream Bend');10:s('Waterfall');13:s('Sloppy Cave');\r
+11:s('Hex Cave');12:s('Shallow Cleft');20:s('Zoo');\r
+14:s('Winding Tunnel');15:s('Chasm');17:s('Chasm Bottom');\r
+18:s('Tiny Opening');19:s('Etched Stairs');\r
+21:s('Edge of Saucer');22:s('Side of Saucer');\r
+23:s('Top of Saucer');24:s('Airlock');16:s('End of Rope');\r
+76:s('Locked Cabin');25:s('Central Entry');\r
+26:s('Lower Entry');27:s('Ship''s Systems');\r
+30:s('Time Chamber');28:s('Ship''s Lab');34:s('Bridge');\r
+29:s('Inside Tube');31:s('Life Support');58,69:s('Inside Shuttle');\r
+32:s('Supply Chamber');33:s('Sleep Chamber');\r
+35:s('Engine Room');36:s('Cargo Deck #1');37:s('Cargo Deck #2');\r
+38:s('Cargo Deck #3');39:s('Cargo Deck #4');40:s('Large Cage');\r
+41:s('Wooden Bridge');42:s('Broken End');43:s('South End');\r
+44..46:s('Deserted Road');47:s('Crater Edge');48:s('Crater Floor');\r
+49:s('Building Front');50:s('Lobby');51..54:s('Office Room');\r
+55:s('Basement');56:s('Ladder Room');57:s('Building Roof');\r
+59:case ShRm of 0:s('Above Mud Lake');\r
+1:s('Above Rubble');2:s('Above Desert');3:s('Above Pits');\r
+4:s('Above River');5:s('Above Stream');6:s('Above Town');\r
+7:s('Above Mountain');8:s('Above Crator');9:s('Above Hills');\r
+10:s('Above Canyon');11:s('Above Flatland');12:s('Above Dry Lake');\r
+13:s('Above Desert');14:s('Above Bridge')end;{of Above Rooms}\r
+63,64:s('Above Clouds');65..68:s('Outside City');70:s('Landing Bay');\r
+71:s('Power Plant');72..74:s('Dark Corridor');75:s('Food Supply')\r
+     end; {of case}\r
+\r
+    if Verbose then begin FlagSA:='r';\r
+      case Prm of\r
+       2 :if(40 in p[2])then begin RR(2);RL(416)end;\r
+       4 :if(en('B'))then RR(4)else begin RR(4);\r
+           writeln('There is a safety harness here.')end;\r
+       11:if(en('C'))then RS(15);\r
+       40:if(en('g'))then RS(17);\r
+       12:if not(en('G'))then begin RR(12);RL(146)end;\r
+       31:if not(en('I'))then begin RR(31);RL(156)end;\r
+       34:if(74 in p[34])then begin RR(34);RL(273)end;\r
+       35:if(77 in p[35])then begin RR(35);RL(381);RL(382)end else\r
+           if(en('W'))then begin RR(35);RL(381)end;\r
+       42:if(13 in p[42])then begin RR(42);RL(214)end;\r
+       48:if(27 in p[48])then begin RR(48);RL(276)end;\r
+       59..69:begin SA;\r
+               if(Prm=59)and not(ShRm in RmSh)then\r
+                begin RmSh:=RmSh+[ShRm];RS(ShRm+46)end\r
+               else if(Prm<>59)then RR(Prm);\r
+               if KeyHole and here(63)then\r
+                writeln('The shiny key is in the keyhole.')\r
+              end\r
+       else RR(Prm)\r
+      end; {of case}\r
+      if(FlagSA='r')and(Prm<>59)then RR(Prm)end;\r
+\r
+     for o:= 0 to NMax do begin\r
+       if(o in Mov)then\r
+         if(r[o]=Prm)then\r
+          if not((Prm in[59..69])and(KeyHole)and(o=63))then\r
+           begin writeln('There is a ',n[o,1],' here.');\r
+            if(here(ropecon))and(o=ropecon)and not(ropecon in inven)then\r
+             writeln('  The rope is attatched to the ',n[o,1],'.');\r
+            if(en('d'))and(o=70)and(here(70))then RL(147);\r
+            if(o=SlotCon)and(here(o))then RL(388);\r
+            if(o in CabiSet)and(here(o))then RL(389);\r
+            if(o=PanelCon)and(here(o))then RL(390);\r
+            if(o in KitSet)and(here(o))then RL(391);\r
+           end\r
+     end end\r
+    else RL(54)\r
+   end;  {of DescribeRm}\r
+\r
+overlay procedure SAVE;\r
+   begin SA; for x:=1 to 24 do writeln; nosound;\r
+   window(1,3,80,25);\r
+   gotoxy(1,4);\r
+   if(Drive='A:')then\r
+    writeln('Remove the GAME disk and insert your SAVE/RESTORE disk ',\r
+            'in drive A:')else\r
+    writeln('Make sure your SAVE/RESTORE disk is in drive B:');\r
+   writeln('  (Press any key to continue...)');read(kbd,flag);\r
+   writeln;writeln;\r
+   write('Save under what name? ');BufLen:=8;readln(input);\r
+   while pos(' ',input)>0 do delete(input,pos(' ',input),1);\r
+   while pos('.',input)>0 do delete(input,pos('.',input),1);\r
+   if(input='')then input:='LastRoom';\r
+   writeln;writeln;input:=Drive+input;\r
+   writeln('If your SAVE/RESTORE disk is in drive ',Drive,\r
+            ' then press any key to start.');\r
+   read(kbd,flag);\r
+   with DiskSave do\r
+    begin\r
+     aInven:=Inven;aKitSet:=KitSet;aCabiSet:=CabiSet;aPanelCon:=PanelCon;\r
+     aSlotCon:=SlotCon;aCompCon:=CompCon;aRopeCon:=RopeCon;aTic:=Tic;\r
+     aYearDial:=YearDial;aPrm:=Prm;aMnRm:=MnRm;aSc:=Sc;aShots:=Shots;\r
+     aShRm:=ShRm;aRx:=Rx;aEv:=Ev;aCode:=Code;aLoc:=Loc;aKeyHole:=KeyHole;\r
+    end;\r
+   assign(GameSave,input+'.a');\r
+   rewrite(GameSave);\r
+   write(GameSave,DiskSave);\r
+   close(GameSave);\r
+   assign(Objects,input+'.b');\r
+   rewrite(Objects);\r
+   for x:=0 to RMax do write(Objects,p[x]);\r
+   close(Objects);\r
+   assign(WordList,input+'.c');\r
+   rewrite(Wordlist);\r
+   for x:= 0 to NMax do\r
+    for y:= 1 to 5 do\r
+     write(WordList,n[x,y]);\r
+   for x:= 0 to VMax do\r
+    for y:= 1 to 5 do\r
+     write(WordList,v[x,y]);\r
+   close(WordList);\r
+   assign(Things,input+'.d');\r
+   rewrite(Things);\r
+   for x:= 0 to NMax do write(Things,r[x]);\r
+   close(Things);\r
+   writeln; delete(input,1,2);\r
+   writeln('Your present game location is now',\r
+           ' SAVED to disk under the name ''',input,'.''');\r
+   if(Drive='A:')then begin writeln;\r
+    writeln('Remove the SAVE/RESTORE disk and insert your GAME disk.')end;\r
+   writeln('  (Press any key to continue...)');read(kbd,flag);\r
+   writeln;writeln;\r
+   if(Verb<>54)then writeln('You may now resume your game...');\r
+   if(Line='')then Line:='look';Tic:=Tic-2;Back:=True;\r
+   if(Prm in[59..68])then sound(20);\r
+   window(1,2,80,25)\r
+   end; {of Save}\r
+\r
+overlay procedure RESTORE;\r
+ function Exist:Boolean;\r
+ begin\r
+ assign(GameSave,input+'.a');\r
+ {$I-}\r
+ Reset(GameSave);\r
+ {$I+}\r
+ Exist:=(IOresult=0)\r
+ end;\r
+   begin SA; for x:=1 to 24 do writeln; nosound;\r
+   window(1,3,80,25);gotoxy(1,4);\r
+   if(Drive='A:')then\r
+    writeln('Remove the GAME disk and insert your SAVE/RESTORE disk ',\r
+            'in drive ',Drive)else\r
+    writeln('Make sure your SAVE/RESTORE disk is in drive B:');\r
+   writeln('  (Press any key to continue...)');read(kbd,flag);\r
+   writeln;writeln;\r
+   write('Which file name do you want to RESTORE? ');BufLen:=8;readln(input);\r
+   while pos(' ',input)>0 do delete(input,pos(' ',input),1);\r
+   while pos('.',input)>0 do delete(input,pos('.',input),1);\r
+   if(input='')then input:='LastRoom';\r
+   writeln;writeln;input:=Drive+input;\r
+   writeln('If your SAVE/RESTORE disk is now in drive ',Drive,\r
+           ' then press any key to start.');\r
+   read(kbd,flag);\r
+   if Exist then\r
+    begin\r
+     close(GameSave);\r
+     assign(GameSave,input+'.a');\r
+     reset(GameSave);\r
+     read(GameSave,DiskSave);\r
+     close(GameSave);\r
+     with DiskSave do\r
+      begin\r
+       Inven:=aInven;KitSet:=aKitSet;CabiSet:=aCabiSet;PanelCon:=aPanelCon;\r
+       SlotCon:=aSlotCon;CompCon:=aCompCon;RopeCon:=aRopeCon;Tic:=aTic;\r
+       YearDial:=aYearDial;Prm:=aPrm;MnRm:=aMnRm;Sc:=aSc;Shots:=aShots;\r
+       ShRm:=aShRm;Rx:=aRx;Ev:=aEv;Code:=aCode;Loc:=aLoc;KeyHole:=aKeyHole;\r
+      end;\r
+     assign(Objects,input+'.b');\r
+     reset(Objects);\r
+     for x:=0 to RMax do read(Objects,p[x]);\r
+     close(Objects);\r
+     assign(WordList,input+'.c');\r
+     reset(Wordlist);\r
+     for x:= 0 to NMax do\r
+      for y:= 1 to 5 do\r
+       read(WordList,n[x,y]);\r
+     for x:= 0 to VMax do\r
+      for y:= 1 to 5 do\r
+       read(WordList,v[x,y]);\r
+     close(WordList);\r
+     assign(Things,input+'.d');\r
+     reset(Things);\r
+     for x:= 0 to NMax do read(Things,r[x]);\r
+     close(Things);\r
+     writeln; delete(input,1,2);\r
+     writeln('Your previously SAVED game location is now',\r
+             ' RESTORED from the file ''',input,'.''');\r
+     if(Drive='A:')then begin writeln;\r
+      writeln('Remove the SAVE/RESTORE disk and insert your GAME disk.')end;\r
+     writeln('  (Press any key to continue...)');read(kbd,flag);\r
+    end\r
+   else\r
+    begin writeln;TextColor(28);\r
+     writeln('             That name does not exist on this',\r
+             ' SAVE/RESTORE disk.',^g);\r
+     TextColor(m2);writeln;\r
+     if(Drive='A:')then\r
+      writeln('Put your GAME disk back in the disk drive and press any key.')\r
+     else writeln('  (Press any key to continue...)');\r
+     read(kbd,flag);\r
+    end;\r
+   writeln;writeln;writeln('You may now resume you game...');\r
+   if(Line='')then Line:='look';Tic:=Tic-2;Back:=True;\r
+   if(Prm in[59..68])then sound(20);\r
+   window(1,2,80,25)\r
+   end; {of Restore}\r
+\r
+overlay procedure Vanish(o : integer);\r
+   begin SA;\r
+     inven:=inven-[o];\r
+     r[o]:=Null;\r
+     p[Prm]:=p[Prm]-[o];\r
+     if(o=7)and not(en('I'))then Ev:=Ev+['I'];\r
+     if(o=13)and(13 in p[42])then p[42]:=p[42]-[13];\r
+     if(o=PanelCon)then PanelCon:=Null;\r
+     if(o=SlotCon)then SlotCon:=Null;\r
+     if(o in CabiSet)then CabiSet:=CabiSet-[o];\r
+     if(o in kitset)then kitset:=kitset-[o];\r
+     if(o=63)and KeyHole then KeyHole:=False;\r
+     if(o=74)then Ev:=Ev-['p'];\r
+     if(o=89)then Ev:=Ev-['i'];\r
+     if(o=RopeCon)and(verb=36)then begin RopeCon:=Null;RL(402)end;\r
+     if(o=RopeCon)and not(Verb in[9,14])then RopeCon:=Null\r
+   end;\r
+\r
+overlay procedure Play( Start, Stop, Wait: integer);\r
+   var x : integer;\r
+   begin\r
+    if(Start<=Stop)then\r
+     for x:= Start to Stop do\r
+      begin sound(x); delay(Wait); end\r
+    else\r
+     for x:= Start downto Stop do\r
+      begin sound(x); delay(Wait); end;\r
+    if(Prm in[59..68])then sound(20)else nosound\r
+   end; {of Play}\r
+\r
+overlay procedure DropAll;\r
+   var o : integer;\r
+   begin\r
+     for o:= 0 to NMax do\r
+       if(o in inven)then\r
+         begin\r
+           r[o]:=Prm;\r
+           inven:=inven-[o];writeln(n[o,1],': Dropped.');\r
+         end;\r
+     RL(106);\r
+   end;  {of DropAll}\r
+\r
+function FlasOff : Boolean;\r
+   begin\r
+     if not(En('a'))then FlasOff:=True\r
+     else\r
+       if(r[29]=Prm)or(29 in inven)then FlasOff:=False\r
+       else FlasOff:=True;\r
+   end;\r
+\r
+procedure MoveTo(NewRm : integer);\r
+ var o : integer;\r
+ begin\r
+   if(57 in inven)and(ropecon<>Null)and not(ropecon in inven)\r
+     and(ropecon in mov)and not(ropecon=70)then\r
+      begin r[ropecon]:=Prm;RL(158);end\r
+   else if(57 in inven)and(ropecon<>Null)and(not(ropecon in mov)or\r
+        ((ropecon=70)and(en('d'))))then\r
+          begin RL(55);inven:=inven-[57];r[57]:=Prm;end\r
+   else if not(57 in inven)and((ropecon in inven)or\r
+          (ropecon in[60,56,44]))then r[57]:=NewRm\r
+   else if not(57 in inven)and(r[57]=Prm)and(r[ropecon]=NewRm)then\r
+          begin r[57]:=NewRm;RopeOld:=Prm;end\r
+   else if not(57 in inven)and(r[57]=Prm)and(NewRm=RopeOld)and\r
+              (r[ropecon]=Prm)then\r
+          begin r[57]:=RopeOld;RopeOld:=Null;end;\r
+   if(ropecon=Null)or((NewRm<>RopeOld)and(Prm<>RopeOld))then RopeOld:=Null;\r
+   if(MnRm<>Null)then Monster(NewRm);\r
+   if(Prm in[63..68])and not(NewRm in[59,69])then RL(343);\r
+   if(Prm in[59,63..68])then for o:=0 to NMax do if(r[o]=Prm)then r[o]:=NewRm;\r
+   Prm:=NewRm;\r
+   DescribeRm\r
+ end;  {of MoveTo}\r
+\r
+procedure Time;\r
+   begin\r
+     Tic:=Tic+1;\r
+  case Tic of\r
+    3:RL(280);\r
+    4:RS(1);\r
+    17:if not(en('A'))then begin RS(3);DEAD end else RS(5);\r
+    19:RL(4);\r
+    20:RL(5);\r
+    21:RL(6);\r
+    23:RS(6);\r
+    24:if(en('B'))then begin RS(8);writeln;RL(16);moveto(5);Sc:=Sc+25;\r
+         n[64,5]:='ship';v[26,2]:='pick' end\r
+       else begin RS(7);DEAD;end;\r
+    43:if(not(en('c'))and not(en('n')))then RL(31);\r
+    73:if(not(en('c'))and not(en('n')))then RL(32);\r
+    93:if(not(en('c'))and not(en('n')))then begin RL(33); DEAD end;\r
+    99:if(Prm in[6..24])and(here(29))and not(flasoff)and(not(en('s')))then\r
+         begin RL(41);Ev:=Ev+['s'] end;\r
+    147:if not(en('n'))then RL(31);\r
+    149:if(here(29))and not(flasoff)then RL(59);\r
+    153:if(Prm in[6..23])and(here(29))and not(flasoff)then\r
+          begin RS(14);vanish(29) end;\r
+    170:if not(en('n'))then RL(32);\r
+    181:if not(en('n'))then begin RL(33); DEAD end;\r
+    549:RL(281);\r
+    586:RL(282);\r
+    598:RL(283);\r
+    607:begin RL(284);DEAD;end;\r
+  end; {of case}\r
+\r
+case Prm of\r
+    1..3:if(tic>4)and(random(4)=1)then RL(405);\r
+  36..39:if(random(5)=2)then RL(219);\r
+     7  :if(random(8)=2)then RL(266);\r
+     8  :if(random(3)=2)then begin RL(265);play(6666,7000,0);end;\r
+  13..24:if(random(16)=2)then RL(246);\r
+  25..35:if(random(30)=2)then RL(267);\r
+   47,48:if(random(5)=2)and(inven <>[])then\r
+           begin\r
+            if(Prm=48)then begin writeln;RS(40)end\r
+            else begin writeln;RS(44);moveto(48)end;\r
+            o:=1;flag:='?';\r
+            repeat o:=o+1;\r
+             if(o in inven)then\r
+             begin vanish(o);r[o]:=random(9)+41;flag:='g';end;\r
+            until Flag = 'g';\r
+           end;\r
+end;\r
+case Prm of\r
+  5,6,9,10:if(random(9)=2)then RL(268);\r
+  7..40:if(here(84))and(random(20)=2)then RL(269)\r
+        else if(random(75)=2)then RS(36)\r
+        else if(Prm in[5..22])and(random(33)=2)then\r
+         begin RL(265);play(6500,6950,0)end;\r
+  41..49:if(random(27)=2)then RL(285);\r
+    59  :if(random(15)=1)then RL(406);\r
+end;\r
+if Attack and(MnRm=Prm)and(not Back)then\r
+ begin case random(3) of 0:RS(80); 1:RS(81); 2:RS(82)end;DEAD end\r
+else if(MnRm=Prm)then Attack:=True\r
+   end;  {of Time}\r
+\r
+function Present : Boolean;\r
+   begin\r
+    if(noun<>Null)and(noun<>1)then\r
+     if(here(noun))then\r
+      if(noun2<>Null)then\r
+       if(here(noun2))then Present:=true\r
+       else begin\r
+         writeln('You can''t see any ',n[noun2,1],' here.');Present:=false end\r
+      else Present:=true\r
+     else begin\r
+       writeln('You can''t see any ',n[noun,1],' here.');Present:=false end\r
+    else Present:=true\r
+   end;\r
+\r
+overlay procedure Initialize;\r
+ procedure Cn(S : Str80);\r
+ begin\r
+  gotoxy(40-(length(S)div 2),wherey);writeln(S);\r
+ end;\r
+  begin\r
+   textcolor(15);\r
+   writeln('Prepare to engage yourself in a most exciting adventure.');\r
+   writeln('But first, two simple questions:');\r
+   gotoxy(1,4);write('Are you using a COLOR screen (Y/N)? ');\r
+   nosound; play(72,80,45);\r
+   read(kbd,flag); play(2500,2490,6);\r
+   m0:=20;m1:=14;m2:=11;m3:=4;m4:=15;m5:=28;m6:=1;m7:=4;m8:=10;m9:=10;\r
+   if upcase(flag)='N' then\r
+    begin\r
+     writeln('No, I don''t have a color screen.');\r
+     m0:=31;m1:=15;m2:=15;m3:=7;m4:=0;m5:=31;m6:=7;m7:=8;m8:=7;m9:=0;\r
+    end else writeln('Yes, I do have a color screen.');writeln;\r
+   write('How many disk drives do you have (1/2)? ');\r
+   play(80,88,30);\r
+   read(kbd,flag);play(2500,2490,6);\r
+   Drive:='B:';\r
+   if(upcase(flag)='O')or(flag='1')then\r
+    begin Drive:='A:';writeln('I have ONE disk drive.')end else\r
+    writeln('I have TWO disk drives.');\r
+   delay(999);clrscr;textcolor(15);gotoxy(1,5);writeln;textcolor(7);\r
+   cn('Beyond the Titanic');textcolor(6);cn('------------------');writeln;\r
+   textcolor(7);\r
+   cn('A Text & Sound Adventure Fantasy');writeln;writeln;\r
+   cn('An Apogee Software Production');writeln;writeln;writeln;\r
+   cn('Written and Programmed by Scott Miller');\r
+   textcolor(11);\r
+   gotoxy(32,24);textcolor(7);\r
+   write('Press any key...');read(kbd,flag);clrscr;\r
+\r
+   {                      *** SHAREWARE SCREEN ***                            }\r
+\r
+   textcolor(15);\r
+   writeln('Please note that Beyond the Titanic is a SHAREWARE game.');\r
+   writeln;\r
+   textcolor(7);\r
+   writeln('This game has been placed in the public domain for your enjoyment.');\r
+   writeln;\r
+   writeln('If you like the game the author (Scott Miller) asks that you please');\r
+   writeln('contribute $5 or $10 (your discretion) to him.  This minimal payment');\r
+   writeln('will help compensent the author for the year of work that went into');\r
+   writeln('Beyond the Titanic.  It will also encourage the author to make new and');\r
+   writeln('better games, like Supernova and Kingdom of Kroz, both of which are');\r
+   writeln('also shareware games recently released.');\r
+   writeln;\r
+   writeln('This fee also registers the payer for telephone support and clues.');\r
+   writeln;writeln;\r
+   writeln('Please make checks payable to Scott Miller.');\r
+   writeln;\r
+   textcolor(15);\r
+   writeln('        Scott Miller           (214) 240-0614');\r
+   writeln('        4206 Mayflower Dr.');\r
+   writeln('        Garland, TX  75043');\r
+   writeln;\r
+   textcolor(7);\r
+   writeln('Thanks, enjoy the game...');\r
+   gotoxy(23,25);\r
+   delay(12000);\r
+   while keypressed do read(kbd,flag);\r
+   write('Press any key to start the game...');\r
+   read(kbd,flag);\r
+   while keypressed do read(kbd,flag);\r
+   clrscr;\r
+   {                      ************************                            }\r
+\r
+   gotoxy(1,25);\r
+   TextColor(m1);\r
+cn('APRIL 14, 1912    11:43 PM');\r
+cn('You never knew the black canvas of the night was so full'+\r
+   ' of twinkling detail.');\r
+cn('Standing on deck of the White Star''s new super luxury liner, deep at sea,');\r
+cn('where the bright lights of San Francisco don''t fade the night, you');\r
+cn('can view thousands of stars you never realized existed.');\r
+cn('Looking out over the icy sea you can barely see small pieces of'+\r
+   ' broken ice');\r
+cn('bobbing in the water.  Rumor has it that icebergs the size of small');\r
+cn('mountains can be found in this region.  You don''t feel');\r
+cn('too worried, though, the Titanic has been touted as');\r
+cn('"unsinkable," and every single passenger knows');\r
+cn('that White Star, the premier ship builder,');\r
+cn('knows their stuff...');\r
+for x:= 1 to 3 do writeln;\r
+Line        :='';\r
+LastNoun    :='';\r
+KitSet      :=[2,29,57];\r
+CabiSet     :=[89,63];\r
+CompCon     :=Null;\r
+PanelCon    :=8;\r
+RopeCon     :=Null;\r
+SlotCon     :=Null;\r
+RopeOld     :=Null;\r
+RmSh        :=[];\r
+Mov         :=[2,7,8,13,27,29,32,34,40,52,51,57,63,70,74,77,89];\r
+OneWordCommands:=[1,4,5,7,8,16,18,19,22,31,33..35,41,43..54,56..59,61..65];\r
+Ev          :=[];\r
+Inven       :=[];\r
+Prm         :=0;\r
+MnRm        :=Null;\r
+Tic         :=Prm;\r
+Sc          :=0;\r
+Shots       :=6;\r
+KeyHole     :=false;\r
+Verbose     :=true;\r
+Attack      :=False;\r
+YearDial    :=135;\r
+DayDial     :=60;\r
+assign(rooms1,'rooms1');assign(rooms2,'rooms2');\r
+assign(special1,'special1');assign(special2,'special2');assign(line1,'line');\r
+reset(rooms1);reset(rooms2);reset(special1);reset(special2);reset(line1);\r
+Str(Random(9998)+1,Code);\r
+   DescribeRm; writeln; randomize;\r
+   gotoxy(1,1);TextBackGround(m6);\r
+   for x:=1 to 80 do write(' ');writeln;TextColor(m4);\r
+   gotoxy(4,1);writeln('Move');gotoxy(68,1);writeln('Score');TextColor(m2);\r
+   TextBackGround(0); Window(1,2,80,25);\r
+  end; {of Initialize}\r
+{***************************** END OF COMMANDS *****************************}\r
+\1a
\ No newline at end of file
diff --git a/src/LINE b/src/LINE
new file mode 100644 (file)
index 0000000..4b79de3
Binary files /dev/null and b/src/LINE differ
diff --git a/src/LINERITE.PAS b/src/LINERITE.PAS
new file mode 100644 (file)
index 0000000..050f61b
--- /dev/null
@@ -0,0 +1,154 @@
+{//-------------------------------------------------------------------------}\r
+{/*                                                                         }\r
+{Copyright (C) 1990, 2009 - Apogee Software, Ltd.                           }\r
+{                                                                           }\r
+{This file is part of Supernova.  Supernova is free software; you can       }\r
+{redistribute it and/or modify it under the terms of the GNU General Public }\r
+{License as published by the Free Software Foundation; either version 2     }\r
+{of the License, or (at your option) any later version.                     }\r
+{                                                                           }\r
+{This program is distributed in the hope that it will be useful,            }\r
+{but WITHOUT ANY WARRANTY; without even the implied warranty of             }\r
+{MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                       }\r
+{                                                                           }\r
+{See the GNU General Public License for more details.                       }\r
+{                                                                           }\r
+{You should have received a copy of the GNU General Public License          }\r
+{along with this program; if not, write to the Free Software                }\r
+{Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.}\r
+{                                                                           }\r
+{Original Source: 1990 Scott Miller                                         }\r
+{Prepared for public release: 03/19/09 - Joe Siegler, Apogee Software, Ltd. }\r
+{*/                                                                         }\r
+{//-------------------------------------------------------------------------}\r
+program\r
+  line_Responce_Writer;\r
+\r
+           {This program WRITES and READS from the text file:\r
+                      'Line', 80 letters (Max),\r
+               {This program has the line edit feature!}\r
+const\r
+  Max = 80;\r
+\r
+type\r
+  DescriptionLength = string[Max];\r
+  OneChar = string[1];\r
+\r
+var\r
+  Line   : file of descriptionlength;\r
+  Position,Counter,Start,Stop : integer;\r
+  Text   : descriptionlength;\r
+  Answer : char;\r
+  Letter : onechar;\r
+  List   : boolean;\r
+\r
+procedure Diskwrite(text: Descriptionlength; pointer: integer);\r
+  begin\r
+    seek(Line,pointer);\r
+    WRITE(Line,text);\r
+    writeln('line responce ',pointer,\r
+            ' is written!  Size = ',filesize(Line));\r
+    close(Line);\r
+  end; {End of Diskwrite.}\r
+\r
+procedure Diskread(start,stop: integer);\r
+var\r
+counter : integer;\r
+text    : descriptionlength;\r
+  begin\r
+   assign(Line,'Line');\r
+   reset(Line);\r
+   seek(Line,start);\r
+    for counter:= start to stop do\r
+      begin\r
+        highvideo;\r
+        READ(Line,text);\r
+        if List then\r
+          writeln(lst,counter,text)\r
+        else\r
+          begin\r
+            writeln('Here is line responce # ',counter);\r
+            lowvideo;\r
+            writeln(text);\r
+            highvideo;\r
+          end;\r
+      end;\r
+    close(Line);\r
+    write('The file contains ',filesize(Line),' line responces.');\r
+  end;  {End of Diskread.}\r
+\r
+procedure Beep;\r
+begin\r
+ if (length(text)=70) then write(^g);\r
+end;\r
+\r
+BEGIN\r
+repeat          {Main loop.}\r
+  text:='';\r
+\r
+writeln;\r
+writeln('Do you want to R)ead or W)rite?');\r
+read(kbd,answer);\r
+if upcase(answer) <> 'R' then       {Write to 'line' files.}\r
+    begin\r
+      writeln;\r
+      assign(Line,'Line');\r
+      writeln('Now RESETing line files.');\r
+            RESET(Line);\r
+      writeln;\r
+      writeln('Input a string not more than ',Max,' characters.',\r
+              '  ''\''-Ends string.');\r
+      lowvideo;\r
+        repeat\r
+          read(trm,letter);\r
+          if letter = ^h then\r
+            begin\r
+              write(^h,' ',^h);\r
+              delete(text,length(text),2);\r
+            end;\r
+          beep;\r
+          if (letter <> '\') and (letter <> ^h) then text:=text+letter\r
+        until (length(text)=Max) or (letter='\');\r
+        writeln;\r
+        if letter = '\' then\r
+          begin\r
+            highvideo;\r
+            writeln('Total of ',length(text),' characters.');\r
+          end\r
+        else\r
+          begin\r
+           highvideo\r
+          end;\r
+      writeln('Now WRITING string to disk.');\r
+      writeln('  At what position?  (Next open is # ',filesize(Line),')');\r
+      readln(position);\r
+      Diskwrite(text,position);\r
+    end\r
+else                      {Read from 'Rooms'.}\r
+  begin\r
+    writeln;\r
+    writeln('To the S)creen or P)rinter?');\r
+    read(kbd,answer);\r
+    if(upcase(answer)='P')then List:=True else List:=False;\r
+    assign(Line,'Line');\r
+    reset(Line);\r
+    writeln('Filesize = ',filesize(Line),\r
+            '  (From 0 to ',filesize(Line)-1,')');\r
+    close(Line);\r
+    writeln('Enter starting position:');\r
+    readln(start);\r
+    if(start > filesize(line)-7)then stop:=(filesize(line)-1) else\r
+      begin\r
+        writeln('Enter final position:');\r
+        readln(stop);\r
+      end;\r
+    Diskread(start,stop);\r
+  end;  {End of else clause.}\r
+writeln;writeln('Another line responce?  Y)es or N)o');\r
+read(kbd,answer);\r
+until upcase(answer) = 'N';     {End of Main loop.}\r
+writeln; writeln(^g,'You are now out of the program.')\r
+END.\r
+\r
+\r
+\1a
\ No newline at end of file
diff --git a/src/OBJECTS.PAS b/src/OBJECTS.PAS
new file mode 100644 (file)
index 0000000..37d1a0a
--- /dev/null
@@ -0,0 +1,111 @@
+{//-------------------------------------------------------------------------}\r
+{/*                                                                         }\r
+{Copyright (C) 1990, 2009 - Apogee Software, Ltd.                           }\r
+{                                                                           }\r
+{This file is part of Supernova.  Supernova is free software; you can       }\r
+{redistribute it and/or modify it under the terms of the GNU General Public }\r
+{License as published by the Free Software Foundation; either version 2     }\r
+{of the License, or (at your option) any later version.                     }\r
+{                                                                           }\r
+{This program is distributed in the hope that it will be useful,            }\r
+{but WITHOUT ANY WARRANTY; without even the implied warranty of             }\r
+{MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                       }\r
+{                                                                           }\r
+{See the GNU General Public License for more details.                       }\r
+{                                                                           }\r
+{You should have received a copy of the GNU General Public License          }\r
+{along with this program; if not, write to the Free Software                }\r
+{Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.}\r
+{                                                                           }\r
+{Original Source: 1990 Scott Miller                                         }\r
+{Prepared for public release: 03/19/09 - Joe Siegler, Apogee Software, Ltd. }\r
+{*/                                                                         }\r
+{//-------------------------------------------------------------------------}\r
+{*****************************************************************************}\r
+{*                                 OBJECTS                                   *}\r
+{*                             by Scott Miller                               *}\r
+{*  This include file to AdGame initializes all of the immoveable objects.   *}\r
+{*                         Copyright 1984 Pending                            *}\r
+{*****************************************************************************}\r
+overlay procedure Assign0;\r
+begin\r
+                      {INITIALIZE OBJECT'S ROOMS}\r
+for o:=0 to NMax do r[o]:=Null;\r
+p[0]:=[53,73,80,6,26,64,36];\r
+p[1]:=[53,6,57,73,80,64,36];\r
+p[2]:=[40,53,14,6,66,46,73,80,57,64,36];\r
+p[3]:=[6,73,80,39,59,57,64,36];\r
+p[4]:=[6,73,80,39,35,59,64,36];\r
+p[5]:=[73,80,71];\r
+p[6]:=[73,80,71];\r
+p[7]:=[36,73,80,6];\r
+p[8]:=[47,46];\r
+p[9]:=[73,80];\r
+p[10]:=[80,73,17];\r
+p[11]:=[72];\r
+p[12]:=[70];\r
+p[13]:=[17,47,73,80];\r
+p[14]:=[];\r
+p[15]:=[17,73,80];\r
+p[16]:=[17,57];\r
+p[17]:=[17];\r
+p[18]:=[];\r
+p[19]:=[69];\r
+p[20]:=[12,69,67,43];\r
+p[21]:=[64,71,37];\r
+p[22]:=[64,71,37];\r
+p[23]:=[64,26,71,37];\r
+p[24]:=[64,69,41,26,55];\r
+p[25]:=[64,69,41,26,84];\r
+p[26]:=[41,12,69,84];\r
+p[27]:=[20,21,26,10,58,38,86];\r
+p[28]:=[21,10,78,33,49,85];\r
+p[29]:=[78,10,21,33,49,85];\r
+p[30]:=[21,10,24,25,82,16,59,49,76,38,86];\r
+p[31]:=[75,21,10,84,7,22];\r
+p[32]:=[61,75,21,14];\r
+p[33]:=[61,75,4,21,10,59,84];\r
+p[34]:=[16,5,21,68,58,10,0,20,74,25,86];\r
+p[35]:=[62,21,10,54,55];\r
+p[36]:=[85,83,21,14,12,64,43];\r
+p[37]:=p[36];\r
+p[38]:=p[36]+[28];\r
+p[39]:=p[36];\r
+p[40]:=p[36]+[26,67];\r
+p[41]:=[87,73,19,47,53,37];\r
+p[42]:=p[41]+[13];\r
+p[43]:=p[41];\r
+p[44]:=[41,19,87];\r
+p[45]:=[41,19];\r
+p[46]:=[41,19];\r
+p[47]:=[3,41,19,17,22];\r
+p[48]:=[3,19,17,22,27,35];\r
+p[49]:=[9,26,37,72];\r
+p[50]:=[9,26,88,46,66,37,88,68];\r
+p[51]:=[9,37];\r
+p[52]:=[9,37];\r
+p[53]:=[9,69,37];\r
+p[54]:=[9,37];\r
+p[55]:=[9,69,11,45,26,61,37,68];\r
+p[56]:=[9,69,37];\r
+p[57]:=[9,19,37,41,65,22,31,73,87];\r
+p[58]:=[9,10,16,19,20,21,25,36,41,46,58,59,65,66,68,81,86];\r
+p[59]:=p[58]+[17,18,22,31,71,73,87];\r
+p[63]:=[9,10,16,18,19,20,21,25,36,41,46,58,59,65,66,68,81,86,88];\r
+p[64]:=p[63];\r
+p[65]:=p[63];\r
+p[66]:=p[63];\r
+p[67]:=p[63];\r
+p[68]:=p[63];\r
+p[69]:=p[63]+[9,14,37,53];\r
+p[70]:=p[69]+[69]-[10,16,20,36,46,58,59,66,68,81,86];\r
+p[71]:=[10,20,21,25,36,38,41,54,58,69];\r
+p[72]:=[85];\r
+p[73]:=p[72];\r
+p[74]:=p[72];\r
+p[75]:=[23,14,61];\r
+p[76]:=[26,45];\r
+for x:=0 to 76 do p[x]:=p[x]+[15,30,42,44,50,56,60,79]\r
+end;\r
+{****************************** END OF OBJECTS *******************************}\r
+\1a
\ No newline at end of file
diff --git a/src/ROOMRITE.PAS b/src/ROOMRITE.PAS
new file mode 100644 (file)
index 0000000..df5c88f
--- /dev/null
@@ -0,0 +1,176 @@
+{//-------------------------------------------------------------------------}\r
+{/*                                                                         }\r
+{Copyright (C) 1990, 2009 - Apogee Software, Ltd.                           }\r
+{                                                                           }\r
+{This file is part of Supernova.  Supernova is free software; you can       }\r
+{redistribute it and/or modify it under the terms of the GNU General Public }\r
+{License as published by the Free Software Foundation; either version 2     }\r
+{of the License, or (at your option) any later version.                     }\r
+{                                                                           }\r
+{This program is distributed in the hope that it will be useful,            }\r
+{but WITHOUT ANY WARRANTY; without even the implied warranty of             }\r
+{MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                       }\r
+{                                                                           }\r
+{See the GNU General Public License for more details.                       }\r
+{                                                                           }\r
+{You should have received a copy of the GNU General Public License          }\r
+{along with this program; if not, write to the Free Software                }\r
+{Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.}\r
+{                                                                           }\r
+{Original Source: 1990 Scott Miller                                         }\r
+{Prepared for public release: 03/19/09 - Joe Siegler, Apogee Software, Ltd. }\r
+{*/                                                                         }\r
+{//-------------------------------------------------------------------------}\r
+program\r
+  Room_Write;\r
+\r
+    {This program WRITES and READS from the two text files: 'rooms1' and\r
+     'rooms2'.  If a description exceeds 240 letters (Max), then the file\r
+               'rooms2' is used.  Otherwise 'rooms2' = ''.}\r
+                 {This program has the line edit feature!}\r
+const\r
+  Max = 240;\r
+\r
+type\r
+  DescriptionLength = string[Max];\r
+  ManyChar = string[1];\r
+\r
+var\r
+  Rooms1, Rooms2 : file of descriptionlength;\r
+  Position,Counter,Start,Stop : integer;\r
+  Text1, Text2 : descriptionlength;\r
+  Answer : char;\r
+  Letter : manychar;\r
+  List   : boolean;\r
+\r
+procedure Diskwrite(text1,text2: Descriptionlength; pointer: integer);\r
+  begin\r
+    seek(rooms1,pointer); seek(rooms2,pointer);\r
+    WRITE(rooms1,text1); WRITE(rooms2,text2);\r
+    writeln('Room decription ',pointer,\r
+            ' is written!  Size = ',filesize(rooms1));\r
+    close(rooms1); close(rooms2);\r
+  end; {End of Diskwrite.}\r
+\r
+procedure Diskread(start,stop: integer);\r
+var\r
+counter : integer;\r
+text1, text2 : descriptionlength;\r
+  begin\r
+   assign(rooms1,'rooms1');assign(rooms2,'rooms2');\r
+   reset(rooms1); reset(rooms2);\r
+   seek(rooms1,start); seek(rooms2,start);\r
+    for counter:= start to stop do\r
+      begin\r
+        highvideo;\r
+        READ(rooms1,text1); READ(rooms2,text2);\r
+        if list then\r
+          begin\r
+            writeln(lst,'Discription # ',counter);\r
+            writeln(lst,text1,text2);\r
+          end\r
+        else\r
+          begin\r
+            writeln('Here is room description # ',counter);\r
+            lowvideo;\r
+            writeln(text1,text2);\r
+            highvideo;\r
+          end;\r
+      end;\r
+    close(rooms1); close(rooms2);\r
+    write('The file contains ',filesize(rooms1),' room descriptions.');\r
+  end;  {End of Diskread.}\r
+\r
+procedure Beep;\r
+begin\r
+ if(length(text1)in[70,150,230])or(length(text2)in[70,150,230])then write(^g);\r
+end;\r
+\r
+BEGIN\r
+repeat          {Main loop.}\r
+  text1:='';\r
+  text2:='';\r
+\r
+writeln;\r
+writeln('Do you want to R)ead or W)rite?');\r
+read(kbd,answer);\r
+if upcase(answer) <> 'R' then       {Write to 'Rooms'.}\r
+    begin\r
+      writeln;writeln;\r
+      assign(rooms1,'rooms1'); assign(rooms2,'rooms2');\r
+      writeln('Now RESETing room files.');\r
+            RESET(rooms1); RESET(rooms2);\r
+      writeln;\r
+      writeln('Input a string not more than ',2*Max,' characters.',\r
+              '  ''\''-Ends string.');\r
+      lowvideo;\r
+        repeat\r
+          read(trm,letter);\r
+          if letter = ^h then\r
+            begin\r
+              write(^h,' ',^h);\r
+              delete(text1,length(text1),2);\r
+            end;\r
+          beep;\r
+          if (letter <> '\') and (letter <> ^h) then text1:=text1+letter\r
+        until (length(text1)=Max) or (letter='\');\r
+        writeln;\r
+        if letter = '\' then\r
+          begin\r
+            highvideo;\r
+            writeln('Total of ',length(text1),' characters.');\r
+            text2:='';\r
+          end\r
+        else\r
+          begin\r
+            writeln;\r
+            highvideo;\r
+            writeln('String #1 is full!  Now writing to string #2.',^g);\r
+            lowvideo;\r
+              repeat\r
+                read(trm,letter);\r
+                if letter = ^h then\r
+                  begin\r
+                    write(^h,' ',^h);\r
+                    delete(text2,length(text2),2);\r
+                  end;\r
+                beep;\r
+                if (letter <> '\') and (letter <> ^h) then text2:=text2+letter\r
+              until (length(text2)=Max) or (letter='\');\r
+            writeln; highvideo;\r
+            writeln('Total description length = ',\r
+                     length(text1)+length(text2),' characters.');\r
+          end;\r
+      writeln('Now WRITING string to disk.');\r
+      writeln('  At what position?  (Next open is # ',filesize(rooms1),')');\r
+      readln(position);\r
+      Diskwrite(text1,text2,position);\r
+    end\r
+else                      {Read from 'Rooms'.}\r
+  begin\r
+    writeln;writeln;\r
+    writeln('To the S)creen or the P)rinter');\r
+    read(kbd,answer);\r
+    if(upcase(answer)='P')then List:=True else List:=False;\r
+    assign(rooms1,'rooms1');\r
+    reset(rooms1);\r
+    writeln('Filesize = ',filesize(rooms1),\r
+            '  (From 0 to ',filesize(rooms1)-1,')');\r
+    close(rooms1);\r
+    writeln('Enter starting position:');\r
+    readln(start);\r
+    if(start > filesize(rooms1)-5)then stop:=(filesize(rooms1)-1) else\r
+      begin\r
+        writeln('Enter final position:');\r
+        readln(stop);\r
+      end;\r
+    Diskread(start,stop);\r
+  end;  {End of else clause.}\r
+writeln;writeln('Another room description?  Y)es or N)o');\r
+read(kbd,answer);\r
+until upcase(answer) = 'N';     {End of Main loop.}\r
+writeln; writeln(^g,'You are now out of the program.')\r
+END.\r
+\r
+\r
+\1a
\ No newline at end of file
diff --git a/src/ROOMS1 b/src/ROOMS1
new file mode 100644 (file)
index 0000000..896160e
--- /dev/null
@@ -0,0 +1,4 @@
+ð  You are standing near the front of the Titanic on the starboard deck.  To the east a wooden rail follows the curve of the ship.  Behind you, to the south, arethe sounds of a wild party.  A misty breeze parts your hair in an awkward place,ð  Standing at the middle of the starboard deck you can barely view both ends,   which lead east and west from here, gently curving inward.  In front of you are several lifeboats, each held in place by a thick rope.  Above and behind you is ð  This end of the ship is dimly lit, allowing you to make out several new star  clusters.  A large stack of misplaced cargo blocks your path to the east.       Written on one of the crates is a faded message.  To the west you can still see ð  You are within one of the many wooden lifeboats along this side of the ship.  A single thick rope secures the boat to the Titanic.  You can still walk across the steps to the south to get back onto the great ship.  A small red kit is     x  You are in a wooden life boat floating in the icy cold ocean.  A survival kit is built into the side of the framework.  You are in a wooden life boat floating in the icy cold ocean.  A survival kit is built into the side of the framework.ð  You are standing in the middle of a huge cavern.  From the western wall a     torrent gusher of water builds into a fast flowing underground stream, which    heads to the east.  The cave follows the stream to the east, leading into a darkð  This cave is full of beautiful rock formations.  Long columns of stalagtites  fill the cave from top to bottom.  The stream looks shallow here, it might be   possible to wade across to get to the north side.  To the west you can still seeØYou are awed by what you see.  You are standing directly underneath the ocean.  The bottom, or ceiling from your viewpoint, is completely iced over,            appearantly from the cool draft that pervades this area.that pervades this area.Р This is a cramped cave with a floor that feels like mud and smells like two   month old socks.  On the wall in front of you are some strange chiseled         markings.  The only way out is to the northwest.nly way out is to the northwest.Ü  At this point the stream makes a bend to the northeast.  A slight rumbling    sound can be heard further down the stream.  The path to the west returns to    the stalagtite cave, a separate path leads to the southeast.ds to the southeast.Ñ  At this point in the cave the stream falls into a deep chasm, forming a       natural waterfall.  The cave walls are worn to the point of being as smooth as  glass.  The only safe exit lies to the southwest.afe exit lies to the southwest.ð  The passage opens up to form another small, misty cave.  You notice something unusual about the eastern wall.  A new passage breaks off to the northeast.  To the west you can still hear the sound of the rushing stream.  A small opening in\9b  This place is more a large crack than a cave.  The crevice widens a little    revealing a sand covered floor.  The crack to the northeast leads back out.little    revealing a sand covered floor.  The crack to the northeast leads back out.ð  You are in a large cave that is covered with a thick layer of mud.  The       further north you walk the deeper you sink in!  Past the mud to the north you   can see a clear area where a chasm cut through, and even further you can see    ð  You are at the turning point of a winding tunnel, mysteriously carved out of  solid rock.  The rays of your flashlight fade into blackness in either          direction.  The crumbled wall lies back to the west and the tunnel heads to the ð  This is the northern end of a gigantic mud covered cave, to the south is a    wide pit of mud oozing into a section of the chasm.  The chasm crosses in front of you, just west of where you are standing.  The ground here is much drier than\9b  You clinging to the end of the rope!  The chasm walls have narrowed a little  here, and nearly form a tunnel below you.  The bottom is no where in sight!a little  here, and nearly form a tunnel below you.  The bottom is no where in sight!ð  You are at the bottom of the deep chasm.  On both sides of you are fallen     rocks, blocking any passage into the chasm.  Somewhere in the darkness above    hangs the rope.  From here a skinny passage leads east, into an peculiar shaped ð  This is quite an unusual cave.  The walls are scorched black, as if by great  heat.  You decide that this cave was not formed by the normal processes of      nature.  The path forks here, headind both northeast and southeast, while the   \9f  You at the middle point of a string of steps that curve to the northeast.     The steps are etched out of solid rock.  The passage up leads to the northwest.  The steps are etched out of solid rock.  The passage up leads to the northwest.ð  This area appears to be some sort of abandoned zoo, with metal cages crowding every corner.  Most of the cages are littered with the remains of long decayed  creatures, many with very unusual skeleton structures.  One cage, however, is   ð  You are standing at the front end of a huge metal saucer, which you have      deduced to be of alien origin.  The saucer curves away from you in both         directions, but only the northern end has escaped a prehistoric rockfall.  A    ð  You are standing near the side of a huge, ominous metal saucer.  A rockslide  blocks any further progress around the disk.  You are surprised at how smooth   the metal is, with no appearent damage from the cave in of boulders.  A clear   ð  This is the top of the large saucer.  A hatch lies at your feet, recessed in  such a way that it cannot be seen from the ground.  The boulders that rest on   the hull seem to have left no damage at all!  From here you guess the size of   ´  This is an empty chamber with a ladder leading both up and down.  A mangled   hatch, once the lower door, lies twisted to the side of the ladder, leaving an  easy climb downward. to the side of the ladder, leaving an  easy climb downward.ð  You're at the center of a kalideoscope of passages and rooms, leading in all  directions.  The central ladder continues to a lower section of the saucer.  Theonly passage blocked by a door lies to the north.  The whole interior of the    ð  This is the central entry of the lower deck, with open rooms all around you.  In the various dimly lit rooms you can see stacks of cargo, equipment, empty    cages and other strange objects.  Eerie shadows play with your imagination the  ð  This is the most complicated room you have seen on the saucer.  The walls are lined with equipment, controls and machines.  The center piece of the room is a strange device that reminds you of a typewriter in its appearance.  Built into  ð  You are in a room full of scientific equipment, everything looks intact,      though painfully confusing.  To the east is tall glass tube, big enough for a   person to stand in.  The control board near the tube contains several closed    \99  You are inside the tall tube, above is a device that looks like a lamp.  You  can still see all of the equipment in the lab through the tube's doorway.a lamp.  You  can still see all of the equipment in the lab through the tube's doorway.È  This room is packed with machines.  The center piece of the room seems to be ametallic chair.  On the far wall is a small panel with a keypad below it, and a microphone built into the wall above it.microphone built into the wall above it.Ï  This rooms is mostly empty, except for the row of machines on the far wall.  Atable sits at one corner.  On the ceiling are several vents.  One piece of      equipment looks in someways similar to a stove.s in someways similar to a stove.n  This small area is obviously some sort of supply room, lined with cluttered   shelves and sealed containers.aled co\ 59Æ%n  T\ 59ú*n  This small area is obviously some sort of supply room, lined with cluttered   shelves and sealed containers.Ñ  Several odd shaped beds, tables and pieces of equipment occupy most of the    space in this chamber, you note that everything is neat and orderly.  Positionedabove each bed are two small buttons on the wall. two small buttons on the wall.ð  This looks like the main control area for the entire saucer.  Banks of        buttons and dials cover the walls.  Sitting in front of the controls is a dead  alien, with its neck area covered with gashes.  It's difficult to tell how long ð  This room is the source of the low humming sound you first noticed in the     chasm.  A huge glowing metallic structure fills the back half of the room.  A   large see-through plate rests in position in front of the structure.  A large   L  This is some sort of cargo bay, full of empty cages and strange equipment.þ\ 59¯ÿË\bL  This is some sort of cargo bay, full of empty cages and strange e\ 59Æ%L  T\ 59ú*L  This is some sort of cargo bay, full of empty cages and strange equipment.L  This is some sort of cargo bay, full of empty cages and strange equipment.þ\ 59¯ÿË\bL  This is some sort of cargo bay, full of empty cages and strange e\ 59Æ%L  T\ 59ú*L  This is some sort of cargo bay, full of empty cages and strange equipment.\8d  This is some sort of cargo bay, full of empty cages and stange equipment.     At your feet is a large egg, covered with a glistening jelly.empty cages and stange equipment.     At your feet is a large egg, covered with a glistening jelly.L  This is some sort of cargo bay, full of empty cages and strange equipment.þ\ 59¯ÿË\bL  This is some sort of cargo bay, full of empty cages and strange e\ 59Æ%L  T\ 59ú*L  This is some sort of cargo bay, full of empty cages and strange equipment.Õ  You are inside one of the many cages within the lower cargo bay of the saucer.Slim and jelly drip from the bars.  To the west the cage door has been closed   and chained, there is no escape but through the door!scape but through the door!ð  You standing at the center of a broken wooden bridge, loose boards creak as   you walk along it.  Underneath a fast flowing stream winds to the east.  Dusty  clouds scar the sky.  The bridge continues to the south, the broken end is      æ  This is the broken end of the bridge, where a large section has collapsed     into the rapid waters below.  The unreachable north bank reveils desolate       waste lands to the horizon.  The bridge continues southward from here.from here.³  This is the southern end of the collapsed bridge.  Further south the dirt     path joins a dusty road, which follows the river.  The bridge arcs over the     river to the north. the river.  The bridge arcs over the     river to the north.Ý  This is a discarded dirt road heading both east and west.  Any tracks have    long been washed with the wind.  You can still view the bridge to the north.    The south bank of the road consists of a sheer concrete wall.heer concrete wall.¸  This is a deep deserted road leading both east and west.  The steep banks are reinforced with thick concrete and appear unclimbable.  A separate dirt path    breaks off to the south.bable.  A separate dirt path    breaks off to the south.\7f  This is a deep deserted road leading both east and west.  The steep sides of  the road are built out of thick concrete slabs.ep deserted road leading both east and west.  The steep sides of  the road are built out of thick concrete slabs.ð  The road ends abruptly here.  Below you lies a steep slope leading into a vastcrater to the west.  You estimate that the crater is at least two miles across. You wonder how this enormous pit in the Earth came to be.  All around you are   î  This is the bottom of the deep, dusty, boulder filled crater, at least two    miles wide.  To the east you can see the worn path where you entered the huge   pit.  Footprints like the ones you saw above the crater cover the entire area.a.ð  You are standing at the north end of a large four story building.  The        windowless walls are line with eroded cracks, the surrounding land appears to becompletely neglected.  The large glass doors to the south have long been broken ð  This is the building's main lobby area, full of broken chairs and tables.     Rubble and trash litter the cracked marble floor.  To the south is a shimmering wall of orange light.  A small sign hangs beside the beams.  The broken glass   K  This is an empty room, but for the rubble.  Exits lie in many directions.e   a9°ÿ#       K  This is an empty room, but for the rubble.  Exits lie in many direa9Í*K a9â/K  This is an empty room, but for the rubble.  Exits lie in many directions.K  This is an empty room, but for the rubble.  Exits lie in many directions.e   a9°ÿ#        K  This is an empty room, but for the rubble.  Exits lie in many direa9Í*K a9â/K  This is an empty room, but for the rubble.  Exits lie in many directions.m  This is an empty room, but for the rubble.  Exits lie in many directions.     You notice a strange updraft.a strange ua9Í*m a9â/m  This is an empty room, but for the rubble.  Exits lie in many directions.     You notice a strange updraft.K  This is an empty room, but for the rubble.  Exits lie in many directions.e   a9°ÿ#       K  This is an empty room, but for the rubble.  Exits lie in many direa9Í*K a9â/K  This is an empty room, but for the rubble.  Exits lie in many directions.½  This is a strangly lit room below the building.  Empty shelves cover the      walls.  A big blue cabinet sits against the north wall.  The stairs to the      south lead back to an office.he stairs to the      south lead back to an office.\8d  This is another empty room, but for the rubble and a rusty ladder going up to a square hole in the ceiling.  An exit lies to the northeast.rubble and a rusty ladder going up to a square hole in the ceiling.  An exit lies to the northeast.ð  You are standing on the roof of the large building.  From here you can view a lot of the surrounding area.  To the west lies the huge crater, to the south is an open desert spanning to the horizon, the broken bridge stretches halfway     ð  You are sitting inside the vehicle.  In front of you is a complicated control panel, covered with buttons, dials and lights.  Of particular interest is an    oversized white button, with a small keyhole above it.  Also catching your eye  Þ  Made by Scott Miller   (this was written Sept. 14, 1984)                                4206 Mayflower Dr.                                                              Garland, Texas  75043     Tel.  (214)  278-6747     14)  278-6747     \rEmpty File...tt Miller   (this was written Sept. 14, 1984)                                4206 Mayflower Dr.                                             åþ\0ð\13òÞ\80\aåþ\0ð\87òP\19 \17\0¸,ó\0ð\ 6ò`\ e\0\ f\8c\0\16ò\ 4òÇ\0ûÿ\ 1\8c\0#       {\ 3\0\ 6FòùÿN\ 4ÿ\9c\ 1\ 6ò
+\0ûÿÇ\0a9â/\rEmpty File...\ fEmpty File 2... Miller   (this was written Sept. 14, 1984)                                4206 Mayflower Dr.                                             åþ\0ð\13òÞ\80\a \13\0ð\0¸\0¸åþ\0ð\ 3òP\19 \0`\ e\0\ f\8c\0\16ò\ 4òÇ\0ûÿ\ 1\8c\0#       {\ 3\0\ 6FòùÿN\ 4ÿ\9c\ 1\ 6ò
+\0ûÿa9â/\ fEmpty File 2...\ fEmpty File 3... Miller   (this was written Sept. 14, 1984)                                4206 Mayflower Dr.                                             ååþ\0ð\ 3ò\\0÷\0\0åþ\0ð\aò\0\0\r\1c@\0Ùë\0`\ e\0\ f\8c\0\16ò\ 4òÇ\0ûÿ\ 1\8c\0#       {\ 3\0\ 6FòùÿN\ 4ÿ\9c\ 1\ 6ò
+\0ûÿa9â/\ fEmpty File 3...ð  You are flying above the dense, hazy clouds, which obscures your view of the  ground.  The clouds stretch in all directions as far as the eye can see.          To the east is a massive city-like structure floating effortlessly in the air!ð  You are flying above the dense, hazy clouds, which obscure your view of the   ground.  The clouds stretch in all directions as far as the eye can see.          To the west is a massive city-like structure floating freely in the air!  Tallð  You are flying quite close to the floating city now, which is about 200 yards away.  From here you can see a network of roads and inclosed tubes within the   city, forming an obvious transportation system.  Strangely, though, you don't   ë  You are flying close to the north side of the floating city.  From here you   can see a large flat area within the buildings, roads and towers.  You also see what looks like another vehicle sitting there, like the one you are flying.ying.ï  To the west is the floating city, about 200 yards away.  On this side you can easily see the raods that interlace the city.  The tallest building is on this  side, its shadow falls on your vehicle.  You still don't see any signs of life..ð  The floating city-like structure is to your north.  The massive towers block  any view into the heart of the city, but a few large tubes circle around the    outside, in some cases they travel through the towers!  There's no visable way  ð  You are inside the damaged shuttle, wrecked from the slight collision with thejagged concrete to the north.  A thin line of smoke is rising from the shuttle'scontrols.                                                                       ð  This is the large concrete bay.  Your shuttle sits to the south, slightly     bent up near the bottom.  Huge towers, with interlacing tubeways, provide a     panoramic view, except to the north, where you can see out into the             ð  You are in a small room with the walls lined with controls, machines, dials,  and screens.  There is no activity between any of them, however.  The steps to  the northwest lead back to the concrete bay.  Another doorless passage leads    \7f  This area is only a small section of a long corridor, heading both north and  south.  Passages exit both east and west, also. only a small section of a long corridor, heading both north and  south.  Passages exit both east and west, also.\7f  This area is only a small section of a long corridor, heading both north and  south.  Passages exit both east and west, also. only a small section of a long corridor, heading both north and  south.  Passages exit both east and west, also.\7f  This area is only a small section of a long corridor, heading both north and  south.  Passages exit both east and west, also. only a small section of a long corridor, heading both north and  south.  Passages exit both east and west, also.ð  You are in a supply room filled with crates and containers--all labeled with  some type of food!  You see in the corner of the room where the door lies,      mangled and twisted like the hatch you saw in the shuttle, both appearently     \8d  This is an empty cabin, with no bed, no chairs or tables, and no way out!  Thedoor to the north has been lock and chained from the outside!chairs or tables, and no way out!  Thedoor to the north has been lock and chained from the outside!
\ No newline at end of file
diff --git a/src/ROOMS2 b/src/ROOMS2
new file mode 100644 (file)
index 0000000..74f70bd
Binary files /dev/null and b/src/ROOMS2 differ
diff --git a/src/SPECIAL.PAS b/src/SPECIAL.PAS
new file mode 100644 (file)
index 0000000..38bd103
--- /dev/null
@@ -0,0 +1,176 @@
+{//-------------------------------------------------------------------------}\r
+{/*                                                                         }\r
+{Copyright (C) 1990, 2009 - Apogee Software, Ltd.                           }\r
+{                                                                           }\r
+{This file is part of Supernova.  Supernova is free software; you can       }\r
+{redistribute it and/or modify it under the terms of the GNU General Public }\r
+{License as published by the Free Software Foundation; either version 2     }\r
+{of the License, or (at your option) any later version.                     }\r
+{                                                                           }\r
+{This program is distributed in the hope that it will be useful,            }\r
+{but WITHOUT ANY WARRANTY; without even the implied warranty of             }\r
+{MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                       }\r
+{                                                                           }\r
+{See the GNU General Public License for more details.                       }\r
+{                                                                           }\r
+{You should have received a copy of the GNU General Public License          }\r
+{along with this program; if not, write to the Free Software                }\r
+{Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.}\r
+{                                                                           }\r
+{Original Source: 1990 Scott Miller                                         }\r
+{Prepared for public release: 03/19/09 - Joe Siegler, Apogee Software, Ltd. }\r
+{*/                                                                         }\r
+{//-------------------------------------------------------------------------}\r
+program\r
+  Special_Responce_Writer;\r
+\r
+         {This program WRITES and READS from the two text files:\r
+    'special1' and 'special2'.  If a description exceeds 240 letters (Max),\r
+       then the file 'special2' is used.  Otherwise 'special2' = ''.}\r
+               {This program has the line edit feature!}\r
+const\r
+  Max = 240;\r
+\r
+type\r
+  DescriptionLength = string[Max];\r
+  OneChar = string[1];\r
+\r
+var\r
+  Special1, Special2 : file of descriptionlength;\r
+  Position,Counter,Start,Stop : integer;\r
+  Text1, Text2 : descriptionlength;\r
+  Answer : char;\r
+  Letter : onechar;\r
+  List   : boolean;\r
+\r
+procedure Diskwrite(text1,text2: Descriptionlength; pointer: integer);\r
+  begin\r
+    seek(special1,pointer); seek(special2,pointer);\r
+    WRITE(special1,text1); WRITE(special2,text2);\r
+    writeln('Special responce ',pointer,\r
+            ' is written!  Size = ',filesize(special1));\r
+    close(special1); close(special2);\r
+  end; {End of Diskwrite.}\r
+\r
+procedure Diskread(start,stop: integer);\r
+var\r
+counter : integer;\r
+text1, text2 : descriptionlength;\r
+  begin\r
+   assign(special1,'special1'); assign(special2,'special2');\r
+   reset(special1); reset(special2);\r
+   seek(special1,start); seek(special2,start);\r
+    for counter:= start to stop do\r
+      begin\r
+        highvideo;\r
+        READ(special1,text1); READ(special2,text2);\r
+        if list then\r
+          begin\r
+            writeln(lst,'Special # ',counter);\r
+            writeln(lst,text1,text2);\r
+          end\r
+        else\r
+          begin\r
+            writeln('Here is special responce # ',counter);\r
+            lowvideo;\r
+            writeln(text1,text2);\r
+            highvideo;\r
+          end;\r
+      end;\r
+    close(special1); close(special2);\r
+    write('The file contains ',filesize(special1),' special responces.');\r
+  end;  {End of Diskread.}\r
+\r
+procedure Beep;\r
+begin\r
+ if(length(text1)in[70,150,230])or(length(text2)in[70,150,230])then write(^g);\r
+end;\r
+\r
+BEGIN\r
+repeat          {Main loop.}\r
+  text1:='';\r
+  text2:='';\r
+\r
+writeln;\r
+writeln('Do you want to R)ead or W)rite?');\r
+read(kbd,answer);\r
+if upcase(answer) <> 'R' then       {Write to 'Special' files.}\r
+    begin\r
+      writeln;writeln;\r
+      assign(special1,'special1'); assign(special2,'special2');\r
+      writeln('Now RESETing Special files.');\r
+            RESET(special1); RESET(special2);\r
+      writeln;\r
+      writeln('Input a string not more than ',2*Max,' characters.',\r
+              '  ''\''-Ends string.');\r
+      lowvideo;\r
+        repeat\r
+          read(trm,letter);\r
+          if letter = ^h then\r
+            begin\r
+              write(^h,' ',^h);\r
+              delete(text1,length(text1),2);\r
+            end;\r
+          beep;\r
+          if (letter <> '\') and (letter <> ^h) then text1:=text1+letter\r
+        until (length(text1)=Max) or (letter='\');\r
+        writeln;\r
+        if letter = '\' then\r
+          begin\r
+            highvideo;\r
+            writeln('Total of ',length(text1),' characters.');\r
+            text2:='';\r
+          end\r
+        else\r
+          begin\r
+            writeln;\r
+            highvideo;\r
+            writeln('String #1 is full!  Now writing to string #2.',^g);\r
+            lowvideo;\r
+              repeat\r
+                read(trm,letter);\r
+                if letter = ^h then\r
+                  begin\r
+                    write(^h,' ',^h);\r
+                    delete(text2,length(text2),2);\r
+                  end;\r
+                beep;\r
+                if (letter <> '\') and (letter <> ^h) then text2:=text2+letter\r
+              until (length(text2)=Max) or (letter='\');\r
+            writeln; highvideo;\r
+            writeln('Total description length = ',\r
+                     length(text1)+length(text2),' characters.');\r
+          end;\r
+      writeln('Now WRITING string to disk.');\r
+      writeln('  At what position?  (Next open is # ',filesize(special1),')');\r
+      readln(position);\r
+      Diskwrite(text1,text2,position);\r
+    end\r
+else                      {Read from 'Rooms'.}\r
+  begin\r
+    writeln;writeln;\r
+    writeln('To the S)creen or the P)rinter?');\r
+    read(kbd,answer);\r
+    if(upcase(answer)='P')then List:=True else List:=False;\r
+    assign(special1,'special1');\r
+    reset(special1);\r
+    writeln('Filesize = ',filesize(special1),\r
+            '  (From 0 to ',filesize(special1)-1,')');\r
+    close(special1);\r
+    writeln('Enter starting position:');\r
+    readln(start);\r
+    if(start > filesize(special1)-5)then stop:=(filesize(special1)-1) else\r
+      begin\r
+        writeln('Enter final position:');\r
+        readln(stop);\r
+      end;\r
+    Diskread(start,stop);\r
+  end;  {End of else clause.}\r
+writeln;writeln('Another special responce?  Y)es or N)o');\r
+read(kbd,answer);\r
+until upcase(answer) = 'N';     {End of Main loop.}\r
+writeln; writeln(^g,'You are now out of the program.')\r
+END.\r
+\r
+\r
+\1a
\ No newline at end of file
diff --git a/src/SPECIAL1 b/src/SPECIAL1
new file mode 100644 (file)
index 0000000..84dc912
Binary files /dev/null and b/src/SPECIAL1 differ
diff --git a/src/SPECIAL2 b/src/SPECIAL2
new file mode 100644 (file)
index 0000000..240c0c4
Binary files /dev/null and b/src/SPECIAL2 differ
diff --git a/src/TURBO.MSG b/src/TURBO.MSG
new file mode 100644 (file)
index 0000000..56a7b69
--- /dev/null
@@ -0,0 +1,105 @@
+\ 1 are not allowed\r
+\ 2 can not be\r
+\ 3 constant\r
+\ 4 does not\r
+\ 5 expression\r
+\ 6 identifier\r
+\a file\r
+\b here\r
+\vInteger\r
+\fFile\r
+\ eIllegal\r
+\ f or\r
+\10Undefined\r
+\11 match\r
+\12 real\r
+\13String\r
+\14Textfile\r
+\15 out of range\r
+\16 variable\r
+\17 overflow\r
+\18 expected\r
+\19 type\r
+\eInvalid\r
+\1d pointer\r
+01';'\18\r
+02':'\18\r
+03','\18\r
+04'('\18\r
+05')'\18\r
+06'='\18\r
+07':='\18\r
+08'['\18\r
+09']'\18\r
+10'.'\18\r
+11'..'\18\r
+12BEGIN\18\r
+13DO\18\r
+14END\18\r
+15OF\18\r
+16PROCEDURE\ f FUNCTION\18\r
+17THEN\18\r
+18TO\ f DOWNTO\18\r
+20Boolean\ 5\18\r
+21\f\16\18\r
+22\v\ 3\18\r
+23\v\ 5\18\r
+24\v\16\18\r
+25\v\ f\12\ 3\18\r
+26\v\ f\12\ 5\18\r
+27\v\ f\12\16\18\r
+28Pointer\16\18\r
+29Record\16\18\r
+30Simple\19\18\r
+31Simple\ 5\18\r
+32\13\ 3\18\r
+33\13\ 5\18\r
+34\13\16\18\r
+35\14\18\r
+36Type\ 6\18\r
+37Untyped\a\18\r
+40\10 label\r
+41Unknown\ 6\ f syntax error\r
+42\10\1d\19 in preceding\19 definitions\r
+43Duplicate\ 6\ f label\r
+44Type mismatch\r
+45\ 3\15\r
+46\ 3 and CASE selector\19\ 4\11\r
+47Operand\19(s)\ 4\11 operator\r
+48\e result\19\r
+49\e \13 length\r
+50\13\ 3 length\ 4\11\19\r
+51\e subrange base\19\r
+52Lower bound > upper bound\r
+53Reserved word\r
+54\ e assignment\r
+55\13\ 3 exceeds line\r
+56Error in integer\ 3\r
+57Error in\12\ 3\r
+58\ e character in\ 6\r
+60\ 3s\ 1\b\r
+61\fs and\1ds\ 1\b\r
+62Structured\16s\ 1\b\r
+63\14s\ 1\b\r
+64\14s and untyped\as\ 1\b\r
+65Untyped\as\ 1\b\r
+66I/O\ 1\r
+67\fs must be\16 parameters\r
+68\f components\ 2\as\r
+69\e\ fdering of fields\r
+70Set base\19\15\r
+71\e GOTO\r
+72Label not within current block\r
+73\10 FORWARD procedure(s)\r
+74INLINE error\r
+75\ e use of ABSOLUTE\r
+76Overlays\ 2 forwarded\r
+77Overlays\ 1 in direct mode\r
+90\f not found\r
+91Unexpected end of source\r
+92Unable to create overlay\a\r
+93\e compiler directive\r
+96Nested include\ 1\r
+97Too many nested WITH's\r
+98Memory\17\r
+99Compiler\17\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a\1a
\ No newline at end of file
diff --git a/src/WORDLIST.PAS b/src/WORDLIST.PAS
new file mode 100644 (file)
index 0000000..0c10067
--- /dev/null
@@ -0,0 +1,282 @@
+{//-------------------------------------------------------------------------}\r
+{/*                                                                         }\r
+{Copyright (C) 1990, 2009 - Apogee Software, Ltd.                           }\r
+{                                                                           }\r
+{This file is part of Supernova.  Supernova is free software; you can       }\r
+{redistribute it and/or modify it under the terms of the GNU General Public }\r
+{License as published by the Free Software Foundation; either version 2     }\r
+{of the License, or (at your option) any later version.                     }\r
+{                                                                           }\r
+{This program is distributed in the hope that it will be useful,            }\r
+{but WITHOUT ANY WARRANTY; without even the implied warranty of             }\r
+{MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                       }\r
+{                                                                           }\r
+{See the GNU General Public License for more details.                       }\r
+{                                                                           }\r
+{You should have received a copy of the GNU General Public License          }\r
+{along with this program; if not, write to the Free Software                }\r
+{Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.}\r
+{                                                                           }\r
+{Original Source: 1990 Scott Miller                                         }\r
+{Prepared for public release: 03/19/09 - Joe Siegler, Apogee Software, Ltd. }\r
+{*/                                                                         }\r
+{//-------------------------------------------------------------------------}\r
+{*****************************************************************************}\r
+{*                                 WORDLIST                                  *}\r
+{*                             by Scott Miller                               *}\r
+{* These are all of the verbs and nouns (grouped in synonyms) used by AdGame.*}\r
+{*                          Copyright 1984 Pending                           *}\r
+{*****************************************************************************}\r
+\r
+{====================================START====================================}\r
+\r
+                       {VERB LIST:  GROUPS ALL SYNONYMS}\r
+overlay procedure Assign1;\r
+begin\r
+for x:= 0 to VMax do for y:= 1 to 5 do v[x,y]:=Q;\r
+v[0,1]:='attack'; v[0,2]:='kill';v[0,3]:='beat up';\r
+v[1,1]:='descrip';v[1,2]:='rd';v[1,3]:='r d';\r
+v[2,1]:='climb';v[2,2]:='climb on';v[2,3]:='climb onto';v[2,4]:='climb in';\r
+   v[2,5]:='climb over';\r
+v[3,1]:='close';v[3,2]:='shut';v[3,3]:='fasten';v[3,4]:='connect';\r
+   v[3,5]:='hook';\r
+v[4,1]:='crawl ne';v[4,2]:='duck ne';v[4,3]:='crawl northea';\r
+   v[4,4]:='climb ne';\r
+v[5,1]:='crawl sw';v[5,2]:='duck sw';v[5,3]:='crawl southwe';\r
+   v[5,4]:='climb sw';\r
+v[6,1]:='cut';v[6,2]:='slice';v[6,3]:='cut out';v[6,4]:='saw';\r
+   v[6,5]:='chop';\r
+v[7,1]:='dig';v[7,2]:='dig in';v[7,3]:='shovel';\r
+v[8,1]:='drink';v[8,2]:='drink from';v[8,3]:='drink some';\r
+   v[8,4]:='drink lot';\r
+v[9,1]:='drop';v[9,2]:='get rid';v[9,3]:='put down';\r
+v[10,1]:='eat';v[10,2]:='swallow';\r
+v[11,1]:='examine';v[11,2]:='ex';v[11,3]:='search';\r
+   v[11,4]:='read';v[11,5]:='look at';\r
+v[12,1]:='find';v[12,2]:='look for';v[12,3]:='where is';v[12,4]:='check';\r
+   v[12,5]:='chech for';\r
+v[13,1]:='repair';v[13,2]:='fix';\r
+v[14,1]:='get';v[14,2]:='take';v[14,3]:='grab';v[14,4]:='steal';\r
+   v[14,5]:='pick up';\r
+v[15,1]:='give';v[15,2]:='offer';v[15,3]:='show';v[15,4]:='pay';\r
+   v[15,5]:='give away';\r
+end;\r
+overlay procedure Assign2;\r
+begin\r
+v[16,1]:='help';v[16,2]:='pray';\r
+v[17,1]:='hit';v[17,2]:='punch';v[17,3]:='knock';v[17,4]:='break';\r
+   v[17,5]:='destroy';\r
+v[18,1]:='invento';v[18,2]:='i';\r
+v[19,1]:='jump';v[19,2]:='jump onto';v[19,3]:='jump on';v[19,4]:='jump off';\r
+   v[19,5]:='jump in';\r
+v[20,1]:='launch';v[20,2]:='sail';v[20,3]:='row';\r
+v[22,1]:='look';v[22,2]:='l';v[22,3]:='look around';v[22,4]:='ex area';\r
+v[23,1]:='look above';v[23,2]:='ex on';v[23,3]:='look on';\r
+   v[23,4]:='ex top';v[23,5]:='ex above';\r
+v[24,1]:='look in';v[24,2]:='ex in';v[24,3]:='look down';v[24,4]:='look up';\r
+   v[24,5]:='search in ';\r
+v[25,1]:='look under';v[25,2]:='ex underne';v[25,3]:='ex under';\r
+   v[25,4]:='look underne';v[25,5]:='ex below';\r
+v[21,1]:='burn';v[21,2]:='ignite';v[21,3]:='light';\r
+v[26,1]:='open';v[26,2]:='unfaste';v[26,3]:='peel';v[26,4]:='hatch';\r
+   v[26,5]:='untie';\r
+v[27,1]:='pull';v[27,2]:='flick';v[27,3]:='pull on';v[27,4]:='flip';\r
+   v[27,5]:='flip on';\r
+v[28,1]:='push';v[28,2]:='move';v[28,3]:='press';v[28,4]:='turn on';\r
+   v[28,5]:='turn off';\r
+v[29,1]:='put';v[29,2]:='pour';v[29,3]:='lay';v[29,4]:='fill';\r
+   v[29,5]:='insert';\r
+v[30,1]:='reach';v[30,2]:='reach in';v[30,3]:='feel in';\r
+v[31,1]:='say';v[31,2]:='yell';v[31,3]:='shout';v[31,4]:='compute';\r
+   v[31,5]:='think';\r
+end;\r
+overlay procedure Assign3;\r
+begin\r
+v[32,1]:='shoot';v[32,2]:='blast';v[32,3]:='fire at';v[32,4]:='fire';\r
+   v[32,5]:='shoot at';\r
+v[33,1]:='sit';v[33,2]:='sit in';v[33,3]:='get in';v[33,4]:='sit down';\r
+   v[33,5]:='sit on';\r
+v[34,1]:='sleep';v[34,2]:='lie down';v[34,3]:='sleep on';v[34,4]:='sleep in';\r
+v[35,1]:='stand';v[35,2]:='stand up';v[35,3]:='get up';v[35,4]:='stand in';\r
+v[36,1]:='throw';v[36,2]:='toss';\r
+v[37,1]:='tie';v[37,2]:='hook';v[37,3]:='wrap';\r
+v[38,1]:='touch';v[38,2]:='feel';v[38,3]:='touch in';v[38,4]:='rub';\r
+v[39,1]:='turn';v[39,2]:='rotate';v[39,3]:='set';\r
+v[40,1]:='unlock';\r
+v[41,1]:='wait';v[41,2]:='z';v[41,3]:='rest';\r
+v[42,1]:='wear';v[42,2]:='put on';\r
+v[43,1]:='north';v[43,2]:='n';v[43,3]:='fore';v[43,4]:='f';v[43,5]:='across';\r
+v[44,1]:='south';v[44,2]:='s';v[44,3]:='aft';v[44,4]:='a';\r
+v[45,1]:='east';v[45,2]:='e';v[45,3]:='starboa';v[45,4]:='st';\r
+v[46,1]:='west';v[46,2]:='w';v[46,3]:='port';v[46,4]:='p';\r
+v[47,1]:='north east';v[47,2]:='ne';v[47,3]:='northea';\r
+v[48,1]:='north west';v[48,2]:='nw';v[48,3]:='northwe';\r
+v[49,1]:='south east';v[49,2]:='se';v[49,3]:='southea';\r
+v[50,1]:='south west';v[50,2]:='sw';v[50,3]:='southwe';\r
+v[51,1]:='up';v[51,2]:='u';v[51,3]:='climb up';v[51,4]:='climb u';\r
+v[52,1]:='down';v[52,2]:='d';v[52,3]:='climb down';v[52,4]:='climb d';\r
+   v[52,5]:='lower';\r
+v[53,1]:='type';v[53,2]:='type in';\r
+v[54,1]:='quit';v[54,2]:='stop';v[54,3]:='give up';v[54,4]:='i quit';\r
+v[55,1]:='take off';v[55,2]:='remove';\r
+v[56,1]:='shake';v[56,2]:='bogie';v[56,3]:='dance';\r
+end;\r
+overlay procedure Assign4;\r
+begin\r
+v[57,1]:='enter';v[57,2]:='in';v[57,3]:='land in';v[57,4]:='land on';\r
+   v[57,5]:='land';\r
+v[58,1]:='exit';v[58,2]:='out';v[58,3]:='leave';v[58,4]:='retreat';\r
+   v[58,5]:='escape';\r
+v[59,1]:='diagnos';\r
+v[60,1]:='look behind';v[60,2]:='ex behind';v[60,3]:='examine behind';\r
+   v[60,4]:='ex beside';v[60,5]:='look beside';\r
+v[61,1]:='restart';v[61,2]:='let';v[61,3]:='fall from';v[61,4]:='drop from';\r
+   v[61,5]:='fall';\r
+v[62,1]:='score';v[62,2]:='rank';\r
+v[63,1]:='creatur';v[63,2]:='alien monster';v[63,3]:='monster';\r
+   v[63,4]:='alien creatur';\r
+v[64,1]:='save';\r
+v[65,1]:='restore';v[65,2]:='resume';\r
+\r
+                     {NOUN LIST:  GROUPS ALL OBJECTS}\r
+\r
+for x:= 0 to NMax do for y:= 1 to 5 do n[x,y]:=Q;\r
+n[0,1]:='alien';n[0,2]:='dead alien';n[0,3]:='body';n[0,4]:='alien body';\r
+n[1,1]:='all';n[1,2]:='everyth';n[1,3]:='object';n[1,4]:='objects';\r
+n[2,1]:='banana';n[2,2]:='food';\r
+n[3,1]:='bat';n[3,2]:='bats';\r
+n[4,1]:='bed';n[4,2]:='bunk';n[4,3]:='beds';n[4,4]:='bunks';\r
+n[5,1]:='blue button';n[5,2]:='blue';\r
+n[6,1]:='boat';n[6,2]:='life boat';n[6,3]:='titanic';n[6,4]:='lifeboa';\r
+   n[6,5]:='ship';\r
+end;\r
+overlay procedure Assign5;\r
+begin\r
+n[7,1]:='bottle';n[7,2]:='brown bottle';n[7,3]:='brown';\r
+n[8,1]:='black box';n[8,2]:='box';n[8,3]:='black';n[8,4]:='switch';\r
+   n[8,5]:='box switch';\r
+n[9,1]:='building';n[9,2]:='buildin';n[9,3]:='tower';n[9,4]:='towers';\r
+n[10,1]:='button';n[10,2]:='buttons';\r
+n[11,1]:='cabinet';n[11,2]:='file';n[11,3]:='blue cabinet';\r
+n[12,1]:='cages';n[12,2]:='bars';\r
+n[13,1]:='coin';n[13,2]:='quarter';n[13,3]:='25';n[13,4]:='money';\r
+n[14,1]:='containers';n[14,2]:='crate';n[14,3]:='crates';n[14,4]:='cargo';\r
+   n[14,5]:='contain';\r
+n[15,1]:='ceiling';n[15,2]:='roof';\r
+n[16,1]:='chair';n[16,2]:='time chair';n[16,3]:='time';n[16,4]:='seat';\r
+   n[16,5]:='metal chair';\r
+n[17,1]:='chasm';n[17,2]:='canyon';\r
+n[18,1]:='city';n[18,2]:='floatin city';n[18,3]:='floatin';n[18,4]:='town';\r
+n[19,1]:='clouds';n[19,2]:='cloud';\r
+n[20,1]:='computer';n[20,2]:='termina';n[20,3]:='compute';n[20,4]:='typewri';\r
+n[21,1]:='controls';n[21,2]:='machine';n[21,3]:='equipme';n[21,4]:='devices';\r
+   n[21,5]:='control';\r
+n[22,1]:='crater';n[22,2]:='pit';n[22,3]:='stove';\r
+n[23,1]:='creature';n[23,2]:='creatur';n[23,3]:='monster';\r
+   n[23,4]:='alien creatur';n[23,5]:='it';\r
+n[24,1]:='silver dial';n[24,2]:='day dial';n[24,3]:='day';n[24,4]:='silver';\r
+n[25,1]:='dial';n[25,2]:='knob';n[25,3]:='dials';n[25,4]:='knobs';\r
+n[26,1]:='door';n[26,2]:='hatch';n[26,3]:='saucer hatch';n[26,4]:='ship door';\r
+   n[26,5]:='sliding';\r
+n[27,1]:='piece of wire';n[27,2]:='wire';n[27,3]:='mangled wire';\r
+   n[27,4]:='mangled';n[27,5]:='piece wire';\r
+n[28,1]:='egg';n[28,2]:='eggs';\r
+n[29,1]:='flashlight';n[29,2]:='light';n[29,3]:='flashli';n[29,4]:='hook';\r
+   n[29,5]:='ring';\r
+end;\r
+overlay procedure Assign6;\r
+begin\r
+n[30,1]:='ground';n[30,2]:='floor';n[30,3]:='earth';n[30,4]:='deck';\r
+   n[30,5]:='bay';\r
+n[31,1]:='trees';n[31,2]:='tree';n[31,3]:='forest';\r
+n[32,1]:='piece of fur';n[32,2]:='fur';n[32,3]:='piece fur';n[32,4]:='piece';\r
+   n[32,5]:='blue fur';\r
+n[33,1]:='green button';n[33,2]:='green';\r
+n[34,1]:='gun';n[34,2]:='ray gun';n[34,3]:='gauge';n[34,4]:='orange';\r
+   n[34,5]:='laser gun';\r
+n[35,1]:='safety harness';n[35,2]:='safety';n[35,3]:='belt';\r
+   n[35,4]:='harness';n[35,5]:='strap';\r
+n[36,1]:='ice';n[36,2]:='ocean bottom';n[36,3]:='bottom';n[36,4]:='ocean';\r
+n[37,1]:='debris';n[37,2]:='trash';n[37,3]:='rubble';n[37,4]:='wood';\r
+n[38,1]:='numeric keypad';n[38,2]:='keypad';n[38,3]:='numeric';\r
+   n[38,4]:='numbers';\r
+n[39,1]:='survival kit';n[39,2]:='kit';n[39,3]:='surviva';n[39,4]:='red kit';\r
+   n[39,5]:='surviva kit';\r
+n[40,1]:='knife';n[40,2]:='blade';\r
+n[41,1]:='concrete';n[41,2]:='concrete wall';n[43,3]:='cement';n[41,4]:='pad';\r
+   n[41,5]:='landing pad';\r
+n[42,1]:='dirt';n[42,2]:='dust';n[42,3]:='desert';n[42,4]:='sand';\r
+   n[42,5]:='landing bay';\r
+n[43,1]:='cage';n[43,2]:='large';n[43,3]:='large cage';\r
+n[44,1]:='left hand';n[44,2]:='left';n[44,3]:='hand';\r
+n[45,1]:='rusty lock';n[45,2]:='lock';n[45,3]:='rusty';\r
+n[46,1]:='message';n[46,2]:='chisele';n[46,3]:='writing';n[46,4]:='marking';\r
+   n[46,5]:='chisele marking';\r
+n[47,1]:='mud';n[47,2]:='sloppy';n[47,3]:='slop';\r
+n[48,1]:='chain';n[48,2]:='thick chain';n[48,3]:='metal chain';\r
+n[49,1]:='panel';n[49,2]:='compart';\r
+n[50,1]:='path';n[50,2]:='passage';n[50,3]:='tunnel';n[50,4]:='road';\r
+   n[50,5]:='tubes';\r
+n[51,1]:='banana peel';n[51,2]:='peel';n[51,3]:='skin';\r
+n[52,1]:='glowing pill';n[52,2]:='pill';n[52,3]:='glowing';\r
+n[53,1]:='rail';n[53,2]:='railing';n[53,3]:='wooden';n[53,4]:='wooden rail';\r
+n[54,1]:='reactor';n[54,2]:='core';\r
+n[55,1]:='red button';n[55,2]:='red';n[55,3]:='lower door';n[55,4]:='mangled';\r
+   n[55,5]:='mangled door';\r
+n[56,1]:='right arm';n[56,2]:='right';n[56,3]:='arm';n[56,4]:='arms';\r
+end;\r
+overlay procedure Assign7;\r
+begin\r
+n[57,1]:='rope';n[57,2]:='thick';n[57,3]:='thick rope';\r
+n[58,1]:='screen';n[58,2]:='monitor';n[58,3]:='tv';n[58,4]:='screens';\r
+n[59,1]:='bench';n[59,2]:='chairs';n[59,3]:='seats';n[59,4]:='benches';\r
+   n[59,5]:='metalli';\r
+n[60,1]:='player';n[60,2]:='self';n[60,3]:='waist';n[60,4]:='me';\r
+   n[60,5]:='myself';\r
+n[61,1]:='shelf';n[61,2]:='shelves';\r
+n[62,1]:='reactor shield';n[62,2]:='barrier';n[62,3]:='shield';\r
+   n[62,4]:='plate';n[62,5]:='radiati shield';\r
+n[63,1]:='shiny key';n[63,2]:='shiny';n[63,3]:='key';\r
+n[64,1]:='alien saucer';n[64,2]:='alien ship';n[64,3]:='hull';\r
+   n[64,4]:='saucer';\r
+n[65,1]:='shuttle';n[65,2]:='car';n[65,3]:='vehicle';n[65,4]:='engine';\r
+n[66,1]:='sign';n[66,2]:='note';n[66,3]:='red sign';\r
+n[67,1]:='bones';n[67,2]:='bone';n[67,3]:='skeleto';n[67,4]:='animals';\r
+   n[67,5]:='remains';\r
+n[68,1]:='slot';n[68,2]:='opening';n[68,3]:='hole';n[68,4]:='key hole';\r
+   n[68,5]:='keyhole';\r
+n[69,1]:='steps';n[69,2]:='stair';n[69,3]:='stairs';n[69,4]:='ladder';\r
+   n[69,5]:='step';\r
+n[70,1]:='metal stake';n[70,2]:='stake';n[70,3]:='metal';n[70,4]:='pole';\r
+   n[70,5]:='rod';\r
+n[71,1]:='rock feature';n[71,2]:='stalagt';\r
+n[72,1]:='strange wall';n[72,2]:='strange';n[72,3]:='hexagon';\r
+   n[72,4]:='shapes';\r
+end;\r
+overlay procedure Assign8;\r
+begin\r
+n[73,1]:='water';n[73,2]:='river';n[73,3]:='stream';n[73,4]:='gusher';\r
+   n[73,5]:='lake';\r
+n[74,1]:='alien suit';n[74,2]:='suit';n[74,3]:='space suit';\r
+   n[74,4]:='uniform';\r
+n[75,1]:='table';n[75,2]:='tables';\r
+n[76,1]:='tan button';n[76,2]:='tan';\r
+n[77,1]:='tape';n[77,2]:='future';n[77,3]:='future tape';\r
+n[78,1]:='healing tube';n[78,2]:='tube';n[78,3]:='healing';\r
+   n[78,4]:='glass tube';n[78,5]:='glass';\r
+n[79,1]:='walls';n[79,2]:='wall';n[79,3]:='north wall';\r
+   n[79,4]:='east wall';n[79,5]:='west wall';\r
+n[80,1]:='waterfall';n[80,2]:='waterfa';\r
+n[81,1]:='white button';n[81,2]:='white';\r
+n[82,1]:='gold dial';n[82,2]:='year';n[82,3]:='gold';n[82,4]:='year dial';\r
+n[83,1]:='slime';n[83,2]:='jelly';\r
+n[84,1]:='vent';n[84,2]:='vents';\r
+n[85,1]:='lamp';\r
+n[86,1]:='microphone';n[86,2]:='mic';n[86,3]:='speaker';n[86,4]:='microph';\r
+n[87,1]:='bridge';n[87,2]:='wooden bridge';n[87,3]:='wooden';\r
+n[88,1]:='beams';n[88,2]:='orange beams';n[88,3]:='beam';\r
+   n[88,4]:='electri';n[88,5]:='orange';\r
+n[89,1]:='helmet';n[89,2]:='control helmet';n[89,3]:='hat';\r
+end;\r
+{====================================END======================================}\r
+\1a
\ No newline at end of file