home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug147.arc
/
ADVENTUR.LBR
/
ADV1UNT4.PZS
/
ADV1UNT4.PAS
Wrap
Pascal/Delphi Source File
|
1979-12-31
|
7KB
|
193 lines
(*****************************************************************************)
(* procedure pnarrow2 *)
(*****************************************************************************)
PROCEDURE pnarrow2;
BEGIN
writeln ('You are in a very narrow passage.');
writeln ('To the west the passage opens out by');
writeln ('a lake shore. To the east it is even');
writeln ('tighter. You might be able to squeeze');
writeln ('through if you try real hard.');
writeln (' There is also a strange looking ');
writeln ('alcove in the south wall that seems to ');
writeln ('open into a very dark tunnel.');
CASE whichway OF
w: location := lakeshore;
e: location := steam;
s: location := ogreroom;
n,u,d: noway;
END; {case}
END; {proc pnarrow2}
(*****************************************************************************)
(* procedure ppit *)
(*****************************************************************************)
PROCEDURE ppit;
BEGIN
writeln ('You are at the bottom of a fifty foot pit.');
writeln ('The walls are just a hair too steep to climb.');
writeln ('The pit is empty except for a few old dried');
writeln ('bones - I can''t tell if they are human or not!!');
writeln ('In the center of the pit is a narrow shinny');
writeln ('leading downward.');
CASE whichway OF
d: location := ladder;
u: BEGIN
writeln ('If you try to climb that,');
writeln ('you''re sure to kill yourself!');
END;
n,s,e,w: noway;
END; {case}
END; {proc ppit}
(*****************************************************************************)
(* procedure pcrystal *)
(*****************************************************************************)
PROCEDURE pcrystal;
BEGIN
writeln ('You are in a shining hall of crystal. It is');
writeln ('intensely cold but also chillingly beautiful.');
writeln ('THere are glass formations rising from the');
writeln ('floor as if they had grown there, yet delicately');
writeln ('sculptured with multi-faceted sides. An intense');
writeln ('white light shines brilliantly from the floor,');
writeln ('which is also made of a mirror smooth lead crystal.');
writeln ('The light is almost blinding and the many reflections');
writeln ('that it sets off among the crystal formations of ');
writeln ('the room make it almost impossible to tell where ');
writeln ('the room begins and where it ends.');
CASE whichway OF
e: location := maze;
n,w: location := ogreroom;
s,u,d: noway;
END; {case}
END; {proc pcrystal}
(*****************************************************************************)
(* procedure pbatscave *)
(*****************************************************************************)
PROCEDURE pbatscave;
BEGIN
writeln ('You are in a steep cavern filled with');
writeln ('shrieking vampire bats. They swoop and ');
writeln ('dive at you by the thousands. If I were you,');
writeln ('I would get out as quickly as I could. There');
writeln ('are openings to the west and to the north.');
CASE whichway OF
w: location := ogreroom;
n: location := steam;
e,s,u,d: noway;
END; {case}
END; {proc pbatscave}
(*****************************************************************************)
(* procedure psteam *)
(*****************************************************************************)
PROCEDURE psteam;
BEGIN
writeln ('You have entered a hall filled with a ');
writeln ('stifling steamy vapor. There are innumerable');
writeln ('small geysers scattered about, each contributing');
writeln ('its own steam to the general mist.');
writeln (' To the west is a dark opening, as well as to');
writeln ('the north. Further out in the middle of the room');
writeln ('is a dark opening in the floor into which some of');
writeln ('the vapor seems to be seeping.');
CASE whichway OF
w: location := narrow2;
n: location := deadend;
d: location := maze;
s: location := batscave;
e,u: noway;
END; {case}
END; {proc psteam}
(*****************************************************************************)
(* procedure pladder *)
(*****************************************************************************)
PROCEDURE pladder;
BEGIN
writeln ('You are at the base of a huge ladder reaching');
writeln ('up out of sight. It must extend up at least 500');
writeln ('feet, and it will take someone brave in heart to');
writeln ('scale it. There are also passages which lead');
writeln ('north and down.');
CASE whichway OF
n: location := maze;
d: location := flames;
u: IF carrying THEN
BEGIN
writeln ('You can''t carry the treasure up the');
writeln ('ladder -- it''s much too heavy!');
END
ELSE
location := vestibule;
{endif}
e,s,w: noway;
END; {case}
END; {proc pladder}
(*****************************************************************************)
(* procedure pflames *)
(*****************************************************************************)
PROCEDURE pflames;
BEGIN
writeln ('Unfortunately you have fallen into an ');
writeln ('underground fire pit. It is the source');
writeln ('of heat that produces the geysers in the');
writeln ('steam room. You have been toasted to a crisp,');
writeln ('to put it politely.');
cooked := true;
done := true;
END; {proc pflames}
(*****************************************************************************)
(* procedure pdeadend *)
(*****************************************************************************)
PROCEDURE pdeadend;
BEGIN
writeln ('Dead end.');
CASE whichway OF
s: location := steam;
n,e,w,u,d: noway;
END; {case}
END; {proc pdeadend}